View Full Version : width or heigth > %
pointer
January 18th, 2005, 05:12 AM
Posible to load mc or swf and give a width or height in %?
if yes how?
thnx
scotty
January 18th, 2005, 07:14 AM
Try it _xscale/_yscale?
scotty(-:
pointer
January 25th, 2005, 12:38 PM
ye but is it posible to give him a width in % with it than?
else how.
pou-pou
January 25th, 2005, 02:05 PM
_xscale = 50 aka 50% width of original size
JamesO
January 25th, 2005, 05:51 PM
_root.instanceName.width = 50/2;
For example.
pointer
January 26th, 2005, 01:15 PM
_root.instanceName.width = 50/2;
:?
Man?
that is like _root.instanceName.width = 25; ?
or that is 50% of that mc than.
What if i want to load a movie or swf and want it in 20% Of the browser/stage field!?
JamesO
January 26th, 2005, 01:20 PM
It's just an example of an equation you can use to set width. It would equal a width of 25, yes. To make it a percentage of the stage size, just do the math. To make it a percentage of the browser window's size, check out this tutorial.
http://actionscript.org/tutorials/intermediate/Dynamic_Layout_Control/index.shtml
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.