ActionScript 1/2 :: Smoothly Scale Movieclip While Moving It Towards Viewer?
Oct 2, 2010
I have a movieclip (mstone) depicting a signpost, which is within another movieclip (graphic1). I am trying to scale mstone to increase by about 44%, and it needs to move along the screen in such as manner that it is moving towards the user. Some how the scale and the x,y coordinates I am providing don't seem to reflect the same way as it normally would, when I see the website live.
Is there a smooth way to move the clip, without specifying particular x,y co-ordinates?? I am using the _xscale, _yscale, _x and _y properties. Not producing the desired effect.
i want to make a bar jump smoothly from one scale to another, basically like a visual sound output without the sound. I've been stuck on this one for a few hours now and i know it must be just a logic problem
[Code].....
Whats happening here is that the Bar is scaling to the first random point perfectly but as soon as its target becomes a number around 0.50ish it will stick around that forever because the difference will be too small from there to the next point (i think). So is there any way that it can still make large jumps while using Zeno's Paradox type easing?
I have made a rotating images but the images are not moving smoothly. You can see the example at:-URL...Does anyone know why the images not moving smoothly?
Right I have a movieclip called Menu1 and I currently have a function that when called moves that movie clip to a set of co-ordinates. The function is run on a onEnterFrame. The codes is as follows
Code: function moveMenu(xValue:Number, yValue:Number){ if (this.Menu1._x> xValue) {
[Code].....
So at the moment, the values (x and y) are passed to the function and it moves to that location 45px per frame and when it is within 45px of the target it jumps to the exact point.
1) I want the movieclip to accelerate and deaccelerate as it moves.
2) At the moment it doesn't take the direct route it only goes up down left right and at a 45 degree diagonal. I want it to go to the point in a straight line.
I've got a problem in actionscript3 with moving large DisplayObject-s. When the size of the DisplayObject is quite large (more than screen size) the movement loses smoothness and it looks like the object starts jumping forward and backward, which overall looks very unpleasant.
Does anybody know the way to fix that? I am trying to make a sort of a race game, where I need to move the background sprite to make the illusion of movement.
Code:
private var obj:Sprite; private var canvas:Sprite; // determines spatial spread of circles private var size:int = 1000;
I've got a problem in actionscript3 with moving large DisplayObject-s. When the size of the DisplayObject is quite large (more than screen size) the movement loses smoothness and it looks like the object starts jumping forward and backward, which overall looks very unpleasant. Does anybody know the way to fix that? I am trying to make a sort of a race game, where I need to move the background sprite to make the illusion of movement.
I have a MC that follows the mouse. I want to do so the MC will smoothly/softly stop when i stop moving the mouse. Is it hard to code, And it would be very nice if someone could do some code for it
The selector mark is suposed to "mark" the selection on the menu after a selection is pressed. But Im having problems with the X and y coordinates and scales of the MC and when I click on the option, the MC gets smaller and then bigger to the size I want. Its suposed change scale and position but its not working like it is suposed to work. Im not sure either if I�m setting the Mc on the initial x and y coordinates.
I'm trying to load a movieclip into my scene when the viewer clicks on an invisible_btn the instance name of the btn is "invisible_btn" and the name of the movieclip is "Symbol1."
How can I get my movieclip to run once the invisible_btn is clicked?
I am trying to find the code to have my mc scale from 0 to 1 in AS3 on enterFrame.Unfortunately, I have researched and have found every solution but the one I need.
I'm trying to build a styled, rounded button movieclip that I can reuse/resize. So inside a movieclip, I have two layers:
Layer 1: A border, which is a shape - a rounded rectangle (or actually the stroke of a rounded-rect).
Layer 2: A nested movieclip which contains a shape for the face of the button. I have added filters to this nested movieclip to give it a beveled-type look - typical rounded button stuff.
So, I've tried applying scale-9 to the parent movieclip: in this case the border scales fine, but the face (with the filters) does not. So, then I tried applying scale-9 to both the parent and the nested face movieclip,I want to be able have the button self contained as a clip which I can pull from the library, drop on the stage, and scale without distortion - and so far, as mentioned,I can't figure out how the get the nested face, the one with the filters applied, to scale appropriately.
I want when the user click and dragg (Mouse_DOWN) the rotate button, the image will be rotatedAlso, when the user click and drag the scale button, the image will be scaled.Here is my code, but it dosen't work as I need:
btn_rotate.addEventListener(MouseEvent.MOUSE_MOVE, on_btn_rotate_down); btn_rotate.addEventListener(MouseEvent.MOUSE_UP, on_btn_rotate_up); function on_btn_rotate_down(e:MouseEvent):void
I'm trying to change the y-scale or x-scale of a movieclip. I've tried a few tutorials but they're always talking about "elem._yscale".. However it's no longer supported by AS5.
I have created a 3D product view page with a scrub bar that spins the object via 32 images taken of the object all the way around.
I would now like to add a zoom and pan function of some kind as well. Anyone have any suggestions or FLA files with this sort of thing? The 3D spin images are inside a movieclip, so I basically need a "+" and "-" button to scale the images up, and then be able to drag the movieclip around the stage too.
This is a test I'm doing, where I have movieclips inside my movieclip holder that scale up as I hover over and scale down when I'm no longer hovering. Here is the code for that:
I have x amount of MCs arranged vertically with the distance between each being the same. When I roll over any of them the X & Y scale increases for that particular MC with a tween and on roll out they decrease to the MC's original size. Here comes the sticky bit...how can I maintain the distance between each when the scale of an individual MC is increased/decreased? I have attached a basic swf to show you what I mean. (Only the middle MC is active).
I'm looking for a solution to scale (gradually scaling) the movieclip on mouseover and return to previous state on mouseout. Any movieclip prototypes available for that
I have a movie clip which I want to scale up on a key press and then when the key press is not pressed I want it to scale back down. simple right? but I cant do it? Once I have that sorted out I would like to take it one stage further by making this work: If a key is pressed and let go the movie clip scale up and then finishes. if the key is pressed and held then the movie clip scales up slowly but once the key is released the clip reverse back to frame one. The file can be found here : [URL]
If I wanted to get the global position of a movieclip inside another movieclip I just have to use localToGlobal. Is there anything similar I can use for _xscale and _yscale?If I have a movieclip which is scaled inside another movieclip which is scaled, how can I tell what the combination of those scales effectively become?
I am using the folowing as on a movie clip to scale it: [AS]onClipEvent(load){ targe_width = _width; targe_height = _height; }onClipEvent(enterFrame){ _width = _width += (targe_width - _width)/3.6 _height = _height += (targe_height - _height)/3.6 }[/AS]
This as works fine but I have 30 clips that I want to apply it too. How can I turn this into a function i.e [AS]function scale(targe_width, targe_height); [/AS] So on each clip I can invoke the function by calling something like [AS] scale(50, 50); [/AS]