PDA

View Full Version : Making a popup in Flash CS3


Teppic
06-08-2007, 01:49 PM
Hello all!

I was wondering how to make a good popup with as2 in Flash cs3!
Anyone have any idea?

_Aerospace_Eng_
06-08-2007, 09:51 PM
Not sure what you mean. Flash can't really make popups. You can have a flash movie with a transparent background or something and then call it with javascript.

Teppic
06-10-2007, 12:52 PM
basicly i just want to press a button in my flash and that it then opens a html popup

_Aerospace_Eng_
06-10-2007, 08:01 PM
I see. In your html page add this within the head tags
<script type="text/javascript">
function openWin(url,wid,hgt)
{
newwin = window.open(url,'popup','width='+wid+',height='+hgt+'');
}
</script>
Then in the actionscript for the button use this
getURL("javascript:openWin('http://www.google.com','400','500');void(0)");
Where 400 and 500 are the width and height respectively.

Teppic
06-14-2007, 09:06 PM
many thanks for your help! it works now.

:thumbsup: