ActionScript 2.0 :: Create An Infinite Menu BUT Navigating Menu From Left To Right Using Drag Rather Than The Position Of The Mouse
Apr 1, 2011
I'm looking to create an infinate menu BUT navigating my menu from left to right using drag rather than the position of the mouse. If there's any links or tutorials around Pleeeeese let me know.
[Code]....
View 4 Replies
Similar Posts:
Mar 8, 2004
i need to find a way to pause and start again from that same position the 'infinite menu' found here on kirupa URL...A friend of mine attempted to help me, and gave me some code to fiddle with. I did fiddle with it, but problem was, the code was for Flash MX 2004. So it didnt work on my MX. Here is the existing code i have, but doesn't function (i.e. works fine when control>Test Movie, but doesnt work when actual .swf from folder is opened)[code]
View 10 Replies
Jun 24, 2010
I have designed a menu that When you mouse over it, a custom cursor appears. When you mouse down it disappears and when you mouse up it returns. If you happen to mouse down and then drag the mouse off of the menu (whilst in mouse down) and then mouse up outside the menu, the custom cursor disappears. All good. The only issue is: If you happen to mouse down on the menu and then drag the mouse off of the menu AND off of the stage, i.e the SWF (whilst in mouse down) and then mouse up completely off of the stage, the custom cursor appears at the point it left the menu. I have tried to fix this using MOUSE_LEAVE but this dosnt work when the mouse button is pressed down. I have attached an FLA, SWF and the AS below.
Code:
stop();
import com.greensock.*;
import com.greensock.easing.*;
import flash.events.MouseEvent;
[code]....
View 1 Replies
Jul 1, 2011
I've been building an "infinite menu" using script from a tutorial that I found and modified. The original script allows users to scroll through a series of pictures (contained in a movieclip) by moving their cursor either to the left or the right of the center of the menu- the farther from the center, the faster the menu scrolls.I added functions that cause the menu to stop scrolling when the cursor leaves the animation. However, I want the menu to decelerate smoothly, starting from whatever rate it was moving at when the mouse out event occurred and finishing at a stand still, and this is where I'm having some Serious Issues.
I've managed to make it work correctly for the first time the mouse out event occurs, but whenever I mouse on and then mouse out again the images move at (apparently) random speeds and directions. At this point I don't even have a guess at what could be causing this, much less how to fix itI realize my code is probably not as clean or streamlined as it could be- I'm still pretty new to this whole AS thing. I hope it's clear enough for you all to understand easily enough.
ActionScript Code:
var xcenter:Number=425;
var speed:Number=.03;
[code]......
View 4 Replies
Sep 28, 2006
So, i have an infinte menu (actionscript (AS2) posted bellow)When the mouse moves out of the movieclip over or under, it stops. However if i drag the mouse to the right or left of it, it just keeps on speeding up.
onClipEvent (load) {
var xcenter = 280, speed = .01, decel = .90, accel = 0;
}
[code].....
View 4 Replies
Feb 8, 2007
I made the tutorial for the Infinite menu. The menu in reality goes from the left edge to the right edge of the stage, but I have masqued it so that it only appears on the left side of the stage where I want it to be. I also changed the anchorpoint of the animation, so that the anchor is on the midpoint of the left half of the stage, instead of the midpoint of the whole stage. Everything works, but when you drag the mouse over the right side of the stage where the menu is hidden, the scrolling increases in speed.
Is there a way of telling the mouse pointer action to stop when the mouse reaches a certain part of the stage, instead of at the actual edge of the stage?
View 2 Replies
Mar 17, 2009
I'm trying to develop an infinite menu (horizontal scroller) for a Portfolio. It works but not properly the way it should. After few loops the images get out of sync I don't know why. And if possible can you also help to add some easing to the movement? What I did was, I add to instances of the menu one called menu and another called menu1. Than add the following code to the timeline: import flash.events.Event;
[Code]....
View 2 Replies
Nov 12, 2002
onClipEvent (load)
{
xcenter=377;
speed=1/10;[code].....
i did the tutorial but something is wrong cuz when i created my own little sliding thingy and i put my mouse so it slides left or right on the right side it cuts off a bit when going infinite.I think its something to do with the positioning of my menu because its not on x=0 its on x=120.8 and i was trying to work out how to fix it but i'm stuck...and when i move the menu to x=0 it works nicely.
View 15 Replies
Sep 1, 2010
scrolling 2 sprites. Look at the image below. [URL] FLA LINK (please take a quick look)[URL] I have this entire program working but i need to scroll the left menu and the menu where all the items are added. One more thing, the right menu can have only an few items at a time that do not need scrolling but when more are added then the scrolling will need to take effect.
View 0 Replies
Jul 12, 2011
I'm making a chatroom in actionscript, and I want to create a left click menu that pulls up some functions like (Ban, Hide, View users profile, etc..) I'd rather not do it through the right click menu.
View 1 Replies
Oct 30, 2010
My code is below. What am I doing wrong? I am trying to have my menu enter the stage and exit the stage when the mouse goes below/above a certain point (425px)
navBar == 0;
Mouse.addListener(listener);
if(_ymouse >= 425){
[code].....
View 6 Replies
Feb 6, 2009
I am trying to modify a fla i got from flash den. [URL]
It works by clicking on menu items, and or using your mouse wheel.
I am trying to make it so that it responds to mouse movement. So if you mouse up, the menu moves up, and if you mouse down, it moves down.
The file populates the menu using xml, and below is the primary code that makes it work.
Every mouseposition functionality that I've worked on required that the content be in an MC, but this is all xml generated content, and I don't know how to target or control it.
package net.flashden.lydian {
import fl.transitions.Tween;
import fl.transitions.easing.Strong;
import flash.display.MovieClip;
[Code].....
View 1 Replies
Mar 4, 2009
I'm using Adobe CS4 Professional flash to create the basis of the website, a photo background with an interactive menu overlay on top. Does anyone know any good tutorials for an interactive menu (roll you mouse over certain things and the sub-menu comes up which lead to other pages of the site etc.)
View 1 Replies
Nov 21, 2011
I'm creating an animated (in and out) drop down menu. I've managed to get the menu to open when the user mouses over, with the buttons all selectable. However I can't seem to find an efficient method of making the drop down menu close whenever the mouse is not over the menu. Actions:
[Code]...
View 2 Replies
Jan 7, 2004
I have a menu bar that when a user mouses over it, a second menu slide out beneath it.when I move my mouse off the first menu bar, the second menu bar disappears. Im not sure how to organize my hit areas so that the second bar stays even if I mouse off the first menu bar.
View 1 Replies
Sep 21, 2011
How create Context menu in AIR application plus how add sub menu against any parent item in Flex?
View 2 Replies
Dec 7, 2002
Anybody know how to create a custom context menu (right click menu) in Flash?
If it's not possible, wouldn't it be a good idea for Macromedia to put some kind of event or something in there?
View 11 Replies
Mar 29, 2007
I have created a sliding menu. But that is static( the number of rows are fixed). i want to create a menu with the number of rows dynamic.I have attached the fla file here.
View 10 Replies
Dec 20, 2009
i want to create a menu with sub menus but i don't know what's a menu structure and how can i create it
View 3 Replies
Oct 9, 2004
Im using the infinite menu code from the tut.
The AS in the tut works fine in a stand-alone swf, but if you load it into another swf it wont work properly cuz it uses values like _ymouse<18
Those absolute values are not correct once the swf is loaded into a different sized movie.
What would you guys say is the best way to convert the code so that it would work when loaded?
If thought of changing every value to a target such as _root.MCinMAINmovie.CONTAINERmcFORinfiniteMENU._xm ouse>218 but this seems rather tedious... and it makes it hard to build code for something that needs to be a loaded swf and test it say before you have you main swf built.
Heres the code for the infinite menu
Code:
onClipEvent (load) {
xcenter = _root._width/2;
speed = 1/10;
[Code]....
View 3 Replies
Nov 10, 2004
i've created av "infinite menu" a menu that moves in a direction depending on the position of the mouse. I need a little help to make it stop whenever the mouse aint over the menu.[code]This is just a beta version so the grapics aren't correct.
View 4 Replies
Jul 2, 2005
Code:
//this is one of the code pieces I've been trying
scroll_menu.onEnterFrame = function() {
var speed=.5/100;
var xcenter=400;
[code]....
View 1 Replies
Feb 7, 2007
I've got the very old infinite menu posted on Kirupa's site. I haven't done anything but switch it to a vertical menu, but the problem is that I put a button in the menu, the 2nd grey box, with a getURL that just goes to google. Problem is, it won't load the url. I had wanted to put buttons in this menu to get new URLs or do things it flash, but it won't respond.
View 2 Replies
Mar 8, 2004
Alright, this is my problem; i need to find a way to pause and start again from that same position the 'infinite menu' found here on kirupa friend of mine attempted to and gave me some code to fiddle with. I did fiddle with it, but problem was, the code was for Flash MX 2004. So it didnt work on my MX. Here is the existing code i have, but doesn't function (i.e. works fine when control>Test Movie, but doesnt work when actual .swf from folder is opened)
cmdPause.onRelease = function() {
if (_root.Paused == true) {
text = "pause";
[code]....
View 10 Replies
Sep 14, 2004
All i need to do is put a boundry for the infinite menu to stop at for the left and rightThis is my code from the tut:
[AS]
onClipEvent (load)
{
[code]....
View 5 Replies
Oct 9, 2004
The AS in the tut works fine in a stand-alone swf, but if you load it into another swf it wont work properly cuz it uses values like _ymouse<18Those absolute values are not correct once the swf is loaded into a different sized movie.What would you guys say is the best way to convert the code so that it would work when loaded?If thought of changing everyvalue to a target such as _root.MCinMAINmovie.CONTAINERmcFORinfiniteMENU._xm ouse>218but this seems rather tedious... and it makes it hard to build code for something that needs to be a loaded swf and test it say before you have you main swf built.is there a better or easier way to do this?Heres the code for the infinite menu
Code:
onClipEvent (load) {
xcenter = _root._width/2;
[code].....
View 3 Replies
Jan 11, 2005
I am trying to make a infinite menu of thumbnails called dynamically. I need two things: I need the menu to move forward (infinitly and at a constant rate ex: speed = 5) while the user presses and holds the forward button and backwards (infinitly and at a constant rate ex: speed = 5) while the user presses and holds the backwards button. Secondly, I need randomly sized pictures (ex. 640 x 480) to load in there respective box (20 in all, each with a varible P(number)) and be scaled to the size of the box with the pictures proportions intact. Attached is what i've come up with so far and i've used the pic box currently in the middle of the project to experiment with.
View 1 Replies
Dec 19, 2003
I followed the infinite menu tut and it worked perefectly, how ever I'm trying to make a professional looking website and I don't want the scrolling to be obnoxious to the viewer (and I know jack crap about AS).
Is there a way I could get it to either work when the mouse is just on top of the .swf or to get it to work when the mouse is in proximity (within ~100px either way) of the .swf? Also, I'd like for the menu to reset and stay at x=0 y=0 when the it's not active..
Code:
onClipEvent (load)
{
xcenter=360;
speed=1/200;
[code]...
That's what I have from the tut for the movie obj.
View 1 Replies
Mar 13, 2005
I've tried applying Ilyas' infinite menu to the Senocular's XML portfolio. However, the movement looks bad--you can see where the thumbs stop and begin. I was wondering how this could be fixed??
Also, would it be possible that when you click on a thumbnail, a PDF file is launched? How could I do this from the XML file? I'm trying to create a continuous scrolling horizontal menu. The menu would contain pictures of news articles and when you click on the picture, you could read the article in the PDF!
Since each article is pretty long, like news clippings, I don't think having this info in a flash pop-up box would work?
View 14 Replies
Oct 12, 2010
I'm using CS5 actionscript 2. I would like to create hovering text when one mouses over an item in the navigation window (please see pic). You know, something that would act like a brief abstract to give the user more info re: whether or not they need to click on that link.At present, the nav_mc is linked to an xml doc FYI (the nav_mc accordians in and out, but doesn't have to). I input what I want the menu and submenu to say in the xml nodes and it shows up. It would be cool if the hover text added could also be xml driven tooI am green to this so the more detail the better. Do I need to create a new xml doc? new .swf? How do I link this? Should I use Flash Builder or Catalyst?
View 6 Replies