Flex Component, Self Reference

Posted on 31 August 2008

I receive this questions quite often, “How do I self reference a Flex component?” — The answer is quite simple and obvious, however it is easily over looked.

Use the event object within the component along with currentTarget to set / get parameters from the current component.
An example click event to change the visibility of a component from within itself would be:

1 Response to Flex Component, Self Reference

  • mpavic says:

    Yo save my life, I’m try with .this.visible=false and nothing after 4 hours I find you solution THANKS a LOOOOT.

  • Recent Posts

    Tag Cloud

    Aanval App Apple Badger Mt. Beef book Calf Cattle Cocoa Cows development Eclipse F-250 F-450 Flex Builder Ford Gaming Horse House IDS iPad iPhone John Deere King Ranch mac Moses Ranch Objective-C off-grid Offgrid Office Outback Press Property Ranch Reining Riding Security Snort Snow tactical flex Tractor Trailer VFX Weather Xcode


    Loyal Moses is proudly powered by WordPress and the SubtleFlux theme.

    Copyright © Loyal Moses