A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Closing externally loaded movies

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Posts
    9

    Closing externally loaded movies

    Hey.

    If you load a movie into another movie (through the target rah rah) how do you close it once it has finished?

    Is it like:

    'UnLoadMovie'

    Or a function like that?

    An example code would be appreciated .

    Cheers.

    --
    JC

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    clipInstanceName.loadMovie("a.swf"); // load

    clipInstanceName.unloadMovie(); // unload

  3. #3
    Junior Member
    Join Date
    Feb 2007
    Posts
    9
    So do I randomally name the instances?

    And can I place the unloadMovie at the end of the movie I want to unload?

    This works for when they are laodeed into an instance yes?

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    So do I randomally name the instances?

    I would use an instance name that makes sense to you
    clipInstanceName was used as an example.
    when loading movies/jpegs into a movieclip instance
    I tend to use "container" or "holder" as the instance name

    And can I place the unloadMovie at the end of the movie I want to unload?

    Yes. The code is - unloadMovie(this);

  5. #5
    Junior Member
    Join Date
    Feb 2007
    Posts
    9
    Brilliant.

    Cheers.

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