hi,

this is an old bug of flash 7 and in flash 8 the fix is a new feature ...
add a new project and put all used files in it (.fla and .as) then use the
new very improved and genious feature of flash: "delete aso files and test
movie" while your main .fla is active.

if you dont use flash 8 you have to find the .aso files (somewhere in
macromedia directory of userdir - dont know the correct path) which are the
precompiled classes. delete it and recompile your "football.swf"

so you dont have to made your class-name-change-dance


hope this helps
tobias

ps: sorry about my bad english :)


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Kris Hadlock
> Sent: Thursday, November 17, 2005 7:22 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Cached Class instance
> 
> 
> Did you happen to get this fixed?
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf 
> Of Pete Hotchkiss
> Sent: Monday, November 14, 2005 4:36 PM
> To: 'Flashcoders mailing list'
> Subject: [Flashcoders] Cached Class instance
> 
> 
> I've stumbled across something of an annoying bug in Flash 8.
> 
> It's difficult to accurately re-create but it's realy 
> starting to p**s me off.
> 
> I'm creating an app that has a base Application class that 
> loads .swfs into a movie clip instance. Each of these swfs 
> have bunch of stuff it, some of which talk back to the base 
> app class. Nothing new there.
> 
> However, lets say on of these .swfs loaded in has an instance 
> of a class, lets call it football. I code a bunch of stuff 
> for this class compile it into the swf, and all works. Then I 
> test loading this football.swf into my base app. It all works 
> fine there also.
> 
> So I carry on making a bunch of changes to my football swf, 
> mostly code but some visual changes. I re compile the 
> football .swf, and local I see all the changes. I load it 
> into the base app swf and all works ok.
> 
> Lets say I have several rounds of this. Change > Test > 
> Change > Test etc etc.
> 
> Ok you get the picture.
> 
> No at some point, and it's completely in consistent when it 
> occurs, the base app decides it's going to ignore any CODE 
> changes you make to your football class. It just stubbornly 
> ignores any change you make. If I test the football.swf 
> locally, the code changes are displayed and all works. It's 
> just when loaded into the base app it falls over. 
> 
> And here's 2 crazy things - I know it is DEFINITELY NOT 
> cacheing the swf as any visual changes in the football.swf 
> are reflected in the swf that's loaded into the app. It's 
> only code that is ignored.
> 
> More interestingly, if I go - SOD THIS FOR A LAUGH - a 
> re-code the class verbatim - with a new class name (not 
> instance name but Class name) the new code changes work when 
> loaded into the base app. Truly very weird. And it gets 
> weirder. This has been occurring ALL day - so I've been 
> through about 6 rounds of class name changes - and I've run 
> out of suitable names. So I go back to the ORIGINAL class 
> name, and hey presto
> - code that must be 4 hours suddenly appears when running the 
> base app.
> 
> Ok - so I've tried the following.
> 
> Re-starting Flash ... Makes dito of a difference
> Copying the Files to a local drive (I recall hearing a 
> problem compiling over a networked drive) Renaming the FLA's
> 
> About the only thing I haven't done is restart my machine - 
> but it just aint practical to do that every 40 mins or so.
> 
> So question.
> 
> Has anybody else seen this behavior before?
> Have I inadverntaly pressed some inadvertently key combination
> (CTRL-SHIFT-ALT-Q-W-E-R-T-Y) that triggers a cache option in 
> the compiler ?
> 
> This is a Win2k box - with buckets of ram.
> 
> 
> Frustradedly
> Pete
> 
> 
> _______________________________________________
> Flashcoders mailing list
> [email protected] 
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> _______________________________________________
> Flashcoders mailing list
> [email protected] 
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> 

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to