TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Creating Pop Up Windows in Flash MX

Page: 1 Reply
Jul 7th 2004#155080 Report
Member since: Aug 28th 2001
Posts: 970
Anyone have a good way of going about doing this? I've tried a couple tutorials already from kirupa.com and flashkit but I can't seem to make it work. :(
Reply with Quote Reply
Jul 7th 2004#155089 Report
Member since: Apr 25th 2003
Posts: 1977
Probably the easiest way (i prefer this way) is to use getURL to pass variables to javascript (on the same page as your swf..or linked)

Something like:

on (release) {
getURL ("javascript:popupwindow('filename','windowname','window parameters'); ");

}


then(in your document):

function popupwindow(filename, windowname, window parameters) {
new_window = window.open(filename, windowname, window parameters);
}



You can try to force a window open with flash alone......but i prefer the first way because
a) it's cleaner. You only have to change the variables for each button/link. The rest of the code isnt going to change.....so there's no need to copy it each time.
b) its guarenteed to work. Using flash alone to force a popup can cause a few problems.
Reply with Quote Reply
Jul 7th 2004#155100 Report
Member since: Aug 28th 2001
Posts: 970
Awesome I'm going to give that a try. Thanks for the help! :D
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum