Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 17-12-2008
Member
 
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.
Reply With Quote
  #2  
Old 17-12-2008
Member
 
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?
Reply With Quote
  #3  
Old 17-12-2008
Member
 
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!
Reply With Quote
  #4  
Old 17-12-2008
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to create pop-up windows in Flash ?"
Thread Thread Starter Forum Replies Last Post
How to create a flash flipbook from a PDF or JPG IkhyThed Windows Software 10 12-10-2013 04:00 PM
how to create a flash book? jbreg Software Development 4 06-05-2013 12:39 PM
Create Windows XP Live Bootable Flash Drive Solomon Guides & Tutorials 10 10-05-2012 11:52 AM
How to create a flash game Jakub Guides & Tutorials 4 06-09-2009 10:59 AM


All times are GMT +5.5. The time now is 01:16 AM.