I am trying to convert someone else's flash application to ActionScript 3. I've never had to deal with ActionScript before now. I've tried to do what the error messages tell me to but they are running me in circles. So here is a simplified version of the situation. I have an action script in the base folder that looks like this:
class IF12345
{
var a0:controls.Button;
var a1:controls.TextArea;
var a2:controls.TextInput;
}
Now the controls look like this:
dynamic class mx.controls.Button extends mx.controls.SimpleButton
{
var enabled;
function Button()
{
}
function draw()
{
}
var borderW = 1;
}
First error I got was it complaining that an action script must have one externally visible class so I added public to the class in the base file. Then it said you can't have a public class without a package so I wrapped it in a package.
After that it said that an action script must have one externally visible class for a control so I added public to the control class. Of course it then complained about needing to be in a package but then when I put the control class in a package it said I can't have a nested package. So at this point I don't know what to do?