ND01
03-31-2009, 05:36 PM
I can't seem to get this to work. It's the list component of songs in a player I'm building. Everything looks good and the thing is moving but, it acts as if each cell were a completely different object. In other words, it moves when I change and mouse over each item on the list, not just the list as a whole. Any ideas??
this.setChildIndex(sliderBox_mc,1);
this.setChildIndex(playList,2);
//Hide Show PlayList
sliderBox_mc.addEventListener(MouseEvent.MOUSE_OVE R, showPlayList);
playList.addEventListener(MouseEvent.MOUSE_OUT, hidePlayList);
function showPlayList(event:MouseEvent):void
{
if (playList.x = 0)
{}
else{
myTween = new Tween(playList, "x", None.easeNone, 289,0, 2, true);
}
}
function hidePlayList(event:MouseEvent):void
{
myTween = new Tween(playList, "x", None.easeNone, 0,289, 2, true);
}
nd
this.setChildIndex(sliderBox_mc,1);
this.setChildIndex(playList,2);
//Hide Show PlayList
sliderBox_mc.addEventListener(MouseEvent.MOUSE_OVE R, showPlayList);
playList.addEventListener(MouseEvent.MOUSE_OUT, hidePlayList);
function showPlayList(event:MouseEvent):void
{
if (playList.x = 0)
{}
else{
myTween = new Tween(playList, "x", None.easeNone, 289,0, 2, true);
}
}
function hidePlayList(event:MouseEvent):void
{
myTween = new Tween(playList, "x", None.easeNone, 0,289, 2, true);
}
nd