943,879 Members | Top Members by Rank

Ad:
Sep 17th, 2008
1

Can some experts tell me whats wrong with my code ?

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
heavenkid is offline Offline
17 posts
since Sep 2008
Sep 20th, 2008
0

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

Did you include the proper package?
Reputation Points: 92
Solved Threads: 51
Practically a Posting Shark
Phaelax is offline Offline
856 posts
since Mar 2004
Sep 28th, 2008
0

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

do you mean the action script version. hmm mine AS 2.0 though
Reputation Points: 10
Solved Threads: 0
Newbie Poster
heavenkid is offline Offline
17 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Graphics and Multimedia Forum Timeline: how to Create Digital Brochure by Flash or Swishmax
Next Thread in Graphics and Multimedia Forum Timeline: Anyone familiar with how to create a color fade





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC