SOLVED - Why is not possible to get height attribute from textfield?

  • Hi all,

    Thank you very much in advance for the help.

    Sorry for not supply an example but the code it's really messy and I think it will confuse people rather than help. But I'll try my best to explain the issue.


    I'm trying to stack a series of textfield plugins vertically.
    I managed to automate the process using a function which creates several plugins and spaces them from the one above. Superb!
    But when I added some content, disaster happened! Because the amount of text is different for every textfield, each height is different, and as a result it mess the space between plugins.

    I thought the problem had an easy solution. Space the plugins depending on the height of the textfield plugins... but when I tried to get the height it returned null.

    So the question is: how can I get the textfiled height attribute?

    Just to let you know, the textfiled plugins have the following attributes (I just put the relevant ones) :

    Code
    set(plugin[get(bullet_point)].align,topleft);  
    set(plugin[get(bullet_point)].autosize,left);  
    set(plugin[get(bullet_point)].height,); 
     set(plugin[get(bullet_point)].wordwrap,true);


    Remove the height line doesn't make any difference.

    Code
    trace(get(plugin[get(bullet_point)].height));

    It returns null.

    Any ideas?

    Thank you!!!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!