dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: get url problem

  1. #1
    Senior Member
    Join Date
    Mar 2003
    Location
    New Orleans
    Posts
    191

    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 1layer=buy now bnframe=1:Line 2')' or ',' expected
                
    'height=400,width=400,toolbar=no,scrollbars=yes');

    **
    Error** Scene=Scene 1layer=buy now bnframe=1:Line 1Statement must appear within on handler
         orderNow_bn
    .onRelease=function(){getURL(javascript:openNewWindow('http://www.macromedia.com','thewin',

    Total ActionScript Errors2      Reported Errors
    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

  2. #2
    Senior Member
    Join Date
    Mar 2003
    Location
    New Orleans
    Posts
    191

    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 1layer=buy now bnframe=1:Line 1Statement must appear within on handler
         orderNow_bn
    .onRelease=function(){getURL(javascript:openNewWindow('http://www.macromedia.com','thewin',

    Total ActionScript Errors1      Reported Errors
    thanks
    I'm only in it for the pleasure

  3. #3
    Senior Member
    Join Date
    Mar 2003
    Location
    New Orleans
    Posts
    191

    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center