PDA

View Full Version : help with controling movie clip


ssalus
05-04-2004, 01:30 PM
I have a button that is on the main level and tells the movie clip with the instance named intro_movie to play on release. It also sets a variable. This all works fine.

on (release) {
_root.intro_movie.play()
c = "1";
}



From my main time line I want to tell the same movie clip to play and have used this code:

if (c == "1") {
_root.intro_movie.play()

}

but it will not play the clip. I have tried using gotoAndPlay() and putting in different frame numbers in the () and it just goes to that frame and stops... any suggestions?

prt1
05-04-2004, 03:23 PM
It seems as if 'c' is not known
Try using '_root.c' instead

stealthelephant
05-04-2004, 03:24 PM
try
if(_root.intro_movie.c == 1)

//edit got beaten to a reply

ssalus
05-04-2004, 04:33 PM
thanks, but i ended up putting a play() in frame 2 of the target MC and used

if (c == "1") {
_root.intro_movie.gotoAndPlay(2)

}

on the main timeline
and it worked like a chizarm

i appreciate the quick responces though...