private function clickSelectionHandler(canvas:Canvas):void {
var clickPoint:Point = new Point(canvas.mouseX, canvas.mouseY);
for (var i:uint = 0; i<canvas.numChildren; i++) {
var child:* = canvas.getChildAt(i);
var cBounds:Rectangle = child.getRect(canvas);
if (child.getRect(canvas).containsPoint(clickPoint)) {
child.showControls = true;
setToFront(child);
child.setFocus();
} else {
child.showControls = false;
}
}
trace(focusManager.getFocus ());
}
2006/9/20, cjo_group <[EMAIL PROTECTED]>:
Hi,
I have my own UIComponent in which I add different kind of
IFlexDisplayObject using addChild.
At some point I want to get the IFlexDisplayObject under the mouse
pointer.
If the object under the mouse pointer is a FlexShape or a
ProgrammaticSkin all is doing well. But if it is a MovieClipAsset (a
loaded SWF for example) it is not finding it.
Is there something I could do wrong? Doesn't it look like a bug?
Thanks.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcomponents/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcomponents/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto: [EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
__._,_.___
SPONSORED LINKS
| Software development tool | Application development software | Development software |
| Development outsourcing software | Embedded software development |
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
