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


Advertisements:










Actionscript 3 :: Change The Height And Width Of Swf?


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)]


View 1 Replies (Posted: Apr 11 at 12:35)

Sponsored Links:

Related Forum Messages For Flash category:
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
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
Flash :: Change Width / Height Of SWF?
I'm trying to edit an HTML that uses swfobject to load a flash file.

What I'm trying to do is to reduce the size of the SWF file.

I've tried editing the height and width parameter within the swfobject(), but that didn't work.

I tried reducing the width height in the HTML css, but that also didn't work..

How can I pass a 'width' or a 'height' parameter to the swfobject so it will actually load the swf in a smaller or 'zoomed out' way?

Posted: Jul 26 11 at 11:39

View 2 Replies!   View Related
ActionScript 2.0 :: Change Width And Height Of Movieclip?
I'm making a program like roomplanner at [url]..

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.

Posted: 03-19-2000, 04:22 PM

View 4 Replies!   View Related
Change Default Width And Height Of Dropdownlist?
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)

Posted: Apr 19 11 at 11:02

View 6 Replies!   View Related
ActionScript 3.0 :: Change Width And Height For MovieClip?
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?

2) Why is it so hard to do this in Flash/AS3?

Posted: 08-13-2010, 10:05 PM

View 2 Replies!   View Related
ActionScript 2.0 :: Change The MovieClip Height And Width?
I use FlashMX 2004. how to change the width and height of the MovieClip when it loads to the stage. I used the following method

instanceName._height=value
instanceName._width=value

but when I do like this movie does not load. when I do this method to vary x and y position of the movie it works.

Posted: August 18th, 2008

View 1 Replies!   View Related
ActionScript 3.0 :: Specify/change The Height And Width Of An Image?
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.

Posted: August 20th, 2010

View 5 Replies!   View Related
ActionScript 2.0 :: Change Movie Width And Height?
How do you change movie width and height using actionscript? (Without changing the size of everything else.)

Posted: March 25th, 2005

View 5 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 3.0 :: Changing Width Of Sprite Seems To Change Height Too?
Here is some code I have.

[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.

Posted: Feb 5, 2009 5:38 PM

View 1 Replies!   View Related
ActionScript 3.0 :: Dynamically Change Stage Width & Height?
How to Change Stage properties(width,height,bitrate,color......etc) in dynamically...?

Posted: May 13, 2010 6:56 AM

View 1 Replies!   View Related
Actionscript 3 :: Flex - Dynamic Width/height Change
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?

Posted: Aug 29 10 at 17:41

View 1 Replies!   View Related
Flex :: Detect Screen Width/height Change?
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.

Posted: Dec 2 10 at 19:06

View 3 Replies!   View Related
Actionscript 2 :: Change The Width And Height Of Textfield In Flash?
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.

Posted: Oct 7 11 at 20:43

View 1 Replies!   View Related
ActionScript 3.0 :: Changing Width Of Sprite Also Seems To Change It's Height?
[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.

Posted: 02-05-2009, 11:24 PM

View 1 Replies!   View Related
ActionScript 2.0 :: Change The Height And/or Width Of An MC After It Loaded An Image (xml)?
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??

Posted: August 2nd, 2006

View 3 Replies!   View Related
ActionScript 2.0 :: Embed An Image And Change Width And Height?
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]...

Posted: September 10th, 2006

View 1 Replies!   View Related
ActionScript 3.0 :: Change Swf Height And Width According To Content Size
I've implemented a video player to integrate into my Drupal website.

I would like to assign different width and height size to my swf according to the videos sizes.

How can I do it ? Should i pass back values from Flash app with an External Call ?

Can I retrieve the height and width of the video before to pass it to flash app, so I can set the html wrapper parameters in advance ?

Posted: April 13th, 2010

View 3 Replies!   View Related
ActionScript 1/2 :: Dynamically Change Width And Height Of Video Component?
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.

Posted: May 29, 2009 7:25 AM

View 4 Replies!   View Related
Actionscript 3 :: Can't Change Width And Height Of An Empty Display Object
In the documentation for DisplayObject, it states that the width and height of the DisplayObject can not be changed if it is empty. Why is this restriction necessary? In every other framework I have used, you can resize containers that are empty.

Posted: Aug 12 10 at 3:59

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