Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Advertisements:










Actionscript 3 :: Get Scaled Height And Width?


I have a s:Group with few fixed size components in it, these are lets suppose 200x300, 300x150 etc Now if i resize s:Group with resizeMode=Scale, (scale down). and try to read the scaled down size of these child components but they still has the same old height and width.

how can i get width and height after scaling down the parent group?


View 2 Replies (Posted: Apr 6 11 at 10:09)

Sponsored Links:

Related Forum Messages For Flash category:
ActionScript 3.0 :: Flash Referencing Stage.width/height References Mc.width/height?
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

Posted: July 29th, 2010

View 8 Replies!   View Related
ActionScript 1/2 :: Load External Image Of Different Height & Width Into Same Height And Width
i want to load external images of different height and width into same height and width.

Posted: Jun 12, 2009 4:28 AM

View 3 Replies!   View Related
ActionScript 2.0 :: Load External Image Of Different Height & Width Into Same Height And Width?
i want to load external images of different height and width into same height and width.

Posted: 02-24-2010, 05:28 AM

View 0 Replies!   View Related
Actionscript 2.0 :: Change Width - Height And Width / Height Ration In Flv?
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?

Posted: Fri Mar 25, 2011 11:09 am

View 1 Replies!   View Related
ActionScript 2.0 :: Change Widht, Height And Width/height Ration In An Flv Video File?
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?

Posted: 03-25-2011, 11:12 AM

View 3 Replies!   View Related
Professional :: SimpleButton.width Doesn't Change - Width And Height Remain 0
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?

Posted: Jun 1, 2010 11:49 PM

View 2 Replies!   View Related
100% Width But Not 100% Height?
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.

Posted: Aug 23, 2009 9:04 AM

View 2 Replies!   View Related
AS3 :: Set The Width And Height Of Swf?
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?

Posted: Jun 15 10 at 18:50

View 3 Replies!   View Related
ActionScript 3.0 :: How To Tell Width/height Of .swf
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...

Posted: 12-02-2009, 04:05 PM

View 2 Replies!   View Related
Stage Width And Height Are Both 0?
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.

Posted: 10-11-2010, 11:37 PM

View 1 Replies!   View Related
ActionScript 3.0 :: Height And Width Are 0?
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]....

Posted: Feb 22, 2010 11:35 PM

View 5 Replies!   View Related
Xml :: Can't Set Width And Height To The Backgroundn?
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

Posted: Dec 26 10 at 21:20

View 1 Replies!   View Related
Actionscript 3 :: Get A To Have The Same Width And Height Of B?
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.

Posted: May 21 09 at 13:14

View 2 Replies!   View Related
Set Width And Height To JPlayer?
I am using jPlayer library but i don't know how to set width and height[code]...

Posted: Feb 12 at 12:35

View 4 Replies!   View Related
ActionScript 2.0 :: Can't Get Mc's Width And Height
I'm a student for design and want to build myself a portfolio, showing pictures and being able to jump between fit_to_screen mode to actual_pixel_size mode. The following code is just the beginning.

I've wrote the code mixing some tutorials (sorry, but I didn't find a good way to clean it so it'll be more focused) - I'm a really new about action script.

myFile is a mc waiting for an external parameter run_url - a string contains something like "/projects/illustration/alice_in_wonderland.jpg"

You can see the trace command marked as red. I'd expect it to give me a number of the movie clip's width, yet i get "undefined"

import mx.utils.Delegate;
var streamingID:Number;
var fileLoaded:Boolean;

[Code].....

Posted: October 5th, 2006

View 12 Replies!   View Related
AS3 :: IDE - Changing .swf Width And Height
Is there any possibility to change screen width and height not in Flash ( in Properties ), but in Code [ any AS3 line? ].

Posted: December 13th, 2009

View 1 Replies!   View Related
ActionScript 3.0 :: How To 100% Width/height Air App
I was wondering if there was a way to set an air app to fill 100% width and 100% height of the screen?

I know how to do it on the web by setting swf address parameters to 100% and setting stage.scalemode and stage.align

I am using FDT to publish my air package with an ANT build. So it does not use mxml, just my document .as class.

Posted: December 11th, 2010

View 1 Replies!   View Related
ActionScript 3.0 :: Get Height / Width From Embed?
How can I use the width and height that's set by the object's embed code within my Flash movie?

I've got items that position based on stage height/width. Problem is although the object appears re-sized when you adjust the values in the embed, the stage size obviously does not change.

Ideally I'd like to position and scale objects based on the dimensions provided in the embed.

Posted: 02-19-2009, 06:16 PM

View 1 Replies!   View Related
Set The Movieclip Width And Height With The Button?
i want to zoom the movie clip, for this i have set the movieclip width and height with the button. It is correct or anything els

Posted: 03-18-2010, 03:46 AM

View 2 Replies!   View Related
ActionScript 3.0 :: Get External Swf Width Height?
I'm am trying to load an external swf file using a different swf that is on a different domain. I have noticed that it is possible to use addChild on the external swf, but when I try to get its contents width and height using contentLoaderInfo I get a security sandbox error.it is possible to fix it by usingSecurity.allowDomain("*") andSecurity.allowInsecureDomain("*") in the external file.And now it's get tricky, the external swf file is a file that users upload to my site so I don't have control on the code so I can't add the "allowDomain" part.The second swf (the host file that loads the external file) is a file that I let others to embed on their site.The intresting thing is that when I share the host swf on facebook there is no problem, and I don't even need to add the code for "allowDomain" on the external file.I it makes a different, I use HTTPS protocol to access to the external swf

Posted: Jul 1, 2009 12:46 PM

View 4 Replies!   View Related
Professional :: Element Width Vs Height
I'm writing jsfl script where I'm setting an element width and height. When I go to run the script, my element's width and height are off by what I set it to. For example, I set the width and height to 800, the results I get for width and height are 799.4, 799.0 respectively. I'm not understanding why my element's width and height aren't exactly what I typed in?Btw, I can go into the "size and position" property UI and set them to 800 x 800 and those values stick. It's only when I set the width and height via the element.width and element.height that my values change on me.

Posted: May 1, 2010 9:59 AM

View 4 Replies!   View Related
ActionScript 3.0 :: Set Size (height & Width) 100% For SWF
Here i want to set my SWF heigh and width in 100%.

If i want to increase my height by draging on my SWF corner then automatically the width should change.

So both should be in 100% at any case. how to achieve this.

Posted: Jul 27, 2011 4:56 AM

View 4 Replies!   View Related
Professional :: SWF At 100 % Width And Proportional Height?
I have a SWF that I would like to use in an XHTML 1.0 Strict document.My need is that the flash must:- Be 100% width- Grow / shrink proportionally in height (depending on width)- The flash may not be cropped or distorted- I must be able to to put a div just before the flash- I must be able to place a div right after the flash. The flash should behave just as if you pasted below image in an HTML file:[code].....

Posted: Aug 4, 2011 3:17 AM

View 12 Replies!   View Related
ActionScript 3.0 :: How To Get External SWF Width / Height
I'm am trying to load an external swf file using a different swf that is on a different domain. I have noticed that it is possible to use addChild on the external swf, but when I try to get its contents width and height using contentLoaderInfo I get a security sandbox error. It seems it is possible to fix it by using Security.allowDomain("*") and Security.allowInsecureDomain("*") in the external file. And now it's get tricky, the external swf file is a file that users upload to my site so I don't have control on the code so I can't add the "allowDomain" part.

The second swf (the host file that loads the external file) is a file that I let others to embed on their site. The interesting thing is that when I share the host swf on facebook there is no problem, and I don't even need to add the code for "allowDomain" on the external file. I it makes a different, I use HTTPS protocol to access to the external swf. I tried to load the crossdomain.xml file, but no luck. What can I do? the only data I need to get on the external swf is its width and height to scale it to the host file.

Posted: Aug 4, 2011 2:30 PM

View 9 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved