Pit Digger
Pit Digger

Reputation: 9800

A Hello World in ActionScript Not working

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

Upvotes: 2

Views: 396

Answers (2)

Pit Digger
Pit Digger

Reputation: 9800

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 .

Upvotes: 0

Zecrow
Zecrow

Reputation: 233

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

Upvotes: 0

Related Questions