что то данный код не компилится... пишет Error: A file found in a source-path 'Main' must have the same name as the class definition inside the file 'Img'.
Если же сделать так:
Код AS3:
package {
import flash.display.Bitmap;
import flash.display.Sprite;
public class Main extends Sprite
{
[Embed(source='../lib/image.png')]
public class image1 extends Bitmap
{
public function image1() {
super();
}
}
public function Main()
{
}
}
}
то выдает Error: Classes must not be nested.