[flexcoders] Border container create generic mouseOver function

Thursday, December 15, 2011

 

Hi,

I try to create a function to change border property of border container.
To do that I create a function for each border container on my MXML.

But I'd to code better and to do a generic function.

Today my function is:

protected function bcContact_mouseOverHandler(event:MouseEvent):void
{
// TODO Auto-generated method stub
bcContact.setStyle("borderVisible",true);
bcContact.setStyle("borderWeight",2);
bcContact.setStyle("borderColor",'#000099');
}

bcContact is one border container Id.

I try to replace bcContact by this but it doesn't work.

Can you help me to solve this beginner mistake.

Thanks

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

0 comments:

Post a Comment