Re: [Flashcoders] E4X strangeness

2010-12-06 Thread Henrik Andersson

Mendelsohn, Michael skriver:

Hi list...

For some strange reason (and I mean REALLY strange), the second statement below 
depends on the first statement.  As far as I can tell, the two lines have 
nothing to do with each other.  When c runs, clickedOne returns an XMLList.  
When c is commented out, clickedOne returns null.

var c:XMLList = topicData[0].descendants(*).(hasOwnProperty(@title)  @title == 
String(u[info][text]));
var clickedOne:XMLList = topicData[0].asset.(hasOwnProperty(@title)  (@title == 
String(u[info][text])));

Could it somehow be that initializing var c creates something that's next 
needed for the var clickedOne to evaluate properly?



I can't see any reason how this should happen. But my gut instinct says 
that you should decompile the output and see how the generated loops 
look like.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] E4X strangeness

2010-12-06 Thread Mendelsohn, Michael
Hi Henrik...

Thanks for responding.  What do you mean by decompile the output?  How would I 
do that?

- MM

 I can't see any reason how this should happen. But my gut instinct says 
that you should decompile the output and see how the generated loops 
look like.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] E4X strangeness

2010-12-06 Thread Merrill, Jason
He means use a .swf decompiler application to see what the resulting code looks 
like that your Actionscript compiler generated. Here's a pretty good and free 
one:

http://www.sothink.com/product/flashdecompiler/download.htm

I agree with the others, I don't see anything wrong with your code.  Is there 
some other dependency in your app you're maybe not accounting for?  Very odd 
bug. On paper, doesn't make sense.

One options might be that your .swf is not getting the updated versions of your 
class.  Might try either deleting ASO files or bringing your classes into a 
fresh .fla (if you're using Flash Pro).  


 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn, 
Michael
Sent: Monday, December 06, 2010 11:56 AM
To: Flash Coders List
Subject: RE: [Flashcoders] E4X strangeness

Hi Henrik...

Thanks for responding.  What do you mean by decompile the output?  How would I 
do that?

- MM

 I can't see any reason how this should happen. But my gut instinct 
 says
that you should decompile the output and see how the generated loops look like.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders