[Red5] Error In Toggling Pause/Play

John Kirby jjkirby at comcast.net
Thu Nov 9 17:11:27 EST 2006


Yup... tried that no effect... I'm wonder if the timer can cause this?

Dan Rossi said the following:
> try commenting out this
>
> rFlex.msgs.text = "Now Playing: " + 
> rFlex.videoListContainer.selectedItem.valueOf().label
>
> are you on the flex list at all ? its ok they, tend to not reply alot 
> though.
>
> John Kirby wrote:
>> I'm get this Error #2006 when I try and resume a video on pause.  
>> Anyone seen this before?
>>
>> public function resume():void{
>>             if(rFlex.playBtn.label == "Pause"){
>>           
>>                rFlex.msgs.text = "Video Paused ";
>>               stream.togglePause()
>>               myTimer.stop();     
>>                 rFlex.rewindBtn.enabled=false;
>>               rFlex.playBtn.label = "Play"
>>            }else{
>>                    rFlex.playBtn.label = "Pause"
>>                    rFlex.msgs.text = "Now Playing: " + 
>> rFlex.videoListContainer.selectedItem.valueOf().label
>>               
>>                      myTimer.start();
>>                 
>>                    stream.togglePause()
>>                 
>>                rFlex.rewindBtn.enabled=true;
>>                rFlex.closeBtn.enabled=true;
>>              
>>            }
>>            
>>        }
>>
>> Error #2006: The supplied index is out of bounds.
>>     at flash.display::DisplayObjectContainer/getChildAt()
>>     at mx.core::Container/getChildAt()
>>     at mx.containers.utilityClasses::CanvasLayout/updateDisplayList()
>>     at mx.containers::Canvas/mx.containers:Canvas::updateDisplayList()
>>     at mx.core::UIComponent/validateDisplayList()
>>     at mx.core::Container/validateDisplayList()
>>     at mx.managers::LayoutManager/::validateDisplayList()
>>     at mx.managers::LayoutManager/::doPhasedInstantiation()
>>     at Function/http://adobe.com/AS3/2006/builtin::apply()
>>     at mx.core::UIComponent/::callLaterDispatcher2()
>>     at mx.core::UIComponent/::callLaterDispatcher()
>> -- 
>> /Whether you think that you can, or that you can't, you are usually 
>> right./
>>  - Henry Ford
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>   
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>   

-- 
/Whether you think that you can, or that you can't, you are usually right./
 - Henry Ford
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20061109/03c3ca40/attachment.htm


More information about the Red5 mailing list