In the 0.95 version of Cairngorm the ViewHelpers were identified by their name attribute. I could initialize the name attribute with a call to a method. But in the 0.99 version the name attribute has gone away, and the ViewHelper is identied by the id attribute. The id attribute cannot be initailized at run time, it must be evaluated a compile time.
In the application I am developing I have a view that has a ViewHelper. The view is used many times As a result I need to have many ViewHelpers. The Views and ViewHelpers are created at runtime so I cannot hard code the ids for these objects. Each ViewHelper must have a unique name, but since I cannot call a method when assigning the id attribute I cannot do this. Will this work: <mx:Script> <![CDATA[ var viewHelper : ViewHelper = ViewHelperBuilder(this); ]]> </mx:Script> This allows me to set the id without a compiler error, but will the initialized( document: Object, id: String) method be called with the the correct object? Stephen Inzer 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/