how to check if movie has ended?

  • ozzu12254
  • Newbie
  • Newbie
  • ozzu12254
  • Posts: 9

Post 3+ Months Ago

Hello,

i have a few swf files that are exports from an capture program. no i want to check in flash it the movies has ended. so when the movie is done playing i want to start a new action.

i have tried with _currentframe and _totalframe but _currentframe reached _totalframe verry soon. so when _currentframe == _totalframe the movie is not ended yet.

do u know a possible way to check for this?
  • yuriythebest
  • Banned
  • Banned
  • User avatar
  • Posts: 143
  • Loc: Ukraine

Post 3+ Months Ago

At an end frame of every one of your movies attach the code

_root.total_movies_finished+=1;

Then in your main movie create a movie clip that has the code:

onClipEvent(enterFrame){
if(_root.total_movies_finished==_root.total_movies){

/// paste actions for when your all your movies are finished here

}
}


make sure to specify total_movies in the _root directory or it will not work.
  • yuriythebest
  • Banned
  • Banned
  • User avatar
  • Posts: 143
  • Loc: Ukraine

Post 3+ Months Ago

At an end frame of every one of your movies attach the code

_root.total_movies_finished+=1;

Then in your main movie create a movie clip that has the code:

onClipEvent(enterFrame){
if(_root.total_movies_finished==_root.total_movies){

/// paste actions for when your all your movies are finished here

}
}


make sure to specify total_movies in the _root directory or it will not work.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 5 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.