Can someone have a look at this and see what i have done wrong please

I am using the tutorial for the centered popup window
http://www.kirupa.com/developer/flash8/centered_popup_window.htm

I beleave i have done everything that it says i need to do in the tut but i cant get the pop up window to open can someone have a quick look at the code and tell me where im being a fool as i cant find whats wrong with it.

if i click on the button on the tutoral’s example, that pop up works fine.

thanks in advance

this is the html code i have used

[SIZE=2]<script language=“JavaScript”>
function Launch(‘www.yahoo.co.uk’, 500, 400) {
OpenWin = this.open(‘www.yahoo.co.uk’, “yahoo”, “toolbar=no, menubar=no ,location=no, scrollbars=no, resizable=no, width=” + width + “, height=” + height + “, top=” + (screen.height/2 - height/2) + “, left=” + (screen.width/2 - width/2) + “”");
}
</script>
[/SIZE]

function Launch(‘www.yahoo.co.uk’, 500, 400) {

needs to be:

function Launch(url, width, height) {

Then you need to call js from flash like:

getURL(“javascript: Launch(‘www.yahoo.co.uk’, 500, 400);”);

thanks for the reply, sorry i dont understand i must be really think on this one but you say it needs to be

function Launch(url, width, height) {

but thats what i have done as per example

function Launch(‘www.yahoo.com’, 500, 400) {

could you explain where im being thick please thanks in advance

thanks for trying to help but if you read my first post you will see that i have this already this is not my issue.

These are big differences when it comes to code! The difference is in a function defintion vs. calling a function, and it looks like you are combining the two.

To define a function, you declare what variables will be passed, so:

function Launch(url, width, height)
{
// code to open the window
}

defines a function that takes 3 parameters. What you have is literal arguments in the function defintion… which isn’t legal. You use the parameters ‘www.yahoo.com’, 500, 400 when you call the function such as:

(from flash)
getURL(“javascript: Launch(‘www.yahoo.com’, 500, 400);”);

does this make sense?

thanks for trying to help here but still no clearer

in my flash file i have

btn_Up.onRelease = function() {
getURL(“javascript:Launch(‘http://www.yahoo.com’, 400, 300)”);
};

as per kirupa example so i am asuming thats correct

my html file has the following

[SIZE=2]<html xmlns=“XHTML namespace” xml:lang=“en” lang=“en”>
<head>
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” />
<title>centeredPop</title>
</head>
<script language=“JavaScript”>
function Launch(‘www.yahoo.co.uk’, 500, 400) {
OpenWin = this.open(‘www.yahoo.co.uk’, “yahoo”, “toolbar=no, menubar=no ,location=no, scrollbars=no, resizable=no, width=” + width + “, height=” + height + “, top=” + (screen.height/2 - height/2) + “, left=” + (screen.width/2 - width/2) + “"”);
}
</script>

<body bgcolor=“#ffffff”>
<!–url’s used in the movie–>
<!–text used in the movie–>
<!-- saved from url=(0013)about:internet –>
<object classid=“clsid:d27cdb6e-ae6d-11cf-96b8-444553540000” codebase=“http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0” width=“300” height=“200” id=“centeredPop” align=“middle”>
<param name=“allowScriptAccess” value=“sameDomain” />
<param name=“movie” value=“centeredPop.swf” /><param name=“quality” value=“high” /><param name=“bgcolor” value=“#ffffff” /><embed src=“centeredPop.swf” quality=“high” bgcolor=“#ffffff” width=“300” height=“200” name=“centeredPop” align=“middle” allowScriptAccess=“sameDomain” type=“application/x-shockwave-flash” pluginspage=“http://www.macromedia.com/go/getflashplayer” />
</object>
</body>
</html>
[/SIZE]
can you now tell me what i should change to get yahoo.com to show in a pop up windows as looking at what kirupa says to change mine looks ok but yes its not working so im missing something so could you help please by telling me what i should have in the html as i think thats the only way im going to understand what you are trying to tell me here

sorry if im slow on the up take

ignor me ive just re-read serval times and i now understand what you were trying to say thanks for trying to help me and i now understand.

thanks again