Hi there,
is it possible to get the height of a layer, that has no height set specifically?
For example I have a layer like this:
Code
<layer
name="contactinfo"
type="text"
align="leftbottom"
x="20"
y="20"
html="Some Content Text[br /]Even More Content Text"
css="color:#fff;font-size:14px;"
vcenter="true"
padding="12"
bg="false"
bgcolor="0x000000"
bgalpha="0.25"
bgborder="3 0xFFFFFF 0.5"
bgroundedge="5"
mergedalpha="true"
keep="true"
zorder="3"
width="200"
onloaded="copy(abc_height, layer[contactinfo].pixelheight); trace('Contact Height ', get(abc_height));"
/>
Alles anzeigen
My onloaded code always returns 0. When a height is set it returns the set height but not dynamically.
Is there a way to achieve this?
Best Regards
Richard