Put your repeated content into a custom component and repeat that.  Then
your functionality will work as you expect.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of stinasius
Sent: Friday, April 24, 2009 2:06 AM
To: [email protected]
Subject: [flexcoders] argent help needed please

 






hi guys i have a problem with video display play button in flex 2. when i
click the play button i get this error "TypeError: Error #1006: play is not
a function.at custom_comps::home/__playButton_click()". here is my code
please guide me.thanks

<mx:Panel width="350" height="50%" layout="vertical" title="Top 10 Music
Videos of the Month" paddingBottom="2" paddingLeft="2" paddingRight="2"
paddingTop="2">
<mx:VBox width="100%" height="100%"> 
<mx:Repeater id="videos" dataProvider="{myvid}">
<mx:Canvas width="100%">
<mx:VideoDisplay id="videoDisplay" source="{videos.currentItem.video}"
width="120" height="75" x="0" y="0" autoPlay="false"/>
<mx:VBox width="100%" x="128" y="1.5">
<mx:Label text="Title: {videos.currentItem.title}" color="#ff9900"/>
<mx:Label text="By: {videos.currentItem.artist}" color="#ff9900"/>
</mx:VBox>
<mx:Button id="playButton"
upSkin="@Embed('../images/videoPlayer_img/control_play.png')"
downSkin="@Embed('../images/videoPlayer_img/control_play_blue.png')"
click="videoDisplay.play()" x="50" y="27.5"/>
</mx:Canvas>
</mx:Repeater>
</mx:VBox>
</mx:Panel>



Reply via email to