charlosian
11-28-2008, 06:30 PM
ok, so i am trying to use the list component to load videos into the flv player, i have already tested the the video loading code and it works. I'm having trouble with getting the the functions in the list component to execute. in the list component i have label: video1 data: player_mc.load("videoname.flv");
on the main timeline actions i have
event_mc.addEventListener(Event.CHANGE, itemChange)
function itemChange(event:Event):void
{
if(event_mc.selectedItem.label)
{
(event_mc.selectedItem.data);
}
}
i also tried a few other things like getURL but none of them worked.
any help is greatly appreciated.
on the main timeline actions i have
event_mc.addEventListener(Event.CHANGE, itemChange)
function itemChange(event:Event):void
{
if(event_mc.selectedItem.label)
{
(event_mc.selectedItem.data);
}
}
i also tried a few other things like getURL but none of them worked.
any help is greatly appreciated.