PDA

View Full Version : check wich frame the play head is at


Paul Ferrie
04-19-2005, 07:24 PM
I was sure i was able to use _currentFrame to check were the playhead was in a movie. Has macromedia dropped this with mx 2004?


if(myuMc._currentFrame==5){
// Do something

}


Cheers

Paul

hangalot
04-19-2005, 07:51 PM
no it has not been dropped. you must be making a mistake.

Barn
04-19-2005, 10:39 PM
Note that if the movie is playing, the time during which the playhead is on any given frame is fleeting such that an equality comparison might not necessarily resolve to true. Is there a stop action on that frame? If not, you might want to change that to >=