A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Changing Graphics for Buttons

  1. #1
    Senior Member
    Join Date
    Mar 2000
    Posts
    161

    Question

    Does anyone know how to do this????

    Here's my situation:

    In my Flash Movie, I want to have buttons so the user can pause and then play the animation. Instead of having a pause button and a play button, I want to have only one button with two graphics (1 for pause and 1 for play). It starts off as a pause Graphic and then when the user clicks on it to pause the movie it turns to the play graphic and vice versa. Thanks in advance

  2. #2
    Senior Moderator
    Defender of the Faith
    Pope de Flash's Avatar
    Join Date
    Feb 2000
    Posts
    3,429

    Cool

    Just place the button in a movie clip. In the first frame put the original state of the button you want put a stop aciton in the first frame of the movie clip. Now in frame two put a blank keyframe and place the button so it lines up with the first. Now in the first button actions area put a command to goto the second frame of the movie clip that you just created along with the other commands you want executed. Then do the same thing in the second frame but send them to the first frame of the movie. Regards, Bill

    ------------------
    Macromedians 1:1

    In the beginning the web was without shape and color, and the hype covered the darkness of the net. Then there was a Flash and life came to the web and vision became reality.
    <EMBED src="/cgi-bin/ubb/Members/sigs/00000100.swf" quality=high WIDTH=375 HEIGHT=75 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>

  3. #3
    Senior Member
    Join Date
    Mar 2000
    Posts
    161

    Question

    That's what I was thinking...but is it possible to put the buttons in a movie and then place that "button movie" in my main flash movie and have those buttons control the main movie? Would I have to use a tell target? Would the button code go in the Button movie or in the main movie when I place the "Button Movie" on it. wshhh That was a mouth full....Hope it makes sense

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