ActionScript 2.0 :: Infinite Menu With Decreasing Size
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
Similar Posts:
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
Apr 10, 2007
I have a movie that, when a button is pressed, a specific movieclip (named revealbar) moves a certain increment (in this case 25 pixels):
Code:
on(press){
gotoAndStop(2);
_root.revealbar._x = _root.revealbar._x+25;
}
What I'd like to do is have the bar decrease in size instead of just move.
View 4 Replies
Mar 23, 2012
I have a problem with scaleX and scaleY. When I use them for images created by photoshop their graphic decrease a lot. I use scaleX and scaleY for changing the size of image so scaleX equal with scaleY. Is there another way to change the size of image in actionscript without decreasing graphic?
View 9 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
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
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
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
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 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
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
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
Apr 17, 2007
I am using the List component as a menu. The user uses the arrow keys to go up and down the items in the component and uses another key to select them. This is all working but now I would like to include infinite menus. I have made a quick animation to show you what I mean: [URL]
I am currently using this code:
Code:
focusManager.setFocus(_root.menu);
lastItem = menu.length - 1;
menu.selectedIndex = 0;
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if((menu.selectedIndex == lastItem)&&(Key.getCode() == 40)){
menu.selectedIndex = 0;
} if((menu.selectedIndex == 0)&&(Key.getCode() == 38)){
menu.selectedIndex = lastItem;
}
However this results in an "off by one error" and the top item and bottom item cant be selected. e.g. [URL].
View 1 Replies
Feb 18, 2008
The swfs I want to load are picflash1,2,3... etc .swf in a folder "movies". I am not using an absolute path as I am just testing things out, before they go up.I have followed the 'Infinite Menu' tutorial by Pom and have no problem with the code for the movement of the menu as a mc. BUT I cannot get the buttons to work. The only script I can use to get a button to load a mc at all is:
on (release) {
_root.loadMovie("movies/picflash1.swf");
}
This doesn't of course load the mc into a new level in the same mc or at _x, 150 and _y, 150. Which is what I want! So I am using this:
on (release) {
_root.createEmptyMovieClip("area",1);
loadMovie("movies/Picflash1.swf", "area");
setProperty("area", _x, 150);
[code]....
...and now it doesn't work! The button does work if it is not nested in the mc I need for the script to be used for the infinite menu.
View 1 Replies
May 12, 2005
In my flash page I made, in the right side, a horizontal infinite menu with a magnifying glass that has the same effect. This clip is made separately and is loaded into the page by an empty movie clip. All works well when is not in the page, but when it is loaded the lens is not moving. I figured out this problem putting this AS into the empty movie clip:
onClipEvent (mouseDown) {
startDrag("lens");
} onClipEvent (mouseUp) {
stopDrag();
}
But another problem appeared. Wherever I use the mouse, the lens are acting as if I am manipulating it. The lens are moving according to the position of the mouse. What can I do?
View 1 Replies