R – Flex: swiz .6.2 undefined method loadbeans


I'm trying to set up the swiz framework in flex but cant seem to get it to compile. Im using swiz 0.6.2 and flex 3.0.2. The swc is in the libs directory of my flex project.

Im following the tutorial here: http://code.google.com/p/swizframework/wiki/DefiningApplicationComponents

and my code looks like:


<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
                    layout="absolute" width="100%" height="100%"

            import org.swizframework.Swiz;

            private function onInitialize() : void {
                    // load up swiz beans
                    Swiz.loadBeans( [ Beans ] );

    <!-- rest of view -->



<?xml version="1.0" encoding="utf-8"?>
<BeanLoader xmlns="org.swizframework.util.*" xmlns:mx="http://www.adobe.com/2006/mxml">
    <!-- custom channel set -->
    <DynamicChannelSet id="myAmfChannel">

    <!-- user service --> 
    <mx:RemoteObject id="userService" 

when i try to compile i get the error unidentified method loadBeans through a reference with static type Class. any thoughts?

Best Solution

figured it out. this is all old swiz syntax and the docs were outdated. a great tutorial for understanding the correct way is here : http://www.firemoss.com/index.cfm/2009/10/21/Swiz-in-20-minutes-video--byebye-boilerplate .

Related Question