May 28, 200917 yr Hi all. I have a problem with my flash menu. In index.php i have: <body> <div id="container"> <div id="lewy"></div> <div id="prawy"> <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="738" height="120"> <param name="movie" value="menu/menu.swf"> <param name="quality" value="high"> <param name="wmode" value="opaque"> <param name="swfversion" value="9.0.45.0"> <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --> <param name="expressinstall" value="Scripts/expressInstall.swf"> <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="menu/menu.swf" width="738" height="120"> <!--<![endif]--> <param name="quality" value="high"> <param name="wmode" value="opaque"> <param name="swfversion" value="9.0.45.0"> <param name="expressinstall" value="Scripts/expressInstall.swf"> <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> <div> <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> </div> <!--[if !IE]>--> </object> <!--<![endif]--> </object> </div> <!--koniec div prawy--> <div id="dol"> </div> </div><!--koniec div container--> <?php if ( $_GET['id'] == "" ){ include("home.php"); } if ( $_GET['id'] == "uslugi" ){ include("uslugi.php"); } if ( $_GET['id'] == "produkty" ){ include("produkty.php"); } if ( $_GET['id'] == "firma" ){ include("firma.php"); } if ( $_GET['id'] == "kontakt" ){ include("kontakt.php"); } ?> </body> in div "prawy" is flash menu. The problem is, when i click on "uslugi" the page uslugi is included and this is fine. But everytime when i click button on menu its refreshing whole menu, so even when the "uslugi" site is included button "says" that home is an active site. How to fix this ?? and here is a code for button uslugi : on (rollOver) { if (_root.link != p) { this.gotoAndPlay("s1"); } } on (releaseOutside, rollOut) { if (_root.link !=p ) { this.gotoAndPlay("s2"); } } on (release) { if (_root.link != p) { _root["item"+_root.link].gotoAndPlay("s2"); _root.link = p; getURL("index.php?id=uslugi"); } }
May 29, 200917 yr One things for sure, you shouldn't be putting your actions inside a button. That's considered bad practice as it's a nightmare to locate and debug. Maybe placing those actions on the main timeline and see if that will change anything. But to be honest, even though i would like to help you out.... i only know a little AS2 as i only ever use AS3! Good luck with it though! - Neil
Create an account or sign in to comment