I have a tour where I would like to set the default value of the combobox items with a variable when the tour starts. For example:
Code
onload(), variable initmusic is passed into the xml from a cookie via javascript and initvars:{initmusic:initmusic...
<combobox name="cb_music" design="greycombo" zorder="202" keep="true"
x="20px" y="1999px" visible="true" align="center" edge="left"
>
<item name="M1" caption="auto Music ON" onclick="set(initmusic, 'M1' );"
/>
<item name="M0" caption="auto Music OFF" onclick="set(initmusic, 'M0' );" />
</combobox>
Another action is used to write cookies with a varient of settings, that all works. it's only the reading and setting that are a problem.
I have tried lots of combinations based on:
Code
trace(get(layer[get(cb_music)].selecteditemindex;););
trace(get(layer[cb_music].selecteditemindex;););
and seem unable to even read what is selected far less preset or setup the combobox using the (cookie) variable.
Thanks
James