Error #1009: Cannot access a property or method of a null object reference.


typeerror: error #1009: cannot access property or method of null object reference.

          at basicplayer_fla::maintimeline/onenterframe()[basicplayer_fla.maintimeline::frame1:299]

 

line 019:     // variable list

line 020:     var my_songs:xmllist; // create variable reference xml nodes in playlist

line 021:     var my_total:number; // create variable hold number of songs in playlist

line 022:     var my_sound:sound; // create variable hold sound object

 

 

 

line 298:      // full time

line 299:      var tallytime = (my_sound.length/1000);

line 300:      var totalmins:number = math.floor(tallytime /60);

line 301:      var totalsecs = math.floor (tallytime) % 60;

line 302:      if (totalsecs < 10)

line 303:      {

line 304:           totalsecs = "0" + totalsecs;

line 305:      }

line 306:      timertext_txt.text = ( " " + totalmins+ ":" + totalsecs);

 

i have tried tracing parts of line 299 , not sure on problem can care explain doing wrong cannot see it.

you declare my_sound variable, based on code show, not instantiate it, in...

 

my_sound = new sound()



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account