5 Replies Latest reply on Oct 20, 2007 12:58 AM by Greg Dove

    External Interface call- DESPERATE!

    Catsy55
      Hi, I'm trying to create an HTML splash page that will launch my flash portfolio website- I was told to control the new page with javascript, but when I do so with the code below, my links won't work- see defective link at catmerrick.com, and the page I'm trying to load in a flash-specific window(no back button, etc) at http://catmerrick.com/catpagev.5.html- since it's a portfolio website, it's really important that I be able to create new windows linking to content. I can't tell you how much I would appreciate your help- Thank you so much...

      Cat

      The code in the swf:
      enter_btn.addEventListener(MouseEvent.CLICK, enter2);
      function enter2(myevent:MouseEvent):void{
      var myurl: String= "catpagev.5.html"
      var mywindow:String= "newwindow"
      var myfeatures:String= "width=800, height=600, left=80, top=180, toolbar=0, location=0, directories=0, resizable=0"
      ExternalInterface.call("openwindow", myurl, mywindow, myfeatures)}

      and here is the relevant javascript in the index:

      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
      <title>cat merrick</title>
      <body bgcolor="#ffffff">
      <script language="javascript">
      function openwindow3 <URL, windowname, windowfeatures>{
      window.open<URL, windowname, windowfeatures>
      }
      </script>

      </head>