A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Please Please help me. Button styles

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Posts
    4

    Please Please help me. Button styles

    Hey everyone, I am trying to get my buttons to have this type of effect, as shown in the following url:

    http://www.templatemonster.com/flash...tes/25611.html

    I have been trying for several days to figure out how to get this effect. Can someone help me or lead me in the direction to get this effect? Also I would like it if someone could give me the name of this type of effect.


    Thanks

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Try and search with 'tsunami' or 'Mac dock menu'

    gparis

  3. #3
    Junior Member
    Join Date
    Feb 2010
    Posts
    4

    Linking problems/

    Thanks. i have ran into another problem. I am trying to assign a link to my buttons that will play a specific movie file that will act as a transition. Here is my code:

    stop();

    this.onEnterFrame = function(){
    if(rewind == true){
    prevFrame();
    }
    }

    this.onRollOver = function(){
    rewind = false; //
    play();
    }

    this.onRollOut = function(){
    rewind = true;
    }

    this.onRelease = function(){
    mc_AllButtons_Scen2.gotoAndPlay ();
    }

    I have tried so many different ways to get this to work. Any suggestions?

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    .gotoAndPlay() takes parameters. For example :
    Actionscript Code:
    mc.gotoAndPlay(10) // mc will go to frame 10 and play
    mc.gotoAndPlay("someLabel") //mc will go to frame with label "someLabel" and play

    gparis

  5. #5
    Junior Member
    Join Date
    Feb 2010
    Posts
    4
    Ok,

    when i place this into my code I click my button and nothing happens. i want it to go to a specific movie clip that i have created within my flash document, but it does not. Correct me if i am wrong, but with each flash movie I make within my flash document i should be able to route them accordingly within my document. For example I should be able to go to from one movie to the next by linking buttons.

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    I should be able to go to from one movie to the next by linking buttons.
    It doesn't happen exactly like that. Read below:

    You have a timeline with keyframes. you have a playhead. You need to send that playhead, via button actions, on a keyframe of the timeline where you have the content you want to show.

    That keyframe of the timeline can be targeted either by its number or by its label.

    gapris

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