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:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<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));"
/>
|
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