all groups > flash actionscript > march 2005 >
You're in the

flash actionscript

group:

targeting problem



targeting problem Max Cady
3/4/2005 11:44:12 PM
flash actionscript: i want to have a group of MC's play one after the other independent of the
main timeline, but i can't figure out how to target the next MC i want to
play.

so basically it goes like this, i have a banner that opens up and then i
want my mc to play, one after the other is done playing (each one runs for
about 4 seconds). and then loop back to the first mc.

i've tried placing all the mc's on separate layers in one mc and target them
consecutively with gotoAndPlay(); but that doesn't seem to work.

any info would be much appreciated.

cheers,

max

Re: targeting problem rlc5611
3/5/2005 8:48:56 AM
If all the MC's are in the same timeline (regardless of where that timeline
is), each MC can talk to another MC through the parent. at the end of the
first MC, for example, _parent.second_MC_instance_name.play(); etc. etc. You
could also dig down from the _root but using _parent will maintain
encapsulation - just in case.
Re: targeting problem Max Cady
3/5/2005 10:09:12 AM
ok, i gave that a try but my first MC just loops and is the only one that
appears to play. in the parent MC i have 7 layers all with 1 frame. in the
first frame of each layer are all my different MC's. and like you suggested
i added on the last frame of each MC the actionscript:

_parent.effect2.play();

and so on for every other MC. however it just shows the first one which i
just noticed is on the first layer. should i put a stop in before the play
action?

thanks,

max


[quoted text, click to view]

Re: targeting problem Max Cady
3/5/2005 10:26:26 AM
ok, my bad, i didn't have the next MC instantiated properly. =)

thanks for your help!

MC


[quoted text, click to view]

AddThis Social Bookmark Button