andrewalb

andrewalb
- Name: [not set]
- Favorite Languages: [not set]
- Website: [not set]
- Location: [not set]
- About Me: [not set]
-
Flex - Using Item Renderers
11/12/2009 - 10:35
Very nice example and extremely useful and helpful.
Thanks a lot!Of course, one question though - is it still possible to access methods in my script?
Typically when calling methods from within an inline itemRenderer I would prefix the method with "outerDocument." - to back out the scope to the main context.
Is something similar possible in this example?
Thanks again!
UPDATE:
So as it turns out what I needed was
parentDocument.outerDocumentworked when the itemRenderer was inline with the other xml but in a custom component I needed to useparentDocument.NOTE - the method you are calling must be public.
Apparently, you can also do it like:
import mx.core.*;
"Application.application.methodName();"Just thought others might find that useful.
Recent Comments