|
-
[CS3] AS2 window.open + urlstring from XML Please help!
I need to open a new window from a flash button AS2 with specific width & height and most important to get the window url from my xml file.
I started with this:
on (release) {
getURL ("http://"+urlString, _blank);
}
This worked but I am not able to set any attributes to the new window, so I wrote:
on (release) {
var jscommand:String = "window.open('http://www.adobe.com','win','height=200,width=300,toolbar =no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);");
}
This also work but only for the Adobe site, now I modify the instruction to read the url from my xml:
on (release) {
var jscommand:String = "window.open(''+urlString,'win','height=200,width= 300,toolbar=no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);");
}
This is where I get stock and does not work,.
Please help me, I appreciate your quick answer
-
PHP Code:
var jscommand:String = "window.open('"+urlString+"','win','height=200,width= 300,toolbar=no,scrollbars=yes');";
-
-
-
Thank youuuuuuuuuuuuuu so much!
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
|