Hi,
In my recent project I need 2 similar plugins to resize/tween the same way. The first one is floorplan, which is made of 2 layers - bakckground image that makes a frame, and the floorplan itself. This combination works - tweens/resizes exactly as I need. Both elements - floorplan and its frame tween/resize corretly - floorplan is perfectly aligned inside the frame all the time.
Then I have a combination of a background image used as a frame, and a scrollable texfield plugin. And I am not able to set it to work as I need. When the pano loads, then il is lined up OK. When I click on the textfield, both elements resize/tween but the alignment of texfield is offset - it is not inside the frame. And I need it to be aligned the same way as floorplan is.
Here you can check it yourself:
http://www.3dpanoramy.sk/pokus/vstupna_hala.html
The code of the 2 problematic elements is here:
<plugin name="info_pozadie"
url="foto/info_pozadie.png"
zorder="1"
parent=""
scalechildren=""
align="righttop"
width="200"
height="120"
scale="1"
destwidth="200"
destheight="524"
x="10"
y="150"
destscale="0.2288"
alpha="0.7"
keep="true" />
<plugin name="info_vstup"
parent=""
scalechildren=""
url="plugins/textfield_scrollable.swf"
align="righttop"
x="15"
ox="0"
y="155"
zorder="12"
scale="1"
usecontentsize="true"
alpha="0.5"
width="189"
height="108"
destwidth="189"
destheight="474"
background="true"
backgroundcolor="0xE7E7E7"
onover="tween(alpha, 1.0, 0.2);"
onout="tween(alpha, 0.5, 0.2);"
onclick="switch(destwidth, 577,189); tween(width, $destwidth); tween(plugin[info_pozadie].width, get(destwidth));"
borderwidth="0"
bordercolor="0x000000"
roundedge="0"
selectable="false"
autosize="none"
usecontentsize="true"
css="p{ color: #000000; font-family: Georgia; font-size: 15px ; margin-left: 15px; margin-right: 15px; margin-top: 15px; text-align: justify; text-indent: 20;}
li{color: #000000; font-family: Georgia; font-size: 15px ;}
h2{color: #000000; font-family: Georgia; font-size: 30px; margin-top: 30px; text-align: center;}"
html="
[h2][u]Vstupná hala[/u][/h2][br]
[p]Vstupná hala je vstupnou bránou do ateliérov Mediálneho centra, ktoré je v prevádzke od septembra 2011 a poskytuje svojim špičkovým a profesionálnym vybavením nadštandardné služby študentom a aj obchodným partnerom . [/p][br]
[p]Tento esteticky príťažlivý a príjemný priestor poskytuje:[/p][br]
[li]sedenie pre hostí a študentov[/li]
[li]informačný elektronický box s veľkým displayom a pripojením na internet[/li]
[li]šatňu, kostymérňu a maskérňu[/li]
[li]technický dispečing pre študentov a hostí[/li]
[li]služby recepcie[/li]
[li]Wi-Fi pripojenie na internet pre študentov a hostí[/li]
"
/>
Display More
I have spent a lot of time to find out why it does not work as I need, but I am probably blind and I can't see it.
Any tips, what's wrong?
Thanks, Juraj