So basically i have my root folder with my fla and my document class in it,
then I have a folder called ‘main’ with another class in it (Control)
But I can’t seem to import my main.Control into my document class… (I would like to create an instance)
package{
import flash.display.*
import main.Control//is this wrong?
public class init extends MovieClip{
public function init(){
new Control(stage);
}
}
}
also, this is the Control class’s definition:
package main{
import flash.display.*
import flash.events.*
public class Control extends MovieClip{
function Control(stage){
var menu=new Menu(stage);
addChild(menu);
}
}
}
This should be simple right? I’m guessing the import statement is wrong…