I'm creating a layer type="container" with images inside, and the width varies according to viewing (landscape or portrait).
Code
<layer name="ambientes01" keep="true" type="container" align="centertop" width="100%" height="100%" y="90" bgcolor="0xffffff" bgalpha="1" handcursor="false" zorder="50" >
<layer name="scrollarea" url="%SWFPATH%/plugins/scrollarea.swf" alturl="%SWFPATH%/plugins/scrollarea.js" align="centertop" width="100%" height="2000" direction="v" onloaded="setcenter(0,0);" >
<layer name="fotos01" type="image" url="thumbs/01.jpg" align="centertop" x="0" y="4" width="99%" height="prop" zorder="51" >
<layer name="barra01" keep="true" type="container" bgcolor="0x000000" bgalpha="0.7" align="centerbottom" x="0" y="0" width="100%" height="25%" visible="true" zorder="53" >
<layer name="nomes01" style="button33" align="leftcenter" x="10%" y="0" html="data:amb01" zorder="54" />
</layer> </layer>
<layer name="fotos02" type="image" url="thumbs/02.jpg" align="centertop" x="0" y="?????" width="99%" height="prop" zorder="51" >
<layer name="barra02" keep="true" type="container" bgcolor="0x000000" bgalpha="0.7" align="centerbottom" x="0" y="0" width="100%" height="25%" visible="true" zorder="53" >
<layer name="nomes02" style="button33" align="leftcenter" x="10%" y="0" html="data:amb02" zorder="54" />
</layer> </layer>
<layer name="fotos03" type="image" url="thumbs/03.jpg" align="centertop" x="0" y="?????" width="99%" height="prop" zorder="51" >
<layer name="barra03" keep="true" type="container" bgcolor="0x000000" bgalpha="0.7" align="centerbottom" x="0" y="0" width="100%" height="25%" visible="true" zorder="53" >
<layer name="nomes03" style="button33" align="leftcenter" x="10%" y="0" html="data:amb03" zorder="54" />
</layer> </layer>
<layer name="fotos04" type="image" url="thumbs/04.jpg" align="centertop" x="0" y="?????" width="99%" height="prop" zorder="51" >
<layer name="barra04" keep="true" type="container" bgcolor="0x000000" bgalpha="0.7" align="centerbottom" x="0" y="0" width="100%" height="25%" visible="true" zorder="53" >
<layer name="nomes04" style="button33" align="leftcenter" x="10%" y="0" html="data:amb04" zorder="54" />
</layer> </layer>
</layer>
</layer>
Display More
How do I assign a variable value to "Y"?
It would be possible to calculate the width size of the previous image and add the next image layer after 10px?
For each image appears below the previous image
Thank you for your help