On your "local" frame, you'd have the money.amount.text field present, but either set _visisble=false with AS, or change the alpha to 0 in the property inspector. Then, when the playhead gets to "remote", you'd change to _visible=true or the alpha back to 99.9 in the property inspector for the text field. That way you can set the field text without it showing in the first 'frame'. It's a technique that works for almost any asset that needs to be updated/set X frames deep into a timeline.

____________________________________________

Joseph Balderson
Interactive Media Design & Development
http://www.joeflash.ca

Faculty Member, Flash Development,
Humber College School of Media Studies
http://mediastudies.humber.ca
____________________________________________

[EMAIL PROTECTED] wrote:
Let's say you have a MC with 2 frame labels ("localPlayer" and "remotePlayer" for example) and then you have different movie clips inside that MC. Something like this:

      |local____|remote_______
ammo  |xxxxxxxxx|
life  |         |xxxxxxxxxxxxx
money |         |xxxxxxxxxxxxx


Then you want to do something like this in your AS code (assuming you've previously stopped on "local"):

gotoAndStop("remote");
money.amount.text = "$100";

This wouldn't work because you have to wait one frame before you'd be able to access money but what's your prefered way of waiting one frame? Is there a real easy way to do it without putting AS code in your timeline and without using setInterval(..) to wait one frame?

I hope I've just missed something that's real easy in flash.

andreas
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to