Static initializers are totally different from what he has posted. He did not have the trace statement in a statically initialized block. Having the trace where he had it is invalid and Flash does generate garbage many times...
__________________ Titus M. Plautus - Not by age but by capacity is wisdom acquired.
Last edited by Barna Biro; 03-24-2012 at 05:32 PM.
Static initializers are totally different from what he has posted. He did not have the trace statement in a statically initialized block. Having the trace where he had it is invalid and Flash does generate garbage many times...
It didn't generate garbage though, I checked. It worked. The lack of the curley brackets is syntactically improper but not "totally different" -- I'm not sure curley brackets are required, placing code there is putting it in static initialization scope. Anyway I'm not sure why we're arguing about this it wasn't the problem... cheers!