Hello all, I'm still new to Flex and trying to tackle this project. 

I have a FLVPlayback component inside my Flex project and it's source
is being provided by a XML file loaded into a Tree control.  There are
several branches to my tree(and sub-branches), and everything works
appropriately when I click on the leafs: The FLVPlayback loads the the
referenced .flv in the XML file.

Where I've run into a brick wall is to get the FLVPlayback to keep
going down the XML file when the movie is finished playing.  I'm
absolutely stuck, I've spent 2 days on this but I'm afraid it's just
beyond my skill level at the moment.  Any help would be GREATLY
appreciate, I'm quite frustrated.

Here's my code, I cut out all the visual stuff I could:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
xmlns:video="fl.video.*" backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#FFFFFF, #FFFFFF]" paddingTop="2"
applicationComplete="init();" layout="horizontal">
        
<mx:Script>
<![CDATA[

import mx.controls.Text;
import mx.events.VideoEvent;
import mx.events.ListEvent;
import mx.collections.XMLListCollection;
import mx.rpc.events.ResultEvent;
import mx.core.IUIComponent;

[Bindable]
private var xLocations:XMLList;
[Bindable]
private var xPhoto:XML;
            
private function init():void 
{
xmlService.send();
videoHolder.addChild(flvPlayback);
}
                        
private function resultHandler(event:ResultEvent):void
{
xLocations = event.result.person;
}
                        
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 
{
?????
}

]]>
mx:Script>
        
<mx:HTTPService id="xmlService" url="data/slideshow.xml"
result="resultHandler(event)" resultFormat="e4x"/>

<video:FLVPlayback id="flvPlayback" source="data/{xpho...@source}"
width="375" height="225" scaleMode="maintainAspectRatio"
skin="data/SkinUnderPlayStopSeekMuteVol.swf" skinAutoHide="false"
complete="nextFLV(event)"/>

<mx:Panel width="700" height="425" borderStyle="solid"
backgroundColor="#CCCCCC" cornerRadius="10" alpha="1.0" paddingTop="0"
roundedBottomCorners="true" layout="horizontal" headerHeight="5">

<mx:Panel width="400" height="100%" y="0" right="253"
status="{xpho...@label}">

<mx:Panel title="{xpho...@title}">

<mx:TextArea text="{xpho...@description}" editable="false"/>
</mx:Panel>

<mx:UIComponent id="videoHolder"/>
</mx:Panel>

<mx:Panel>
<mx:Tree id="locationTree" dataProvider="{xLocations}"
variableRowHeight="true" labelField="@label" 
change="changeHandler(event)" wordWrap="true" 
verticalScrollPolicy="on" openDuration="0"/>
</mx:Panel>
</mx:Panel>
        
</mx:Application>


Reply via email to