A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Loading HTML images in AIR

Hybrid View

  1. #1
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,796

    Problem with images via HTML in AIR

    I have the following in an XML file and the image shows up when I target the SWF publishing to Flash Player 10, but when I switch to AIR 1.5 the image stops showing up:

    <P><font color="#727272" size="12px"><img src="images/TheShow-sponsors.jpg" hspace='0' vspace='0'/>
    xyzLorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla dui dolor, dapibus ut consectetur in, scelerisque in augue. Phasellus ullamcorper justo a lacus elementum iaculis. Aliquam placerat lacus in orci ultrices fringilla. Maecenas elementum tortor viverra.</font></P>


    I suspect that the filepath changes when publishing an AIR project, but to what??

    Normally this is local to the SWF:
    images/TheShow-sponsors.jpg

    What would the file path become for AIR?
    Last edited by Ray Beez; 06-15-2011 at 12:27 AM.

  2. #2
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,796
    Is Flashkit dead?

    I found the answer, buried deep in an info page about AIR. Images are prohibited in HTML in AIR for security reasons.

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