Hi Cliff,
The new ViewHelper class no longer supports the view attribute as a
public variable. The class now takes advantage of the built in 'id'
tag, hence your ViewHelper declaration now becomes this:
<myView:AppViewHelper id="appViewHelper" />
By extending mx.core.MXMLObject the ViewHelper super class can
leverage the initialized event by creating an initialized function.
Rather than directly passing a reference to the component using
view="{this}", the initialized method already receives a 'view' object
(the MXML document that created the view helper) and an 'id' which is
used by the document to refer to your viewhelper object.
On initialization the ViewHelper is registered with a ViewLocator and
an 'unload' event is delegated to a local method which unregisters the
viewhelper, allowing it to be re-registered at a later time (popup
window is a good example).
Good question, hope all this helps.
Andrew Spaulding
www.flexdaddy.info
--- In [email protected], "Clifford Hall" <[EMAIL PROTECTED]> wrote:
> I'm having some difficulty getting this to happen.
>
> I have a prototype app that works using 0.95, and am trying to
> migrate to 0.99.
>
> First, I deployed the cairngorm.swc and cairngorm-manifest.xml to
> their appropriate locations and edited flex-config.xml to add the
> new namespace entry.
>
> Then I replaced com.iterationtwo with org.nevis throughout the
> application and replaced the top-level CairngormApplication tag with
> the ordinary mx:Application tag.
>
> Of course a redeploy of everything and a server restart.
>
> The error I can't get past is:
> -------%snip%---------------
> Error /WEB-
> INF/flex/user_classes/com/mydomain/myapp/view/AppView.mxml:10
> Unknown attribute 'view' on com.mydomain.myapp.view.AppViewHelper
>
> Error
> Could not find class 'org.nevis.cairngorm.view.ViewHelper'...
> -------%snip%---------------
>
> the line throwing the error is:
> <myView:AppViewHelper id="appViewHelper" view="{ this }" />
>
>
> Has anyone done a doc on migrating to 0.99 yet? Does anyone
> recognise the above problem from having migrated?
>
> -=Cliff>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
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/