There are some problems there. I am working on oen big project for some time. And started migration month ago. There are problems with debuger and formating things... For exampel formater can add ';' in places he thinks it should be... I had block of code that looked so
And after formating he added ';'
Which is wrong... Those code block are nto equal any more...
Also i have big problem with some inner compiler error... I can't recreate... And it is in comercial part of code so i can't send it with bug report yet...
Compiler is yalling that he does not know defenition of MainTimeLine(default thing that is created aiutomaticly) and many other core variables... I spend 3 days looking for part of code that leaded to it. And there was XML parsing part like that:
var infobject = new Object();
info.n1 = Number(xml.@n1);
info.n2 = Number(xml.@n2);
info.n3 = Number(xml.@n3);
info.n4 = Number(xml.@n4);
So if i comment one of (3 or 4) lines then it starts to work... Then if i not comment but change it a little like that:
var n3:Number = Number(xml.@n3);
info.n3 = int(xml.@n3);
it starts to work... IT freaks me out It works for nwo but i fear to make majot changes in this class... Becouse this error show ups aggain and dissapiars... Black AS3 magic or something
So AS3 and it's comppiler still needs some work to be done... I am eagarly waiting for updates...
I get an idea then I just go with it. First good AS book I read had to be Actionscript The Definitive Guide by Collin Moock. His current iteration of the series (Essential AS2.0) is another good, more upto date, read.
For general flash knowlage Flash 8: Training From The Source is a good book aswell.
With the way I have it setup I only check to see if the space to the left or right of the pixel is higher. If you look at the earlier versions of this I pretty much laid out how I did it in one of the comments I think.