I too am struggling with converting AS2 to AS3. I have tried some of the tips in this thread and have not had any work for me.
I have inherited an ongoing AS3 project that I have been asked to complete. This is my first foray into AS3 and it is kinda killing me slowly
The work has been created with a number of external custom classes. I am trying to add an additional function and call to one of these classes. At first I added some code to the root timeline, in good old AS2 fashion. Almost everything worked as expected. I have since copy/pasted the code from timeline into the class, and I need to connect a function in the class to an MC on the root stage. So far I cannot do it.
Strange thing is the Array() I declared here worked perfectly when on the root timeline, but it gives me 'undefined property' errors when used in the class.
Here is the additional code I added to the class, dial_mc being an MC on the root stage.
public var locRoot = root;
public var dialRote:Array = new Array();
dialRote = 100.6;
dialRote = 60.7;
dialRote = 20.25;
dialRote = -19.5;
dialRote = -60;
dialRote = -99.9;
public var dialPos:int = 0;
public var curRote:Number = dialRote[dialPos];
locRoot.dial_mc.rotation = dialRote[dialPos];
locRoot.dial_mc.alpha = 100;
Any help with the root property or the array elements would be GREATLY appreciated right now