barbi
12-08-2008, 08:33 AM
I have developed a complex plugin which has several buttons on its UI. Users should be able to click on an image hotspot displayed by FPP, this hotspot will hide itself in this case and my plugin gets displayed as a static spot. If one of the buttons of the plugin is clicked, it should hide itself and show the image hotspot again.
This theoretically sounds good, but I'm unable to achieve this functionality.
This is how I get the plugin shown if you click on the pluginOpen image.
<spot id="myplugin" static="1" visible="0" url="myplugin.swf" />
<spot id="pluginOpen" pan="..." tilt="..." url="img.png"
onClick="visible=0; myplugin.visible=1"
/>
If you click on a button which is a part of myplugin.swf, it can cause the plugin to be hidden by running this simple AS3 code: this.visible = false;
But this means that myplugin.swf stays invisible if I click on the pluginOpen again. Is there an event passed to myplugin.swf when its visibility is changed in FPP?
This theoretically sounds good, but I'm unable to achieve this functionality.
This is how I get the plugin shown if you click on the pluginOpen image.
<spot id="myplugin" static="1" visible="0" url="myplugin.swf" />
<spot id="pluginOpen" pan="..." tilt="..." url="img.png"
onClick="visible=0; myplugin.visible=1"
/>
If you click on a button which is a part of myplugin.swf, it can cause the plugin to be hidden by running this simple AS3 code: this.visible = false;
But this means that myplugin.swf stays invisible if I click on the pluginOpen again. Is there an event passed to myplugin.swf when its visibility is changed in FPP?