Category Archives: actionscript

Adobe Flex again after 7 years… need advice of who still working with it

I need to work with Adobe (Apache?) Flex again but there is so much time that I don't remember a thing... need some advice of who is still active

do I still need to use Flex Builder? (which version it is?) should I take the framework from Apache right?

any links or web sites that I cant miss?

thank you very much in advance... not knowing very much where to start of.. any information will be very much appreciated

How to prevent swf from caching an external image?

I have a swf which loads external image and texts.code used in action script is

loadMovie("pics/pic002.png", _root.pic2.empty);

Now if I replace pic002.png with some image ,In firefox the swf does not load new image instead it displayed the cached image.But it work fine with chrome. In order to avoid caching i used the below code

loadMovie("pics/pic002.png?rand="+new Date().getTime(), _root.pic2.empty);

But it throws error as
Error opening URL 'file:///C|/xmpp/xampplite/htdocs/surewaves%5Ffire/new%5Fdynamic%5Fcontent/pics/pic002.png?rand=1464190037815

I have also used meta tags to avoid caching in browser like

<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />

how to prevent it