Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-10-2008, 10:37 PM   #1
Registered User
Join Date: Dec 2008
Posts: 4
Default Using icons with list component

I have a custom flash video player with a list of videos (using the list
component). The video descriptions and locations of the .flv files are extracted and generated from an XML file.
(See http://www.cloudcaptech.com/moviepla...ery_video.shtm)

I have thumbnail images next to each list item.
These thumbnails, (or icons) are symbols imported from the library.

Is there a way to use info from the XML file to specify the URL of the icon
thumbnails, then load them into a placeholder symbol instead of having
to place them in the library to use as icons next to each list component?

I've tried to put a placeholder symbol in the library, then use loadMovie into this placeholder to load each thumbnail image for the icons but I can't seem to get that to work. Here's the code:

var videos2:Array = this.firstChild.childNodes; //take all video tags in xml file and put into an array which will populate list component
videoList_piccolo.iconField="icon"; //designate the icon field
for (index=0;index<videos2.length;index++) { //iterate through array of videos and populate the list
var labelItem:String = videos2[index].attributes.desc; //the video description
var dataItem:String = videos2[index].attributes.url; //the video url
var imageItem:String = videos2[index].attributes.img; //the thumbnail url

icon_placeholder.loadMovie( imageItem ); //load image into placeholder symbol
videoList_piccolo.addItem({label:labelItem, data:dataItem, icon:icon_placeholder, img:imageItem}); //add items to the list

deeh is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drag drop from datagrid to list component RR_QQ Components 1 02-06-2008 02:40 PM
List Component - Transparent Background? Foochucks Components 0 01-13-2008 05:35 PM
MP3 Player using List Component and XML Playlist dogandking Components 0 12-05-2006 05:47 PM
Custom Component with List carriker Components 0 11-01-2006 04:27 PM
List Component Double-Click Fuzzplug Jones Components 3 04-18-2006 10:10 PM

All times are GMT. The time now is 12:28 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.