Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-24-2012, 04:56 PM   #11
abeall
Senior Member
 
Join Date: Feb 2006
Location: Washington, DC
Posts: 2,811
Send a message via AIM to abeall
Default

No, not really, Flash Builder might be stricter (it is) but I don't think Flash is generating a corrupt SWF -- static initializers are valid:

http://manishjethani.com/archives/20...alizers-in-as3

Not that putting the trace statement there was a good idea, but I don't think it's invalid. The code ran fine the output was just unexpected.
__________________
Aaron Beall | Flash portfolio | Fireworks extensions | Twitter

Last edited by abeall; 03-24-2012 at 05:00 PM.
abeall is offline   Reply With Quote
Old 03-24-2012, 05:28 PM   #12
Barna Biro
Senior Member
 
Barna Biro's Avatar
 
Join Date: Nov 2009
Location: LU, Switzerland
Posts: 1,410
Default

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.
Barna Biro is offline   Reply With Quote
Old 03-24-2012, 05:56 PM   #13
abeall
Senior Member
 
Join Date: Feb 2006
Location: Washington, DC
Posts: 2,811
Send a message via AIM to abeall
Default

Quote:
Originally Posted by Barna Biro View Post
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!
__________________
Aaron Beall | Flash portfolio | Fireworks extensions | Twitter

Last edited by abeall; 03-24-2012 at 06:11 PM.
abeall is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:48 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.