Add Video in DataGrid already uploaded 1 this is another way.


videoinDG2.mxml

<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml&#8221; layout=”absolute”>
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var arr:ArrayCollection=new ArrayCollection([{Artist:’Pavement’, Vdo:’Sample1.FLV’}]);
]]>
</mx:Script>
<mx:DataGrid x=”222″ y=”51″ height=”399″ width=”436″  dataProvider=”{arr}” >
<mx:columns>
<mx:DataGridColumn headerText=”Column 1″ dataField=”Vdo”  itemRenderer=”video”/>
<mx:DataGridColumn headerText=”Column 2″ dataField=”Artist”/>
</mx:columns>
</mx:DataGrid>
</mx:Application>

video.mxml

<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Canvas xmlns:mx=”http://www.adobe.com/2006/mxml&#8221; width=”332″ height=”252″>
<mx:VideoDisplay x=”36.5″ y=”10″ width=”259″ height=”234″ source=”{data.Vdo}”/>
</mx:Canvas>

Advertisements

~ by mjcprasad2000 on May 19, 2009.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

 
%d bloggers like this: