A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [f8]

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    1

    [f8]

    dear community,

    me and flash do not yet understand each other.

    I have loaded an extern swf ("hongkong") with the help of a mc ("imageLoader") into my main movie.

    that how the code looks like:

    hongkong.onRelease = function() {
    startLoading("hongkong.swf");
    };
    function startLoading(whichImage) {
    loadMovie(whichImage, "imageLoader");
    }

    and now I want to close the extern movie when the user gets outside the movie, like rollout. this is how I tried but not suceed:

    hongkong.rollOut = function() {
    imageLoader.unloadMovie();
    };


    can anyone help me?

    thank you, sara

  2. #2
    Junior Member
    Join Date
    Apr 2008
    Posts
    23
    Hi sara

    Not sure if this i correct as haven't written AS2 in a bit but thought i'd give it a go. Try simply,

    hongkong.rollOut = function() {
    unloadMovie("hongkong.swf");
    };

    Hope this helps.

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