Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
mestdaght #1
height =" 100%" from actionscript
Hi
is there a way to set the height of a component to 100% or xx% like the way
you give an heigt in the mx:tag?
Action script expects an number while the tag works with a string.
I supose that somewhere in the component there must be a setHeight (val:String
) method or so
Regards
TM
mestdaght Guest
-
Remembering the height of the display area when using "fit width"
Hi, I'd like acrobat to remember the height of my display area when I use "fit width", so that I don't have to scroll down each page. Indeed, the... -
xhtml validation of the table tag's "height" element
I'm having a little problem. I create an xhtml compliant document in dreamweaver, yet when i validate it using the xhtml 1.0 transitional validator,... -
CFINPUT type="radio" w/ "value" requires "label"
On a Flash form, when you specify type='radio' and value='whatever', the value of the 'value' attribute will be displayed as a label if no 'label'... -
Can actionscript change a "Button's" "Behavior"?
While a movie is playing in "level 0" a button is pressed to launch another movie in "level 1". Is there a way to change the button that was pressed... -
Changing the "frame rate" in actionScript
Nope. The playback framerate is fixed. -- Shane Elliott www.timberfish.com www.friesontheside.com "David"... -
Chris Falzone #2
Re: height =" 100%" from actionscript
mestdaght wrote:I believe you just:> Hi
> is there a way to set the height of a component to 100% or xx% like the way
> you give an heigt in the mx:tag?
> Action script expects an number while the tag works with a string.
> I supose that somewhere in the component there must be a setHeight (val:String
> ) method or so
>
> Regards
> TM
myComp.height="100%";
but if that doesn't work, you could the top and bottom properties to 0:
myComp.top=0;
myComp.bottom=0;
Chris Falzone Guest
-
justin_pante #3
Re: height =" 100%" from actionscript
Hey TM,
if you want the equivilent of height="100%" in actionscript you use the
attribute called
percentHeight (percentWidth for width)
percentHeight is typed as a number so if you wanted 100% the code would
be as follows
yourComponent.percentHeight = 100;
Cheers,
Justin
justin_pante Guest



Reply With Quote

