A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: on release with 2 functions not working

  1. #1
    Member
    Join Date
    Mar 2004
    Location
    michigan
    Posts
    92

    on release with 2 functions not working

    Hello,
    I've got a button that i need to unload a movie and also go to a place in my movie to view content. the movie is unload but the content isnt showing up here's my code
    on(release){
    gotoAndPlay("contact");
    unloadMovieNum(1);
    }
    anybody that can help me out i appreciate it

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    is the label contact on the same timeline than the button?

    gparis

  3. #3
    Member
    Join Date
    Mar 2004
    Location
    michigan
    Posts
    92
    the button is in a mc, but worked fine until i added the unload script

  4. #4
    Senior Member Alluvian's Avatar
    Join Date
    Jun 2006
    Posts
    967
    Try swapping the order of the two functions?

    on(release){
    unloadMovieNum(1);
    gotoAndPlay("contact");
    }

    Hard to tell with just this small snippet.

  5. #5
    Member
    Join Date
    Mar 2004
    Location
    michigan
    Posts
    92
    nope, it only unloads the movie

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    the button is in a mc, but worked fine until i added the unload script
    then you'll need to add the path to the label's timeline.
    For example if that timeline is the parent:
    PHP Code:
    _parent.gotoAndPlay("contact"); 
    gparis

  7. #7
    Member
    Join Date
    Mar 2004
    Location
    michigan
    Posts
    92
    thank you gparis that worked like a charm

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