Skip navigation
DKNMSIS
Currently Being Moderated

extreamly noob AS3 question- using a *.as file with main timeline

May 20, 2012 12:01 PM

Tags: #cs5.5 #action_script_3 #ac3 #actions #addchild #classes

I'm in the midst of adding a performance monitor to a mobile application that has no actionscript yet, I just want to test performance of animations

 

https://raw.github.com/mrdoob/Hi-ReS-Stats/master/src/net/hires/debug/ Stats.as that is the stats.as file I have in my root folder with the .fla

I removed the folder location "net.hires.debug" from the stats.as file

 

what do i need to type to load the .as file

 

it says to use the addchild function, I'm new to as3 and am a bit confused with classes

 

right now my first frame actions layer, it says

addChild (new Stats() );

 

and when executing this

addChild(new Stats()); it gives me error 1180: call to a possible undefined method Stats

 
Replies
  • Currently Being Moderated
    May 20, 2012 2:07 PM   in reply to DKNMSIS

    Is the file named "stats.as" or "Stats.as" (you show it both ways)?  It needs to be named Stats.as

     
    |
    Mark as:
  • Currently Being Moderated
    May 20, 2012 4:46 PM   in reply to DKNMSIS

    You're welcome... not 24/7, but I visit when I have time

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points