Mihai Chira wrote
> I would use event.target. I haven't compiled the code, but I imagine
> something like this should work:
>
> if(event.target == p)
> {
> removeElement(p);
> p = null;
> }
Unfortunately "target" and "currentTarget" refers always to the "Panel".
Olaf
--
View this
I would use event.target. I haven't compiled the code, but I imagine
something like this should work:
if(event.target == p)
{
removeElement(p);
p = null;
}
On 19 September 2016 at 16:21, OK wrote:
> Code was eaten by the mailing list, here's just the modified
Code was eaten by the mailing list, here's just the modified function:
private function onRollout(event:MouseEvent):void {
// Analyze the "relatedObject" property
if(event.relatedObject!=null && Group(event.relatedObject).id !=
"dropDown") {
removeElement(p);
>How can this be avoided? The Panel should stay open...
This modified "onRollout" code will work but maybe there is some more
elegant way.
It uses the relatedObject property [1].
Btw:
Instead of the Panel maybe the Callout component [2] better suits your
needs?.
HTH,
Olaf
[1]