Pergunta

I am trying to create this very simple hello world kind of application . And no matter what I try I am getting this error . Here is Error and Defination of class in TheSimplestPlayer.as file .

VerifyError: Error #1079: Native methods are not allowed in loaded code.
ReferenceError: Error #1065: Variable TheSimplestPlayer is not defined.

package
{
    import flash.display.Sprite;
    public class TheSimplestPlayer extends Sprite
    {
        public function TheSimplestPlayer()
        {
        }
    }
}

enter image description here

enter image description here

Foi útil?

Solução 2

Its silly I am answering my own question . But I added playerglobal.swc file under lib and thats how it stopped working , I removed all additional swc files and that fixed the issue .

Thanks for all your help .

Outras dicas

Are the flash file and the AS file in the same directory?

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top