문제

TypeError: Error #1009: Cannot access a property or method of a null object reference. at RadioSkonto_fla::MainTimeline/onEnterFrame()[RadioSkonto_fla.MainTimeline::frame1:30]

There is the code!

http://radosi.lv/2/screen.png

Please help!

도움이 되었습니까?

해결책

It's because, on the first call to onEnterFrame, fl_SC has not been defined - fl_SC is only set to s.play() when the user clicks play_btn.
Either check that fl_SC has been defined before checking a property of it, or change the sequence of events so that there's an instance of fl_SC at the first call to onEnterFrame.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top