-
get url problem
Hi,
I have an invisible button, but when I select it, I don't get the url field in the property window. So I'm trying to place the code on a frame.
Here is my code:
PHP Code:
orderNow_bn.onRelease=function(){getURL(javascript:openNewWindow('http://www.macromedia.com','thewin',
'height=400,width=400,toolbar=no,scrollbars=yes');
}
But I get the following errors:
PHP Code:
**Error** Scene=Scene 1, layer=buy now bn, frame=1:Line 2: ')' or ',' expected
'height=400,width=400,toolbar=no,scrollbars=yes');
**Error** Scene=Scene 1, layer=buy now bn, frame=1:Line 1: Statement must appear within on handler
orderNow_bn.onRelease=function(){getURL(javascript:openNewWindow('http://www.macromedia.com','thewin',
Total ActionScript Errors: 2 Reported Errors: 2
Please help!! I have done this a thousand times before but today I have a mental block and can't figure it out.
thanks
I'm only in it for the pleasure
-
okay I'm opme step ahead
here is my new code:
PHP Code:
orderNow_bn.onRelease=function(){getURL(javascript:openNewWindow('http://www.macromedia.com','thewin',
'height=400,width=400,toolbar=no,scrollbars=yes'));
and here is my error message:
PHP Code:
**Error** Scene=Scene 1, layer=buy now bn, frame=1:Line 1: Statement must appear within on handler
orderNow_bn.onRelease=function(){getURL(javascript:openNewWindow('http://www.macromedia.com','thewin',
Total ActionScript Errors: 1 Reported Errors: 1
thanks
I'm only in it for the pleasure
-
and the answer is
on (release) {
getURL ("javascriptpenNewWindow('order.html','thewin','height=508, width=480, left=100, top=100,toolbar=no,scrollbars=yes');");
}
thanks
I'm only in it for the pleasure
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|