[CS3] navigateToURL with "_self")
Hi there,
I've started a web page and have a flash menu on it and am wondering the best way to hook up the buttons to other url's (index, profile, services, etc.). Should I just put in an actionscript action for each button or is there a way to do them all in one actionscript?
Next it's my code that doesn't work with "_self" only works with "_blank" and that is my problem, I need the urls to display in the same window.
......................
ins_ini.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void
{
var targetURL:URLRequest = new
URLRequest("http://romulocantorjimenez.com/");
navigateToURL(targetURL,"_self");
}
trace("I am clicked");
.......................
Can anybody help?
Thanks in advance...
RCantor
Nothing with flash it's only dreamweaver...
My flash code it's ok, the problem was with the "allowScriptAccess" parameter in dreamweaver...
Here is the code that works ok:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','800','heigh t','800','src','dos','allowscriptaccess','always','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','dos' ); //end AC code
</script><noscript><object classid="clsidD27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="800" allowscriptaccess="always">
<param name="movie" value="dos.swf" />
<param name="allowScriptAccess" value="always" />
<param name="quality" value="high" />
<embed src="dos.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="800" allowscriptaccess="always"></embed>
</object></noscript>
</body>
</html>
Thank you...:)