ActionScript 2.0 :: Stopping Kirupa's Infinite Menu?
Nov 23, 2003
how to make kirupa's infinite menu [URL] work only when the mouse is over the movie clip?here's the actionscript:
onClipEvent (load)
{
xcenter=150;
speed=1/10;
}
[code]....
View 11 Replies
Similar Posts:
Nov 23, 2003
Does anyone know how to make kirupa's infinite menu (url...), work only when the mouse is over the movie clip?[code]...
View 11 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
Aug 1, 2007
I'm using the Kirupa tutorial of the xml auto slideshow. I need it to stop after it runs through all the images one time.How should I modify the code below in order to do that
delay = 3000;
//-----------------------
function loadXML(loaded) {
[code].....
View 3 Replies
Jul 26, 2007
I'm using the auto slideshow with xml that you guys demo on your site (which I love BTW) -I need it to stop at the end of the last slide and the demo is set up for it to loop -It looks I need to alter the parse command but I don't know how to do that - Is there an explanation on the site of how to alter the AS so the slide show will end after it runs once through all the images?
View 2 Replies
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
May 30, 2007
Alright, I've been tasked to build a menu system similar to the one on 2Advanced V5. I know, I know, don't mess with copying peoples' stuff, but my arm's being twisted to do so, by the management. I've started with Kirupa's XML menu, modified the XML to my liking, and have added some sliding code in there. I'm having a hard time with1. Getting the sliding code to interact with the submenus.2. I've got no idea how to adjust the submenus so they don't scroll too fast or too slow.EDIT: All I need is for each submenu to be scrollable, and not scroll too fast, based on how many buttons are in there. XML source can be set to the XML example in Kirupa's tutorials.The FLA is attached, and here's the Actionscript:
Code:
// generates a list of menu items (effectively one menu)
// given the inputted parameters. This makes the main menu
[code]....
View 7 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
Aug 8, 2009
This is one of my first posts, so be kind! I'm slowly getting back into Flash after a hiatus (I was pretty good with Flash 5), and I've been adapting Kirupa's XML-based menu tutorial to my company's needs. As users drill down to the 2nd and 3rd tier of menus, I need the script to load and display images (preferably with a preloader), the links of which would be provided in the accompanying XML document (I based our XML doc off of Kirupa's example as well).
// generates a list of menu items (effectively one menu)
// given the inputted parameters. This makes the main menu
// as well as any of the submenus
[code]....
View 3 Replies
Dec 30, 2005
I have followed Kirupa's tutorial on an XML driven drop down menu. On this menu, when a submenu is opened, it opens next to the button the mouse is hovering over. I need the submenus to open at the top of my flash page, does anyone know how to do this?
View 3 Replies
Feb 10, 2009
Looking for a dynamic Infinite menu. I had create a infinite menu. from ([URL]) However, I would like to make it dynamic.
View 5 Replies
Dec 8, 2009
this menu is somewhat similar to the infinite scrolling menu that is often used except this one doesn't scroll based on mouse position but rather on which button is clicked in the nav.
i have an mc called 'menu01' in which there is an mc called 'menuslide' containing the series of buttons in the nav. when each button is pressed, i want menuslide to slide to the correct position (with that button flush left) and the button to slide down to highlight what page one is on. when another button is pushed, menuslide should slide to that position while simultaneously sliding up the highlighted button and sliding down the new button.
i 'sort of' have this working, but not quite.. i think the problem lies in how i have to shift the position of menuslide back to _x:0 when it gets to the end so that it looks like an infinitely looping menu. there also seems to be some conflict with the arch01 button as it doesn't slide down to highlight when it moves into position.
i have attached the fla if anyone has the time or inclination to take a look.
View 0 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
Jul 23, 2005
Having successfully completed the tutorials on building on the XML driven drop-down menu [URL] and "The Infinite Menu" [URL], I was wondering if anyone knew how to successfully merge the two so that the infinite menu can be generated from XML. My "menu" is goin to be extremely long and to do it all manually is a LAST LAST resort
View 2 Replies
Jun 11, 2006
I was wondering if there's any way to modify the kirupa infinite menu tutorial AS so that the middle button is the largest, and the buttons on either side of it are smaller, and so on for the rest of the infinite menu??? I though I'd try asking this question in the Actionscript forum, since no one answered me in the Flash MX area.
View 3 Replies
Jun 20, 2006
I've had a look over the numerous infinite menu threads but I can't seem to find what I'm after. I need to adapt the menu so that it will work with a left and right scroll button rather than the mouse position. I have got this working but the problem is the menu does not move with easing or inertia. This is what I need to do.
View 1 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
Jan 23, 2007
I am attempting to work with duplicateMovieClip to make my dynamic infinite menu work...er.. infinitely. I tried some other methods but i think it's impossible without duplicating movie clips since my menu is arrow controlled or jump to controlled. Having said that... I have come up with some code that... does nothing. Anyone have any insight? what i am trying to do is duplicate this movie to appear on the right if the slider goes too far to the left, and vice versa. Eventually i'd like to add a remove clip function if it is offstage completely.
[Code]....
View 1 Replies
Jan 29, 2009
I am working on a very minimal site that consists of a swf containing a vertical scrolling infinite menu that loads other swfs into the main timeline: [URL].I am building this in MX, and it is based on this tutorial: [URL]. I figured out how to change this to a vertical format that fit my needs. This is the actionscript I attached to the main menu movie clip:
onClipEvent (load) {
ycenter=600;
speed=1/10;
} onClipEvent (enterFrame) {
var distance=_root._ymouse-ycenter;
_y+=(distance*speed);
if (_y > 0) _y=-2323;
if (_y < -2323) _y=0;
}
The swfs are sized large as the end result is a private site dealing mostly with clients using very large monitors. I am creating the swfs to be loaded in with Flash CS4, and they contain large images that have smoothing enabled. As I know nothing about Actionscript 3.0 and very little about 2.0, I am creating the main swf in MX as I am more familiar with it.
Anyway, what I need to know is:
1. How to add something to the code that will stop the timeline's scrolling where you left it when you roll off of it,
2. Any other vertical scrolling menus I can take a look at to compare this with?
View 2 Replies
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
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