Can some experts tell me whats wrong with my code ?

Reply

Join Date: Sep 2008
Posts: 17
Reputation: heavenkid is an unknown quantity at this point 
Solved Threads: 0
heavenkid's Avatar
heavenkid heavenkid is offline Offline
Newbie Poster

Can some experts tell me whats wrong with my code ?

 
0
  #1
Sep 17th, 2008
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
******************************************************************
ActionScript Syntax (Toggle Plain Text)
  1. stop();
  2.  
  3. this.addEventListener(Event.ENTER_FRAME, loading);
  4.  
  5. function loading(e:Event):void {
  6.  
  7. var total:Number = this.stage.loaderInfo.bytesTotal;
  8. var loaded:Number = this.stage.loaderInfo.bytesLoaded;
  9.  
  10. if (total == loaded) {
  11.  
  12. play();
  13. this.removeEventListener(Event.ENTER_FRAME, loading);
  14.  
  15. }
  16.  
  17. }

*****************************************************
ActionScript Syntax (Toggle Plain Text)
  1. stop();
  2.  
  3. function goHome (e:MouseEvent):void{
  4. gotoAndStop("Home");
  5. }
  6. home_btn.addEventListener(MouseEvent.CLICK, goHome);
  7.  
  8. function goAbout (e:MouseEvent):void{
  9. gotoAndStop("About");
  10. }
  11. about_btn.addEventListener(MouseEvent.CLICK, goAbout);
  12.  
  13. function goLinks (e:MouseEvent):void{
  14. gotoAndStop("Links");
  15. }
  16. links_btn.addEventListener(MouseEvent.CLICK, goLinks);
  17.  
  18. function goContact (e:MouseEvent):void{
  19. gotoAndStop("Contact");
  20. }
  21. contact_btn.addEventListener(MouseEvent.CLICK, goContact);
Last edited by peter_budo; Sep 18th, 2008 at 1:53 pm. Reason: Keep It Organized - please use [code] tags
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 763
Reputation: Phaelax is on a distinguished road 
Solved Threads: 38
Phaelax Phaelax is offline Offline
Master Poster

Re: Can some experts tell me whats wrong with my code ?

 
0
  #2
Sep 20th, 2008
Did you include the proper package?
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 17
Reputation: heavenkid is an unknown quantity at this point 
Solved Threads: 0
heavenkid's Avatar
heavenkid heavenkid is offline Offline
Newbie Poster

Re: Can some experts tell me whats wrong with my code ?

 
0
  #3
Sep 28th, 2008
do you mean the action script version. hmm mine AS 2.0 though
************************************
I am eager to learn.
On my way to be a workaholic!!!
************************************
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Graphics and Multimedia Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC