Reply LinkBack Thread Tools Search this Thread
Old 13-10-2005, 07:59   #1 (permalink)
Migraine Boy
I'm with stupid
 
Migraine Boy's Avatar
 
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
  Reply With Quote
Old 13-10-2005, 08:45   #2 (permalink)
sub
Shitcasket™
 
sub's Avatar
 
Join Date: Jul 2005
Location: Brighton
Posts: 4,274
Send a message via MSN to sub Send a message via Skype™ to sub
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.
  Reply With Quote
Old 13-10-2005, 08:52   #3 (permalink)
Migraine Boy
I'm with stupid
 
Migraine Boy's Avatar
 
Join Date: Feb 2005
Location: Liverpool
Posts: 5
Cheers, I'll have a look at that, especially since no one has been forthcoming with any ideas as to why it's not working for me!

Thanks
  Reply With Quote
Old 13-10-2005, 08:59   #4 (permalink)
sub
Shitcasket™
 
sub's Avatar
 
Join Date: Jul 2005
Location: Brighton
Posts: 4,274
Send a message via MSN to sub Send a message via Skype™ to sub
If you need to see a working example see this-site-here.com

Hope it sorts your problem.
  Reply With Quote
Old 13-10-2005, 10:26   #5 (permalink)
Migraine Boy
I'm with stupid
 
Migraine Boy's Avatar
 
Join Date: Feb 2005
Location: Liverpool
Posts: 5
Its working now! I dont know why it wouldnt before, but I replaced all the buttons and re-pasted some code in and it's working fine now.

Thanks for taking the time out to post.

Cheers

MB
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8