A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Load external jpg!!

  1. #1
    Junior Member
    Join Date
    Sep 2006
    Posts
    12

    Load external jpg!!

    I have a loader on the stage (to pick up an external jpg)with the code:
    autoload true
    content path http://www.mywebsite.com/test.jpg
    scale content true
    which all works perfectly, however when using the same code for a different website the jpg won't show up. The website is held in a folder called htdocs. I've tried:
    content path http://www.newwebsite.com/htdocs/test.jpg and
    content path http://www.newwebsite.com/test.jpg
    This is so frustrating! Please help.

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Which flash version do you use?
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Junior Member
    Join Date
    Sep 2006
    Posts
    12
    I am using Flash MX professional 2004 v7.2

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    I move you to actionscript forum.


    Have you trie to add

    System.security.allowDomain("http://www.newwebsite.com/");
    - The right of the People to create Flash movies shall not be infringed. -

  5. #5
    Junior Member
    Join Date
    Sep 2006
    Posts
    12
    That doesn't seem to work. My test jpg (tt.jpg) is located in
    http://www.madderrosegallery.com in a folder called htdocs.
    Any ideas?

  6. #6
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    - The right of the People to create Flash movies shall not be infringed. -

  7. #7
    Junior Member
    Join Date
    Sep 2006
    Posts
    12
    yes it does, I'm just looking at it now. That's my problem. There is a website called
    www.madderrosegallery.com
    on the host server the website folders and files are all kept inside a folder called htdocs. this is where the tt.jpg is.

    http://www.madderrosegallery.com/tt.jpg will show up the image

  8. #8
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Ok,

    the last url works:
    http://flashscript.biz/test/videopre...roxyimage.html

    but when I check the same image inside the folder htdocs just putting the url (as I showed in my last post above) in a browser there is a error 404. The image is not there, no matter what you say.

    The problem is not flash, the problem is the image on the server.
    - The right of the People to create Flash movies shall not be infringed. -

  9. #9
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,045
    htdocs is the folder for the public information. everything that you want accessible to the public has to be in htdocs. basically htdocs is the root of your domain. that folder is sometimes also known to be called "public_html".

  10. #10
    Junior Member
    Join Date
    Sep 2006
    Posts
    12
    So how do you mean the problem is the image on the server? It's just a little jpg?

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