PDA

View Full Version : [AS3] List Component MouseOver?


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

ND01
04-01-2009, 10:41 PM
Ok, think I need to rephrase this.
Does anyone have any idea how to negate the items
and just treat the list component as a whole.
Dang thing keeps throwing all kinds of mouse events
cause it sees each item as the entire object.

??
please drop a comment, even if it's just a brainstorm.
tx,
nd