Results 1 to 4 of 4

Thread: How to create pop-up windows in Flash ?

  1. #1
    Join Date
    Nov 2008
    Posts
    1,054

    How to create pop-up windows in Flash ?

    On a site I built a flash and I kept one button that opens a pop-up to enlarge an image. It works very well in Firefox but not in Internet Explorer 7.

    Here is the code on my button in flash:

    Code:
    on (release) {
    getURL ("javascript: openWin()"); 
    }
    and here is my html code placed between <head> and </ head> after publication

    HTML Code:
    <script type="text/javascript" language="javascript"> 
    function openWin() {
    new = window.open (URL, NAME, PROPERTIES) 
    }</script>
    Yet I can not request for permission to display the pop-up. I only get "error on page" in the bottom of the page to the left while under Firefox it is working.

    Please help.

  2. #2
    Join Date
    May 2008
    Posts
    945

    Re: How to create pop-up windows in Flash ?

    Can you remove the language = "javascript" because it troubles me, even if it is not the cause of your problems! Is JS necessary in your case?

  3. #3
    Join Date
    Nov 2008
    Posts
    1,054

    Re: How to create pop-up windows in Flash ?

    But it is not necessarily what I found easier for release between flash and js and if you can offer me something else that really works in the 2 browsers then I am listening.

    Here are my codes:

    as I have a flash button with the following action:

    Code:
    on (release) 
    {
    getURL ("javascript:popup ('popup.htm', 'jewelry', 'width = 520, height = 520, left = 200, top = 100, scrollbars = no, resizable = no')"); 
    }
    and the html page:

    HTML Code:
    <title> jewelryPage1 </title> 
    
    <script type="text/javascript" language="javascript"> 
    
    function popup (URL, NAME, PROPERTIES) 
    {
    new = window.open (URL, NAME, PROPERTIES) 
    }
    </script>
    and the "body":

    HTML Code:
    <body bgcolor="#333333"> 
    <!-- URLs used in animation--> 
    <a href="jewelryPage1.html"> </a> 
    <a href="jewelryPage2.html"> </a> 
    <a href = "javascript:popup('popup.htm', 'jewelry', 'width=520, height=520, left=200, top=100, scrollbars=no, resizable=no')"> </a> 
    <!-- text used in animation--> 
    <!--
    Page 
    Reference: BIJ3699 
    Price: 20? 
    -->
    <!-- saved from url = (0013) about: internet -->
    <object classid = "clsid: d27cdb6e-ae6d-11cf-96b8-444553540000" codebase = "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width = "1193" height = "802" id = "jewelryPage1" align = "middle"> 
    <param name = "allowScriptAccess" value = "sameDomain" /> 
    <param name = "movie" value = "jewelryPage1.swf" /> <param name = "quality" value = "high" /> <param name = "bgcolor" value = "#333333" /> <embed src = "jewelryPage1.swf" quality = "high" bgcolor = "#333333" width = "1193" height = "802" name = "bijouxFantPage1" align = "middle" allowScriptAccess = "sameDomain" type = "application/x-shockwave-flash" Pluginspage = "[url]http://www.macromedia.com/go/getflashplayer[/url]" /> 
    </object> 
    </body>

    everything works on Firefox but not in IE7!

  4. #4
    Join Date
    Feb 2008
    Posts
    194

    Re: How to create pop-up windows in Flash ?

    Here are some tutorial on how to create a pop-up window in Flash:

    http://www.flash-db.com/PopUp/JavaSc...pUp.php?page=2
    http://kb.adobe.com/selfservice/view...nalId=tn_14192

    Hope this will help you.

Similar Threads

  1. How to create a flash flipbook from a PDF or JPG
    By IkhyThed in forum Windows Software
    Replies: 10
    Last Post: 12-10-2013, 04:00 PM
  2. how to create a flash book?
    By jbreg in forum Software Development
    Replies: 4
    Last Post: 06-05-2013, 12:39 PM
  3. Create Windows XP Live Bootable Flash Drive
    By Solomon in forum Guides & Tutorials
    Replies: 10
    Last Post: 10-05-2012, 11:52 AM
  4. How to create a flash game
    By Jakub in forum Guides & Tutorials
    Replies: 4
    Last Post: 06-09-2009, 10:59 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,004,455.84705 seconds with 16 queries