A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Many buttons ... one start

Hybrid View

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    6

    Many buttons ... one start

    Hey I am having this problem.
    I have an menu that contains many buttons, an a place where the content is shown (the content has a staring animation). But each time I click a button the animations start again ... if I click another button it start again.
    What I need is when I click any button it start the content animation after if I click any button it won't start again.
    Any suggestions, ideas, or help?

  2. #2
    Junior Member
    Join Date
    Apr 2008
    Posts
    19
    Well, You can do a variable('animation' for my example) on frame 1. And do an If on every button. Like this

    if(animation == 1){
    //Show your content
    }
    else{
    //Play animation
    animation = 1
    }

    Do it on every button, so it will play animation only once, because after this, animation will be '1' so the else's instruction won't be done.

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