Can you set the focusRectSkin style?
--
Kenneth Kawamoto
http://www.materiaprima.co.uk/
anuj sharma wrote:
Hi
Does anyone now how to change the border color of the UILoader component
when user clicks on that. I have put UILoader in the sprite container and i
need to implement that if user selects that UILoader its border color will
be changed (to red may be).
Please help me out . Here's the my dummy code for that. Basically what I
need is the border of UILoader to be shown as soon as mousedown event is
generated and the border to hide as soon as mouseup event is generated.
Any help or any new idea will be highly appreciated.
Thanks
Anuj
/****************CODE******************
var container:Sprite=new Sprite();
var myUILoader:UILoader = new UILoader();
myUILoader.source = "XYZ.swf";
myUILoader.load();
container.addChild(myUILoader);
addChild(container);
myUILoader.addEventListener(MouseEvent.MOUSE_DOWN,dragUILoader);
myUILoader.addEventListener(MouseEvent.MOUSE_UP,dropUILoader);
myUILoader.addEventListener(MouseEvent.CLICK, moveSelectedVideoOnFront);
function moveSelectedVideoOnFront(event:MouseEvent):void
{
//Brings selected UILoader on top
}
function dragUILoader(e:MouseEvent):void
{
//Allows dragging of the UILoader
}
function dropUILoader(e:MouseEvent):void
{
//Allows dropping of the UILoader
}
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders