Hello Andrea,

do you mean something like preventing using cached images?

try something similiar:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
      creationComplete="initApp();">
      <mx:Script>
            <![CDATA[
                  import mx.controls.Alert;
                  [Bindable]
                  private var imageURL:String;
                  private function initApp():void{
                        imageURL = "http://www.macromedia.com/images/
homepage/en_us/fma/fma_54_bu_messaging.gif";
                  }
                  private function getRand():String{
                        return "?"+(new Date().getTime());
                  }
            ]]>
      </mx:Script>
            <mx:Image id="img" width="756" height="200" source
="{imageURL+getRand()}"
                  complete="Alert.show('source url: '+img.source.
toString())"
                  click="img.executeBindings()"/>     
</mx:Application>

click image to refresh and see current url,

hope that helps,
kind regards,
Peter Blazejewicz






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to