Hello,
I am using the following script to set up a layer, where my goal is to create a menu.
But I need the text to be responsive.
Could someone help?
<layer name="base-logo" keep="true" type="container" bgcolor="0xFFE5BD" bgalpha="1" bgshadow="0 0 10 0x000000 0.5" align="leftbottom" x="2%" y="0" width="20%" height="16%" state="closed" zorder="120" >
<layer name="logo" type="image" url="logo.png" align="center" x="0" y="0" width="80%" height="prop" onclick="" zorder="121" />
</layer>
<layer name="menu" keep="true" type="container" bgcolor="0xAA303A" bgalpha="0.9" bgshadow="0 0 10 0x000000 0.5" align="leftbottom" x="0" y="0" width="100%" height="80" state="closed" zorder="110" >
<layer name="base01" keep="true" type="container" bgcolor="0xFFE5BD" bgalpha="0" align="left" bgcapture="true" x="24%" y="0" onover="set(layer[over01].alpha, 1); set(layer[menu01].alpha, 0);" onout="set(layer[over01].alpha, 0); set(layer[menu01].alpha, 1);" width="8%" height="80" zorder="120" >
<layer name="menu01" style="button" align="center" x="0" y="0" html="RECEPÇÃO" onclick="fechasubmenu();" alpha="1" zorder="122" />
<layer name="over01" style="button2" align="center" x="0" y="0" html="RECEPÇÃO" onclick="fechasubmenu();" alpha="0" zorder="123" />
</layer>
<layer name="base02" keep="true" type="container" bgcolor="0xSSSSSS" bgalpha="0" align="left" bgcapture="true" x="32%" y="0" onover="set(layer[over02].alpha, 1); set(layer[menu02].alpha, 0);" onout="set(layer[over02].alpha, 0); set(layer[menu02].alpha, 1);" width="8%" height="80" zorder="120" >
<layer name="menu02" style="button" align="center" x="0" y="0" html="CAFÉ" onclick="fechasubmenu();" alpha="1" zorder="122" />
<layer name="over02" style="button2" align="center" x="0" y="0" html="CAFÉ" onclick="fechasubmenu();" alpha="0" zorder="123" />
</layer>
<layer name="base03" keep="true" type="container" bgcolor="0x1515ff" bgalpha="0" align="left" bgcapture="true" x="40%" y="0" onover="set(layer[over03].alpha, 1); set(layer[menu03].alpha, 0);" onout="set(layer[over03].alpha, 0); set(layer[menu03].alpha, 1);" onclick="if(layer[submenu].state == 'closed', action( abresubmenu ) ); " width="10%" height="80" zorder="120" >
<layer name="menu03" style="button" align="center" x="0" y="0" html="ACOMODAÇÕES" onclick="if(layer[submenu].state == 'closed', action( abresubmenu ) ); " alpha="1" zorder="122" />
<layer name="over03" style="button2" align="center" x="0" y="0" html="ACOMODAÇÕES" onclick="if(layer[submenu].state == 'closed', action( abresubmenu ) ); " alpha="0" zorder="123" />
<layer name="over04" style="button4" align="center" x="-5000" y="0" html="ACOMODAÇÕES" onclick="if(layer[submenu].state == 'opened', action( fechasubmenu ) ); " alpha="1" zorder="124" />
</layer>
</layer>
<layer name="submenu" keep="true" type="container" bgcolor="0x595959" bgalpha="0.9" bgshadow="0 0 10 0x000000 0.5" align="leftbottom" x="0" y="80" width="100%" height="0" state="closed" zorder="118" >
<layer name="subbase01" keep="true" type="container" bgcolor="0xFFE5BD" bgalpha="0" align="left" bgcapture="true" x="24%" y="0" onover="set(layer[subover01].alpha, 1); set(layer[submenu01].alpha, 0);" onout="set(layer[subover01].alpha, 0); set(layer[submenu01].alpha, 1);" width="8%" height="80" zorder="120" >
<layer name="submenu01" style="button" align="center" x="0" y="0" html="Apartamento executivo" onclick="" alpha="0" zorder="122" />
<layer name="subover01" style="button3" align="center" x="0" y="0" html="Apartamento executivo" onclick="" alpha="0" zorder="123" />
</layer>
<layer name="subbase02" keep="true" type="container" bgcolor="0xSSSSSS" bgalpha="0" align="left" bgcapture="true" x="32%" y="0" onover="set(layer[subover02].alpha, 1); set(layer[submenu02].alpha, 0);" onout="set(layer[subover02].alpha, 0); set(layer[submenu02].alpha, 1);" width="8%" height="80" zorder="120" >
<layer name="submenu02" style="button" align="center" x="0" y="0" html="Suite master" onclick="" alpha="0" zorder="122" />
<layer name="subover02" style="button3" align="center" x="0" y="0" html="Suite master" onclick="" alpha="0" zorder="123" />
</layer>
<layer name="subbase03" keep="true" type="container" bgcolor="0x1515ff" bgalpha="0" align="left" bgcapture="true" x="40%" y="0" onover="set(layer[subover03].alpha, 1); set(layer[submenu03].alpha, 0);" onout="set(layer[subover03].alpha, 0); set(layer[submenu03].alpha, 1);" width="10%" height="80" zorder="120" >
<layer name="submenu03" style="button" align="center" x="0" y="0" html="Suite especial" onclick="" alpha="0" zorder="122" />
<layer name="subover03" style="button3" align="center" x="0" y="0" html="Suite especial" onclick="" alpha="0" zorder="123" />
</layer>
</layer>
<action name="abresubmenu">
set(layer[submenu].state, opened);
tween(layer[submenu].height,70,0.5,linear);
set(layer[over04].x, 0);
set(layer[over03].X, -5000);
set(layer[menu03].X, -5000);
delayedcall(0.2, tween(layer[submenu01].alpha,1,0.5,linear) );
delayedcall(0.4, tween(layer[submenu02].alpha,1,0.5,linear) );
delayedcall(0.6, tween(layer[submenu03].alpha,1,0.5,linear) );
</action>
<action name="fechasubmenu">
set(layer[submenu].state, closed);
tween(layer[submenu01].alpha,0,0.1,linear);
tween(layer[submenu02].alpha,0,0.1,linear);
tween(layer[submenu03].alpha,0,0.1,linear);
tween(layer[submenu].height,0,0.5,linear);
set(layer[over04].x, -5000);
set(layer[menu03].X, 0);
set(layer[over03].X, 0);
</action>
<style name="button"
url="%SWFPATH%/plugins/textfield.swf"
children="false"
css="text-align:center; color:#ffffff; font-family:helvetica; font-weight:bold; font-size:100%; letter-spacing: 2px;"
autosize="true"
backgroundcolor="0xff666f" backgroundalpha="0" roundedge="0" border="false"
width="100%"
height="100"
shadow=""
/>
<style name="button2"
url="%SWFPATH%/plugins/textfield.swf"
children="false"
css="text-align:center; color:#FFE5BD; font-family:helvetica; font-weight:bold; font-size:100%; letter-spacing: 2px;"
autosize="true"
backgroundcolor="0xff666f" backgroundalpha="0" roundedge="0" border="false"
width="100%"
height="100"
shadow=""
/>
<style name="button3"
url="%SWFPATH%/plugins/textfield.swf"
children="false"
css="text-align:center; color:#AA303A; font-family:helvetica; font-weight:bold; font-size:16px; letter-spacing: 2px;"
autosize="true"
backgroundcolor="0xff666f" backgroundalpha="0" roundedge="0" border="false"
width="100%"
height="100"
shadow=""
/>
<style name="button4"
url="%SWFPATH%/plugins/textfield.swf"
children="false"
css="text-align:center; color:#595959; font-family:helvetica; font-weight:bold; font-size:16px; letter-spacing: 2px;"
autosize="true"
backgroundcolor="0xff666f" backgroundalpha="0" roundedge="0" border="false"
width="100%"
height="100"
shadow=""
/>