Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
james karsberg #1
Drag within a drag, is this possible???
Hi there,
I've got an horizontal action script scroller containing buttons which works
fine (which uses a start drag command). I have also got a script that creates a
really nice alt tag style roll over for the buttons which follows the mouse,
fades in, floats and fades out etc... (Which also contains a start drag
command) Each works fine independently, but once I apply the alt tag code to
the buttons contained within the scroller, the alt tag and the scroller still
work but the alt tag wont follow the mouse. I think it's because there are 2
start drag commands and only one will work at a time. I'm not sure how to over
come this problem, is there a way around this, hope someone can help!!
Thanks in advance
James
TextTextTextTextTextTextText
TextTextTextTextTextTextText
Script On Button
on (rollOver) {
tellTarget ("over") {
gotoAndPlay("fade in");
}
}
on (rollOut) {
tellTarget ("over") {
gotoAndStop("fade out");
}
}
Script On Alt Tag
onClipEvent (load) {
startDrag(_root.over, true);
}
Script On 1st Frame of Scroller
startDrag("", true);
mouseposition = getProperty("/myself", _y);
if (Number(mouseposition)>=0 and Number(mouseposition)<=406) {
gotoAndPlay(3);
}
Script On 2nd Frame of Scroller
gotoAndPlay(1);
Script On 3rd Frame of Scroller
mouseposition = getProperty("/myself", _y);
if (Number(mouseposition)<0 or Number(mouseposition)>406) {
gotoAndPlay(1);
}
Script On 4th Frame of Scroller
mouseposition = getProperty("/myself", _x);
hightsposition = getProperty("/hights", _x);
if (Number(mouseposition)>=203 and Number(hightsposition)>370) {
setProperty("/hights", _x, hightsposition-(0.1*(mouseposition-203)));
}
if (Number(mouseposition)<203 and Number(hightsposition)<733) {
setProperty("/hights", _x,
Number(hightsposition)+Number((0.1*(203-mouseposition))));
}
coords = mouseposition;
gotoAndPlay(3);
james karsberg Guest
-
Drag and drop using drag manager
Can someone help? I am dealing with drag and drop and want to be able to drop an item in a VHorizontal box. If I set a background pic then I can... -
Drag and Drop help please!!!
Hi, I'm sure the answer to this is simple, so if you know flash, please read... : ) We're trying to create a drag and drop interactive flash... -
ASP.NET Drag Drop
Hi, I need to develop a ASP.NET web application having two tree controls.I should be able to drag tree nodes from one tree to another.How can i... -
qtvr-drag
Hello, i'm making an interface with director, with a qtvr-panorama in it. i want to hide the qtvr controller and make my own buttons. Every... -
Drag Menu
Hi, I'm reasonable new to flash and can produce some simple little animations etc and buttons, but I wan to go further, I might be jumping to gun a...



Reply With Quote

