BUT if I change the line 'var word_mc:MovieClip' to just 'var word_mc',
ie remove the type definition
It works, so why if I define the type definition for my variable does
the assignment break?

I'd imagine that the compiler fails to realise that the eval statement could create a MovieClip object. What if instead of using eval you used
var word_mc:MovieClip = this["clipid" + i]?

Best
Danny
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to