ActionScript 2.0 :: Scale A Movieclip By Clicking It And Drag The Corner Points Of It?
Apr 11, 2006how can i scale a movieclip by clicking it and drag the corner points of it.
View 3 Replieshow can i scale a movieclip by clicking it and drag the corner points of it.
View 3 RepliesI'm trying to create this drag and drop sequence where the "temperature_small" movie clip is dragged and dropped onto a spot on the stage. I've got the drag and drop part of the ActionScript ready, but the trouble comes when I want to re-size the movieclip to make it smaller, I keep getting the error code:
[Code]...
I am using that has action frames.It is a photo album template that allows me to turn pages by clicking my mouse in the lower corner and dragging it across.If I copy frame 5 and past it as frame 8 and I change the image on frame 8 it also changes the image in frame 5.Here is the script below from the 9th frame:
View 2 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]....
ex : i have a rectangle and it is movieClip.. . 1. how do i drag each corner of the rectangle ? (like in photoshop tool (direct selection tool) ... )
View 1 RepliesEach time I click the "fold_btn" I need to be able to add 10 points and display it in a text box (rot1_txt).
Code:
on (press) {
_root.rot1_txt = 0;
_root.rot1_txt = _root.rot1_txt + 10;
}
Not working!
I was reading this tutorial: http:[url].....and saw an external link to this website http:[url]..... which uses this effect. But they have this maximize button on each mini-window.How do the manage to create the start drag on mouse down COMBINED with the button in the top right corner?
View 2 Replies I've been looking for a JSFL command that might do this, but haven't come across anything even remotely similar to what I'm trying to achieve. Perhaps there is another solution besides JSFL that someone might know of.Question: Is there a way that I can select multiple symbols (either in a single frame or across multiple frames) and apply a scale transform that will adhere to each symbol's registration point?
Scenario:In an animation sequence, a movieclip of a tall rectangle is tweened on the timeline using "classic" tween. There are 20keyframes, where the mc changes position and rotation.In a duplicate of that animation sequence, I want to change the height of all instances of the mc in the animation, but keep the position and rotation. The rectangle should stay a rectangle, only shorter.I go to a keyframe, select the mc, and enter the desired scale percentage for the height in the transform pane. Then I repeat this for the other 19 keyframes. Imagine the pain and suffering I go through when this is done for several sequences!
Ideally,I would want to use the "edit multiple frame" mode in the timeline, select all instances of the mc across all 20 keyframes, and apply the height transform to all mcs via JSFL or dark magic.Flash's default behavior transforms multiple objects as a group,so not only will it squash and shear the different mc instances(creating diamonds),it will also shrink the distances between the different positions(changing the path of the tweens).I'm looking for a way to apply the transform so that each instance scales to their own registration point,preserving their position and respective of their rotation.
When you make this draggable and droppable, the object automatically jumps to the cursor of the mouse, but at the location set at (0, 0)? Well, is there a way to counteract this, so if the mouse is over it and you click it you can still move it but the object will stay where it is relative to the mouse cursor? I'm using ActionScript 3.0 with Flash CS5
View 6 RepliesBasically, 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 Replies[URL]like the drag and scale part? kinda of understand how to do it but had some difficulty structuring it in Flash MX.
View 2 RepliesI have an image inside a movie clip that a user can scale from its center using the slider....works great.However the use can also drag the movie clip.After the movie clip is dragged to a new location it and then scaled using the slider it jumps back to the center of the stage and then scales.I have tried modifying the x y of the movie clip but then the scale is no longer from the movie clip's center.
var clipNativeX = holder_mc.x;
var clipNativeY = holder_mc.y;
function scaleClip(val:int):void[code]......
im kind of new to flash, and i have a question. On my scene, i have buttons generated from a xml file that can be dragged. I took the code from a tutorial on the web and added the drag function. I also have a drop zone where i put the button and it do some function. Here is my question, when i drop the button on the drop zone, the button stay in the center of the drop zone. If i drop another button to the drop zone, i want the previous button to return to its original position. How ?
Is there some kind of function to retrieve the last button used ? But even with this function, the problem is that if you click a new button, but change your mind and click on another one without dropping it in the drop zone, the last button is not the one in the drop zone anymore.
does anyone know a code which would let you drag and drop objects and also be able to scale them at the same time.
View 0 RepliesI have had some help but still not understanding this.
How can I scale an object from center after it is dragged by the user?
Currently I have this:
function onSliderChange(e:SliderEvent):void
{
scaleClip(slider.value);
}
[Code]...
With this code the movieclip jumps back to the center of the stage each time I call the scaleClip() (move the slider). I would like the object to scale from it's own center regardless of where it is on the stage.
I have a set of dots displayed on the canvas (key bits of code pulled out):
// Drop points based on x y coords
for (var i = 0; i < 50; i++) {
itemPoint[i] = new mcDot();[code]....
how to redraw the lines as I move a dot. Also there could be many lines connected to any single dot. Do I need to somehow register which lines are connected to which dot? How do I redrew the lines based on this?
I drew a farm and I want to be able to move the animals around, also to make it a bit more real, they need to scale down proportionally along the y axis, I have been searching for a tutorial or download to no avail.
View 9 RepliesI am creating one new empty movieclip like this,this.createEmptyMovieClip("vjn", this.getNextHighestDepth());
vjn.beginFill(0x000066);
vjn.moveTo(150, 50);
vjn.lineTo(50, 250);
vjn.lineTo(250, 250);
vjn.lineTo(150, 50);
vjn.endFill();
these lines are creating only the square corner, but i want rounded corner. How can i increase or decrease the radius size. How to create the rounded corner through script.
I am trying to draw 4 boxes at each corner of the MovieClips but can not figure out how to detect the top right corner, bottom left and bottom right corner.[code]....
View 2 RepliesI am creating one new empty movieclip like this,this.createEmptyMovieClip("vjn", this.getNextHighestDepth());
vjn.beginFill(0x000066);
vjn.moveTo(150, 50);
vjn.lineTo(50, 250);
vjn.lineTo(250, 250);
vjn.lineTo(150, 50);
vjn.endFill();
these lines are creating only the square corner, but i want rounded corner. How can i increase or decrease the radius size. How to create the rounded corner through script.
I am creating one new empty movieclip like this,
[code]...
these lines are creating only the square corner, but i want rounded corner. How can i increase or decrease the radius size. If its possible please mention the problem.How to create the rounded corner through script. I want rounded corners not a square corner......
I am learning AS3 and trying to get an object to be able to move / rotate / scale and drag and drop. I found 2 seperate tutorials one does button clicks to move and rotate code.[code]When I add the second lot of code to the first app (ie add a layer and insert the script ) change myPoint to rocket . I get the following errors:'{' expected
View 1 RepliesI have been trying to rotate my movieClip by the top right corner using the rotateAroundInternalPoint function. All appears to work fine however after a full rotation it is clear the point of rotation has shifted ever so slightly. I have checked the code a few times to find any rounding issues but can not find any.What I have found however is after assigning the matrix I make to do the transformasion to the movieClip.transform.matrix property the resulting two matrices differ ever so slightly. Here is the code:[code]Yes If I make mat = new Matrix() and assign that to the movieClip it is indeed a new clear matrix. Just sometimes, with some decimal values it seems to differ by a random amount.
View 9 Replies'i am doing a game for children where users can drag and drop resize and scale movie clips on stage!The drag and drop is not an issue...
View 2 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 RepliesWhat do the little red squares on the lower left hand corner of the movieclips in the actions panel mean? [Fig. 1]I'm working off this template in Flash CS3, that's using ActionScript 2.0 actually. I don't know whether or not that means anything in regards to the above inquire?
View 7 RepliesI have to make constraints and it works but for now it draws a line between the two points but i want a movieclip between those points. But how do i do that?
[Code]...
I have a 100%, 100% movieclip over my entire flash, with a 20% alpha. But I want to be able to click on things behind this movieclip,
View 5 RepliesI have a movieclip with moviclips in them. Lets class it...
mainMC = main movieclip
childMC = mcs inside the mainMC
The problem is that the mainMC is to be used as a button. If I click the part of the mainMC with a childMC, it doesn't work. I have to click a blank spot on the mainMC where no childMC exist in order for it to properly register.
I'm trying to use the MatrixTransform class to RotateAroundInternalPoint but it requires that the object I'm trying to rotate has matrix points defined. My question is, is there a way to add Matrix points to a non Shape object so I can rotate it, or is there another class that is used to rotate movie clips around internal points?
View 6 Replies