A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: button action

  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    20
    Hi!Quick button question.I have a button placed in a movie clip.I have the _root assigned so it will go back to scene.Now I have a preloader and when button is pressed,the preloader flashes real quick.Any way to fix this?

  2. #2
    One cow army..OH NOES!
    Join Date
    Apr 2001
    Location
    Silvermoon
    Posts
    357
    Well i don't get you very well??what do u mean??u don't want the preloader to appear??or what??!!!

  3. #3
    Junior Member
    Join Date
    Feb 2001
    Posts
    20

    Here's the deal

    I originally had a button in a movie clip and assigned the _root command to go back to scene(worked fine).Now I added a preloader.When button is pressed now,the preloader appears 1st,than the next scene.I don't want this.I want it to just do what originally worked.

  4. #4
    One cow army..OH NOES!
    Join Date
    Apr 2001
    Location
    Silvermoon
    Posts
    357
    Can u put the buttons action???
    and is the preloader in a separate scence?

  5. #5
    Junior Member
    Join Date
    Feb 2001
    Posts
    20

    Here u go

    on(release){
    tellTarget (_root.gotoAndPlay(1))
    }
    }



    And yes the preloader is a separate scene(Scene1)

  6. #6
    One cow army..OH NOES!
    Join Date
    Apr 2001
    Location
    Silvermoon
    Posts
    357
    Sorry for being late but it was late at night here yesterday so i had to go to sleep...lol
    i think this should make it
    on(release){
    tellTarget (_root)
    gotoAndPlay ("the scence name here", 1);

    }
    }
    i think that should do it
    of course put the scence name instead


  7. #7
    Junior Member
    Join Date
    Feb 2001
    Posts
    20

    Got it

    I used
    on(release)
    tell target(_root.gotoAndPlay("home")


    home being my frame label

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