You can prevent the flash showing the loading progress on each page by using the flashvars.
I wanted the menus in flash to be highlighted when the page is under that menu. for example i have home, about, services, contact. now i am in home page. when i click services page that page loads and i want services to be highlighted in a different color. so when ever you are in any page the menu for that page should be highlighted. for doing that i use.
<param name="movie" value="flash/header2_fv8.swf?button=0"> |
the number for button will vary for each menu. the button number is the reference for menus which are to be highlighted when a page is in view.
so on any page home can be button 0 and so on… and in html of any page what ever button number you give in object tag that menu in the flash is highlighted…
if you use a query string directly like
<object data="flash/header2_fv8.swf?button=0"> |
or
like
<param name="movie" value="flash/header2_fv8.swf?button=0"> |
then for every page load
the flash movie will show the loading progress.
The reason might be that every time you send a query string and flash could assume it as a
new url and it loads as if it is loading for the first time. just an assumption. and some
people too said so.
so to prevent this that is to prevent flash to show the loading progress again and again
you can use the FlashVars attribute like in the following.
<param name="movie" value="flash/header2_fv8.swf?button=0"> |
here is a sample code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24" width="980" height="394"> <param name="movie" value="flash/header2_fv8.swf" /> <param name="quality" value="high" /> <param name="menu" value="false" /> <param name="wmode" value="transparent" /> <param name="FlashVars" value="button=1"> <!--[if !IE]> <--> <object data="flash/header2_fv8.swf" width="980" height="394" type="application/x-shockwave-flash"> <param name="quality" value="high" /> <param name="FlashVars" value="button=1"> <param name="menu" value="false" /> <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" /> <param name="wmode" value="transparent" /> </object> <!--> <![endif]--> </object> |
…
…
Recent Comments