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

    3D Printing Aanval App Apple Badger Mt. Beef book Calf Cattle Cows development Eclipse F-250 F-450 Flex Builder Ford Horse House Hunting IDS iPad iPhone John Deere King Ranch mac Moses Family Moses Ranch off-grid Offgrid Office Outback Property Ranch Reining Riding Security Snort Snow Storm tactical flex Tractor Trailer Truck VFX Weather


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

    Copyright © Loyal Moses