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.

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Make A Bar Jump Smoothly From One Scale To Another?

Jun 14, 2009

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?

View 1 Replies

Images Are Not Moving Smoothly

Mar 18, 2009

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?

View 3 Replies

ActionScript 2.0 :: Moving A MC Smoothly?

Jun 3, 2006

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.

View 2 Replies

ActionScript 3.0 :: Circle Is Not Moving Smoothly?

Jun 1, 2011

I am trying to animate the circle to follow the cursor point. Its working fine, but when you move the cursor little faster the animation struck.

import flash.events.MouseEvent;import fl.transitions.Tween;import fl.transitions.*;import fl.transitions.easing.*;
var moveXY:Number;var speed:Number = 1;

[Code].....

View 8 Replies

ActionScript 3.0 :: Smoothly Moving Large Sprites?

Mar 14, 2012

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;

[Code]....

View 3 Replies

Actionscript 3 :: Flash Smoothly Moving Large Sprites

Mar 14, 2012

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.

View 1 Replies

ActionScript 2.0 :: Mc Will Smoothly Stop When Stop Moving The Mouse

Aug 1, 2004

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

View 2 Replies

ActionScript 2.0 :: Moving Menu - Change Scale And Position

Mar 21, 2004

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.

View 4 Replies

ActionScript 2.0 :: Changing MovieClip Height - Smoothly Like Tweening

May 7, 2005

I would like to make a movie clip's height change when it is clicked. However, I can't figure out how to do it so that it smooth like a tweening.

View 4 Replies

ActionScript 2.0 :: Add To Movieclip That Will Bookmark Site In Viewer's Favorites?

May 19, 2005

what's the actionscript that i could add to my movieclip that will bookmark my site in viewer's favorites?

View 2 Replies

ActionScript 2.0 :: Add To Movieclip That Will Bookmark My Site In Viewer's Favorites?

May 19, 2005

Does any of you know what's the actionscript that i could add to my movieclip that will bookmark my site in viewer's favorites?

View 2 Replies

ActionScript 3.0 :: Load A Movieclip Into Scene When The Viewer Clicks On An Invisible_btn?

Nov 26, 2008

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?

View 3 Replies

ActionScript 3.0 :: Scale Movieclip Using It?

Apr 22, 2010

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.

View 8 Replies

ActionScript 3.0 :: Set Swf To Scale Apart From One MovieClip?

Jun 20, 2009

Is there a way to set the swf to scale apart from one MovieClip? I have a bitmap pattern which i dont want to change!

View 1 Replies

ActionScript 3.0 :: Set The Swf To Scale Apart From One MovieClip?

Jun 20, 2009

Is there a way to set the swf to scale apart from one MovieClip? I have a bitmap pattern which i dont want to change.

View 1 Replies

IDE :: Scale 9 On Nested Movieclip?

Jan 28, 2010

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.

View 1 Replies

ActionScript 3.0 :: Scale A MovieClip With Tween?

Aug 27, 2008

I tried to scale a MovieClip with the Tween class, using:

xsTween = new
Tween(main_mc,"scaleX",None.easeNone,1,2,2,true);
ysTween = new

[code]......

View 1 Replies

ActionScript 3.0 :: How To Scale And Rotate A Movieclip

Jun 25, 2009

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

[code].....

View 2 Replies

Flash :: Changing Y-scale Of A Movieclip?

May 5, 2011

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.

View 2 Replies

ActionScript 3.0 :: Rotate And Scale A Movieclip?

Jun 26, 2009

I have 2 movieclips (btn_rotate, btn_scale) that are attached to a movieclip (view_mc) that holds an image.

These 2 movieclips are used to rotate and scale the Other movieclip as in the attached picture

I want when the user click and dragg the btn_rotate, btn_scale, the view_mc will be rotated and scaled respectively, in smooth way.

But I can't achieve that.

Here is my code which is wrong:

ActionScript Code:
btn_rotate.addEventListener(MouseEvent.MOUSE_DOWN, on_btn_rotate_down);
btn_rotate.addEventListener(MouseEvent.MOUSE_UP, on_btn_rotate_up);
function on_btn_rotate_down(e:MouseEvent):void

[Code].....

View 1 Replies

ActionScript 3.0 :: Zoom And Scale Movieclip?

Mar 30, 2011

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.

View 3 Replies

ActionScript 3.0 :: MovieClip - Scale Up / Down On Hover

Aug 24, 2011

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:

ActionScript Code:
import flash.events.MouseEvent;
import flash.display.MovieClip;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.events.Event;
[Code] .....

This works great. The only problem I'm having is that if you hover over each of the items quick enough, they don't scale back down.

View 3 Replies

Actionscript 3.0 :: Movieclip Scale Affecting Others

Jan 18, 2010

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).

View 6 Replies

ActionScript 2.0 :: Scale Movieclip On Mouseover?

Sep 12, 2008

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

View 2 Replies

ActionScript 2.0 :: Scale Up MovieClip On KeyPress?

Nov 7, 2008

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]

View 2 Replies

ActionScript 2.0 :: Get Global Scale Of A Movieclip?

Aug 3, 2010

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?

View 5 Replies

ActionScript 2.0 :: Using Scale Function On MovieClip?

Jan 18, 2004

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]

View 1 Replies

ActionScript 3.0 :: Get The Scale Effect Or Z Factor Of A MovieClip?

Apr 14, 2009

I'm using transform.matrix3D and transform.perspectiveProjection.get the scale effect, or z factor of a MovieClip?

var distanceRatio:Number = viewerDistance / (viewerDistance + z);

View 5 Replies

ActionScript 3.0 :: MovieClip Scale On Click Event

May 11, 2010

My_mc is a MovieClip. I want to scale My_mc on click event.

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved