0 Replies Latest reply on Jun 15, 2007 3:02 AM by Don_Buljone

    Pop up trouble


      im trying to make a pop up window, but for some reason i cant, not even with 7-8 different tutorials!!!
      this below is an HTML code from a .swf file with publish settings set for "Flash with FSCommand", and the code that i used on my button is:
      fscommand ("pop");
      can somebody please explain to me why this Javascript code for pop up window doesn't work?
      i have also tried the tutorias for pop-up from adobe site, but the result is the same.. i can open their examples, and they work fine, but when i try to make one, its not working.. not even when i just change the name of their file with "Save as.." and make adjustments in HTML

      <!-- saved from url=(0013)about:internet -->
      <!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" xml:lang="en" lang="en">
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
      <body bgcolor="#ffffff">
      <script language="JavaScript">
      var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
      // Handle all the FSCommand messages in a Flash movie.
      function popic_DoFSCommand(command, args) {
      var popicObj = isInternetExplorer ? document.all.popic : document.popic;
      if (command == "pop"){
      window.open (args);
      // Hook for Internet Explorer.
      if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
      document.write('<script language=\"VBScript\"\>\n');
      document.write('On Error Resume Next\n');
      document.write('Sub popic_FSCommand(ByVal command, ByVal args)\n');
      document.write(' Call popic_DoFSCommand(command, args)\n');
      document.write('End Sub\n');
      <!--url's used in the movie-->
      <a href="FSCommand:pop"></a>
      <!--text used in the movie-->
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="popic" width="550" height="400" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="movie" value="popic.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="popic.swf" quality="high" bgcolor="#ffffff" width="550" height="400" swLiveConnect=true id="popic" name="popic" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer" />