Hi, me again =p
I'm making a textfield plugin for a menu for in krpano. With your help I managed to include the nessecary xml for the menu in the krpano xml. Only now I got a question. 1 part of the menu is a textfield that loads information concerning the panorama. I want this to be as flexible as possible, so my initial setup was with a txt file that gets loaded based on a id. However I want to include css styles too.
html data + css data in a textfield. Well that sounds as the plugin you made. So I looked at the code, trying to figure it out. Is there a way, to trigger the textfield class to create a textfield in my internal swf?
this is what I have:
<textstyle name="menutextstyle"
font="Verdana"
fontsize="10"
textcolor="0xFFFFFF"
textalign="center"
xoffset="0"
yoffset="0"
/>
<!--Menu plugin-->
<plugin name="menu" url="../menu/aMenu.swf" align="topright" edge="topright" x="30" y="4" keep="true" visible="true" handcursor="false" zorder="105"
barwidth="226"
barheight="16"
padding="1"
expanded="3"
colorbegin="0x33a1c6"
colorend="0x207dba"
baralpha="0.8"
overcolorbegin="0xff9900"
overcolorend="0xcc9933"
overalpha="1"
contentcolor="0xFFFFFF"
contentalpha="0"
textstylename="menutextstyle"
>
<menuitem name="n1" title="Description" sourcepath="menu/info.swf" height="400" />
</plugin>
<!--CSS data info.swf should read-->
<data name="info_cssdata">
a { color:#0000FF; }
a:hover { color:#FF0000; }
</data>
<!--html data info.swf should read-->
<data name="info_htmldata">
<b>Hello from Flash HTML</b><br/>
<a href="event:set(plugin[txt].visible,false);">
close this window
</a>
</data>
Display More
So within the info.swf I want a textfield to be generated based on <data> The name of the data will be hardcoded. How would I accomplish this? In theory it wouldn't matter if I used the textfield to generate something in krpano or use the krpano api to generate it in the swf. As long as it has its data objects.