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


Similar Posts:


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

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

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

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 :: 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

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 :: 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

Actionscript 3 :: Difference Between Sprite.width VS Sprite.scaleX?

Sep 23, 2011

Both of sprite.width and sprite.scaleX can be used for scale a sprite. Is possible sprite.scaleX depends on screen size?

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

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

ActionScript 3.0 :: Flash Referencing Stage.width/height References Mc.width/height?

Jul 29, 2010

I am trying to reference to top level (stage) width and height of the main stage for the placement of something located inside a movieclip on the stage.

My code is:
Code:
my_loader.x = (stage.stageWidth - my_loader.width)/2;
my_loader.y = (stage.stageHeight - my_loader.height)/2;

But this seems to just relate to the width/height of the mc that my_loader is nested in...

I have tried the following and had no luck:

stage.stage.stageWidth
root.stage.stageWidth
parent.stage.stageWidth
MovieClip(root).stage.stageWidth

View 8 Replies

ActionScript 1/2 :: Load External Image Of Different Height & Width Into Same Height And Width

Jun 12, 2009

i want to load external images of different height and width into same height and width.

View 3 Replies

ActionScript 2.0 :: Load External Image Of Different Height & Width Into Same Height And Width?

Feb 24, 2010

i want to load external images of different height and width into same height and width.

View 0 Replies

Actionscript 2.0 :: Change Width - Height And Width / Height Ration In Flv?

Mar 25, 2011

I would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?

View 1 Replies

ActionScript 3.0 :: ScaleX And Width Change, But The Image Stays The Same

Nov 13, 2010

I'm trying to change the size of a 20 pixel by 20 pixel square. I have instances of this same class all throughout my code, and I can change them with scaleX and scaleY, no problem. But these particular instances do not change visually. Using a debugger, I can go in and see that the code is running, their scaleX and width properties are changing to what I'm setting them to. But visually, on the screen, they don't change by one pixel.

View 11 Replies

ActionScript 2.0 :: Change Widht, Height And Width/height Ration In An Flv Video File?

Mar 25, 2011

I would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?

View 3 Replies

Professional :: SimpleButton.width Doesn't Change - Width And Height Remain 0

Jun 1, 2010

I am looking at the SimpleButton entirely wrong. Here's what I'm doing (inside of a MovieClip):

[Code]...

the close_btn.width and height remain 0. Am I supposed to just rely on the DisplayObject members of the SimpleButton completely and ignore width/height/x/y or what?

View 2 Replies

Flex :: What Is The Difference Between Height And MeasuredHeight

Aug 10, 2009

what the difference between height and measuredHeight is in flex?

After reading a few articles on the adobe site, I'm still non the wiser as to when to use which.

View 1 Replies

100% Width But Not 100% Height?

Aug 23, 2009

I have a flash banner graphic that I created at 1000px wide by 420px tall. I want this to be fluid and fill the browser width, so that when the browser is rescaled the swf fills the horizontal space. My problem is that there is content below it that needs to touch it, but the height is trying to fill 100% so it is creating vertical space between the flash content and the div below it.
 
I guess a better way to describe it is that I don't want to define the height I just want the width to be 100%. At 100% height there is unused space so I need to make the height maybe undefined or something smaller then 100%?Also, if you make the browser too small vertically the width will not fill. So I want 100% width regardless of the browser height.

View 2 Replies

AS3 :: Set The Width And Height Of Swf?

Jun 15, 2010

How do I set the width and height of my swf in AS3?

This is my code so far:

package {
import flash.display.Sprite;
public class Game extends Sprite {
}
}

Right now, when loaded it is at some arbitrary default size.

If I can't change the size this way, is there any easy work around that will be consistent?

View 3 Replies

ActionScript 3.0 :: How To Tell Width/height Of .swf

Dec 2, 2009

my .swf goes full screen and changes proportion if it is accessed directly at it's url

[URL]

is it possible to tell how big it currently is? i'd like to reposition some elements accordingly...

View 2 Replies

Stage Width And Height Are Both 0?

Oct 11, 2010

I'm trying to change the position of a movieclip I've added to the stage. When I try to access stage.width or stage.height I get 0. I've tried MovieClip(root).stage, DisplayObject(root).stage, root.stage, stage, and simply width and height. All of these are equal to zero.

View 1 Replies

ActionScript 3.0 :: Height And Width Are 0?

Feb 22, 2010

I want to write a shell that creates instances of an app and scales it down for animating. Well, I created my shell class and instanced the app and set scales for x and y and then I traced the height and width because I wasn't sure what they'd be. I thought they'd be based on the stuff on the stage or whatever, but they both came up zero. So I'm not sure how that works, am I supposed to have set those values?
 
[Code]....

View 5 Replies

Xml :: Can't Set Width And Height To The Backgroundn?

Dec 26, 2010

I have an empty movieclip in the stage that holds a backgroundbg._width = Stage.width;bg._height = Stage.height;the background is loaded from XML and works fine since I'm not set the width and heightbut if I set: bg._width = Stage.width and bg._height = Stage.height

View 1 Replies

Actionscript 3 :: Get A To Have The Same Width And Height Of B?

May 21, 2009

I have two Canvas A and B, A is the child of B.A can be resized by some user actions like adding some UI components to its base.A is bounded by an other Parent canvas B which should show scolling handles if its child A gets too large.I would like A to have the same width and height of B (or really close) while the calculated width and height of A is smaller than those of B.If w or h of A get larger than those of B then A should grow and B will show scrolling.

View 2 Replies

Set Width And Height To JPlayer?

Feb 12, 2012

I am using jPlayer library but i don't know how to set width and height[code]...

View 4 Replies







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