Manish Jethani wrote:
> I'm not sure I understand the scenario, but "creationComplete" is
> triggerred once and exactly once for every UIComponent instance.
> Could it be that you're getting events from child objects as well? If
> that's the case, you could check for the event object's 'target'
> property to make sure it refers to the object you're listening for.
>
> function creationCompleteHandler(event)
> {
> if (event.target == myCanvas) {
> ...
> }
> }
You're right, it's because of event bubbling and can be solved by
checking event phase for equality with EventPhase.AT_TARGET constant as
well.
--
Michael "Antares" Klishin,
Email: [EMAIL PROTECTED]
Web: www.novemberain.com
Non progredi est regredi
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> 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/