Hi Coders,
I have a strange problem. When i try to use an Array prototype with a MC
Tween (http://hosted.zeh.com.br/mctween/)  , the callback of the MC Tween
prototype do not work.

Berkay,

One problem might be the fact that you're adding a prototype but not hiding it for..in loops. This can cause certain unexpected behaviors on code, MC Tween included.

Try doing this right after your prototype is created:

ASSetPropFlags(Array, "in_array", 1, 0);

This set the property flags to properly hide the 'in_array' function from the common code. It will still be executed, but just won't trace as a normal variable. As a rule of thumb, you should always do that when adding something to the prototype of a class under AS1.


Zeh

_______________________________________________
[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