TypeError: Error #2007: Parameter text must be non-null.
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: TypeError: Error #2007: Parameter text must be non-null.

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Location
    Villefranche-sur-mer
    Posts
    8

    Exclamation TypeError: Error #2007: Parameter text must be non-null.

    Flash keeps throwing this error message at me:

    Code:
    TypeError: Error #2007: Parameter text must be non-null.
    	at flash.text::TextField/set text()
    	at rb_player_mini/video_status()
    	at Function/http://adobe.com/AS3/2006/builtin::apply()
    	at SetIntervalTimer/onTimer()
    	at flash.utils::Timer/_timerDispatch()
    	at flash.utils::Timer/tick()
    This is my function:

    Code:
    function video_status()
    {
    	rb_control_bar.status_bar.load_progress_bar.width = rb_control_bar.status_bar.clickable_area.width = rb_ns.bytesLoaded * rb_control_bar.status_bar.load_progress_bar_bg.width / rb_ns.bytesTotal;
    	
    	rb_control_bar.status_bar.rb_bar.width = rb_control_bar.status_bar.status_bar_scroller.x = rb_ns.time * rb_control_bar.status_bar.load_progress_bar_bg.width / video_duration;
    	
    	rb_control_bar.status_bar.status_text.text = pad_zero( Math.floor( rb_ns.time / 60) ) + 
    				":" + pad_zero( Math.floor( rb_ns.time % 60) ); 
    	rb_control_bar.status_bar.dur_text.text = total_min_sec;
    }
    It is very odd because I have tested this movie externally, independently from the flash document it is currently incorporated into. It woks fine alone, just within the current flash document.

  2. #2
    Dignitary rynoe's Avatar
    Join Date
    Jan 2003
    Location
    Earth
    Posts
    756
    Prolly missing a text field or wrong name.

Tags for this Thread

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