A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 33 of 33

Thread: The best menu i ever seen! Help me please.

  1. #21
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Sir Yendor
    From earlier post
    >>The button has to be on the same timeline as the movieclip.
    >>
    Otherwise you have to change tha paths.
    As the movieclip (arrow) is set to read a variable ypos from the _root, the buttons must set the ypos variable on the _root. So if your buttons are inside a movieclip you should add _root to the path.

    on(rollOver){
    _root.ypos=-66;
    }

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  2. #22
    Banned MopFlash's Avatar
    Join Date
    Jan 2003
    Location
    Perth, W.A.
    Posts
    136

    heres the fla

    did it using my code, no errors/bugs at all, and way smooth, defintly gonna get updated and used on my sites new layout
    so here it is
    Attached Files Attached Files

  3. #23
    Senior Member Sir Yendor's Avatar
    Join Date
    Sep 2001
    Location
    Over here
    Posts
    1,140
    Gotta get the kids up for school...I'll look at both of these in about an hour or so.

    Thanks again to both of you

  4. #24
    Banned MopFlash's Avatar
    Join Date
    Jan 2003
    Location
    Perth, W.A.
    Posts
    136
    in australia thats where i am its 11:18 pm, so im getting off soon, i will submit a new version of the fla in like a week, in this one just dont click the buttons and ull be fine, and when u roll off it stops fixing that up too, allright cya

  5. #25
    Banned MopFlash's Avatar
    Join Date
    Jan 2003
    Location
    Perth, W.A.
    Posts
    136
    all right i did it, this new version does it all, its even better than the one on the site, all u have to do is update the graphics, and there are no bugs at all, zilch none, it works by seeing if the arrow is below or above the btn then adds or subtracts to its x position, i should get an appluase for this, allrighty then here it is:
    Attached Files Attached Files

  6. #26
    Banned MopFlash's Avatar
    Join Date
    Jan 2003
    Location
    Perth, W.A.
    Posts
    136
    here u go, the last version of the menu im gonna submit on flashkit, this features a ton more features.
    It works by seeing if the arrow is above or below the btn, then adds or subtracts to make it get to the button, the blue arrow works by setting the x position for it the same as the button, and the arrows colour works by seeing if its the same as the button, then changes colour, then on a move it chages it back.
    And if u wanted to know how the one on the site was made use ******* swf decompiler mx version.
    Well here it is:
    Attached Files Attached Files

  7. #27
    Senior Member MSMDesignZ's Avatar
    Join Date
    Aug 2001
    Location
    NY
    Posts
    219
    ********...there seems to be an issue when the code is taken out of the original fla file. I changed the arrow slider to a rectangle slider and changed the buttons. It works great! But when I copy the frames to place it in my main movie, the slider no longer works at all!

    If I copy the frames exactly from the working fla into a brand new fla, the slider moves in slow motion instead of how it runs in the original fla?? Am I missing something? I went over the code countless times! Thanks

    Mario

  8. #28
    Banned MopFlash's Avatar
    Join Date
    Jan 2003
    Location
    Perth, W.A.
    Posts
    136
    like i said, thats the last version i will post, so u can learn something about it, this is why it wont work:
    i have used _root commands go to all the actions and the movie which has the 1 in it and change the actions from that, and change all the _roots to _parents

    heres the next prob why it goes slow, thats becuase ur main movie has diferent FPS speed, so change that to 120 or whatever i used.

    Hope this helped

  9. #29
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Hers a fla with just one line of code per button ( the x position the mc should go to).

    You can control the speed and elasticity (bouncing) ( code is ON the moving movieclip) without changing framerate.

    www.pellepiano.com/tester/pp_scrollto_menu.fla

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  10. #30
    Senior Member mzhang's Avatar
    Join Date
    Aug 2000
    Posts
    407
    Originally posted by pellepiano
    Hers a fla with just one line of code per button ( the x position the mc should go to).

    You can control the speed and elasticity (bouncing) ( code is ON the moving movieclip) without changing framerate.

    www.pellepiano.com/tester/pp_scrollto_menu.fla
    I *love* this code

    Is there any ways to improve it? it goes to the postion shambly. I know can set var viscosity =nn;

    If set to var viscosity =1, it moves cranking
    If set to var viscosity =2, it moves slow

    I want it go to the mid of the button and stopped

    Cheers man


  11. #31
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Have the viscosity between 1.4 and 1.8 or something. It is somewhat dependent on the speed variable. Higher numbers are slower ( strangely enough);

    This code and other great codes I got from....


    http://experiments.coldstorageonline.com/

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  12. #32
    Banned MopFlash's Avatar
    Join Date
    Jan 2003
    Location
    Perth, W.A.
    Posts
    136
    that is a good movie, well done to the creators

  13. #33
    Banned MopFlash's Avatar
    Join Date
    Jan 2003
    Location
    Perth, W.A.
    Posts
    136
    to get rid of the bounce go to that site and use the code for the 4th movie

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