{data.filename} contains something like "./media/file.jpg" minus the
quotes.________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Capilli Sent: Monday, July 16, 2007 4:50 PM To: [email protected] Subject: RE: [AFFUG Discuss] Preview FLV in a mx:List What is {data.filename} Is it Http://www/pics/1.jpg or more /pics/1.jpg? ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Hellriegel Sent: Friday, July 13, 2007 9:21 PM To: [email protected] Subject: [AFFUG Discuss] Preview FLV in a mx:List I'm building a Photo/Video gallery application. When you select a gallery, a mx:List populates with all of the images/videos assigned to it. You click on the thumbnail and it changes the source of mx:Image/mx:Videodisplay. Each file has a filetype assigned to it (image for image, movie for movie). When it tries to display a video in the mx:List, it just shows a broken image icon and it downloads the entire file. So the question is: How do I display a screenshot/thumb of the FLV (and avoid downloading the entire thing) inside the mx:List? Here is the code for the mx:List: <mx:List id="theList" x="0" y="82" width="138" borderStyle="inset" rollOverColor="#FFFFFF" backgroundAlpha="0" height="424" click="updateImage();"> <mx:itemRenderer> <mx:Component> <mx:Image source="{data.filename}" maintainAspectRatio="true" height="60" horizontalAlign="center" verticalAlign="middle" /> </mx:Component> </mx:itemRenderer> </mx:List> If you want to see it in action go to http://www.breakseven.com/flex/gallery/ . The first gallery has a video in the 3rd spot on the mx:List. Thanks, Kevin ------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by FusionLink <http://www.fusionlink.com> ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by FusionLink <http://www.fusionlink.com> ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
