ActionScript 3.0 :: Drag Mc Under Another?
May 11, 2011Is it possible to create an mc with no interaction properties. So any draggable mcs could be dragged under it and if left, picked up again?
View 1 RepliesIs it possible to create an mc with no interaction properties. So any draggable mcs could be dragged under it and if left, picked up again?
View 1 Repliesi want to make flash drag a ball onpress and if its onrelease and if its on the Suquare movieclip it should stop draggin. my code is like this
[Code]...
I want to have an image and when I click on the image ,one can hold down the mouse and drag a copy to where ever on the stage and when one lets go, one can drag another and another with each copy still being able to be dragged after released.this is what i have but its pretty simple and doesn't work....
stage.addEventListener(MouseEvent.MOUSE_DOWN,makeA Box);
var i:Number = 1; //i will be the total number of boxes
var newBox:myMC = new myMC();[code]....
Im having trouble with this and its going wrong. I need to use actionscript 2 and im on flash cs3.
View 3 RepliesI have a function that states when movieclip1 is dragged and hits a line then it stops the drag, however it seems to stop the entire drag function in the swf on the other movieclips even though they arent called in the function.[code]
View 1 RepliesIm trying to do a drag and drop system where the user can drag a movie clip into an area. Although i would like to make it snap to a target instead of just sitting wherever it lands in the area. Problem Two:
The next thing i am trying to do is when the user has a movie clip on a target already, and trys to put another movie clip in that target area, it will replace the one thats in there and go back to its current position. Here is the script of what i have done so far:
[Code]...
I have some movie clips. i want to drag all clips when i drag single movie clip. Ex. I have movie clips "A1", "A2", "A3", "A4", "A5" . Randomly visible some of them. Suppose "A1", "A3", "A4" has visible. When i will drag "A1" movie clip all these "A3", "A4" also move with "A1".
View 6 RepliesWhat's the code to start drag and stop drag. I would also like to know what's the code to detect if the object has been dropped on something. I know the code in AS2 but i cant figure it out in AS3.
View 3 RepliesI am very new to AS3 and I am running into some issues creating a simple class that will allow you to drag and drop and object but then also scale when it is over a hit area. Here is my current code:
[Code]....
i have load in a .swf and this .swf is make up of one drag object. When i load into my _level0, i can drag it but it seem then the drag is not smooth, instead it is lagging. Thus i went back to the indiviual files and try to drag on it and it was not lagging. ...why is it like that? All the files are still on my local disk.
View 4 RepliesWen i drag mc2 i want mc1 drag in the same time.
View 1 RepliesI am creating a Flash website (AS3) which contains multiple columns of swf's. These all have individual "start drag and stop drag" vertically and works fine. My problem is when I try to create start drag stop drag on top of these swf's horizontally - I want to be able to move the whole stage horizontally containing separate columns.
I am not sure how to code it and it ends up locking the "start drag top drag" inside the columns. How can I do this so that each column is scrollable and scroll to other columns without using a scroll bar...
i have an object that i want to drag and drop with the same event.Something like on press start drag and on press again stop drag. I'm sure it's pretty simple with and if and else statment but i can't find how to do that...The best i have done so far was this:
[Code]...
I downloaded a free flash menu component. It's help file said "You can simply drag and drop the menu items wherever you wish".However, I don't know how to drag and drop it in my file. please help me, how to use it?
View 3 Repliesi have a few things and cant get my head around this, but i know its something simple! even though im still learning. this code allows me to drag and drop on the screen but when i drag one object onto another it stays at its original z position.
all i want to do is drag to the top of the other items on the stage,
port1_mc.addEventListener(MouseEvent.MOUSE_DOWN, drag);port1_mc.addEventListener(MouseEvent.MOUSE_UP, drop);port2_mc.addEventListener(MouseEvent.MOUSE_DOWN, drag);port2_mc.addEventListener(MouseEvent.MOUSE_UP, drop);port3_mc.addEventListener(MouseEvent.MOUSE_DOWN, drag);port3_mc.addEventListener(MouseEvent.MOUSE_UP, drop);port4_mc.addEventListener(MouseEvent.MOUSE_DOWN, drag);port4_mc.addEventListener(MouseEvent.MOUSE_UP, drop);
[Code]...
I am trying to create a mc with drag function.My question is how to change another movieclip's x value when I drag my first mc.[code]...
View 3 RepliesI am developing a simple drag and drop game..except my draggable items are in a movie clip and my targets are also in a movie clip. My draggable objects work fine, they drag and snap back into place when the mouse is let go, but... they dont snap to their targets.They do snap to their targets when they are directly on the timeline, but inside another movie clip it doesnt work and i can't figure out why.[code]
View 1 Repliesgive me a few simple steps to create a drag/scrollbar like this one?:
[URL]
am hoping someone here might have some source in the little bag o' trix that will put me on the right road to achieving the following. i am trying to work out the best way of creating a movie that has buttons that when clicked will zoom into and centre a certain area of a larger movieclip?
and then a way of dragging the zoomed into movieclip around the stage area? or panning using x/y positions of the mouse. (and without asking for the moon on a stick - if the user clicks on a empty part of the zoomed mc - it zooms back out to it's original size position?)
any have any fla files or know of any good tut's or threads that can will give me a leg up to get it working? fingers crossed has done this before or know a good place to start?
Basically, there will be two images, which participants are to choose between. Below the pairs of images will be a horizontal bar with arrows at both opposite ends. I would like the participant to be able to drag and drop a small rectangle somewhere along the bar to represent their choice (and the degree of their endorsement).Basically, I'm asking how to make an interactive scrollbar on its side (without buttons, just the drag). I would also like it to start in the middle of the bar and be able to be moved in either direction.
View 2 RepliesI am litteraly going crazy because ive tried all the codings ive been able to find on the web and nothing works.
what I need is to make something similar to google maps: [URL]
my map is pretty big, and what I want is to be able to drag around the plane and zoom in and out.
What i am trying to do is move a MC around by dragging it, but i dont want the MC to move so far that it could be lost on the stage. i need some sort of parameters so that the MC is always showing. basically i have a large map of the united states and i want to be able to move it around and look at the individual states. the map is much larger than the stage and i am using a mask to clean up the appearance. i just want to make sure that the user cant move the map so far in one direction that it gets lost.
View 3 RepliesI wonder if there is a way to have an flv which is added with the netstream to the swf to not play. Instead it should be a slider bar that you can drag front and back manually to view the content in the video. The drag bar should be a movie clip that you can drag on a horizontal line which is then connected to the timeline of the flv to view the content in the flv front and back. Is there a tutorial available somewhere or does anyone know how to do this?
View 1 Repliesusing 'drag and drop' in flash without overlapping?
For example - I have a list of buttons i drag to an area on the stage. I do not want my buttons to overlap.
I want to create a pair of nested mcs with both mcs draggable I want to be able to drag mc1 around the stage and have mc2 move with it. I also want to have mc2 draggable within mc1. I have mc2 inside mc1.I can set event listeners on mc1 successfully but when I add them to mc2 they don't workI tried mc2.addEventListener, mc1.mc2.addEventListener. Neither work. I also tried to have them not nested and assign mc2's .x and .y to mc1's. Here mc2 snaps to mc1 on MOUSE_DOWN but doesn't stay with it when mc1 is dragged.
View 3 RepliesI've dynamically created a bunch of MCs from a single MC in the library.
Inside the MC's timeline, I have written drag and drop code.
The MC's reside in a parent movieclip, that then resides in a scrollpane.
I was wondering if it's possible to write AS3 to drag the clips into another movieclip?
If not the way I have it, is it possible at all to drag MC's from one container MC to another?
I am having problems with this Flash movie of an draggable, rotatable XML blog. I have got the XML stuff working OK. I'm just having problems making the drag-to-rotate thing work. I want it to be able to be moved around the page like a piece of paper and rotated such.
View 1 RepliesI am trying to do a flex drag and drop. It is very similar to this first example.url....The problem is that event.currentTarget.mouseX,mouseY is showing the position where I put the mouse down rather than the position where I had finished dragging.
View 1 RepliesI am trying to create an elearning exercise and i have a problem with the drag and drop section i have created. The exercise works well but when the user clicks the next button to go to the next frame one of the drag elements from the exercise shows up on the next frame and i just can't work out how to get rid of it?
View 0 RepliesI have a movieClip that I want to drag across the stage on a mouse event. But I also want it to be dragged horizontally only. Also, looking to be able to limit the distance you can drag left and right.The dragging works fine.Here is my code:
ActionScript Code:
my_mc.addEventListener(MouseEvent.MOUSE_DOWN, myMouseDown);
my_mc.addEventListener(MouseEvent.MOUSE_UP, myMouseUp);
[code].....