A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How to stop() a mc loaded with createEmptyMovieClip()?

  1. #1
    Junior Member
    Join Date
    Jun 2006
    Posts
    15

    How to stop() a mc loaded with createEmptyMovieClip()?

    Subject pretty much says it all...

    createEmptyMovieClip("container", this.getNextHighestDepth());
    container.loadMovie("path/to/someMovie.swf");

    ok... now how can I:

    a.) stop(); (or equivelent) someMovie.swf?
    b.) get the basics about someMovie.swf, like .currentFrame and .totalFrames?

    This shouldn't make me bang my head on the wall, but it does!

    TIA!

    pat

  2. #2
    Senior Member Kirill M.'s Avatar
    Join Date
    May 2002
    Location
    Toronto, Canada
    Posts
    711
    The reason you can't stop it or get total frames is because at the time you issued a loadMovie call the swf hasn't yet loaded by the next line. Such things in flash are asynchronous and they happen later. You can use MovieClipLoader, if you don't know how to use it look in the flash docs. You can have a function you wrote get called by MovieClipLoader instance when the swf has done loading and from that point on you can do whatever you want with it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center