PDA

View Full Version : simple frame trigger for MC to play


toonster
09-18-2005, 09:40 PM
im trying to have a MC that is within a parent movie to play upon arriving at a frame in that main movie (say frame10) now i also want the main movie to stop on frame10 as well. i tried the following actionscript

stop();
_root.Q01.play();

Q01 is the instance name of the MC that i want to play. this is not happening though? and i dont know why?

it should be simple but i just cant seem to figure out why it is not starting the MC.... on a side note this MC is controled via another MC on the stage and it will react to the action script in that MC... so it leads me to believe the problem is with this simple (should be) two line code at the stop frame in the main timeline...... does that all make sense?
thanks.

oldnewbie
09-18-2005, 10:06 PM
Is the main timeline stopping on frame 10?

Is that the exact spelling of your mc's instance name?

Is it present on stage, on frame 10?

toonster
09-18-2005, 10:12 PM
the main movie is stopping on frame10.
the instance name is that exactly.
and the MC is on stage i believe, though the graphic it contains is not... but i have a similar graphic that works fine with this same sort of situation, though it is triggered from within yet another MC. so it looks like you think this naming issue.. ill triple check that part of it. thanks for the suggestions, any others?

toonster
09-18-2005, 10:52 PM
it seems that by moving the MC to load one frame prior to 10 it all works out.... maybe because frame 10 has a stop on it? and the MC has a stop on the first frame? im not too sure why it works, but it does..... thanks, oldnewbie. if you check this and know why that would work, im interested in knowing.

thanks again.