Thanks senocular you were very helpfull.
As you said I have split classes into separate files (ClassName.as) and created package in each file.
When package dosen't have name everything is ok
Code:
package
{
import flash.display.*;
public class test extends MovieClip
{
public function test()
{
trace("created");
}
}
}
Code:
t1 = new test()
this.addChild(t1)
Now when I am trying to add package name
Code:
package myPackage
{
import flash.display.*;
public class test extends MovieClip
{
public function test()
{
trace("created");
}
}
}
Code:
import myPackage.*;
t1 = new test()
this.addChild(t1)
Flash 'see' test class, becouse constructor is called, but also throws error:
ReferenceError: Error #1065: Variable test is not defined.
I can still linkage my 'library MC', but becouse of this error mc dosen't apear on stage