Hi Everyone, once again

I run into another [probably very easy to solve] issue with my code:

Through an simple for loop, i fade out all items inside an holder,
leaving only one that was clicked, here you can see the loop doing it:

for (var i : int = 0;i < navHolder.numChildren;i++) {
        if(!(navHolder.getChildAt(i) == itemClicked)) {
                Tweener.addTween(navHolder.getChildAt(i), {alpha:0, time:.5});
navHolder.getChildAt(i).mouseEnabled = false; // not working - gives me an compile error
        }
}

this does what it's suppose to do, but i want to prevent items that are fade away from dispatching any mouse events, i thought, that adding this line would solve it, but now i got an compile error with an info that i try to access an possibly not
existent property :|

navHolder.getChildAt(i).mouseEnabled = false;

I don't know if my approach is right here, but i thought, that accessing
children properties would be possible this way, obviously i'm wrong, has anyone got
an tip or an solution for me?

Thank you in advance!

Patrick
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to