| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
I'm with stupid
Join Date: Feb 2005
Location: Liverpool
Posts: 5
|
opening custom pop-up windows from flash
Hi All, This is my problem: I have a swf embedded in a html page. There are 5 frames making up this swf and on each frame is a button. When I click each button on each frame, I need it to open a custom pop-up, so 5 pop-ups in all. From reading on forums and FAQs Ive come to the conclusion it can only be done in javascript, with this attached to each button: on (release) { getURL ("javascript:spawnWindow('power_behind.htm','power ','toolbar=no,location=no,status=no,menubar=no,scr ollbars=no,resizable=no,width=425,height=610')"); } and this in the head of the HTML page that flash generates. <script language="JavaScript"> <!-- function spawnWindow(URL,Name,features) { window.open(URL,Name,features); } //--> </script> (Ive also tried the openWindow method and that doesnt appear to work either) I've seen the same methods and code on several different sites, but every time I try it absolutely nothing happens. I don't get an error or anything, I click the buttons, but nothing at all happens. Can anybody see where I'm going wrong? Any help on this would be really appreciated. Cheers MB |
|
|
|
|
|
#2 (permalink) |
|
Shitcasket™
|
Not sure if this is helpful but I have used EasyPop-up before which is a flash component you can download from FlashKit. I believe it generates the code in the HTML. I'm not great with this kind of scripting so it has helped me out in the past. |
|
![]() |