A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Code

  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    72

    Code

    I have a tool bar and the buttons on the toolbar load the movies dedicated for the button and unload all other movies. But, when each movie loads through a button a small intro effect happens. The effect is that the movie sort of flashes onto the screen. So, I hit the 'home' button and the home texts flash onto the screen. The problem is when I am already on the home page and hit the home button it flashes again. Please help with the button code:

    on (press) {
    if(level2 is loaded - do nothing)
    else(
    unloadMovieNum(3)
    loadMovieNum('home2.swf', 2))
    }

    Thanks for any help!

  2. #2
    Member
    Join Date
    Aug 2003
    Location
    Melbourne
    Posts
    83
    set a flag for each section that is opened.

    so when the movie starts, set

    Code:
    section = "home";
    then when you click on say "about"

    Code:
    section = "about";
    so then for each button check if its already on that flag, eg.
    for the home button

    Code:
    if(section = "home"){
    //do nothing
    }else{
    //do sumpthin'!
    }
    hope that helped

  3. #3
    Member
    Join Date
    Mar 2002
    Posts
    72
    Thanks man great idea!

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