Skip navigation
FD47
Currently Being Moderated

Need external swf file to return to frame 1 button after playing

Jan 11, 2014 5:22 AM

I am using AS2 to load an external swf file with the loadmovie function.  The external swf is loaded when a button is clicked.  When the external swf file is done playing I want it to go back to frame 1 where the button is so the user can just click the button to see the external swf play again.  My loadmovie code is below.  What AS2 code do I need to add to do this?

 

tar.loadMovie ("thisfile.swf");

 

 

 

 

 

Thank you

 
Replies
  • Currently Being Moderated
    Jan 11, 2014 6:06 AM   in reply to FD47

    You are better off editing the loaded file so that when it reaches the end it resets itself.

     

    If you cannot edit the loaded file you need some way of externally determining when the file is done playing, which you can really only do if it is timeline-based by checking the _totalframes property against the _currentframe property to see when they are equal.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 11, 2014 7:24 PM   in reply to FD47

    You're welcome

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points