Replacing jpg buttons with swfs

  • As the title says: How can I replace the little jpeg on-screen nav buttons with nice animated swfs ? I have tried all the obvious things with Z order, size, names, %SWFPATH% etc but nothing appears. Is there a simple answer ?

    (Sorry to ask so many questions!)

  • I thought I could just do a straight swap too, but no luck. I have tried many permutations and different swfs.

    In the code below if I swap the left.swf for left.jpg it works perfectly !

    Code
    <plugin name="flash" 
        	url="left.swf" 
        	width="100" height="100"
     	visible="true" enabled="true" handcursor="true" capture="true" children="true"
     	zorder="0"
     	alpha="1.00" blendmode="normal"
        	align="rightbottom" x="10" y="10"
        	onhover="showtext(Flash element);" 
        	onclick="openurl(http://krpano.com,_blank);" 
        	/>
  • In the 1.0.7 stable release, under examples / tour... there is a hotspot_ani.swf... so it's guaranteed to be compatible with krpano... try it also.

    The only other thing that you might want to add first... is...

    keep="true"...

    but if the jpg file is showing... then the swf should show as well without it.

    I've tested the code you posted and made only two changes...
    1. using the hotspot_ani.swf
    2. added keep="true"

    The second one is more specifically for how I have my test template setup... I do not load a pano initially... only after clicking on a button will the first pano load.... thus I NEED to have keep true in place otherwise it dumps the plugin.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!