SitePoint Sponsor |
|
User Tag List
Results 1 to 1 of 1
Threaded View
-
Mar 20, 2007, 15:54 #1
- Join Date
- Jan 2007
- Location
- New Jersey, USA
- Posts
- 4
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How to center popup from ActionScript without using onclick?
I have a web page that contains a Flash piece which uses JavaScript to launch a popup window from the Flash piece. It works fine, but I would also like the popup to launch centered on the page. How can I do this from Action Script code without using onclick? (Or can I use onclick in ActionScript? I am pretty new to ActionScript.)
The JavaScript is:
Code:function popflash() { flashwindow = window.open("theurl.html","flashwindow","width=450,height=450,menubar=no,toolbar=no,status=no"); }
Code:inv_btn.onRelease = function(){ getURL("javascript:popflash()"); };
Bookmarks