I am currently learning flash from a tutorial which teach step by step i did step by step but somehow it cant work as i m a newbie i dunno how to fix it

tutorial link = http://www.oman3d.com/tutorials/flash/simple_website/
*************************************************************************

**Error** Scene=Scene 1, layer=Action, frame=1:Line 5: The class or interface 'Event' could not be loaded.
function loading(e:Event):void {

**Error** Scene=Scene 1, layer=Action, frame=2:Line 3: The class or interface 'MouseEvent' could not be loaded.
function goHome (e:MouseEvent):void{

**Error** Scene=Scene 1, layer=Action, frame=2:Line 8: The class or interface 'MouseEvent' could not be loaded.
function goAbout (e:MouseEvent):void{

**Error** Scene=Scene 1, layer=Action, frame=2:Line 13: The class or interface 'MouseEvent' could not be loaded.
function goLinks (e:MouseEvent):void{

**Error** Scene=Scene 1, layer=Action, frame=2:Line 18: The class or interface 'MouseEvent' could not be loaded.
function goContact (e:MouseEvent):void{

Total ActionScript Errors: 5 Reported Errors: 5


******************************************************************
i ll paste out my codes too
******************************************************************

stop();

this.addEventListener(Event.ENTER_FRAME, loading);

function loading(e:Event):void { 

var total:Number = this.stage.loaderInfo.bytesTotal;
var loaded:Number = this.stage.loaderInfo.bytesLoaded; 

if (total == loaded) {

play();
this.removeEventListener(Event.ENTER_FRAME, loading);

}

}

*****************************************************

stop();

function goHome (e:MouseEvent):void{
gotoAndStop("Home");
}
home_btn.addEventListener(MouseEvent.CLICK, goHome);

function goAbout (e:MouseEvent):void{
gotoAndStop("About");
}
about_btn.addEventListener(MouseEvent.CLICK, goAbout);

function goLinks (e:MouseEvent):void{
gotoAndStop("Links");
}
links_btn.addEventListener(MouseEvent.CLICK, goLinks);

function goContact (e:MouseEvent):void{
gotoAndStop("Contact");
}
contact_btn.addEventListener(MouseEvent.CLICK, goContact);

Recommended Answers

All 2 Replies

Did you include the proper package?

do you mean the action script version. hmm mine AS 2.0 though

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.