Call a function outside of an inline itemrenderer in Flex

I personally do not like using inline itemrenderers in Flex but on occasion I come across a project where they are used.  If you are calling a function from within the inline itemrenderer make sure to call outerDocuemnt followed by the PUBLIC functions name.  You cannot call a private or protected function.  Hope this saves a couple min for someone out there :)

 


<mx:Button click="outerDocument.publicFunctionName()" />


del.icio.us Digg StumbleUpon Facebook Google Bookmarks DZone
| View count: 1911
blog comments powered by Disqus
commerce-broadgauge