A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Button with rollover menu

  1. #1
    Junior Member
    Join Date
    Sep 2002
    Posts
    23
    I'm trying to make a button, "Languages", so that when I rollover it, there will be a choice of 2 buttons (Languages disapears) "English" and "German". Clicking on one of these buttons takes you to the corresponding language page. I'm not so great with actionscript but I'm trying to pick it up. I'm sure there's a way to do this but how?

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Are the German and English pages HTML or flash movies?

    If they are movies, add labels to the first frame of each, 'German' and 'English'.

    Add a layer and put a stop(); on the first frame.

    Put your languages button on another layer. Click the button and add to the actions panel:

    on (rollOver) {
    nextFrame();
    }

    Make another layer and make the second frame a keyframe. Add two buttons and give them instance names. Click the German button and add to the actions panel:

    on (release) {
    gotoAndPlay("german");
    }

    german would be the label name. Do the same for the English button.

    If they are html pages, add this to the buttons:

    on (release) {
    getURL("http://www.mysite.com/german.htm");
    }


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