Link to home
Start Free TrialLog in
Avatar of Devario Johnson
Devario JohnsonFlag for United States of America

asked on

pop up window no toolbar or resize FLASH CS3 AS2.0

Im about to go nuts.  

I have tried many different methods and now EE is my last resort.  I even tried examples posted on EE, but for some reason my window will not work.

I am making a VERY BASIC, VERY GENERIC, NOT SPECIAL AT ALL, pop up window from flash.

I want the window to be say 500 X 700 in dimension and have no toolbars or be able to resize.

The problem is when I do it from flash this way

popup_btn.onRelease = function() {
        getURL("xxx/index.html","_blank");
}

or when I actually put it on the button itself

on(release) {
     getURL("blablabla/index.html","_blank");
}

it doesnt work.

I have no clue why.  The syntax above may not be accurate 100% as I am trying this from head only without reference, but I know you guys get the idea.

Can someone show me how to do this in AS 2.0 for the flash player 8 and above, that will work on all browsers.?

Im testing this on wamp.  Could this be the issue?

Avatar of wal_toor
wal_toor
Flag of Netherlands image

Hellow,

You need a piece of javasript to make a popup windown without browser functionality.

I have attached the javascript code and the flash code.

Hope this works for you.

greetz,
walter
this is the piece of javascript you need to place in your html page just abouve the </head> tag
 
<script language="javascript">
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
</script>
 
in flash you can call this javascript by using
 
on(release){
	getURL("javascript:MM_openBrWindow('popup.html','popup','width=500,height=700')");
}

Open in new window

Avatar of Devario Johnson

ASKER

thanks for the response.

I tried but it did not work.

I know there is more than likely something very small that I am missing...I am attaching two files for you to look at too see where the problem is.

the.fla and the .html

the tab with the popup that isnt working is the "music" tab.

http://www.scholarpc.com/EE.zip

retain the directory structure and try it out...you will more than likely see my issue

thanks
Hellow,

sorry, but there is no fla file, just the swf.

greetz,
walter
OK it should be updated now, the file should be in there
ASKER CERTIFIED SOLUTION
Avatar of wal_toor
wal_toor
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
delete or uncomment?  or delete or comment?
OMFG...

THANK YOU SO MUCH....

that worked!
Perfect!