Hello
I need a button to open a swf, as a plugin. First I defined it in the xml to be loaded and not to be shown, but i realized that, because it has a animated intro, if i click on the button which supposed to show it, the animation is already gone because it "ran" in the background, as invisible. Also, a problem was that without removing the plugin, if i closed it with the hide function, the next time the button was pressed, it continued from where it was left, not from the beginning as I needed it. So i chose to use the following code:
<plugin name="img1" url="" align="center" onclick="removeplugin(img1);"/>
<hotspot name="meniu" url="meniu.swf" zoom="false" ath="-80.3633" atv="2" scale="0.4" blendmode="normal" onhover="showtext(Meniul);"
onclick="addplugin(img1);
set(plugin[img1].align,center);
set(plugin[img1].url, men.swf);"/>
following thing happens:
I press the button(hotspot), the plugin appears from the beginning including the wanted animation.
I press on any button in the animation, it works
I press outside the button area, anywhere on the window, the window disappears
I press again on the hotspot, the plugin appears again from the beginning, as wanted
I press to close it, it doesn't close anymore.
I don't understand why the whole thing functions only once, and the second time it doesn't close again.
I also tried following code:
<hotspot name="meniu" url="meniu.swf" zoom="false" ath="-80.3633" atv="2" scale="0.4" blendmode="normal" onhover="showtext(Meniul);"
onclick="addplugin(img1);
set(plugin[img1].align,center);
set(plugin[img1].url, men.swf);
set(plugin[img1].onclick,removeplugin(img1);"/>
Please help!
Thanks!
Mike