Показать сообщение отдельно
Старый 13.04.2011, 00:06
Aloran вне форума Посмотреть профиль Отправить личное сообщение для Aloran Найти все сообщения от Aloran
  № 3  
Ответить с цитированием
Aloran

Регистрация: May 2009
Сообщений: 223
Записей в блоге: 1
что то данный код не компилится... пишет 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.