height =" 100%" from actionscript

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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,...
    3. 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'...
    4. 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...
    5. Changing the "frame rate" in actionScript
      Nope. The playback framerate is fixed. -- Shane Elliott www.timberfish.com www.friesontheside.com "David"...
  3. #2

    Default Re: height =" 100%" from actionscript


    mestdaght wrote:
    > 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
    I believe you just:
    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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139