Help with Menu system [Scroller]

  • SainT1337
  • Newbie
  • Newbie
  • User avatar
  • Posts: 7
  • Loc: <Classified>

Post 3+ Months Ago

Hello

I've got a little problem, I've got a horizontal menu scroller but it scrolls to far to the left and right - How can I govern it so it doesn't scroll off my menu system?... Check out my problem at

http://sn7.00freehost.com

The Fla and Swf can be found there with an image describing my problem... I'm all outa ideas and can't get this right :cry:

Any help will be greatly appreciated.

Thanks
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

maybe have the follow mouse function thing only happen when onMouseOver the navi bar?
  • SainT1337
  • Newbie
  • Newbie
  • User avatar
  • Posts: 7
  • Loc: <Classified>

Post 3+ Months Ago

Is it possible you someone can help me with the mouse over function - I'm a bit lost here

Thanks
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Given your current setup there really isn't much room for the navigation to move without sliding over the edge. So if you want you can just disable the menu from moving and keep the arrows following the mouse.

Otherwise for looks purposes you should probably keep it as-is, since if you keep it from sliding off the edge it will basically be like rattling it side to side instead of sliding it around.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

I think what he is looking for is for the bar to move, but not have the two arrows leave the bar ever.
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Oh, I see.....

Ok, well I am a Flash MXer so I don't know how much I can get this to work in Flash 5, but try this.

1) Click on the menu on the main stage and open the align panel (CTRL+K in my Flash) and then press down the "To Stage" button and then press the "Space Evenly Horizontally" button (button on the right under "Space:").... I hope Flash 5 has this panel...lol. Anywho, this will evenly align your menu horizontally so it isn't lopsided.

2) Right click on the menu and choose "Edit in Place"

3) Right click on Frame 1 and open the "Actions" panel.

4) Replace the current actions in that frame with
Code: [ Select ]
if (arrow._x<=-((menu._width/2)-25)) {
    arrow._x = -((menu._width/2)-25);
} else if (arrow._x>=((menu._width/2)-25)) {
    arrow._x = ((menu._width/2)-25);
} else {
    difference = _xmouse-arrow._x;
    arrow._x = arrow._x+(difference/delay);
    menu._x = -arrow._x/15;
}
  1. if (arrow._x<=-((menu._width/2)-25)) {
  2.     arrow._x = -((menu._width/2)-25);
  3. } else if (arrow._x>=((menu._width/2)-25)) {
  4.     arrow._x = ((menu._width/2)-25);
  5. } else {
  6.     difference = _xmouse-arrow._x;
  7.     arrow._x = arrow._x+(difference/delay);
  8.     menu._x = -arrow._x/15;
  9. }



I think that should work in Flash 5 :-\

And for a question for you, if you are using Flash 5 how are you using a Component? Those were created in Flash MX.
  • solaris
  • Student
  • Student
  • User avatar
  • Posts: 83
  • Loc: NC

Post 3+ Months Ago

maybe you can try a move script in which the slider (scroller) moves to the position you invoke under the button actions like for instance:

Code: [ Select ]
on (over) move.this(postion)


and you can make the bar start at a certain location, given if you want it to move on the x axis, you must declare that, ot your buttons will make it go haywire. I did this once, I can supply the code once I get a chance, maybe this will help you. ;)

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 8 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.