A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: this error is driving me crazy...

Hybrid View

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    15

    Red face [B]########this error is driving me crazy...###########[/B]

    [B]Please bare with me, I just started doing AS about a month ago.
    I have a small graphical player and I want to load an external mp3 file into it. Now once the mp3 file is playing, I want the Play button to not play the same file again. Maybe these pictures will explain better what I mean...

    the code is working in this pic:


    the code is not working in this pic:


    I know, I can use "removeEventListener" instead and it will work the way I want it to, but I wanted to know if some expert here could explain to me why this is giving me this error.

    thank you all in advance ,

    Aeson
    Last edited by aeson; 09-20-2010 at 12:36 PM.

  2. #2
    Senior Member
    Join Date
    Jan 2009
    Posts
    208
    trace channel1 in your playBgMusic function, where you have highlighted it, i believe its null.

  3. #3
    Junior Member
    Join Date
    Sep 2010
    Posts
    15
    thank you my friend you are the BEST.
    I felt pretty dumb for not seeing that...

    thanks once again...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center