Copy link to clipboard
Copied
Hi there,
i have a really big problem since last days. I try to load a Image from a server:
<mx:Image source="http://www.myserver.net/testing/123.jpg" id="img" ioError="Alert.show(event.toString())" httpStatus="Alert.show(event.toString())"/>
When i do this with AIR i get this error:
[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2036: Load Never Completed. URL: http://www.myserver.net/testing/123.jpg" errorID=2036]
When i do exactly the same in an flax-app running in the browser, it works! oO How could this be??
Do somebody know whats the reason for this and how i can fix that?
Thx Flavy
Copy link to clipboard
Copied
Are you using a proxy to connect to the server? AIR uses the OS proxy settings, whereas Firefox (for example) uses its own proxy settings. Thus if your Flex app was running in Firefox, it could be using different settings than the AIR app. -- Just one possibility
Copy link to clipboard
Copied
No i using no proxy to connect to the server. But you are right i tried it with firefox and there everything works fine!
Thanks anyway!
Copy link to clipboard
Copied
The Problem still exsists!
Perhaps there is somebody how had the same Problem!
Thanks!
Copy link to clipboard
Copied
Moved discussion to the Problems & Bugs forum.
Copy link to clipboard
Copied
Unfortunately I'm unable to reproduce this using the Flex 4.0 SDK and AIR 2.0.2. The following code displays the image correctly
<?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx:Script> <![CDATA[ import flash.trace.Trace; ]]> </fx:Script> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <mx:Image source="http://wwwimages.adobe.com/www.adobe.com/products/air/assets/images/air_icon_special.gif" id="img" ioError="trace(event.toString())" httpStatus="trace(event.toString())"/> </s:WindowedApplication>
The trace output is:
[HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=200 responseURL=null]
Is this failing on more than one computer for you? Do you mind sending me a sample application so I can test it out on my machine? Which platform does it occur on?
If you decide to send email, please remove all attachment extensions and send the email to ccampbel@adobe.com.
Thanks,
Chris