ActionScript 2.0 :: When I Hit The Square After The First Time I Drag A Ball To The Trashcan?
Nov 10, 2004
1 : click on the square to make duplicate movies of the ball. 2) which can be dragged to the trash can, to be discarded, but the problem I�m having is that I when I hit the square after the first time I drag a ball to the trashcan, it appears on top of the trashcan, and not where I want it to, yet the next time I hit the button it�s fine.
I can duplicate movies no problem on stage, and drag around. I then want to be able to drag any of them into the virtual "trashcan" mc, and unload just that replicated mc, leaving the others.
ie, I duplicate the "box" 4 times. I decide I want only 3, therefore i drag one into the "trashcan".
how to resize an item (a vector square or such) on drag? In other words, I want to click a side and drag that side having it resize. Sort of like WACK [URL]
I am trying to use startDrag to drag my square movie clip and while i drag it up the square should rototate right and when I drag down it should rotate left, everything works except of the rotation part
I'm trying to get some general info and be pointed in the right direction to make kinda like a photo gallery where they can be dragged, and moved around like several squire images that can overlap one another, and if you click an image that is under another image, it will come upfront..
I want to make a basket ball. Drag on the ball release it and its shoots far depending on how far you drag it back.. Anyone have a quick code to share?
I made this ball that spawns particles out of it. The particles are the same size as the ball, so they end up above the ball, therefore, I cannot pick it up! I heard something about getChildIndex(), but I wasn't able to solve the depth. How do I get the ball to be on top all the time?
I have this game, and some levels have a moving square as the player, you move the square with your arrow keys.... I want to have an enemy square that chases the player square.... They only chased mario when you didn't look at them? Kinda like that...... but in this regards:
I only want the enemy square to chase the player square when the player square moves.... soo say the player square moves 5 pixels per movement (know how to do all that), I want the enemy square to move when the player square moves..... towards the player square at like 7 pixels per movement..... so eventually you won't be able to avoid the enemy square....
i wanna ask how do i make a ball bounce off something like a ball bouncing off a bumper in a pinball game? i've tried a lot of times but everytime the ball get stucked to the box and it doesn't move anymore...will be grateful if anyone noes the actionscript of it..
ball collision inside another ball using gravity.I have one large circle in the middle of the stage (its radius is 150 pixels). I have another circle inside of that one (20 pixels radius), this is the smaller ball that I would like to have bounce around inside of the larger one with gravity. When the small ball hits the edge of the larger circle, I would like it bounce inwards to the center of the larger circle. It keeps doing this until it eventually stops in the center of the larger circle at the bottom.
I need to drag more than one Mc at the time: n.b. emc2 is a mc on the main timeline. This code is in a nested MC. prnt: MovieClip = this.parent as Movieclip; function drag(e:MouseEvent):void{ if((e.type == "mouseDown") && (GlobalVar.stat == "clicked")){ this.startDrag(); prnt.emc2.startDrag(); } if((e.type == "mouseUp") && (GlobalVar.stat == "clicked")){ this.stopDrag(); prnt.emc2.stopDrag(); GlobalVar.drag = false; }} This.startdrag() stop to works when I add prnt.emc2.startDrag().. why?
I have to incorperate flash animations aswel. Im just wondering about a drag and drop function. I have a fair idea how to do a basic drag and drop function.
I have to make a timer that starts off set at one minute and plays an animation mapped to the time remaining in the timer. I need it to start and stop on a button press, and once it has gone through the minute, I need to be able to add time to it and start it again (with the animation mapped to the new amount of time) by clicking and dragging (or maybe with a slider). I have the basic functions down, but I can't figure out how to get it to start over with the time added by dragging. Here is my code so far:
Can we drag two objects at the same time with the "StartDrag" script?I put in the first frame of my movie two "StartDrag"s but it always took in consideration one.
1. i am trying to drag and drop movie clips with a short video clips in it(inside movie cilp), on to another square target "tv" with buttons play stop etc.
2. on this square "tv" i want to be able to view the clip i just drag to the "tv" to (manipulate the clip with play stop on so on) and the same thing with the other clips
3. after that i want to drag the movie clips or another movie clip of the same to a time line with other movie clips and be able to play the time line with the editing movie clips as a new entire editable video clip
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]....
I 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]
Im 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:
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".
What'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.
I 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:
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.