ActionScript 3.0 :: ScaleX And ScaleY Tween A Movieclip?

Dec 7, 2009

I am trying to scaleX and scaleY tween a movieclip. the problem im having is instead of growing frrom the centre of my movieclip, it seems to be scaling from the top left hand corner.

[Code]...

View 2 Replies


Similar Posts:


ActionScript 3.0 :: ScaleX, ScaleY Tween On Imported File?

Mar 1, 2010

I'm using a tween on an imported file on MOUSE_OVER and MOUSE_OUT that will scale it X/Y up by 1.2. The problem is that the scaling starts in the upper left hand corner and moves out from that point. I want the scaling to start from the center.

Code:
new Tween(clipT,"scaleX",Elastic.easeIn,this.scaleX,1.2,.5,true);
new Tween(clipT,"scaleY",Elastic.easeIn,this.scaleY,1.2,.5,true);

View 13 Replies

IDE :: Mouse_OVER - ScaleX - ScaleY - Prefecture_mc:scaleY=1.2; Is Ignored

Mar 16, 2009

I am trying to create a Japanese map where on mouse over prefectures (states) would zoom in by some 1.2. If I make every prefecture_mc as a separate layer, then they scale on under another which, when I create all 47 prefectures within one layer, then prefecture_mc:scaleY=1.2; is ignored. It was simple in AS2. besides it was scaling from the center

View 1 Replies

Flash :: Positioning Objects Relative To MovieClip That Has ScaleX And ScaleY Changed

Sep 23, 2010

I have one Sprite which acts as a container for two other Sprites. One has a picture the other has a series of hotspots.

If i change the scaleX and scaleY of the picture, the hotspots don't line up anymore. Do you know the correct equation so that any scale i set will always make the hotspots appear at the right place?

I'm trying stuff like this:

hotspot.x *= scaleFactor;
hotspot.y *= scaleFactor;

but i can't quite sort it.

View 1 Replies

IDE :: Mouse_OVER ScaleX ScaleY?

Mar 16, 2009

I am trying to create a Japanese map where on mouse over prefectures (states) would zoom in by some 1.2.If I make every prefecture_mc as a separate layer, then they scale on under another which, my friends is not good looking behaviour . when I create all 47 prefectures within one layer, then prefecture_mc:scaleY=1.2; is ignored. It was simple in AS2 besides it was scaling from the center

View 3 Replies

ActionScript 3.0 :: What Do ScaleX / ScaleY / RotationX / And RotationY Do

Aug 2, 2009

What do scaleX, scaleY, rotationX, and rotationY do?I'd like to test it out myself but I'm completely new to Flash CS4 and I don't know how to control these values outside of ActionScript

View 3 Replies

Flash :: How Does ScaleX/scaleY Work On Bitmap

Jan 26, 2010

I'm using a Bitmap cache that stores down a few Bitmaps. I called scaleX/scaleY on some of them, but the next time I retrieve from the cache, the Bitmap is screwed up. How does scaleX/scaleY work with Bitmap?

View 1 Replies

ActionScript 3.0 :: ScaleY - Cannot Create Property ScaleX On Number

Aug 15, 2009

I'm getting the following error when I try to scale a movie clip .... PHP Code: Cannot create property scaleX on Number.

View 2 Replies

Actionscript 3.0 :: Difference Between Width And ScaleX Or Height And ScaleY?

Feb 27, 2009

i want to know what is difference between width and scaleX or height and ScaleY ..? i search that in internet but i cudnt found good explanation

View 2 Replies

Actionscript 3 :: Why Does Setting Different ScaleX And ScaleY For Textfield Distorts The Text

Jul 8, 2011

i have a textField wherein i uses embedded fonts, the problem is when i change its size and i do not set the SAME scaleX and scaleY value, it seems to compress the letters inside it when i make it smaller, and stretch the text when i make it bigger... i tried using width and height values (instead of scaleX and scaleY but its the same result)... it seems that the embedded fonts are maintaining some kind of aspect ratio or whatever, and again this only happens when embedFonts is set to true

View 2 Replies

Flex :: Does The ScaleX ScaleY Makes The Width And Height Change

Aug 31, 2011

Am working in flex 4 the sample mxml is

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"

[code]....

on the perpendicular clicks it shows as like the second click. does the scaleX scaleY affects the width height?

View 2 Replies

Flex :: Changing ScaleX/scaleY On Parent Scales The Children But Doesn't Update Height/width Property?

Nov 23, 2010

I have created a custom component - MyImage - that has two children including a Bitmap as well as a Sprite.My display object hierarchy is as follows -

mx:Canvas
view:MyImage
mx:Bitmap

[code].....

View 1 Replies

ActionScript 3.0 :: Tween That Moves A Progress Bar Along The X Using ScaleX

Jul 22, 2009

i have a tween that moves a progress bar along the x using scaleX but when the user presses a button i want the progress bar to scaleX -= 0.2 but when i do this it scales to taht size but immediatly jumps back to where it was in the tweener tween.

View 1 Replies

ActionScript 3.0 :: ScaleX Tween Class From Center Point

Dec 9, 2010

Is there a way to use the scaleX and scaleY property in conjunction with the Tween class to scale from the center?ActionScript Code:[code]above unfortunately only scales from top left. This is not a class I can go in and move all the content by hand (so that the registration point is in middle) as it's all dynamic. I've looked al over but none seem to make use of the Tween class.

View 8 Replies

ActionScript 3.0 :: Flash MovieClip ScaleX Not Scaling?

Apr 2, 2012

Flash MovieClip scaleX not Scaling?

View 1 Replies

Scaling Onstage MovieClip With "scaleX" Breaks Timeline Animation?

Nov 3, 2009

I'm scaling onstage MovieClips via AS properties "scaleX" or "scaleY", which kills any kind of animation the clips have within their container MovieClip, be it Classic or Motion Tweens. When I don't scale the MovieClips, they animate fine. I'm able to tell the clips to "gotoAndStop" on their own internal frames, and that doesn't affect their animation within their container clip. I'm referencing the clips via AS w/ their instance names defined in the IDE. I've also tried different clips and recreated them, getting the same behavior.

Is it possible to scale a clip via AS and still have it animate within its container timeline? Does applying an AS property to an onstage instance somehow dissassociate it from other timeline properties?

View 2 Replies

Flash :: Scaling Onstage MovieClip With "scaleX" Breaks Timeline Animation?

Nov 3, 2009

I'm scaling onstage MovieClips via AS properties "scaleX" or "scaleY", which kills any kind of animation the clips have within their container MovieClip, be it Classic or Motion Tweens. When I don't scale the MovieClips, they animate fine. I'm able to tell the clips to "gotoAndStop" on their own internal frames, and that doesn't affect their animation within their container clip. I'm referencing the clips via AS w/ their instance names defined in the IDE. I've also tried different clips and recreated them, getting the same behavior.

Is it possible to scale a clip via AS and still have it animate within its container timeline?

Does applying an AS property to an onstage instance somehow dissassociate it from other timeline properties?

View 1 Replies

ActionScript 3.0 :: MovieClip Button: Shape Tween Vs Motion Tween

May 1, 2009

my movieclip button was working perfectly as a motion tween. Can you use shape tweens as movie clip buttons? I just made that change, and kept my code:

[Code]....

View 1 Replies

ActionScript 3.0 :: Tween Movieclip From Current Position After Previous Tween

Mar 17, 2011

I am working on to slide a movieclip across the stage.The movie clip is five times the width of the stage and I am using the Tween  Class to move it across the stage when a button is pressed.The interaction I want is that when the button is pressed the movie clip moves a certain amount.If the button is pressed again it moves further.The script I have come up with though is taking the movieclip back to the original position of the movieclip and then moving it as opposed to moving it from the position it reached after the first button click.I have tried a few things but nothing is working.The script I am using at present is:[code]

View 5 Replies

ActionScript 3.0 :: Delay A Tween - Animate The 2nd Tween After 3 Seconds When 1st Tween Stops

Nov 1, 2009

import fl.transitions.Tween;
import fl.transitions.easing.*;
var homemanTween:Tween = new Tween(homeman_mc, "x", Elastic.easeOut, 1000, 50, 3, true);//frist tween
var adobeTween:Tween = new Tween(adobe_mc, "alpha", Regular.easeOut, 0, 1, 3, true);//second tween

how can I animate the 2nd tween after 3 seconds when 1st tween stops.

View 9 Replies

ActionScript 3.0 :: ScaleX Won't Size 1 To 1.01

Jan 6, 2010

I'm probably missing something very basic but when I scaleX and scaleY 1 to 1.01, it sizes much larger than 1% and won't scale bigger by any smaller increments.

View 5 Replies

ActionScript 3.0 :: Make ScaleX 1 Or -1 At Random?

Mar 25, 2009

I've tried:

myratarray[count].scaleX=1|-1

is there an equation that only equals 1 or -1 that i need to know? I just need the array objects to move right or left at random...

View 5 Replies

ActionScript 3.0 :: 'scaleX' Is Moving The Object And 'x' Does Nothing?

Nov 3, 2010

Im trying to get a shape i have created to 'grow' and 'shrink as it enters different frames. Ive imported tweenClasses and i think i have everything done properly, only the scaleX and scaleY properties seem to change the position of the shape as well as its size, so instead of it just growing, it moves from the side of the stage toward the centre while growing. Out of curiosty, i decided to try altering just the 'x' and 'y' properties but they dont seem to do anything. heres the code i have:

Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
var infoBox:Shape = new Shape();

[Code]....

View 4 Replies

ActionScript 3.0 :: TextFields Not Responding To ScaleX

Mar 4, 2010

I want to scale the Text in a TextField to 80% width. Problem seems to be that TextFields don't respond to ScaleX. and ScaleY uniformly scales the whole TextField. Does anyone know how I can accomplish scaling the text to 80% width? And I then need to use that TextField as a Mask for a gradient (I know how to do that), so the route of using a TextBlock doesn't work.

View 4 Replies

ActionScript 3.0 :: Flip Horizontal - ScaleX ?

Jul 26, 2009

I am developing a fishing game and I have inside my fla file a movieclip of a pirate ship, one of the bonuses of the game. In certain parts of the game I have to flip the ship horizontally because it depends on the player that he belongs. He can be on the left side or right side of the screen. I have read that to flip a movieclip horizontally the command is:

Code:
mc.scaleX *= -1;

In fact, this command worked for me with a static movieclip that I drew.But with the pirate ship, this line of command makes it disappear. When I remove the line, the ship is in the right place and behaves as it has to behave but is turning to the opposite side.Does it have to do with the fact that the movieclip contains animations?Another solution that I've tried is to flip everything but because there are a lot of keyframes and layers, it is impossible to simply click on modify->flip horizontal. The ship moves with tweens inside the movieclip, so I would have to rebuild all the animations.

View 2 Replies

ActionScript 3.0 :: ScaleX Vs Manual Scaling On Android

Nov 2, 2011

When I set the scaleX, it smooths. But this is not as efficient as redrawing the image (at least that's what I've been led to believe). But, scaling the image manually doesn't seem to smooth. Can someone tell me why. I'm using Flex and I add the image directly to a Group, so I have to wrap it in a UIComponent. Oh, and "this" refers to the Spark View component.[code]

View 1 Replies

Professional :: Tween From One MovieClip To Another?

Jan 14, 2010

As the title implies, I'm trying to use ActionScript 3 to tween from one movieclip to another based on an external event.I'm currently using two "Tween" objects to adjust alpha values. The first tweens-out the previous movieclip, and the second tweens-in the current movieclip. Code follows, with headers included for completeness:

// headers
import fl.transitions.Tween; import fl.transitions.easing.*;
// tweens

[code].....

View 1 Replies

AS3 :: Reloading A Tween Movieclip

Jun 16, 2011

URL...Once you get to my portfolio menu homepage, click on Print design. Everything there loads fine.The trouble is going back to the portfolio movieclip and having it display those menu buttons again.As you can see, if you try to click the view portfolio button at the top, it loads that movieclip to wherever you left off at.Basically, my question is: How can I have my "view portfolio" button reload/refresh the movieclip (page1) from the beginning in my pagecontainer_mc?

-page1 is a movieclip that shows my portfolio buttons.

-page2 is a movieclip that show the "about me" section.

-pagecontainer_mc is an empty movieclip that loads page1 or page2.[code]

View 5 Replies

Actionscript 3 :: How Does Flash Pass A ScaleX Event Down To It's Children

Apr 12, 2011

how a ScaleX/ScaleY event propagates down to the children of display object? I want to step in at some point and "re-scale" one of the children of a display object that has just been scaled with it's parent. I can't find any event that is fired, and ScaleX and width setters don't seem to be getting called on the child objects. I'm working on an ActionScript Project (not Flex) in FlashBuilder.

View 2 Replies

ActionScript 3.0 :: Setting Width And Height Not Working But ScaleX And Y Are?

Sep 28, 2009

let me know what i am doing wrong here. this DOES NOT WORK.

ActionScript Code:
//add image
imageLoader = new Loader();

[code]......

View 2 Replies







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