I have objects placed on the screen using x/y coordinates. I want a way to update that based on changes in Screen Width/Height. So if used re-sized browser window x/y should change. How do I cick off a function every time the screen is re-sized.
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?
Is it possible to dynamically (not in the project's options) change the dimensions of the stage by using ActionScript 3? I'd want to create a 400x300px loader, but I also want it to load animations that have bigger or smaller dimensions. I would then change the width and height of the loader to make the loaded animations fit well. Is there any way to do that?
I have a flash app that contains a lot of data. Part of it has a video. I want to have an option to expand just the video to full screen mode. I have this working now, however it scales it proportionally based on the size of my flash app. Instead of doing that, how can I expand it to be 100% of the screen width?
Code: function goFullScreen(base):void { if (stage.displayState == StageDisplayState.NORMAL)
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?
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?
Is there a nice and not much processor consuming way to move all TitleWindow instances within the application visible area when the application been scaled - change it's width or height ?
I am loading an external swf file using the following code: //add close button var reqButton:URLRequest = new URLRequest(btn_close); var loader2:Loader = new Loader(); loader2.load(reqButton); addChild(loader2); [Code] .....
Once the loader loads my image, and I click on it, nothing is happening. Am I supposed to be adding the EventListener to the loader or something else? How can I detect the height and width of the swf file in the loader?
The problem that I'm facing is in regards to the width of a sliding menu that I've created. The menu slides based on mouse x position and width of the movie. I would like the menu to fit to the entire screen regardless of the users resolution. I wanted to know if there's a way to detect a users screen width and then adjust the variable for screen width within my actionscript.
I have published my movie to take up 100% of the width and height of the screen.It takes up the entire height of the screen, but there is about a 10 pixel gap on the left and right side of the movie.
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 am trying to add the height and width of swf dynamically but i cannot change stage.stageWidth and stage.stageHeight and also am tring with another method also.
[SWF( width="900", height="400")]
Its working fine but while adding the value dynamically it cannot change.
var hei:Number=500; var wid:Number=300; [SWF( width=wid, height=hei)]
I need to know how to change the width and the height of the movie clip. I know how to scale x and y but that doesn�t work in my case because i have for example an object which height is 75 pixels and width is 137 pixels. X scale and Y scale would work if my objects were 100 pixels width and 100 pixels height.
I want a dropdownlist that is wide enough to accommodate the larger item in the dropdown in display area of the main control.(.i.e. dropdownlist with the functionality of MX Combobox)
I know there have been several similar posts but of those I've read, there hasn't been an easy straight forward solution that will work dynamically. The solutions posted have ranged from
super.width = wvalue;
super.height = hvalue;
which I did not get to work, and it seemed from the response to the suggestion neither could the person who originally asked for help, to suggestions about using scale, all the way to having to create an event handler that will get notified after the load, which I guess would work once but wouldn't work dynamically.
Here is the scenario -
I want to change width and height for a MovieClip, but I dont want to scale it, (its more like cropping the MovieClip, not shrinking or stretching) and I want to do this several times not just after the load of the MovieClip.
So my questions are:
1) Is there anyway to do this that really works, that hopefully isn't totally convoluted?
Is there a way to specify/change the height and width of an image loaded from an xml file that will be placed within an empty movieclip? The movieclip will resize with the webpage, and what I want to do is make sure the images resize proportionally with the movieclip, but I can't seem to figure it out.
[code] _buttonUnderline = new Sprite(); with(_buttonUnderline.graphics) { [/code].....
When the Tween takes place though it not only changes the width, it changes the height as if it were scaling it up in both directions. Why does this behavior take place? And how can I get it so that only the width changes? I have also tried using scaleX as the property but it does the same thing.
I have a Flash file, which has to be liquid. I have a header, a footer and a center section, which all are percentage scalable. My center section has a MovieClip called info_txt, and I'm trying to make it high 20% of the center_mc's height. I do this, but I also load a text in that field (info_txt) with XML, and when the text (xml) is loaded and placed in the textfield it doesn't go multiline, but stays nowrap.
[code]When the Tween takes place though it not only changes the width, it changes the height as if it were scaling it up in both directions. Why does this behavior take place? And how can I get it so that only the width changes? I have also tried using scaleX as the property but it does the same thing.
Is it possible to change the height and/or width of an MC after it loaded an image (xml)?
I made an upload page for images and a xml file to read the records from the database. So any image size is possible. but it must be like 100x100 pixels (just an avatar kind of size).
Do i need to do that with php or is it possible with A.S. 2??
I have created a Movie Clip and named it member_image and have put in the actionscript to load an external Image. that works fine, but i cannot resize that image to fit in the Movie Clip area. The width and Height of "member_image" is 215 X 160. I am trying to be able to load any image into that area and size it to the same as the movie clip.[code]...
Already I have one video player and it's width and height are set as 450 and 370 respectively. It's set by statically on its property field. Now I want to change the width and height of video component according to the specified value. Also the control box should be scale accordingly. But when i tried to change the video component's width and height while loading, it's not getting changed.