Here's a weird thing I found today - if you have a Flash application, say originally built for Flash Lite 2.1 and you're suddenly asked to make it work on the desktop... The obvious thing to do is go to the export settings, change it to Flash Player 8 or whatever then publish.
What I found today is that ANY code on a given frame that has FSCommands on it halts code execution. So if for example you do the conventional thing and put all your Actionscript code on frame 1 - if there are FSCommand2s there - the whole thing just fails when compiled.
I tested this by putting a trace command in after the FSCommand after noticing the app just wasn't starting when exported to Flash Player 8 rather than Flash Player 2.1, which worked fine - a very odd thing indeed - and of course these weird findings are the main reason why I started this Flash Developer blog!
About Me
- derekcfoley
- Derek lives in Wall Street, Lee-Over-Sands, St Osyth. A mobile and event software/product designer by trade - and is keen to improve things for all the local residents - and has lived in this idyllic location since 2009.
Thursday, 3 June 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment