Draggable Menu 2.0 – Part II: Usability
I downloaded the complete source code in the end of the tutorial and it works. But when I tried to copy all the layers of this source code and paste it into the flash timeline of my own website, the code the doesn't work anymore. Can someone tell me what the problem is here? How can I transfer a working draggable window from one fla file to another one? It's really frustrating me because after going through the long dreary "Draggable Menu 2.0 – Part II: Usability" tutorial, I still can't use the effect on my own website! Please help out!! Thanks!
KirupaForum > Flash > Flash 8 (and earlier) > Flash 5
Posted on: 09-19-2004, 04:43 AM
View Complete Forum Thread with Replies
Sponsored Links:
Draggable Menu 2.0 – Part II: Usability
I downloaded the complete source code in the end of the tutorial and it works. But when I tried to copy all the layers of this source code and paste it into the flash timeline of my own website, the code the doesn't work anymore. Can someone tell me what the problem is here? How can I transfer a working draggable window from one fla file to another one? It's really frustrating me because after going through the long dreary "Draggable Menu 2.0 – Part II: Usability" tutorial, I still can't use the effect on my own website! Please help out!! Thanks!
View Replies !
View Related
Draggable Menu 2.0 Part 1
I know this is a Flash 5 tut but i was refered to it awhile back when asking the question for mx. So ive followed the tut step by step and the only thing i wanted to change is that i wanted the menu to drag vertically instead of horizontally. I asked about this and someone suggested that i replace the x variables with y variables. I did this but for some reason the "dragger" will not move up and down. Im new to writing action script code but im trying to learn. Here is what i have for the vertical scrolling.
Heres the Tutorial
Code:
onClipEvent (load) {
set (yold,_y) ;
}
onClipEvent (enterFrame) {
if (dragging) {
_y = _root.ymouse ;
dydrag = _y - yold ;
yold = _y ;
_root.general._y += 3*dydrag ;
}
}
And here is the code for the horizontal scrolling.
Code:
onClipEvent (load) {
set (xold, _x);
}
onClipEvent (enterFrame) {
if (dragging) {
_x = _root._xmouse ;
dxdrag = _x - xold ;
xold = _x ;
_root.general._x += 3*dxdrag ;
}
}
Is there something im missing. Ive made sure that i set the press of a mouse to a variable of 1 and the release to 0. Perhaps its just not that easy to just switch the variables.
Any thoughts.
Yogi
View Replies !
View Related
Draggable Menu 2.0 Part 2
Hello all, this is my first post and I'm new to ActionScript so be gentle. I've worked through the majority of the above tutorial and it's pretty good so far. One problem has arisen though, I was under the impression that part of the code, (the ratio = _root.Content._width/_root.box._width; bit), would allow me to extend the 'general' clip indefinitely and the code would work out the postioning for me. When I tested it however the number 1 box and the slider are i their correct places but as soon as I drag it right and then back left it scrolls past the number 1 box. Why would this be?
View Replies !
View Related
Draggable Menu 2.0 Part 1
I know this is a Flash 5 tut but i was refered to it awhile back when asking the question for mx. So ive followed the tut step by step and the only thing i wanted to change is that i wanted the menu to drag vertically instead of horizontally. I asked about this and someone suggested that i replace the x variables with y variables. I did this but for some reason the "dragger" will not move up and down. Im new to writing action script code but im trying to learn. Here is what i have for the vertical scrolling.
Heres the Tutorial
Code:
onClipEvent (load) {
set (yold,_y) ;
}
onClipEvent (enterFrame) {
if (dragging) {
_y = _root.ymouse ;
dydrag = _y - yold ;
yold = _y ;
_root.general._y += 3*dydrag ;
}
}
And here is the code for the horizontal scrolling.
Code:
onClipEvent (load) {
set (xold, _x);
}
onClipEvent (enterFrame) {
if (dragging) {
_x = _root._xmouse ;
dxdrag = _x - xold ;
xold = _x ;
_root.general._x += 3*dxdrag ;
}
}
Is there something im missing. Ive made sure that i set the press of a mouse to a variable of 1 and the release to 0. Perhaps its just not that easy to just switch the variables.
Any thoughts.
Yogi
View Replies !
View Related
Draggable Menu 2.0 Part 2
Hello all, this is my first post and I'm new to ActionScript so be gentle. I've worked through the majority of the above tutorial and it's pretty good so far. One problem has arisen though, I was under the impression that part of the code, (the ratio = _root.Content._width/_root.box._width; bit), would allow me to extend the 'general' clip indefinitely and the code would work out the postioning for me. When I tested it however the number 1 box and the slider are i their correct places but as soon as I drag it right and then back left it scrolls past the number 1 box. Why would this be?
View Replies !
View Related
Draggable Menu Part II -loading It Into Another Movie
Hello,
I'm relatively new to all of this (actionscript, flash). (Sorry if this question has been asked before, I couldn't seem to find any references to it on the forums thus far).
I would like to load the draggable menu externally into another SWF movie. I have my main movie (main.swf) and the draggable menu movie (draggable.swf). I can get the draggable.swf to load into the main.swf, however, I can't seem to figure out how to get the external draggable.swf to work within the main.swf. Once it's loaded, it is totally static.
Any suggestions?
Thank you!
View Replies !
View Related
Draggable Menu Part II -loading It Into Another Movie
Hello,
I'm relatively new to all of this (actionscript, flash). (Sorry if this question has been asked before, I couldn't seem to find any references to it on the forums thus far).
I would like to load the draggable menu externally into another SWF movie. I have my main movie (main.swf) and the draggable menu movie (draggable.swf). I can get the draggable.swf to load into the main.swf, however, I can't seem to figure out how to get the external draggable.swf to work within the main.swf. Once it's loaded, it is totally static.
Any suggestions?
Thank you!
View Replies !
View Related
Draggable Menu
Hi there,
Reading about inertia and dragging things in Foundation Actionscript (thank you mr. Sham Bhangal), I wanted to make a draggable menu. One button is used to move the menu, the menuitems are supposed to follow that button. My problem is that the menuitems aren't aligned after moving the menu around. Any suggestions?
http://users.skynet.be/sky39384/flash/drag_menu.fla
http://users.skynet.be/sky39384/flash/drag_menu.swf
View Replies !
View Related
Draggable Menu
I am just having a problem with being able to use buttons in a dragged movieclip...
How can I have the movieclip drag and use buttons from within it?
thanks for your time...
View Replies !
View Related
Draggable Menu
I want to have a navigational pop up menu and be able to drag it around and drop it anywhere in my flash movie. I have figured out how to drag and drop it and even define a certain hit area for it, but I cannot figure out how to create links inside of the pop up menu, it won't let me click on anything I put inside of it. Any help is appreciated. Thanks.
View Replies !
View Related
Draggable Menu
I am getting more and more detailed in flash. I am trying (all be it thismay not work for the production version) to have a dragable menu for navigation, so that it could be pulled anywhere on the page... with buttons, or text inside it that would be clickable (do some other action in my flash file)
i've been tryiong to find a .fla to download to look at, or a tutorial that will explain how to do it.
Does anyone have some ideas to point me in the right direction?
View Replies !
View Related
Draggable Menu?
I am getting more and more detailed in flash. I am trying (all be it thismay not work for the production version) to have a dragable menu for navigation, so that it could be pulled anywhere on the page... with buttons, or text inside it that would be clickable (do some other action in my flash file)
i've been tryiong to find a .fla to download to look at, or a tutorial that will explain how to do it.
Does anyone have some ideas to point me in the right direction?
View Replies !
View Related
Draggable Menu, HELP
Hi,
I created a draggable menu, following tutorial from ilyaslamasse ( Draggable Menu 2.0 – Part II: Usability).
http://www.kirupa.com/developer/flash5/menudragger2.htm
It works well, but I have another idea:
Would it be possible, if the numbers (1, 2, 3, 4) can be fit into the viewing box precisely, without showing the background when we drag the numbers to far left/ right?
At the moment, the animation (draggable 1, 2, 3, 4) has same background colour, black (for both viewing window and the background behind the viewing window).
The animation I created, the viewing window and the background have different colours. White for the viewing window and grey for the background, hence we can see the white bit when dragging the picture to far left/ right.
Attached is the .fla file of my work. Perhaps, anybody can help me?
Thank you very much guys,
m4non
View Replies !
View Related
Draggable Menu Pt II
i just completed the tutorial. as far as i can see, it's coded correctly. to my opinion, the final result has one major flaw: when i pulkl the dragger, it tends to "drop off" the cursor and come to a halt at a random point at either ends of the box. that means that the items in the menu (i.e. the numbers) also stops at random points within the mask.
you can see it at http://www.kirupa.com/developer/flash5/menudragger2.htm.
does anyone know how to make the appearance of the menu more stable?
thank you
alexander
View Replies !
View Related
Draggable Menu - Help Please
Hello~ I am am trying to modify the Kirupa tutorial for the Draggable Menu II
to make it so the dragger button controls 2 movie clips - at a slightly different speed/velocity (I am trying to do something like this: http://www.doncesar.com/timeline/Flash/
I have been agonizing over this, and I just can't seem to get the second movie clip to be positioned correctly.
I know I am dense, because I have read the tutorial 100 times, and if I really understood it, I'd be able to figure it out on my own (Have mercy on me - I am a good designer, but not a great programmer.)
Any help would be greatly appreciated. If you want to see the .fla file I have been working with (though at this point, I've just been blindly changing things hoping it would work), it's here:
http://www.ilyssa.com/timeline.zip
Thank you~
View Replies !
View Related
Draggable Menu...
Hi Everyone,
I am having some difficulties with the basic draggable menu and am seeking some help. I have been able to make it wotk when using the FLA's given, but stumble when recreating it using my own files.
I have a 4 image panel about 1200 pixels long bleeding off a 400 pixel wide movie that I hope to drag back and fourth. So, in the given FLA, inside the movie clip, the panel is 4 separate squares, but can I import it as 1 attached gif - does this matter? So, its on the stage, turn it into a movie clip?
Secondly, the mask. I draw a square to mask what I want and turn that into a movie clip as well?
The dragger. I drew a square in Flash and converted it to a movie and named it dragger, then inside the movie clip, converted that to a button named it button- is that right?
When inside the dragger movieclip I copied and pasted the code - on (Press) dragging = 1 ....
then on the main stage with the dragger selected I copied and pasted the rest of the code - OnClipEvent (Load)...
The dragger slides, but the clip does not move. Can anyone suggest what it is that I may be missing.
Any thoughts would be great.
Thanks,
Beano
View Replies !
View Related
Draggable Menu Help
hey, i pieced this menu together from various tutorials... however, i can figure out how to get the buttons to actually work! i want to click on that first one and have it load another .swf into a blank keyframe, but it wont work.... can somebody help me out?
Derek
View Replies !
View Related
Draggable Menu, HELP
Hi,
I created a draggable menu, following tutorial from ilyaslamasse ( Draggable Menu 2.0 – Part II: Usability).
http://www.kirupa.com/developer/flash5/menudragger2.htm
It works well, but I have another idea:
Would it be possible, if the numbers (1, 2, 3, 4) can be fit into the viewing box precisely, without showing the background when we drag the numbers to far left/ right?
At the moment, the animation (draggable 1, 2, 3, 4) has same background colour, black (for both viewing window and the background behind the viewing window).
The animation I created, the viewing window and the background have different colours. White for the viewing window and grey for the background, hence we can see the white bit when dragging the picture to far left/ right.
Attached is the .fla file of my work. Perhaps, anybody can help me?
Thank you very much guys,
m4non
View Replies !
View Related
Draggable Menu
i'm a rookie-experienced flasher and read the draggable menu pt 1 to do the sliding menu and i got stuck in step ix..... am i supposed to be able to make the dragger follow the mouse when clicked (not held) cos' my dragger only moves when i hold the mouse button... please help!
thanks
here's the page for quick ref. Draggable Menu - Part 1
View Replies !
View Related
Draggable Menu Pt II
i just completed the tutorial. as far as i can see, it's coded correctly. to my opinion, the final result has one major flaw: when i pulkl the dragger, it tends to "drop off" the cursor and come to a halt at a random point at either ends of the box. that means that the items in the menu (i.e. the numbers) also stops at random points within the mask.
you can see it at http://www.kirupa.com/developer/flash5/menudragger2.htm.
does anyone know how to make the appearance of the menu more stable?
thank you
alexander
View Replies !
View Related
Draggable Menu
hi guys,
i need a draggable menu..
i tried using startdrag, but it causes the entire movie clipped to be clickable to be dragged, but i only want the top bar or title bar to be the only area that can be clicked to drag the entire menu. how do i do that in flash mx?
thanks
View Replies !
View Related
A Draggable Menu Code
i have a draggable menu with buttons in the movie clip. the buttons have this code on them:
on (release) {
gotoAndPlay ("members", 1);
}
do i have to put the buttons in the main stage cuz if i do the drag will be messed up but if i don't the buttons don't seem to work. can some actionscript gurus plzz help me???
View Replies !
View Related
*Draggable Menu Question*
Ok... I have created a draggable menu. It works, but I can't seem to figure out how to set some parameters for it.
What I want to do is have a section of the screen in which you can drag it, and not the entire screen.
Is this possible? If so, how?
View Replies !
View Related
Linking From A Draggable Menu
Hi everyone, I'm trying to make my first site on Flash MX, and so far jus' fiddling around with different navigation systems. I made a little draggable menu, and then got kinda stuck with making buttons within the Menu Clip link back to the main timeline and change the frame position.. (I'm REALLY new to Flash btw, especially Actionscript, it's my first day lol) So far I have this:
http://strangedaze.tripod.ca/Menu.swf
The design isn't final, I know it's ropey
I tried making the ":: Sketches" a movie clip and trying to attach goToAndStop but I think I may have just messed up the code.. would that work if I put the code in correctly?
then I tried making it a button and that didn't quite work either. Any help/comments much appreciated
View Replies !
View Related
Draggable Menu Problems Again....
I've read up on all the draggable item tutorials that I can and they've been great! I think I understand how to make the menu drag and "hide" but now I've managed to find another pothole in the road!
My menu drags great but the links that I have on the menu do not work!
The links are to another frame in the scene that will have different info on it, what I like to call "A webpage inside a movie." I have named the frames I want the link to jump to, and also told the link what scene, but that seems to have no effect. I have enclosed a simpler copy of the menu. Please download it and have a look at the code. I can't think of any other way to code the links. So I came here for help.
Does anyone have any ideas?
View Replies !
View Related
Trouble With Draggable Menu
Hi - I've been working on a very cool menu bar that allows the user to not only drag it around as needed, but can also pull a menu down like a window shade.
I finally figured out how to put one together, alone on the screen. The first layer is the draggable bar (which is converted to a button, with start/stop drag actions - therefore with no reference to an Instance Name. The next layer is a rectangular mask and the third (masked layer) works like a window shade that you can pull down to reveal the copy or buttons, etc. This is a movie clip with a nested button - start/stop drag & constrain to rectangle actions are added.
When these elements are together alone on screen - they work fine when I test the movie. However, the big problem is, even when I recreate this menu window from scratch in another movie, it does not work on its own. When tested, the first layer (draggable bar) ends up being able to drag the entire content window.
Why is this happening? I would imagine it should retain its properties to work as it supposed to. I've tried turning the first layer's draggable bar into a movie clip, then nest the drag action in a button, but that only succeeds in liberating it from the window shade masked layer - which is now not draggable, but does go up & down.
HELP? Anyone? Thanks!
View Replies !
View Related
Buttons In Draggable Menu
Hi. I am trying to learn some actionscript. I want to make a draggable menu, which includes buttons that link to different frames within the main timeline. I followed the tutorial in the link below, and it worked, except for the buttons will not work. I turned the menu into a movie clip and inserted it into the main timeline. I also inserted instances of buttons into te movie clip. Can anyone please help me?
http://www.flashkit.com/tutorials/In...-596/index.php
View Replies !
View Related
Draggable Menu Title Bar
hey guys..
i was looking thru the forums and tutorials for draggable menu..
i tried using flash4 n 5's method... but they don't work.
using startdrag causes the entire movie clipped to be clickable to be dragged, but i only want the top bar or title bar to be the only area that can be clicked to drag the entire menu. how do i do that in flash mx?
View Replies !
View Related
Draggable Menu Buttons
ok...so Ive been working on an idea that involves a draggable menu bar. Pretty much you can drag/collapse the menu bar anywhere you want on the screen. I acheived this by making the menu itself a movie clip and then making the movie clip draggable.
The menu drags anywhere...
The menu collapses and expands with no problem...
The menu buttons do NOT work...when you click any of the buttons, the menu either reloops its animation, or collapses instead of changing pages. I am relativly sure I just dont know the actionscript...currently I just have the action on the button set to:
on (release) {
gotoAndPlay("index", 60);
}
which apparently doesnt work, and I have a feeling its because the button is inside the movie clip
I hope i made sense...and I hope you can help
View Replies !
View Related
Tut Or FLA For A Draggable Menu Slider
Hi Flashers ...
I have searched high and low for a tutorial or an FLA for what I need and cant find one .... PLEASE HELP !!! There are heaps of tuts for sliders just not the kind I need.
This is what I am trying to do ...
I have a vertical slider with 6 increments. As the user drags the button/slider to any of those increments withinin the slider, it will launch the relevant pics
to the Right Hand side of the slider.
PLease help, point me in the right direction as I have a looming DEADline ... Hope I've been clear about what I am trying to achieve.
Thanx heaps in advance.
View Replies !
View Related
Draggable Menu Problem
Hi
I am trying to build a drop down menu that is draggable - independent of other draggable symbols.
1. If I apply the drag script to the menu movie - the buttons become inactive.
2. If I apply the drag script to the menu heading as a button - it also drags every other symbol on the same frame.
3. If I apply the drag script to the menu heading as a movie - it drags the heading only and leaves the menu buttons behind.
Any ideas on how I can do this?!
Many super thanks in advance!
View Replies !
View Related
Elastic Draggable Menu
OK, I am having all kinds of issues with this script... I am tryig to make the menu slide as I move the cursor across the box but I can not get the menu you to slide all the way... the code itself is from a tutorial that I am adapting to my application... If someone can help me I would appreciate it very much...
thanks...
Code:
onClipEvent (load) {
xGeneral = _x-_width/2;
_x = _root.pos._x-_root.pos._width/2+_width/2;
positiongeneral = _x;
ratio = _root.general._width/_root.pos._width;
}
onClipEvent (enterFrame) {
if ((_root._xmouse>_root.pos._x-_root.pos._width/2) && (_root._xmouse<_root.pos._x+_root.pos._width/2) && (_root._ymouse>_root.pos._y-_root.pos._height/2) && (_root._ymouse<_root.pos._y+_root.pos._height/2)) {
_x = _root._xmouse;
dxdrag = _x;
dest = positiongeneral-ratio*dxdrag;
pos2 = _x;
vel = (dest-pos2)/7+vel*0.7;
_x += vel;
}else{
_x = xGeneral;
dxdrag = _x;
dest = positiongeneral-ratio*dxdrag;
pos2 = _x;
vel = (dest-pos2)/7+vel*0.7;
_x += vel;
}
}
View Replies !
View Related
Draggable Menu Problem
Hello people,
I'm new here. Perhaps somebody can help me?
I've made a draggable menu which includes (rollover)buttons. The menu is a MC, which I gave some drag-actions (logically). But! The buttons inside it aren't working for some reason... what do I do wrong?
thank you!
Friek
View Replies !
View Related
Draggable Menu Parts II And III
Ive made it thus far with total success. ive been making very small modifications along the way in order to make it a vertical drag rather than horizontal. Ive come into a problem though somewhere between parts two and three. when i test the movie and im done with Part III i go to click on the dragger and the movie clip "general" jumps below its mask .... i tested it without the mask and found that it would jump down and scroll fine but not in its original position. It scrolls about 2 inches below it... therefore not being revealed by the mask. This is the only time ive run into this problem at all... it worked fine before i started part 3... but now it doesnt... ive run through the code and i cant find anything that would reposition "general" at the click of a button. Any thoughts.
Thanks.
View Replies !
View Related
Draggable Menu Probs
ilyaslamasse if your out there H.E.L.P
Hi I have been working thru the sliding menu http://www.kirupa.com/developer/flash5/menudragger2.htm
and have run into troubles.
1. I can't seem to adjust the x values of the slider, to limit how far my mc "general" scrolls
2. the "dragger" won't sit ontop of the "Bar" (the dragger is limited to the width of the bar, so that it doesn't move furthur than the bar)
>>The reason I am customising my scroll is because I want it to be more animated. with onclip release I wont the movie clip to have an elastic approach. If anyone can help me with this step as well...and with simple explainations I would be so gratefull.
cheers GeorgieGirl
"Drag" mc (inside lives a button) the box is a mc (w:925 h: 18.4)
onClipEvent (load) {
_x = _root.box._x-_root.box._width/2+_width/2 ;
_y = _root.box._y ;
xold = _x ;
}
onClipEvent (enterFrame) {
if (dragging) {
if((_root._xmouse>_root.box._x-_root.box._width/2)and (_root._xmouse<_root.box._x+_root.box._width/2)) {
_x = _root._xmouse ;
dxdrag = _x - xold ;
xold = _x ;
_root.general._x -= 2.5*dxdrag ;
}
}
}
on "general" mc (the object I want to scroll) (h: 2832 w:2610)
onClipEvent (load) {
// same as formerly
ratio = _root.general._width/_root.box._width ;
}
onClipEvent (enterFrame) {
// same as formerly
_root.general._x -= ratio*dxdrag ;
}
View Replies !
View Related
Ilyaslamasse's Draggable Menu
http://www.kirupa.com/developer/flash5/menudragger2.htm
I have a quick question about the second part of Ilyas's draggable menu tutorial. I've applied the code, changing just those parts relevant to my instance names and the size and placement of my movie clips. Since the code is nearly identical, would I need to worry about changing any other bits of code to fit my larger movie clips? Right now it doesn't work for me, and I'm just wondering what the cause might be.
View Replies !
View Related
Multiple Draggable Menu
This has probably been asked before but I'm a new member and I need some help.I'm trying to create a navigation for a website that includes a pop-up sub-menu for each of the major categories when you click on it.I've been able to expand the menu and retract it,the first category is working alright with a goto action to a new scene that contains the animation but of course the second action is not working. I'd like some help regarding multiple expandable menus on the same Flash file.Thanks.
View Replies !
View Related
Draggable Menu II Option
Hi,
I have a question about the tut draggable menu II:
Is it possible to give the content a fixed location, so when you slide the blocks they will stay at one position until you slide further.
My scripting is not that good, hope someone can help.
Thanx!
View Replies !
View Related
Draggable Menu Tut Question.
if i wanted to recreate that tut but move everything along the y axis instead of the x, would i have to do anything more than change the x's to y's. because I tried that and it wouldn't work. I had it working along the x. but when i tried to change them to y's it stopped.
View Replies !
View Related
Draggable Menu Problem
Hello people,
I'm new here. Perhaps somebody can help me?
I've made a draggable menu which includes (rollover)buttons. The menu is a MC, which I gave some drag-actions (logically). But! The buttons inside it aren't working for some reason... what do I do wrong?
thank you!
Friek
View Replies !
View Related
Draggable Menu Parts II And III
Ive made it thus far with total success. ive been making very small modifications along the way in order to make it a vertical drag rather than horizontal. Ive come into a problem though somewhere between parts two and three. when i test the movie and im done with Part III i go to click on the dragger and the movie clip "general" jumps below its mask .... i tested it without the mask and found that it would jump down and scroll fine but not in its original position. It scrolls about 2 inches below it... therefore not being revealed by the mask. This is the only time ive run into this problem at all... it worked fine before i started part 3... but now it doesnt... ive run through the code and i cant find anything that would reposition "general" at the click of a button. Any thoughts.
Thanks.
View Replies !
View Related
Draggable Menu Probs
ilyaslamasse if your out there H.E.L.P
Hi I have been working thru the sliding menu http://www.kirupa.com/developer/flash5/menudragger2.htm
and have run into troubles.
1. I can't seem to adjust the x values of the slider, to limit how far my mc "general" scrolls
2. the "dragger" won't sit ontop of the "Bar" (the dragger is limited to the width of the bar, so that it doesn't move furthur than the bar)
>>The reason I am customising my scroll is because I want it to be more animated. with onclip release I wont the movie clip to have an elastic approach. If anyone can help me with this step as well...and with simple explainations I would be so gratefull.
cheers GeorgieGirl
"Drag" mc (inside lives a button) the box is a mc (w:925 h: 18.4)
onClipEvent (load) {
_x = _root.box._x-_root.box._width/2+_width/2 ;
_y = _root.box._y ;
xold = _x ;
}
onClipEvent (enterFrame) {
if (dragging) {
if((_root._xmouse>_root.box._x-_root.box._width/2)and (_root._xmouse<_root.box._x+_root.box._width/2)) {
_x = _root._xmouse ;
dxdrag = _x - xold ;
xold = _x ;
_root.general._x -= 2.5*dxdrag ;
}
}
}
on "general" mc (the object I want to scroll) (h: 2832 w:2610)
onClipEvent (load) {
// same as formerly
ratio = _root.general._width/_root.box._width ;
}
onClipEvent (enterFrame) {
// same as formerly
_root.general._x -= ratio*dxdrag ;
}
View Replies !
View Related
Draggable Menu That Opens And Closes
I want to create a draggable menu to navigate through my site. i would like the window to have a button which closes it, and opens it back up. i would also like it to contain several buttons to be used for navigation (of course).
Does anyone have a foolproof code for this effect, that works in i.e. and netscape? i had one all coded that was working on my mac in netscape, but it doesn't work at all anyplace else (p.c.s, i.e., etc.).
I would greatly appreciate any and all help.
thanks,
gabrielle
View Replies !
View Related
Tutorial Or FLA For Draggable Menu Slider
Tut or FLA for a draggable menu slider - PLEASE HELP
--------------------------------------------------------------------------------
Hi all ... Surely, with all those gr8 minds out there some one can help ??!!
I have searched high and low for a tutorial or an FLA for what I need and cant find one .... PLEASE HELP !!! There are heaps of tuts for sliders just not the kind I need.
This is what I am trying to do ...
I have a vertical slider with 6 increments. As the user drags the button/slider to any of those increments withinin the slider, it will launch the relevant pics
to the Right Hand side of the slider.
PLease help, point me in the right direction as I have a looming DEADline ... Hope I've been clear about what I am trying to achieve.
Thanx heaps in advance.
View Replies !
View Related
[F8] Draggable MovieClip Inside Menu
I am trying to design a flash application that uses several movieclips in different menus (movieclip holders). Basically the user chooses the character from a menu, they are given several expressions to choose from, and they drag one of the expressions onto the stage. When they do this I need that same expression to reappear in the menu. I'm not sure what is the best way to go about this. Things I've tried;
a) having the menus be ordered by z-depth; I am then having trouble using duplicateMoviClip inorder to return the movieclip to the menu also because the character are in the Menus, they do not have indepenant z-depth controlls which they will need later on. (see attached file menu_c.fla)
b) having the menus blank but appear on stage and using attachmovie to bring the characters onto the stage; I think my problem here is assigning several instances to one paent. I can assign them to independant symbols and then dynamically assign each of those intaces to the parent menu but honestly this confuses me. (see file menu_d.fla)
The characters use a simple drag funtion with a conditional, my attempt to duplicate uses duplicate movicelip in this conditional;
PHP Code:
on (release) {
stopDrag();
if (_droptarget eq "/stage_mc") {
// duplicateMovieClip("mc_glad_b", "mc_glad_b"+i, this.getNextHighestDepth());
// setProperty("mc_glad_b", _y, OrgY);
// setProperty("mc_glad_b", _x, OrgX);
} else {
setProperty("", _y, OrgY);
setProperty("", _x, OrgX);
}
}
I put this in general help because I think I could be going about this in a much more simplistic manner, any suggestion are appreciated.
View Replies !
View Related
Elastic Box Draggable Menu Headache
Hi, this is a test for everyone!!
A client of mine has seen this elastic menu box effect and has asked me to see if I can loosely recreate it.
elastic box menu
Does anyone know how to A; create it? or B; create a draggable elastic box and I'll go from there!!
Thanks
postatomic
View Replies !
View Related
|