A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Does getURL have to have http://... or can it use relative paths?

  1. #1
    Member
    Join Date
    Feb 2001
    Posts
    47
    Whenever I try to do a getURL as a relative path, it doesn't work. I can't use ../file/popup.html. I have to do this:
    Code:
    on (release) {
    	getURL ("javascript:openNewWindow('http://www.123.com/files/popup.html','popwindow','height=400,width=400,toolbar=no,scrollbars=yes') ");
    }
    Can you use relative paths?. Yes? No?

    -frank

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    2,943
    Yes.

    If you want to load another url on a different server to your movie then the http:// has to be there.

    If you want to run another file on the same server as your movie you don't need http://

    If you are trying to open a file as data on a different server then you'll have problem because of an inbuilt Flash security feature.

    I'm wondering if the fact you are using javascript and a pop up window means that this might be involved:

    http://www.macromedia.com/support/fl...s_security.htm

  3. #3
    MJA Studio 2003-04 (MX ReaLM)
    Join Date
    Jan 2002
    Posts
    154
    it deserves a try ...
    doesnt it

  4. #4
    Member
    Join Date
    Feb 2001
    Posts
    47
    Sorry, I guess I was doing something stupid. I just tried it for the hundredth time and it worked. Dunno what I was doing wrong before...

    -frank

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