View Full Version : Buttons within an externally loaded .swf
Filmguy15
June 30th, 2006, 01:25 PM
I am working on a site that has a root .swf file. Within that, the buttons load external, smaller .swf's for the content, etc.. In one of those .swf's, I have a button that needs to open a pop-up window. I followed the "Centered Pop-up" tutorial on this site, but the button does not work when loaded from the root swf. It does however, if I create an html file with just the external .swf loaded, without the main page. What do I need to add in the AS to make the button work outside of the swf? Thanks alot!
-Chase
Filmguy15
June 30th, 2006, 02:26 PM
By the way, her is the code that is on my button in the external swf...
on (release) {
address = "http://www.kirupa.com/modular/pop-up.htm";
target_winName = "kirupa";
width = 400;
height = 300;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.