I am trying to use the mx:ButtonBar to control my movie.
I can control the movie just fine with mx:Button and the Click event.
Example.
<mx:Button label="Pause" click="{myVid.pause()}"/>
<mx:Button label="Play" click="{myVid.play()}"/>                
<mx:Button label="Rewind" click="{myVid.stop()}"/>
I just can't figure the right method of putting together the 
dataprovider for the ButtonBar to send these comands to the 
VideoDisplay.

Some things I have tried are'
<mx:ButtonBar itemClick="clickHandler(event);" id="btbTwo" 
horizontalGap="1"  width="200">       
<mx:dataProvider>
<mx:Array>
<mx:Object label="Play" item="{myVideo.play()}"/>
<mx:Object label="Pause" item="{myVideo.pause()}"/>
<mx:Object label="Rewind" item="{myVideo.stop()}"/>                
</mx:Array>
</mx:dataProvider>
</mx:ButtonBar>
Documentation talks of an Object called item as a property of 
ButtonBar ItemClickEvent

If anyone has this done could I find out how?

Thanks,

                        





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to