• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 19. JavaScript and ActionScript > Calling JavaScript Using getURL

Calling JavaScript Using getURL

Let's start simple. Say we have a Flash movie with a single button on it. This Flash movie is on a very simple Web page with a little JavaScript function in it. Let's take a look at the Web page in Example 19-1.

Example 19-1. Simple Web page

<html>
<head>
<title>JavaScript and ActionScript</title>

<script language="javascript">

function showAlert()
{
    alert("zap");
}

</script>

</head>
<body bgcolor="#336699">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
 WIDTH=550 HEIGHT=150>
    <param NAME=movie VALUE="javascript1.swf">
    <param NAME=quality VALUE=high>
    <param NAME=bgcolor VALUE=#336699>
    <embed src="javascript1.swf" quality=high
    bgcolor=#336699  WIDTH=550 HEIGHT=150 TYPE="application/x-
    shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/
    shockwave/download/
    index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
</object>
</body>
</html>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint