RE: [flexcoders] Flex Builder caching PNGs

2008-12-09 Thread Jim Hayes
From what I can tell FB will not detect changes in files (images, and I
believe css files) by itself, so if you change one then run/debug it
will think nothings different and just show the last compiled version.
 
When I'm doing stuff like that, I've got into the habit of just
adding/deleting a space character to one of the mxml or .as files in the
project, which FB will then notice and force a recompile that *does*
update the resource in the build. It's at least easier than renaming a
whole file.
 
If there's a better way then I'm unaware of it I'm afraid. It does still
catch me out from time to time.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tom s
Sent: 09 December 2008 13:27
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Builder caching PNGs
 
I'm @Embedding some PNGs to skin some buttons. 
If I Run once, then edit the PNG file, then Run again I get the old PNG
(w/o the edits), not the new one. 
My current work-around is to rename the file after each change, but this
is a pain. 
 
How do I get Flex Builder to not cache the PNGs / to check for changes
on each compile?
 
thanks
 
tom
 
 
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

Re: [flexcoders] Flex Builder caching PNGs

2008-12-09 Thread Fotis Chatzinikos
Hi Tom,

I had the same problem, did not really found a good solution... It seems
that flex does some kind of trancoding and this does not pick up changed...

What worked is to delete all images, recompile the project, get some errors
on missing resources and then paste the new images and recompile

On Tue, Dec 9, 2008 at 3:26 PM, tom s [EMAIL PROTECTED] wrote:

   I'm @Embedding some PNGs to skin some buttons.
 If I Run once, then edit the PNG file, then Run again I get the old PNG
 (w/o the edits), not the new one.
 My current work-around is to rename the file after each change, but this is
 a pain.

 How do I get Flex Builder to not cache the PNGs / to check for changes on
 each compile?

 thanks

 tom


  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],


Re: [flexcoders] Flex Builder caching PNGs

2008-12-09 Thread Jon Bradley


On Dec 9, 2008, at 8:26 AM, tom s wrote:

How do I get Flex Builder to not cache the PNGs / to check for  
changes on each compile?


I think there's a bug there somewhere.

What I do is go into the class where the embed tag is and make a  
change to the embed tag, then save, then make the change back again.  
Then run/debug.


Works for me, even though it is a bit of a PITA.

cheers,

jon