A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [CS3] AS2 window.open + urlstring from XML Please help!

  1. #1
    Junior Member
    Join Date
    Jun 2000
    Posts
    2

    [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

  2. #2
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    PHP Code:
    var jscommand:String "window.open('"+urlString+"','win','height=200,width= 300,toolbar=no,scrollbars=yes');"

  3. #3
    Junior Member
    Join Date
    Jun 2000
    Posts
    2

    Thanks

    Thank You!!!

  4. #4
    ___________________
    Join Date
    May 2004
    Posts
    3,174

  5. #5
    Junior Member
    Join Date
    Sep 2009
    Posts
    1
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center