{"id":167,"date":"2009-10-02T13:51:31","date_gmt":"2009-10-02T08:21:31","guid":{"rendered":"http:\/\/vikku.info\/codesnippets\/?p=167"},"modified":"2009-10-02T14:09:13","modified_gmt":"2009-10-02T08:39:13","slug":"prevent-reloading-flash-movie-on-every-page-by-using-flashvars","status":"publish","type":"post","link":"http:\/\/vikku.info\/codesnippets\/flash\/prevent-reloading-flash-movie-on-every-page-by-using-flashvars\/","title":{"rendered":"prevent reloading flash movie on every page by using flashvars"},"content":{"rendered":"<p>You can prevent the flash showing the loading progress on each page by using the flashvars.<\/p>\n<p>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.<\/p>\n<pre lang='html4strict'>\r\n<param name=\"movie\" value=\"flash\/header2_fv8.swf?button=0\">\r\n<\/pre>\n<p> 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.<\/p>\n<p>so on any page  home can be button 0 and so on&#8230; and in html of any page what ever button number you give in object tag that menu in the flash is highlighted&#8230; <\/p>\n<p>if you use a query string directly like  <\/p>\n<pre lang='html4strict'><object data=\"flash\/header2_fv8.swf?button=0\"><\/pre>\n<p> or <\/p>\n<p>like <\/p>\n<pre lang='html4strict'><param name=\"movie\" value=\"flash\/header2_fv8.swf?button=0\"><\/pre>\n<p> then for every page load <\/p>\n<p>the flash movie will show the loading progress.<\/p>\n<p>The reason might be that every time you send a query string and flash could assume it as a <\/p>\n<p>new url and it loads as if it is loading for the first time. just an assumption. and some <\/p>\n<p>people too said so.<\/p>\n<p>so to prevent this that is to prevent flash to show the loading progress again and again<br \/>\nyou can use the FlashVars attribute like in the following.<\/p>\n<pre lang='text'><param name=\"movie\" value=\"flash\/header2_fv8.swf?button=0\"><\/pre>\n<p>here is a sample code<\/p>\n<pre lang=\"html4strict\">\r\n<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\">\r\n<param name=\"movie\" value=\"flash\/header2_fv8.swf\" \/>\r\n<param name=\"quality\" value=\"high\" \/>\r\n<param name=\"menu\" value=\"false\" \/>\r\n<param name=\"wmode\" value=\"transparent\" \/>\r\n<param name=\"FlashVars\" value=\"button=1\">\r\n\r\n \r\n      <!--[if !IE]> <-->\r\n\t<object data=\"flash\/header2_fv8.swf\" width=\"980\" height=\"394\" type=\"application\/x-shockwave-flash\">\r\n        <param name=\"quality\" value=\"high\" \/>\r\n\t<param name=\"FlashVars\" value=\"button=1\">\r\n        <param name=\"menu\" value=\"false\" \/>\r\n        <param name=\"pluginurl\" value=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" \/>\r\n        <param name=\"wmode\" value=\"transparent\" \/>       \r\n      <\/object>\r\n\r\n      <!--> <![endif]-->\r\n    <\/object>\r\n<\/pre>\n<p>&#8230;<br \/>\n&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[],"_links":{"self":[{"href":"http:\/\/vikku.info\/codesnippets\/wp-json\/wp\/v2\/posts\/167"}],"collection":[{"href":"http:\/\/vikku.info\/codesnippets\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/vikku.info\/codesnippets\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/vikku.info\/codesnippets\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/vikku.info\/codesnippets\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":14,"href":"http:\/\/vikku.info\/codesnippets\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":170,"href":"http:\/\/vikku.info\/codesnippets\/wp-json\/wp\/v2\/posts\/167\/revisions\/170"}],"wp:attachment":[{"href":"http:\/\/vikku.info\/codesnippets\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/vikku.info\/codesnippets\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/vikku.info\/codesnippets\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}