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


Similar Posts:


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

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 2.0 :: Setting / Getting FLV Height And Width

Feb 19, 2008

Is there a way to retrieve and set the height and width of an FLV/Playback object via actionscript? I was hoping I could interact with the values via simple _height and _width properties, but that seems to offer all kinds of unexpected results in Flash (like reporting width in the thousands when the width is actually under 300, etc... height seems much closer to reality, but still off.)

View 1 Replies

ActionScript 2.0 :: Setting Browser Width/height?

Apr 9, 2007

I built out a scrolling Flash application that currently resizes the browser to whatever the full-screen res of the user's monitor is... I'm kind of indifferent about it.Anyhow, I'd like to be able to set the browser size to a specific height / width instead of taking up 100% of the user's screen real-estate.

View 1 Replies

ActionScript 3.0 :: Setting Width And Height Of External Swf?

Oct 9, 2009

How can I set the width and height of a external swf when it is loaded in to the holder?

View 1 Replies

Actionscript 3 :: Setting Width And Height Of A Sprite Container?

Feb 27, 2011

I know this might seem like such an easy issue and I can't understand why I cant figure it out but none the less I can't and I've just about given up. Here's the issue:

I have a sprite container which is supposed to hold a bunch of thumbnails to videos. I am able to populate the container with all the videos and the whole works but obviously if I add a bunch of videos its going to exceed the size of the flash document so I need to add a UIScrollBar (which I did) now the scrollbars target is set to the container but isnt allowing me to scroll and if im correct this is because the container doesnt have a set height. So Im trying to set the height of this container but the second I try setting the height or even width all my thumbnails I used to be able to see are gone! It's as if the size is being set to 0 when its not I've even tried to set it to a specified size just to test and nothing.

[Code]...

View 1 Replies

ActionScript 3 :: Setting Windows Initial Width And Height?

Jan 18, 2012

I am working on a Flex mobile application and I want to set initial windows width and height in as3. When my app runs on Desktop, I want to detect screen resolution and set it to windows bounds, something like that
this.width = Capabilities.screenresolutionX
this.height = Capabilities.screenresolutionY

View 1 Replies

ActionScript 3.0 :: Setting The Height And Width Of Dynamic Text?

Feb 5, 2009

I am using this script (3.0) to set the text of a dynamic text field...

stop();
my_Btn.addEventListener(MouseEvent.MOUSE_OVER, onMouseover);
function onMouseover(event:MouseEvent):void

[Code].....

How do I set the height and width of the text?

View 1 Replies

ActionScript 3.0 :: Setting Width And Height Properties Of A Loader

Feb 19, 2009

I want to bring an image in from a folder and then display this image in a specifically sized box.[code]So obviously I want the image loaded into a 200 x 200 box (the image is 1200x1200) and scaled proportionately. What do I need to do? The box won't resize at all.

View 6 Replies

ActionScript 3.0 :: Load SWF Into Level And Setting Height/width/location?

May 30, 2011

I gave up on Flash heavy coding when it switched to AS3. Always thought it was less intuitive, longer, and a brand new language and I got tired of trying to keep up when most of my clients did not want to pay for a full flash site. But I got this client...
 
Here's the problem, I can load a swf into my main stage or into an MC , but I cannot find out anywhere how to set parameters or load into a level so it doesn't replace the current material or fix to a size that doesn't block my other material.[code]...

View 5 Replies

Flex :: Resizing A Spark Group By Setting Width And Height?

Apr 28, 2011

I have been given the seemingly simply task of resizing a Group container by setting width and height explicitly in response to user interaction. However, changing these values have no effect on the size of the container at all. Changing scaleX and/or scaleY will change the size of the container just fine, but this is not the behavior I am after.I have tried overriding updateDisplayList() to set a specific width and height, but this has not yielded the desired results.

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

[code]......

View 2 Replies

ActionScript 2.0 :: Setting An Empty Movieclip Default Width / Height

Aug 20, 2006

I have a movieclip with the instance name of "container_mc" that I am loading a external swf file into.When I trace(container_mc._width) after the preload it returns 0.Is there any way to tell the movieclip to stay at a width of 760px and a height of 460px regardless of the content that is loaded?Reason being, I then have a function that positions the container_mc movieclip in the center of the stage based on the Stage.width/height..The only way I have been able to get this to work thus far is to have a 760px by 460px square shape, position the movieclip.. then load the content to replace the square shape however I'd rather be able to default everything without having to do that.

View 3 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 3.0 :: Width And Height Tweens Not Working?

Dec 13, 2009

The object is then tweened starting from a large number and going to a small number.  Except my tweens aren't working.  From the trace statements, my objects are shown to end up being to x=-20.55 and y=-107373766.65.
 
My code:
  
package {
import flash.display.*;
import flash.events.*;
import flash.utils.Timer;

[code]....

View 7 Replies

Flash 10 :: Bitmaps Less Then 4px In Width / Height Not Working?

Aug 23, 2010

I've come to notice recently while using bitmap objects in the Flash CS5 (maybe before as well) authoring environment that are less than 4 pixels in width and/or height that they are treated as though they are 4 pixels wide/tall. Many of the bitmaps I use are 1 px wide in one direction or the other, and they are stretched to fill an area. Lets say I have a bitmap that is 20px tall and 1 px wide, and I stretch it to be 100px wide. The "hit area" of the object, or parent objects that contain it, is 400 px wide. So even if you click a significant distance away from the object, it is still selected, and anything underneath that invisible area can't be selected.

I've also noticed that when exporting a frame as an image, the smallest the width/height may be is 4px, and when I click the Edit button in the Properties panel with a Bitmap instance selected, it opens up in Photoshop CS5 and is 4 pixels wide! I'm wondering if for some reason Flash can't handle bitmaps less than 4 pixels in width/height and is treating it as if it IS 4 pixels wide, possibly even adding 3 extra columns of transparent pixels, because if I do the same thing manually, naturally it acts identical to the way Flash treats the 1px wide version. But why? Why can't Flash handle small bitmaps? Seems to me that's more efficient than quadrupling the amount of memory required.

View 0 Replies

ActionScript 3.0 :: HTML 100% Width And Height Not Working?

Nov 30, 2009

I would like my website [URL] to be fullscreen and I've found this code to make it.But I am having problems with Firefox - the screen doesn't load anything, it is just a black screen. And in some IE the swf appears in a little square (very small) and not the size it was supposed to be in a maximized screen. The compatibility button on IE8 fixes it, but not everybody knows about this button..

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

[code]....

View 1 Replies

ActionScript 3.0 :: Why Aren't Width & Height Tweens Working

Dec 13, 2009

An object has been attached. The object is then tweened starting from a large number and going to a small number. Except my tweens aren't working. From the trace statements, my objects are shown to end up being to x=-20.55 and y=-107373766.65.

[Code]...

View 0 Replies

ActionScript 3.0 :: 100% Width And Height Not Working When Compiled With Mxmlc

Jan 30, 2010

I'm compiling for the first time with mxmlc.exe from the command line. The compilation is successful, and the SWF plays if I set specific pixel sizes for width and height in my HTML wrapper. However, if I set the sizes to 100%, the SWF is not loaded (and right-clicking on the page yields the regular Firefox menu instead of the Flash menu).

Here's my HTML.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

[Code]....

View 1 Replies

ActionScript 2.0 :: Tween Width & Height Simultaneously Not Working?

Nov 10, 2010

Code:
var tween2:Tween = new Tween(_root.img_fake_mc, "_rotation", Strong.easeOut, target._rotation, target._rotation-90, 10, false);

[code].....

View 1 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

Flex :: Width And Height Specified In Percentage Not Working For Children Of A Viewstack

Sep 30, 2011

I have a ViewStack which is dataProvider for a TabBar. There are two VBoxs as children for this ViewStack. It works fine with absolute values for width and height for these VBoxs, but when specified in percentages, the VBox uses all the available space (100%) for any percentage value. find the code and screen shots below.

how can children of a ViewStack be aligned to center? There is no horizontalAlign property for ViewStack and it is not working with horizontalCenter= "0".

Code:

<mx:ViewStack id="viewStack" width="100%" height="100%" selectedIndex="0" horizontalCenter="0" textAlign="center">
<mx:VBox label="Tab 1" width="25%" height="10%" borderThickness="2" borderColor="red"

[Code]....

View 2 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 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

Actionscript :: Flex - Setting ScaleX / Y In Mxml Effect The Components Size

Jan 1, 2010

I'm playing around with the scaleX/Y in the canvas tag and have noticed some strange behaviour. When I set scale in in mxml the width and height of the canvas are adjusted accordingly. For example if I have a canvas like this: <mx:Canvas width="1000" height="1000" scaleX="0.1" scaleY="0.1" />

The canvas now appears on screen to have a width and height of 100 and if inside my creationComplete callback I check the width and height property they are indeed 100. But if I do exactly the same thing except I set the scaleX/Y property from actionscript the canvas on screen appears to have a width and height of 100 as expected, but when I check the width and height property of the canvas they are still at the previous values of 1000.

View 1 Replies

Flex :: Setting Spark List Height To Its Content Height?

Apr 1, 2010

How to set a Spark List height to the height of its content?Tried this:

var lastRow:IVisualElement =
myList.dataGroup.getElementAt(myList.dataGroup.numElements - 1);
myList.height = lastRow.y + lastRow.height;

It works in case of a single item, but lastRow is null in case of more items.

View 5 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







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