Had a similar issue and I am not sure if this is the best fix but it
worked for me.
I had to place a null reference into the image source before reloading
the same image on top of itself.
I would try something like:

var url:String = "http://localhost/frame.png";;
var urlReq:URLRequest = new URLRequest(url);
framePNG.url= null;
framePNG.url= sURL;
framePNG.send();

I posted my issue here a few days ago #60062
<http://tech.groups.yahoo.com/group/flexcoders/message/60062>  .

Good Luck.

LD


--- In [email protected], "johnesocko" <[EMAIL PROTECTED]>
wrote:
>
> Has anyone load an Image and refreshed it automatically?
>
> What I would like to do is....
> 1. Load Image on document creation.
> 2. Refresh the image every 100 ml secs
> 3. Its the same image.... another app that we wrote writes over the
> original
>
>
> thanks in advance
>
>
>
>
>
>
>
> This doesn't work at all
>
> <?xml version="1.0"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> initialize="initTimer()">
>     <mx:Script><![CDATA[
>         import flash.utils.Timer;
>         import flash.events.TimerEvent;
>         public function initTimer():void {
>             // The first parameter is the interval (in milliseconds).
The
>             // second parameter is number of times to run (0 means
> infinity).
>             var myTimer:Timer = new Timer(1000, 0);
>             myTimer.addEventListener("timer", timerHandler);
>             myTimer.start();
>
>         }
>         public function timerHandler(event:TimerEvent):void {
>
>         }
>         var url:String = "http://localhost/frame.png";;
>    var urlReq:URLRequest = new URLRequest(url);
>    framePNG.url= sURL;                                      //to avoid
> caching
>     framePNG.send();
>
>     ]]>
>
>     </mx:Script>
>
>     <mx:Image id="framePNG" />
>
> </mx:Application>
>

Reply via email to