That worked great, but one problem.  It only increments by 1 for the original 
selected node, so continuous playback stops after the first increment as it 
starts returning the same ....@source




________________________________
From: Manish Jethani <[email protected]>
To: [email protected]
Sent: Monday, December 22, 2008 3:36:07 PM
Subject: Re: [flexcoders] FLVPlayback using a Tree Control


On Mon, Dec 22, 2008 at 5:31 AM, Jesse <jtbr...@yahoo. com> wrote:

> private function changeHandler( event:ListEvent) :void
> {
> var selectedXML: XML = event.target. selectedItem as XML;
>
> if (selectedXML. name() == "video")
> {
> xPhoto = selectedXML;
> }
> }
> private function nextFLV(e:Event) :void
> {
> ?????
> }
[snip]

See if this works:

xPhoto.parent( ).child(xPhoto. childIndex( ) + 1)....@source

Basically childIndex gives you the current index, parent gives you the
parent, and from there you can increment by 1 and get the next child
in the sequence.

-- 
http://manishjethan i.com/
    


      

Reply via email to