Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Dragging Problems.



So I'm still having problems with my multiple item dragging code. I used this:
ActionScript Code:
on(press){offsetX = _root.clip2._x - _root.clip1._x;offsetY = _root.clip2._y - _root.clip1._y;offsetX = _root.clip3._x - _root.clip1._x;offsetY = _root.clip3._y - _root.clip1._y;offsetX = _root.clip4._x - _root.clip1._x;offsetY = _root.clip4._y - _root.clip1._y;startDrag(_root.clip1);dragging = true;}onClipEvent(mouseMove){if (dragging){_root.clip2._x = _root.clip1._x + offsetX;_root.clip2._y = _root.clip1._y + offsetY;_root.clip4._x = _root.clip1._x + offsetX;_root.clip4._y = _root.clip1._y + offsetY;}}on (release) {stopDrag();dragging = false;}
What I wanna do is have more than two movie clips being dragged. How would I do that?I appreciate all the help I'm getting, possibly one of the best forums I've found for AS solutions.



ActionScript.org Forums > Flash General Questions > Flash 8 General Questions
Posted on: 07-26-2008, 11:44 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Dragging A Movieclip But When Not Dragging Click To Run Function
basically I have a bunch of boxes on the stage. what I'm trying to accomplish is that when a clip is clicked and held it can be dragged. when you release naturally it should stop dragging.

here is the part that stumping me. if you click it without dragging I want it to call a function.

like I said I'm quite stumped at this point any help or suggestions would be great.

cheers

drew

Dragging Of 2 MC
Hi, I know the basic ways of dragging two movie clip. But my problem is whenever I start drag on the first mc, the second MC will shift down before it starts following the mouse. hmmm...a bit confusing right.

Erm, my objective is to drag the second mc but I don't want it to be locked to the center of the mouse. Here's my coding. See if you can find any error.

onClipEvent (mouseMove) {
if (_root.drag == true) {
this._x = _root._xmouse + x;
this._y = _root._ymouse + y;
}
}
onClipEvent(load){
x = this._x;
y = this._y;
}

Dragging Of 2 MC
Hi, I know the basic ways of dragging two movie clip. But my problem is whenever I start drag on the first mc, the second MC will shift down before it starts following the mouse. hmmm...a bit confusing right.

Erm, my objective is to drag the second mc but I don't want it to be locked to the center of the mouse. Here's my coding. See if you can find any error.

onClipEvent (mouseMove) {
if (_root.drag == true) {
this._x = _root._xmouse + x;
this._y = _root._ymouse + y;
}
}
onClipEvent(load){
x = this._x;
y = this._y;
}

../:dragging ?
why do people put /:variable or ../variable
why do they put the slash and the dots? this may be a dumb question, but i was just wondering about that
thx for your time

Help On Dragging PLZ
on (press) {
startDrag ("draghome", false, 200, 200, 200, 200);
}
on (release) {
stopDrag ();
}
--------------------------------------------------
can someone plz tell me whats wrong with this? I keep getting an error and it wont work! PLZ Help! TIA

Dragging Help
ok i have a dragable window and i want to use the 'constrain to rectangle' thing..like they do in this site:
http://www.globeshoes.com/resources/skatehm.html
(drag the menu around, see how you cant drag it off the movie?)

i know how to do this but i dont know what to set the L,R,T,B to..i want to make the drag area 15 pixels inward from the movie boarder (movie dimensions: 650 X 450)

so if u can help id appreciate it, thanx.

Dragging
I can set a movie clip to drag when the mouse is clicked, but how do I set it to drag only if the mouse is clicked on the movie clip I want to drag?

Thnaks!

Dragging
How would you make it so when you dragged an object it snapped every "x" squares?

Dragging Something
how do i drag something with the mouse.

i know how to do the "startDrag", but that drags the object all of the time, and i only want it to be dragged when i click on it.

Dragging
how do i have a button drag and when i am dragging it text appears and does NOT drag with it and when the button is released and is not dragged anymore the text dissapeares?

DRAGGING
If I want to drag a movie clip around but only horizontally how would I do that. I tried dragging it and setting the y coordinate to 0 but that didnt work.

Please help. Thanks.

Dragging Help,
hi, wats the code to tell MC "char" to drag, and if u try drag it onto the mc "wall" it wont drag over it,

u know like bounderies,

thx

I Need Some Dragging Help
I am trying to achieve something and I'm sure (being a newbie) that I'm doing it all wrong.

http://www3.sympatico.ca/stylusprodu...ideything.html

What I want, is for the menu of images (movieclips) to be draggable (with easing) left or right. I don't want to see any drag button if that's possible.

The dragging needs to be limited to the edges (for either end) so that the menu doesn't drag off into nowhere.

The turorial is killing me. Can anyone help me out? Maybe simplify things?

Any help would be very much appreciated,

georgia

Dragging :( :(
I cant make anything draggable!! Im not trying to do anything complicated! All I want to do is make a circle be able to drag around. why cant i do it?! the actionscript i copy and paste NEVER works! It always posts up with this notepad screen saying stuff is wrong! im soooooo lost! can somebody please help me? from the beggining, i have a circle button, what now??? step by step i need because im doing SOMETHING wrong and i cant figure it out thanks in advance

Dragging
HI,
can anyone help with this file?
At the moment its just an animation, but I'd like the user to be able to click on the ball and drag it around the circle, displaying the different options,
any help would be fantastic
cheers
Matt

Dragging Only On X
HOw can i make a clip drag only on the x, so it goes accross and not up and down.

Dragging :(
ok.... i am gonna post this in here too.. cause it is proberbly too simple for the action scripty section....

"OK... i am a newbie to flash ... i am currently trying to create a dragable navigation system for the interface of my site ... i know how to do this a half a dozen different ways using director... and i am positive this is doable in flash... i just do not understand what i am doing wrong. with in my file i have a movie called "knob"... Knob contains the code that allows the "red button" button to be dragged along a specific path, and when it reaches the specific drag target, it should either move to a new scene, or move to the next frame of the root timeline. however.... it only moves to the second frame of knob... despite attempting to specify "nextScene();", "gotoAndPlay("Scene 2", 1); etc...... sorry if i am not making my self clear
Why OH why is my feeble code not working
i am positive this is something stupid i have neglected to do... any help would be seriously appreciated... "

flash file of doom

Dragging Mcs'
I'm looking for a simple dragging script. Anybody know where I can find one or does anyone have an example I can look at and adapt for my own use?

Regards.

Had a thought once I had posted this thread, would the following script work?
code:
on (press) {
startDrag ("drag", true);
}
on (release) {
stopDrag ();
}

Dragging
I recently read a tutorial on the site concerning draging objects, it works fine, except for one thing, when the item is dragged to it's target, it just goes back to the first scene. When I test just the scene it goes to the proper frame.

Here is the code:
onClipEvent (load) {
startX = this._x;
startY = this._y;
}
onClipEvent (mouseDown) {
if (_root.drag.hitTest(_root._xmouse, _root._ymouse)) {
_root.draggedDrag = true;
}
}
onClipEvent (enterFrame) {
if (_root.draggedDrag) {
_root.drag._x = _root._xmouse;
_root.drag._y = _root._ymouse;
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root.hit)) {
_root.draggedDrag = true;
gotoAndPlay (8);
_root.drag._x = startX;
_root.drag._y = startY;
} else {
_root.drag._x = startX;
_root.drag._y = startY;
_root.draggedDrag = false;
}
}

Can anybody tell me why this happens?

Help W/ Dragging An MC
Hi,
I have a bunch of MCs that load from my library via this code on the button:

on (press) {
this.attachMovie("mypop7mc", "window", 0);
window._x = 290;
window._y = 180;
}

I’m trying to make the MCs in the library draggable within the confines of my flash doc (1024 X 400).
Is there a way to add AS to MCs that are pulled from the library.
Thanks much

Dragging
I have the following:

onClipEvent (enterFrame) {
t = this.hitTest(_root._xmouse, _root._ymouse, 0);

_alpha -= (20*!t*(_alpha>0)-20*(t)*(_alpha<100));

}

What happens is that the MC this is set to will fade to 100% alpha when the mouse hovers over and back to 0% when it leaves.

I want it so that it doesn't fade out even if it leaves as long as the mouse is held down, and only fades back to 0% if the user lets go.

Sort of so if the user drags the mouse away, it will still stay the same alpha until they let go.

Thanks

--iMat

Dragging MC
I need script like this:

If clicking on MC it starts dragging(not holding down a thing) and when clicking again, it sets property _x _y

At the moment i have script like this(here i must hold down a mouse button)


PHP Code:



on (press)
{
    nuga_invX = getProperty(_root.nuga_inv, _x);
    nuga_invY = getProperty(_root.nuga_inv, _y);
    startDrag(this, true);
}
on (release, releaseOutside)
{
    if (this.hitTest(_root.karp))
    {
        setProperty(this, _x, nuga_invX);
        setProperty(this, _y, nuga_invY);
        _root.karp.gotoAndStop(2);
        stopDrag();
    }
    else
    {
        setProperty(this, _x, nuga_invX);
        setProperty(this, _y, nuga_invY);
        stopDrag();
    } // end if
}





Hope this fits to newbies forum and i get help
Thx in advance

Dragging A MC
hi does anyone know the code to drag a moviclip inside the WITH statement:

with(mc){
onPress.stratDrag(this)
}

.dragging
anyone heard of .dragging?

this doesn't get a blue font when typed the panel, but does seem to work...

like in :

function checkPlayback():Void {
if(!csldProgress.dragging) {
csldProgress.value = sndAudio.position;
}
}


any other unknown properties??

Please Can Someone Help Me.dragging
i know how to make a game where you can drag things about but please can someone tell me how to make it so when i drag something into a wall for example how to make it react with like a mark on the wall

3D Dragging Help
Hello,

I have some code I found on the net that created a 3D Rotation illusion in Flash. I was able to edit it to get the objects I wanted where I wanted them, but I need to figure out how to use a drag command instead of it detecting the mouse position to determine movement. Here is the code:


Code:
this.createEmptyMovieClip("coreValues", 0);
coreValues._x = 262.5;
coreValues._y = 262.5;
focalLength = 175;
make3DPoint = function(x,y,z){
var point = new Object();
point.x = x;
point.y = y;
point.z = z;
return point;
};
make2DPoint = function(x, y, depth, scaleRatio){
var point = new Object();
point.x = x;
point.y = y;
point.depth = depth;
point.scaleRatio = scaleRatio;
return point;
};
Transform3DPointsTo2DPoints = function(points, axisRotations){
var TransformedPointsArray = [];
var sx = Math.sin(axisRotations.x);
var cx = Math.cos(axisRotations.x);
var sy = Math.sin(axisRotations.y);
var cy = Math.cos(axisRotations.y);
var sz = Math.sin(axisRotations.z);
var cz = Math.cos(axisRotations.z);
var x,y,z, xy,xz, yx,yz, zx,zy, scaleRatio;
var i = points.length;
while (i--){
x = points[i].x;
y = points[i].y;
z = points[i].z;
xy = cx*y - sx*z;
xz = sx*y + cx*z;
yz = cy*xz - sy*x;
yx = sy*xz + cy*x;
zx = cz*yx - sz*xy;
zy = sz*yx + cz*xy;
scaleRatio = focalLength/(focalLength + yz);
x = zx*scaleRatio;
y = zy*scaleRatio;
z = yz;
TransformedPointsArray[i] = make2DPoint(x, y, -z, scaleRatio);
}
return TransformedPointsArray;
};
pointsArray = [
make3DPoint(0,0,0),
make3DPoint(90,50,100),
make3DPoint(80,80,-50),
make3DPoint(80,20,-40),
make3DPoint(80,-40,-70),
make3DPoint(60,70,70),
make3DPoint(60,-80,-60),
make3DPoint(50,-50,90),
make3DPoint(30,60,-90),
make3DPoint(10,100,-10),
make3DPoint(0,-80,-60),
make3DPoint(-10,90,30),
make3DPoint(-10,-100,-20),
make3DPoint(-40,70,70),
make3DPoint(-40,-70,80),
make3DPoint(-70,80,-50),
make3DPoint(-80,-10,10),
make3DPoint(-80,-90,40),
make3DPoint(-90,-50,90),
make3DPoint(-100,40,-80)
];
for (i=0; i<pointsArray.length; i++){
attachedObj = coreValues.attachMovie("mc_element"+i, "mc_element"+i, i);
}
cubeAxisRotations = make3DPoint(0,0,0);
rotateCube = function(){
cubeAxisRotations.y -= this._xmouse/25000;
cubeAxisRotations.x += this._ymouse/25000;
var screenPoints = Transform3DPointsTo2DPoints(pointsArray, cubeAxisRotations);
for (i=0; i<pointsArray.length; i++){
currBalloon = this["mc_element"+i];
currBalloon._x = screenPoints[i].x;
currBalloon._y = screenPoints[i].y;
currBalloon._xscale = currBalloon._yscale = 100 * screenPoints[i].scaleRatio;
currBalloon.swapDepths(screenPoints[i].depth);
}
};
coreValues.onEnterFrame = rotateCube;
Here is an example of what I'm trying to accomplish:

http://www.firstbornmultimedia.com/flashLarge.htm

1. Click "Our Portfolio/By Client/M" and choose "Madonna Official Website"
2. Click "Click->To Launch Demo" at the bottom.

In the pop-up, choose one of the numbers which is her track listing. There are lyrics printed and displayed in kind of a "The Price is Right" wheel. Play around with that, and you'll get the idea of what I'm going for.

How do I edit the above code to do what we can do with the lyrics? Thank you!

David
The Linnium Project

Dragging
Hello All, I am trying to create small zoom box that is draggable and its x and y position determine the position of a bigger image. I have 2 images, both images are the same image 1 is very small, image 2 is very large. The zoom Box is on the small image. When you drag the zoom box I need the big image to move as well.

As of now I have the zoom box draggle along with some boundaries for it. Does anyone have any sugguestions on how to make the big image move to correspond with the position of the zoom box on the small image.

Here is what I have so far:

ActionScript Code:
var xMin:Number = 512;
var xMax:Number = 559;
var yMin:Number = 56;
var yMax:Number = 91;
var distance:Number = 4;
//
zoomBox.onPress = function() {
    zoomBox.startDrag(lockCenter, xMin, yMin, xMax, yMax);
    zoomBox.onMouseMove = function () {
        if (zoomBox._x < zoomBox._x + 1) {
            trace("Moving Left");
        }
    }
};
//
zoomBox.onRelease = function() {
    zoomBox.stopDrag();
    delete zoomBox.onMouseMove;
};
//
zoomBox.onReleaseOutside = function() {
    zoomBox.stopDrag();
    delete zoomBox.onMouseMove;
};

Thanks Everyone!

Dan

Dragging Out A Box
I need the user to be able to drag out a rectangle on the stage in my Flex application. I have seen a million tutorials on standard drag and drop features, but I can't find anything that covers this.

I basically don't know how to detect and handle the event of the user clicking on the stage, holding the mouse down, and then dragging it around which draws and redraws a rectangle as they move.

i.e. Imagine it's a drawing application and you want to draw a rectangle. Once you let go it finally attaches the finished rectangle.

Dragging Only One
Coding one of those click on this and drag out a copy of it.
the problem is...its only dragging one of the same copy.

or it is dragging all of the copies......

ActionScript Code:
i= 0
rapture.onPress = function() {
    i++
    var magic = attachMovie("1","1"+i,getNextHighestDepth());
    magic.onMouseDown = Coolies;
    magic.onMouseUp = Coolies2;
    magic.onPress = Docodie;
}

function Coolies () {
    startDrag(this,true);
}
function Coolies2 () {
    stopDrag();
    this.onMouseMove = null;
}

function Docodie() {
    startDrag(this,true)
}

-edit-
i just had to add


ActionScript Code:
rapture.onPress = function() {
    i++
    var magic = attachMovie("1","1"+i,getNextHighestDepth());
    startDrag(magic,true)//<-THIS and take out the onMouseDown
    magic.onMouseUp = Coolies2;
    magic.onPress = Docodie;
}

Dragging
Okay I have for example 25 mclips... with instance names mc1-mc25. All mcs have same properties and are draggable.
When you drag an mc over the top of any of the other mc's part of the mc being dragged over will become visible and then when rolledoff will dissapear again.

The following code is on all of the m.c.

roTarget.onPress=function(){
this._parent.startDrag();
this._parent.swapDepths(_parent._parent.thumsIndex++);
this.onEnterFrame=function(){
for (p=0;p<=25;p++){
if (hitTarget.hitTest(_parent['mc'+p].hitTargetBottom)) {
_parent['mc'+p].hitTargetBottom._visible=true;}else{
_parent['mc'+p].hitTargetBottom._visible=false;}}}
}

roTarget.onRelease(){
delete this.onEnterFrame();}



Problem. This works fine the first time you pick up an mc. However if the next m.c. you pick up has a higher instance name... eg... if i drag mc3 first and then try and drag mc5 next it wont work.
I assume this is some sort of timing issue... but I dont see why. The function that makes it work is an onEneter frame, but this should be being created every time an mc is pressed.
Any ideas? thanks J.

Please note that if i replace in the code the dissapearing and appearing of the mc's with a trace statement it workd fine, so it is something to do with the way in which I am trying to get the m.c's to appear and dissapear. thanks.

Dragging
Try to visualize this as I describe it. I created a movie clip that is to be dragged. The only reason for dragging this movie clip is so that I can get the ._y value and round it off using the int code. I set this "y" value as the keyframe number of my animation on my stage. As the mouse moves up and down, the animation jumps to the corresponging keyframe thus creating the effect that if your mouse moves down, the animation plays, if it moves back up, it plays the animation backwards. I'm sure this makes sense. What I want to do next is limit where the movie clip can be dragged. The reason for this is simple, if the viewer is not over my menu, I dont want the animation to play. However, when I try to limit where the movie clip can be dragged, I encountered a couple problems. The movie clip isn't dragged to the right of the screen, but the animation still plays when the mouse moves up and down, even when it's outside the parameters!!! the he heck!

.swf
.fla

Dragging
So I wonder if this is possible:

2 MCs. When you click one of them it drags the one that wasn't clicked, but it follows it a little slower, like easing so that it is following where you drag the other MC but is a little behind it..

Any suggestions?

thx in advance

Dragging
Hey, i'm trying to get a box to drag (it's a button within a movieclip), but my code just ends up dragging the whole stage, and i don't know what i'm doing wrong. :-

The code is:

on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}

I tried putting the name of the button instance in the "", but that just makes the code do nothing.

Help With Dragging
Hi guys! Hope you can help me out with a small problem here.

Attached is the .fla. Im actually trying to make this small educational app that helps children learn to find the area of triangles (1/2 x length x height).

Right now I need to make 3 draggable anchor points so the teacher is able to drag the points to create different shaped triangles.

I have a grid on one of the layers.

Currently, my 3 anchors are given instance names (n1,n2,n3) and are given the following button actions


Code:
on (press) {
startDrag("_root.n1",true);
}

on (release) {
stopDrag();
}
The dragging works fine but I want the anchors to snap to the grid I created. How would I go about doing that?

I was thinking of make little small MCs on the grid points and using dropTarget to snap the anchors to them, but that would require many many small MCs on the grid points. Is there any easier and more effective way?

Thanks a lot dudes

Something To Do With Dragging Perhaps? ^_^;
I've got a couple of things that I want to do with my menu, but I can't
find a tutorial to help with one such thing.

I want the user to be able to actually drag down the menu until it hits
a point in which a sound will activate and it will hold it's place...
kind of like a pull chain on a lamp. I also want it so that they can
pull it again and it'll pull itself back up towards the top (back into
it's original position).

I can't find a tutorial that talks about how to do that.

Dragging
I'm curious as to how to drag a move clip but only change the x value, so dragging left and right. Obviously the startDrag() allows you to drag all over. I had tried

map_mc.onPress = function(){
this.startDrag()
this.onEnterFrame = function(){
this._y = 0
}
}
map_mc.onRelease = function(){
delete this.onEnterFrame
stopDrag()
}

which "kinda" works but is far far from perfect. This is more or less makes the movieclip slide from side to side, but like i said, its not perfect. Any ideas?

Help With Dragging.
please help. I'm trying to make a draggable menu in a jukebox. I did it the same as in the draggable menu tut. the difference is, that the whole menu is inside of a clip with masking and such. the problem is I don't get any errors when I test it but the dragger clip just disappears when I click it. anyone encountered this before?

Dragging
Try to visualize this as I describe it. I created a movie clip that is to be dragged. The only reason for dragging this movie clip is so that I can get the ._y value and round it off using the int code. I set this "y" value as the keyframe number of my animation on my stage. As the mouse moves up and down, the animation jumps to the corresponging keyframe thus creating the effect that if your mouse moves down, the animation plays, if it moves back up, it plays the animation backwards. I'm sure this makes sense. What I want to do next is limit where the movie clip can be dragged. The reason for this is simple, if the viewer is not over my menu, I dont want the animation to play. However, when I try to limit where the movie clip can be dragged, I encountered a couple problems. The movie clip isn't dragged to the right of the screen, but the animation still plays when the mouse moves up and down, even when it's outside the parameters!!! the he heck!

.swf
.fla

Dragging
So I wonder if this is possible:

2 MCs. When you click one of them it drags the one that wasn't clicked, but it follows it a little slower, like easing so that it is following where you drag the other MC but is a little behind it..

Any suggestions?

thx in advance

Dragging An MC?
Hello,

It's been a while since I have visited this site. I would like to say "HI" to all the Flash Helpers around Now, I'm back again with a few questions about How To's in Flash


Problem:

I wanted to make an MC that can be dragged only from LEFT to RIGHT with a little ease on it. I was trying to look for some tutorials in this site but unfortunately wasn't able to find one close to what I had in mind.


Thank You

Dragging In MX
Is there any tutorial on that? see i know it is easy...but I am a beginner so help me, Any where with tuts on it?

Im using Flash MX ( no duh...lol)

Dragging
hi, i've been experiencing this problem lately.

it seems difficult to drag stuff from the library to the timeline or stage.
sometimes it works after, like 4-5 times, at times it doesn't at all.

i wonder if i had unintentioanlly changed any settings, but i've no idea where to check?

can someone offer any advice?
thanks!

If Dragging Down, If Dragging Up, HOW TO?
For example I have a box wich is draggable...
I want to make the following thing with it...
If I'm draging it down, it will trace("moving down"); if I will move the box up it will trace("moving up");

The question is, how to listen for its changes within the Y?

Dragging A MC
i have a MC on my stage that consists of 60 jpgs i rendered in 3DS. It is a full 360 rotation of an object i rendered.

Could someone please help out with some code that would allow the user to drag over the MC and based on which way they drag, have the timeline go in that direction.

very similar to this 360 effect. http://www.fordvehicles.com/trucks/ranger/

Thanks in advance.

Mike

[as1] [help] Dragging Mc
Hi.
i want to make a basic slider for my website,
i used the following script and it works fine when exported as flash MX but it does not work in flash 5.

here is the script:


ActionScript Code:
dragger.onPress = function() {
    this.startDrag(true, 0, 0, 100, 0);
    };
dragger.onRelease = dragger.onreleaseOutside=stopDrag;


how can i make it work in flash 5?

Dragging And Dropping
Hi there,

I am playing around with "Dragging and Dropping" in Flash 4. I have a button with a movie clip on the down frame.
Now here is my problem...every thing works fine..the movie plays when I press the button and its stops when I release.
BUT the user can also drag this button around the screen...to move it out of the way in a sense...but if I add a background layer to the movie scene...everything moves along with the button when I drag it around.
What am I doing wrong?
Here is the Action code of the button in the Movie scene.
On (Press)
Go to and Play (1)
Start Drag (GetProperty ("/MyMC",_y ), L=-140, T=-60, R=210, B=100)
End On
On (Release, Release Outside)
Go to and Play (15)
Stop Drag
End On

Please help me somebody?!

Smooth Dragging
Ok. How do you make a movie clip drag smoothly, independent from the frames per sec of the movie? I know you have to use the "update after event" function but you can only use that in the actionscript of a movieclip. I don't see how you can use the "startdrag" action along with "update after event" function and using the _xmouse and _ymouse properties as a way to drag the movie causes the center of the movie to snap onto the cursor position. I want the movie to drag and update with the mousemove without the center of the movie snapping onto the cursor. Please help me. Thank you!

Mook
[Edited by pvyguitar on 08-06-2001 at 06:58 PM]

Dragging Questions
Hey, got a couple questions about dragging a movie clip.

Here is the site I am talking about if you want to get a better idea of my questions: Test Page

First off, I am trying to have two movie clips dragging at the same time. The menu console should be sliding back and forth horizontally, and the eye should be following the cursor. For some reason, once the eye clip loads, the menu stops dragging horizontally. Is the second startDrag() action messing up the first somehow...or would it be something else. I don't have a stopDrag() anywhere in there.

Second, I was wondering what actionscript I would need to put to have the Menu drag delayed. Basically I want the menu to move side to side with a smooth fluid motion. Anyone know how to do that.

Right now I have this:

Code:
startDrag (menu, true, 135, 47.5, 650, 47.5);


Any help would be great.

- Matt

Dragging Objects
I wanted to make a cylinder in which the user would be able to use the mouse to make it longer and also to change the radius to make it wider. How can I do this?

Dragging Along A Path?
Is there a way of dragging an object(button inside movieclip) along a curved path??
I've seen this done before but havn't got a clue how to approach the problem.
thanks
josh

Copyright © 2005-08 www.BigResource.com, All rights reserved