Scrolling Vertical Menu By Mouse Movement
I like to make scrolling vertical menu just like you can see in http://www.2advanced.com.
Can anybody help me on this?
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 06-12-2006, 05:09 AM
View Complete Forum Thread with Replies
Sponsored Links:
[F8] Vertical Menu Tracking Mouse Movement HELP
This should be very easy.
Anyone know where I can get either a template, or tutorial how to do this:
have a vertical menu. One the right side of the menu bar are the words:
home
Info
Links
and so on
to the left of that there is a graphic ">>"
and when the mouse rolls over the words, the ">>" graphic moves up and down to the same level the mouse is at. Should be easy. I have spent the last 3 hours looking on all sites for help.
HELP!
View Replies !
View Related
Building A Masked XML Menu Box With Vertical Movement Effect
Ok, what I'm tryin' to do is a box that contains buttons with links to different URLs. There would be an XML file feeding the swf. I'd like the effect of the 'menu' to be similar to what PixleCrew has been talkin' about in some other thread. The menu would be masked and would move vertically depending on the mouse position.
PixleCrew wrote his code in that thread but I can't seem to build my FLA file the right way since I'm not the best actionscripter there is. His FLA file is not available.
So if someone could help me out with this or simply point me to someplace where this subject has been discussed, I'd really appreciate it.
Thanks!
View Replies !
View Related
Kirupa Vertical Scrolling Based On Mouse Position
Hi,
I've made a scrolling text that detects the mouse Y position for a movie that is published in 100% width and height. The scrolling is based on the tutorial http://www.kirupa.com/developer/flash8/scrollbar5.htm
But unlike this tutorial I don't have any scroll track or scroll face to control the scrolling. It entirely depends on the mouse position. The attached file is working but continue the scrolling after the point it should stop. I'm really frustrated and all ready spent lot of time for this. Any help will really appreciated
Attachment : http://www.mysharefile.com/v/9910920...irupa.fla.html
View Replies !
View Related
Vertical Scrolling Menu
I like this scrolling menu from flashkit(I attach the fla)
but I want to add a diffrent picture on every buton(picture loaded
from a directory by loadmovie command)and I dont know how
can you helpme?
View Replies !
View Related
Scrolling Vertical Menu
Hi,
I'm trying to create a continuous srolling menu from left to right depending on where the mouse is. I have one mc called menu_mc with a few buttons inside it. I have then duplicated that mc and called them menuRight_mc and menuLeft_mc and placed them either side of the stage.
I've then set my menu_mc in motion and depending on the direction it is going, either leftMenu or rightMenu should follow menu_mc. When menu_mc reaches the end of the stage and it is still going in the same direction, it's _x position will be moved to the beginning of the stage, giving it the illusion of a continuously scrolling menu.
I'v got it working somewhat now but I am incredibly stuck and my brain is bogged down with all the code. I'd appreciate it if someone could have a look at this and see where I am going wrong.
Thanx a bunch.
Code:
//----------------------------------------------------------------------------
//Main Menu
//----------------------------------------------------------------------------
menu_mc.onEnterFrame = function() {
//set variable for direction of mouse
if (_xmouse<240) {
var direction:String = "left";
trace(direction);
} else if (_xmouse>240) {
direction = "right";
trace(direction);
}
_global.mouseDiffX = _xmouse-(menu_mc._width/2);
_global.moveDiff = (mouseDiffX/2)*0.1;
this._x += moveDiff;
if (direction = "right") {
startLeftMenu ();
//restoreRightMenu ();
} else if (direction = "left") {
startRightMenu ();
//restoreLeftMenu ();
}
};
//----------------------------------------------------------------------------
//Left Menu
//----------------------------------------------------------------------------
menu_mc.duplicateMovieClip("menuLeft_mc", 100); //create left menu
menuLeft_mc.txtMenu.text = "MenuLeft"; //set menu text
//Position left menu
function restoreLeftMenu() {
menuLeft_mc._x = -480;
//delete menuLeft_mc.onEnterFrame();
}
restoreLeftMenu(); //reposition left menu
//Start Left Menu
function startLeftMenu() {
if (menu_mc._x > 480) {
menu_mc._x = -480;
}
menuLeft_mc.onEnterFrame = function() {
this._x += moveDiff;
if (menuLeft_mc._x>480) {
restoreLeftMenu();
}
};
}
//----------------------------------------------------------------------------
//Right Menu
//----------------------------------------------------------------------------
menu_mc.duplicateMovieClip("menuRight_mc", -100)
menuRight_mc.txtMenu.text = "MenuRight";//set menu text
//Position right menu
function restoreRightMenu () {
menuRight_mc._x = 480;
}
restoreRightMenu ();
//Start right menu
function startRightMenu () {
if (menu_mc._x > -480) {
menu_mc._x = 480
}
menuRight_mc.onEnterFrame = function () {
this._x += moveDiff;
if (menuRight_mc._x < 0) {
restoreRightMenu ();
}
}
}
View Replies !
View Related
Vertical Scrolling Menu
I got this scrolling menu from flash kit. I want to modify it.
Now in this movie the scrolling is working when the mouse is on any position on the stage. I need the scrolling only when the mouse is over the menu area...
Help me to do this.... File attached
View Replies !
View Related
Vertical Scrolling Menu
I have a relatively simple menu I'd like help creating. I have a movie clip (menu_mc) which I want to scroll vertically until it has reached it's end when a user mouses over either the up or down button. The movie clip is masked so you can only see a portion of the buttons at a time. I know how to make the movie clip move up or down when a user rollsOver the button, but I don't know how to make it continuous and to have the menu stop when it's reached it's end. Any help, ideas, suggestions, or tutorials would be helpful. I've attached my basic layout in a .fla incase you didn't understand what I was trying to explain.
View Replies !
View Related
Vertical Scrolling Menu
Greetings.
I have a main movie (slot machine) where I loaded 3 external .swf's ( vertical scrolable menus).
1.I would like those menus to start rotating at some speed immediately when they load to main movie( not to stay still )
2. I would like them to continue rotating at some speed when I leave menu area with the mouse.
( It continues to rotate when I test the menu by itself, but when loaded to main movie it stops every time when I leave the menu area)
You can see this slot machine here...
Here is the actionscript that causes menus to scroll vertically:
onClipEvent (load) {
ycenter = 120;
speed = 1/20;
}
onClipEvent (enterFrame) {
var distance = _parent.mask_mc._ymouse-ycenter;
if(_parent.mask_mc.hitTest(_root._xmouse, _root._ymouse, false)){
_y -= (distance*speed);
}
if (_y>0) {
_y = -8765;
}
if (_y<-8765) {
_y = 0;
}
}
And here is the code I used to load external files to main movie:
_root.createEmptyMovieClip("container", 1);
loadMovie("
View Replies !
View Related
Vertical Scrolling Menu
Hi,
I got this scrolling menu from flash kit. I want to modify it.
Now in this movie the scrolling is working when the mouse is on any position on the stage. I need the scrolling only when the mouse is over the menu area...
Help me to do this.... File attached
View Replies !
View Related
Vertical Scrolling Menu
Ok guys I finally got a vertical scrolling Menu based off this thread....http://www.sitepoint.com/article/men...ing-background
I want to get rid of the bg. How do I do this? Right now everything works but I get this error that repeats infinitely...A 'with' action failed because the specified object did not exist.
Thanks.
CODE:
ym = 0;
//function to set the ypos of the movieclip
function ypos(bar_height,mul)
{
vpos = 500;
scroll_height = 650;
incr = bar_height/scroll_height;
ym = _ymouse;
if(_ymouse <= 500){ym = 500;}
if(_ymouse >= 900){ym = 400;}
scroll_y = vpos - ym;
scroll_y = scroll_y * mul;
y_pos = scroll_y * incr;
y_pos = y_pos + vpos;
return y_pos;
}
_root.onEnterFrame = function ()
{
// call function ypos
y_pos = ypos(700,.20);
with (bg)
{
_y += (y_pos - _y)*.4;
}
// call function ypos
y_pos = ypos(950,.75);
with (menu)
{
_y += (y_pos - _y)*.4;
}
}
View Replies !
View Related
How To Approach-vertical,scrolling, Menu
Ok, i've been thinking about what my next site is gonna look like. I'm trying to come up with a navigation. And I like this idea http://www.studioah.com/ah1/ for the menu. I know how to approach it. Multiple mc's with the buttons inside. The code i'm gonna use to make the button list scroll up and down with the mouse is slightly modified version of this:
Mid = 80;
Mouse = _root._ymouse;
diff = Mid-Mouse;
Move = diff/20;
_root.mainmenu._y = _root.mainmenu._y+Number(Move);
My question is that I want to restrict the scroller from moving up or down once it reaches the end of the menu. I'm gonna put the menu into a window pane and once the menu reaches the top or bottom of that pane I dont want it to scroll anymore up or down.
I know I need to add bounds to the above code that once _root.mainmenu._y > (something) I guess sine the height of my movie is 165 and half is around 80 than I need something like:
if _root.mainmenu.y > 90
but I dont know what command I need to stop the menu's Y position from moving any higher. And this is the same thing if it were going down.
Any help on the actionscripting i'm looking for? Any help would be appreciated.
p.s. I can get the button and the menu to scroll without a problem its just I dont want it to scroll up or down past a certain distance.
View Replies !
View Related
How To Approach Vertical,scrolling Menu?
Ok, i've been thinking about what my next site is gonna look like. I'm trying to come up with a navigation. And I like this idea http://www.studioah.com/ah1/ for the menu. I know how to approach it. Multiple mc's with the buttons inside. The code i'm gonna use to make the button list scroll up and down with the mouse is slightly modified version of this:
Mid = 80;
Mouse = _root._ymouse;
diff = Mid-Mouse;
Move = diff/20;
_root.mainmenu._y = _root.mainmenu._y+Number(Move);
My question is that I want to restrict the scroller from moving up or down once it reaches the end of the menu. I'm gonna put the menu into a window pane and once the menu reaches the top or bottom of that pane I dont want it to scroll anymore up or down.
I know I need to add bounds to the above code that once _root.mainmenu._y > (something) I guess sine the height of my movie is 165 and half is around 80 than I need something like:
if _root.mainmenu.y > 90
but I dont know what command I need to stop the menu's Y position from moving any higher. And this is the same thing if it were going down.
Any help on the actionscripting i'm looking for? Any help would be appreciated.
p.s. I can get the button and the menu to scroll without a problem its just I dont want it to scroll up or down past a certain distance.
View Replies !
View Related
Vertical Scrolling MC/Menu Help Needed
Can someone please tell me how to set the up and down boundaries for a vertically scrolling MC?
I have the up/down buttons working fine - the mc scrolls both ways vertically but doesn't stop in either direction.
Here's what I have for AS now:
up_btn.onRelease = function(){
buttons._y -=57;
};
down_btn.onRelease = function(){
buttons._y +=57;
};
Is it a onClipEvent that sets the top and bottom coordinates or is there anything I use within the button functions (above)?
If anyone has the entire actionscript I need it'd be GREATLY appreciated!!
Rick
View Replies !
View Related
Greatr Vertical Scrolling Menu Help....
I'm trying to use this great little menu i found while searching for how to make my own menu from scratch. Its appearance is easily customizable and it suits my needs perfectly, but I can't get it to work. here's the file:
http://www.were-here.com/content/tem...d=707&zoneid=7
I want it to open external swfs, currently it goes to a certain frame. If anybody cn crack this thing, we'll all have a great little menu to use, and i honestly don't know enough actionscript to figure out what the hell is going on inside this file.
View Replies !
View Related
Infinite Vertical Scrolling Menu
Hi,
I am using POMs tutorial for making an infinite menu
This one is vertical instead of horizontal.
The MC is 1696 pixels in height. registration is top middle
i drag 2 of these MC's so one is below the other (total height 3392)
Here is my code
Code:
onClipEvent (load)
{
ycenter=848;
speed=1/10;
}
onClipEvent (enterFrame)
{
var distance=_root._ymouse-ycenter;
_y+=(distance*speed);
if (_y > 0) _y=-1696;
if (_y < -1696) _y=0;
}
The clip goes really fast and is making me foam at the mouth if i look at it for too long!
I tried changing ycenter to 300, and it is much smoother but it is very jumpy when moving back to the position determined by the code.
Any help is great
View Replies !
View Related
Different Kind Of Vertical Scrolling Menu
Im trying to make a vertical menu like the audio playlist on mjau-mjau.com.
Anyone know of any tutorials for something like this or care to give an explanation.
Please notice that it doesn't operate by the relation of the mouse to the center of the mask.
Any help would be very appreciated thanks.
View Replies !
View Related
Infinite Vertical Scrolling Menu
Hi,
I am using POMs tutorial for making an infinite menu
This one is vertical instead of horizontal.
The MC is 1696 pixels in height. registration is top middle
i drag 2 of these MC's so one is below the other (total height 3392)
Here is my code
Code:
onClipEvent (load)
{
ycenter=848;
speed=1/10;
}
onClipEvent (enterFrame)
{
var distance=_root._ymouse-ycenter;
_y+=(distance*speed);
if (_y > 0) _y=-1696;
if (_y < -1696) _y=0;
}
The clip goes really fast and is making me foam at the mouth if i look at it for too long!
I tried changing ycenter to 300, and it is much smoother but it is very jumpy when moving back to the position determined by the code.
Any help is great
View Replies !
View Related
Vertical Scrolling Menu Not Scrolling
i'm using flash mx
i inserted this code from a friend who had a horizontally scrolling menu and altered it slightly to suit my vertical menu. when i test it nothing moves.
i have this action placed in frame 3 of my movie:
center = 220.5;
reelPos = reel._y;
topStop = -360;
bottomStop = 360;
and in frame 4 i have this action:
if (_xmouse<774 & _xmouse>10) {
reelSpeed = (_ymouse-center)/10;
reelPos = Math.round (reelPos+reelSpeed);
if (reelPos<topStop) {
reelPos = topStop;
}
if (reelPos>bottomStop) {
reelPos = bottomStop;
}
reel._y = reelPos;
}
what am i missing here?
View Replies !
View Related
Anybody Know A Way To Build A Vertical Scrolling Menu Dynamically Using Xml.
Yo, Ryan Mac here, have an interesting task to accomplish and am not that experienced in hard coding. Yup you could say Im a bit of a copier and paster.
Doing this furniture site - The navigation is a horizontal scroll menu, which includes small pics when clicked are loaded to a targetclip. Now I would like to figure out how to build the vertical scroll menu dynamically, so that I can just type the input text in an xml file, and the extra added item will be pulled from the images folder and appear on the vertical scroll menu, aswell as in the target clip.
You see, new furniture comes in everyday and time is of the essence, so I can't keep going into the source code and changing it. If I can specify it in the xml, and just add the extra pics to the images folder then I'm waxed.
Take a look at this site as an example, if you have the time.
www.cecilnurse.co.za - it's a good example of what I will achieve. Click through to one of the sections to view the effect.
Any help or code anything, just point me in the right direction.
Help me help you to make this internet an even more successful place!
View Replies !
View Related
How To Smooth The Movement (scrolling Background And Scrolling Menu ) ?
hi! i'm new here and also a beginner in flash.. i need some help on how to smooth the movement in my flash project.. scrolling background with scrolling menu.. i got this script from a tutorial and i did some adjustment on it.. but somehow both the background and menu movement are not smooth as i want. its kept jerky along their movement. this is the script that i use to move both background and menu.. hope someone can help me to repair or to alter this script.. thanks! =)
//scrolling background with scrolling menu
//when mouse moves left, background and menu moves right
if ((_xmouse>-0.5) && (_xmouse<230) && (_ymouse>-0.1) && (_ymouse<450)) {
_root.back._x =_root.back._x +6 ;
_root.menu_mc._x =_root.menu_mc._x +10 ;
}
// when mouse moves right, background and menu moves left
if ((_xmouse>400) && (_xmouse<616) && (_ymouse>-0.1) && (_ymouse<450)) {
_root.back._x =_root.back._x -6 ;
_root.menu_mc._x =_root.menu_mc._x -10 ;
}
if (_root.back._x>1309.5) {
_root.back._x = -79;
}
if (_root.back._x<-697.8) {
_root.back._x =679;
}
//----------------------------------------------
if (_root.menu_mc._x>1200.5) {
_root.menu_mc._x = -99;
}
if (_root.menu_mc._x<-730) {
_root.menu_mc._x =569;
}[/size][/size][/size][/size]
View Replies !
View Related
Scrolling With Mouse Movement
Does anyone know of a tutorial for the popular scrolling effect I see a lot. You know where as you move your mouse left the menu or screen goes right type of thing. I see this all the time and really like the effect.
Any help would be great. Thanks.
View Replies !
View Related
Scrolling Mc With Mouse Movement
Hi,
i know there was a name for this type of a scroller, but i can remember .. i mean, for example http://www.flashden.net/item/motion-...use-slider/602 - lets only say X axis. What i am lookin for is a math explanation behind it (not easing) - how to set main mc's position from mouse and mask properties? I know i saw a wonderful tutorial the other day, but again i can't remember where Googled my eyes away I have a source files, but they cant get my brains to figure out the math, so any direction or link would be highly appreciated
tnx!
View Replies !
View Related
How To Make: Vertical Scrolling Menu With Text Links Or Buttons Inside?
Hi,
I need to learn how to create a scrollable text field in Flash MX professional with scrolling links (or buttons), similar to this: http://www.macromedia.com/cfusion/kn...fm?id=tn_16142
The text inside the scroll needs to be linkable to url’s or other .swf or html files.
Please help. It’s like a vertical scrolling menu with text links or buttons inside.
Can you please help me out with a link on the web or tutorial so I can learn to do this.
Bye,
Dan
Email: gupi73@hotmail.com
View Replies !
View Related
Mouse-movement Sensitive Scrolling
Basically, I'm trying to create an interactive movieclip pan, using mouse gestures to pan the clip. I have something that works, but I have ended up having to use 'collision blocks' (zoom out on the FLA file to see these, they are red) to detect the hit of the 'Tube_Map_Life' and to apply a reverse direction on it to make it come to a stop. I was wondering if there was a better way to do this? If possible, with some type of elastic easing, and so that it accommodates for a change in size of the 'Tube_Map_Life' if you see what I mean.
You can see what I have created so far here... http://sandbox.s2021.gridserver.com/RVRA1_1.swf
The script is attached directly to the 'Tube_Map_Life' movieclip (the bit that moves) and that's here -
ActionScript Code:
// Scrolling by mouse gesture
onClipEvent (load)
{
xcenter = 500;
speed = 1/20;
}
onClipEvent (enterFrame)
{
var distance = _root._xmouse-xcenter;
_x -= (distance*speed);
}
// Collision detection
onClipEvent (enterFrame)
{
if (this.hitTest(this._parent.Right_Collision_Block))
{
_x += (distance*speed);
}
if (this.hitTest(this._parent.Left_Collision_Block))
{
_x += (distance*speed);
}
}
The F8 FLA is at http://sandbox.s2021.gridserver.com/RVRA1_1.fla if you would be kind enough to have an explore.
Thanks for your time everyone, all the best!
Rich
P.S. I'm kinda new to ActionScript, so sorry for my sucky code!
View Replies !
View Related
Image Scrolling With Mouse Movement?
Hello everybody!
I intend to implement a function that will scroll an image towards the direction the mouse cursor is moving. The image I'm talking about is larger than the stage size (even if the swf movie is displayed in fullscreen mode).
In order to understand better what I'm talking about, take a look here. Also please notice the easing of the image movement. How can I accomplish that?
If anyone could help me, I'd really appreciate it.
Dani
View Replies !
View Related
Scrolling Based On Mouse _x Movement
in case SPOCK doesn't get back to me, i was hoping one of you fine folks could help explain this script.
onClipEvent (load){
xcenter=400;
speed=0.4/10;
}
onClipEvent (enterFrame){
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-1893;
if (_x < -1893) _x=0;
}
I assume you'd attach it to the mc. but what other properties should this mc possess? what is the significance behind xcenter? i'm sure i could play with it all day and figure it out. but i'm pressed for time and i really want to get this site done ... and move on. help. thanks. -b
View Replies !
View Related
Scrolling With Mouse Movement Code
Hello
I have this code I used once to give a mouse movement effect to an animation through stage (using stage width as parameter) and it was working perfectly.
Now I have to use this same illustration but flowing along a MC’s width, not all the stage, or it should define a specified width, different than the stage’s one.
I trying using a mask over the old mc covering and showing only 747px width I want it to show, but o course it does not work properly, not showing the entire illustration.
The mc I want to contain the illustration has 747px and the instance name “illustra”.
In the frame now I have this:
moveI = setInterval(moveF, 40);
function moveF() {
targetX = (1-mc1._width/Stage.width)*_xmouse;
mc1._x = .5*(mc1._x+targetX);
updateAfterEvent();
}
Thanks a lot any help!!!
View Replies !
View Related
Scrolling Movieclip With Mouse Movement - Horizontally
Hi everyone:
I am trying to make a movie clip that contains different buttons. Not all the buttons will be visible on the stage always, so I want that when the user moves the mouse arrow left, the movie clip containing the buttons updates and move along with it to the right...and vise versa. I found this great snippet of code from Kglad, and it seems to do exactly what I need!!! The issue I am having is that my pieces update only after I am done moving the mouse...so the movie clip is not moving along with the pointer. Attached is the code. Here is a sample of what I am trying to accomplish:
http://sungard.com/
Attach Code
root.addEventListener(MouseEvent.MOUSE_MOVE,f);
var t:Timer=new Timer(40,0);
t.addEventListener(TimerEvent.TIMER,moveF);
function f(e:MouseEvent) {
t.stop();
t.start();
}
var speed:Number = .9;
function moveF(e:TimerEvent) {
front_mc.x =speed*front_mc.x+(1-speed)*(stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth;
back_mc.x = speed*back_mc.x+(1-speed)*(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth;
if (Math.abs(front_mc.x- (stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth)<1 && Math.abs(back_mc.x-(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth)<1) {
front_mc.x = (stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth;
back_mc.x = (stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth;
t.stop();
}
e.updateAfterEvent();
}
Edited: 11/13/2008 at 12:40:39 PM by rafa@mediatech
View Replies !
View Related
Scrolling Screen Based On Mouse Movement HOW?
Hello all,
I am trying to solve how to make the content of my scene scroll left or right depending on mouse movement whether it goes left or right from the middle. Also the more to the left edge of the screen you get from the middle the faster the screen scrolls. This is for the game.
Many thanks for any help. Best idea on what i am trying to achieve is to look at http://www.4x4.mercedes-benz.ru/flashindex.php the site is in russian but just click through and you will get in. :)
View Replies !
View Related
Can Someone Point Me Toward Some Tutorials On Scrolling Images On Mouse Movement?
hi,
im fairly new to flash, and am trying to create a picture gallery. i got the images scrolling smoothly using button rollOver, but would like the gallery to work on mouse movement. like this
http://www.yugop.com/ver2 the menu system on this site is what im trying to achieve, but not in such a complex form. all i want to do is get images scrolling from left to right on the mousex movemnet. when the mouse is in the middle i want the scrolling to stop. the further the mouse moves from the center the faster the images scroll (depending on mouse direction), untill they stop scrolling at the last image. i want this scrolling to happen in set area, once the mouse is outside this area i want the mouse to behave as normal.
any direction towards tutorials that could help me learn would be greatly appreciated
thanks
yashombi
View Replies !
View Related
Xml Menu + Up And Down Movement Mouse + Onmouseover...
hi.. im stuck here...
i made a little read xml file AS from a german tutorial.. and beleef me.. that was'nt easy if you dont speek german
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function() {
menuItem = this.firstChild.childNodes;
for (var i=0; i<menuItem.length; i++) {
item = _root.attachMovie("itemClip", "itemClip" + i, i);
item._x = 7;
item._y = 17*i;
item.itemLabel.text = menuItem[i].attributes.name;
item.myUrl = menuItem[i].attributes.url;
item.onRelease = function() {
getURL(this.myUrl,"_blank");
}
}
}
menuXml.load("MenuItems.xml");
Problem is this.. i need to make the menu listing generate on a special spot (not on 0) how can do this..
secound problem is i want to make this moven on mouse up and down controle... as i have little space to view my menu buttons....
third is problem is i like a mouseover thingy in there... now i tryed to make it around this bit
item.onRelease = function() {
getURL(this.myUrl,"_blank");
}
but somehow nothing seems to work...
and last but not least.. all my links need to load in a container... how do i do this..? like this?
getURL(this.myUrl,"<container instance>");
someone help me please...
I think its time i buy a book cos this actionscript is not easy to learn
View Replies !
View Related
Xml Menu + Up And Down Movement Mouse + Onmouseover...
hi.. im stuck here...
i made a little read xml file AS from a german tutorial.. and beleef me.. that was'nt easy if you dont speek german
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function() {
menuItem = this.firstChild.childNodes;
for (var i=0; i<menuItem.length; i++) {
item = _root.attachMovie("itemClip", "itemClip" + i, i);
item._x = 7;
item._y = 17*i;
item.itemLabel.text = menuItem[i].attributes.name;
item.myUrl = menuItem[i].attributes.url;
item.onRelease = function() {
getURL(this.myUrl,"_blank");
}
}
}
menuXml.load("MenuItems.xml");
Problem is this.. i need to make the menu listing generate on a special spot (not on 0) how can do this..
secound problem is i want to make this moven on mouse up and down controle... as i have little space to view my menu buttons....
third is problem is i like a mouseover thingy in there... now i tryed to make it around this bit
item.onRelease = function() {
getURL(this.myUrl,"_blank");
}
but somehow nothing seems to work...
and last but not least.. all my links need to load in a container... how do i do this..? like this?
getURL(this.myUrl,"<container instance>");
someone help me please...
I think its time i buy a book cos this actionscript is not easy to learn
View Replies !
View Related
Scrollable Menu - Relating To Mouse Movement
So..
I'm trying to create a scrollable menu, using a movie clip with buttons inside it.
You can download the .fla here: http://www.toomanylies.pwp.blueyonder.co.uk/intro.fla
IF you check the top layer and the final keyframe, there is the coding for the moving menu.
Go onto: http://www.vajacases.com/home/home_en.html
That's the type of scolling menu I want.
Anyone please help me!?
Thanks, Dobbo
View Replies !
View Related
Help With Dropdown Menu - Hangs If Mouse Movement Too Fast?
http://www.bloodbathandbeyond.com/dev/tg.html
so hit the menu button on the right (this is not my design btw, i am just doing the flash work). each of the drop down menus is controlled by an invisible button on each of the six menu items. onrollover causes the dropdown menu to appear below it. each menu will have a series of buttons (right now there is only one, in the second menu, 'ground' that does anything). now there is a button which is a zone around each header+dropdown which is a larger rectangle with an area the size of the dropdown menu knocked out -- like a moat -- which tells the drop down menu to collapse onmouseover.
the problem is you'll notice if you move quickly between the menus, that some don't collapse. this seems to happen when the mouse moves quickly, but not when you slowly move across them. is this a common problem with flash, and/or something that i can address?
each dropdown has two states, closed (one frame), and open (multiple frames, as it's animated). the rollover zone outside the menu to close it is present during the entire opening animation, so it's not like it's only in the last frame of the opening sequence.
i tried adding actions to the rollovers in the main menu choices that tell the dropdowns to appear to also tell all the other menus to close. this did not seem to help.
this is driving me nuts. any ideas would be appreciated. i'll send the fla to anyone who might be able to help.
thanks!
skye
View Replies !
View Related
Mouse Scrolling Xml Menu
I posted this thread a few days ago asking for the answer to my question...and well i figured it out on my own and would like to share my code.
I'm sure there are probably better ways to do this, but at least it's working.
Preview: http://www.veraskies.com/xmlmenu
Download Source: http://www.veraskies.com/xmlmenu/xmlmenu.zip
View Replies !
View Related
Scrolling Menu [w/mouse Interaction], How?
Greetings all,
well... I'm in need of some help.... *nods*
k... first an example of what I'm trying to do...
goto http://www.meltmedia.com/ and go to the portfolio section then.. any one of the sub menus... k.. notice their little thumbnail menu thing... and how it scrolls continuously... back and forth... and all that...
does anyone know how I can pull this off? Tutorial, code, fla file?
I can get it scrolling regularly with a slider.. and I assume it's not too hard to link it to the mouse movement... but.. my mind isn't wrapping around that.. at the moment... plus I don't know how to do the continuously scrolling thing.. with the wrap around...
any ideas?
any and all help is appreciated... thanks
View Replies !
View Related
Scrolling Mouse Menu Question
I am new to flash but want to create a horizontal menu that moves from right to left. The navigation menu will increase speed in either direction when the users mouse moves to the left or to the right. I have seen this done on several web sites and would like to know if there is a component or extension that will do this for you.
Thanks.
Justin
View Replies !
View Related
Scrolling A Menu - Follow Mouse
hey guys, Ive been doing a lot of searching but didn't really come up with anything usefull.
from what i read it seems like a panorama effect.
but the thing is i want my menu to stop at the end.
here's an example.
http://www.wa007.com/
click on pimpin linkage.
i love this menu system, anyone help me out here?
View Replies !
View Related
Scrolling Horizontal Menu With Mouse
Hi,
I have made a side scrolling menu with Pom's Infinate Menu tutorial which kinda works fine but, instead of just keep on scrolling round and round, I want it to stop when it reaches the end of the menu movie clip (the menu movie clip is made up of typical looking 'film cells')
Ths is the code i've used;
Code:
onClipEvent (load)
{
xcenter=400;
speed=1/30;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 1600) _x=-0;
if (_x < -0) _x=1600;
}
Here's a link to the .fla too;
http://www.blackheathproducts.co.uk/menu001.fla
I just can't figure out how to make it work in this way.
Can anyone help me on this one?
View Replies !
View Related
Scrolling A Menu - Follow Mouse
hey guys, Ive been doing a lot of searching but didn't really come up with anything usefull.
from what i read it seems like a panorama effect.
but the thing is i want my menu to stop at the end.
here's an example.
http://www.wa007.com/
click on pimpin linkage.
i love this menu system, anyone help me out here?
View Replies !
View Related
Mouse Leaves Mc Menu Scrolling
I have a horizontal menu that scrolls depending on the mouses location. I am having a problem when the mouse goes off of the mc the clip doe not go back to it's initial speed of +1 until the mouse enters back into the clip parameters. I have already set the mc to stop scrolling when the mouse reaches a certain x & y coordinates on all 4 sides. Is there a way to have my mc go back to +1 if the mouse has left the mc. The problem occurs when the mouse is pulled off of the clip so fast that it doesn't get its coordinates. I have been all over the forums all day and I am losing my mind. Some sample code would be great. I am a novice at actionscripting.
View Replies !
View Related
Stopping A Mouse Controlled Scrolling Menu At Either End
Hi people!
I have a horizontal menu of buttons that scrolls depending the _x position of the mouse (yes - the good ol' yugop menu).
These buttons are held in an MC.
On that MC is the following code:
Code:
onClipEvent (load) {
xcenter = 165;
speed = 1/40;
}
onClipEvent (enterFrame) {
var distance = _root._xmouse-xcenter;
_x += (distance*speed);
if (_x>0) {
_x = -720;
}
if (_x<-720) {
_x = 0;
}
}
Right now the row of buttons is duplicated once and placed next to the other row so that, with thanx to the 2nd section of code, the menu just keeps going round and round.
What I'm having trouble with is stopping it at either end of the menu.
I have taken the duplicate buttons out so that there is one set, but I'm not sure how to modify the code.
Can anybody help me please!!
Would really appreciate it
Thank you
Deadhands
View Replies !
View Related
Stopping A Mouse Controlled Scrolling Menu At Either End
Hi people!
I admit that I have also posted this in "Flash MX" but I have had no joy there!
I have a horizontal menu of buttons that scrolls depending the _x position of the mouse (yes - the good ol' yugop menu).
These buttons are held in an MC.
On that MC is the following code:
Code:
onClipEvent (load) {
xcenter = 165;
speed = 1/40;
}
onClipEvent (enterFrame) {
var distance = _root._xmouse-xcenter;
_x += (distance*speed);
if (_x>0) {
_x = -720;
}
if (_x<-720) {
_x = 0;
}
}
Right now the row of buttons is duplicated once and placed next to the other row so that, with thanx to the 2nd section of code, the menu just keeps going round and round.
What I'm having trouble with is stopping it at either end of the menu.
I have taken the duplicate buttons out so that there is one set, but I'm not sure how to modify the code.
Can anybody help me please!!
Would really appreciate it
Thank you
Deadhands
View Replies !
View Related
|