Question

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

Was it helpful?

Solution 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 .

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top