Flash AS3 Project - Views

35 views
Skip to first unread message

Lisa Backer

unread,
Jan 30, 2012, 11:54:21 AM1/30/12
to Swiz Framework
I have a Flash (no Flex) project. I've been referring to the
following link to get things set up and running and its all worked
great until I got to some views.
http://davespanton.posterous.com/swiz-in-actionscript-projects-including-flash

My main .FLA has a MovieClip on it that is defined as
com.clientname.projectname.view.MainView in my source code. MainView
never has its injections set or its postconstruct called. My config
script looks like:

var swizConfig:SwizConfig = new SwizConfig();
swizConfig.eventPackages = ['com.clientname.projectname.events.*'];
swizConfig.viewPackages = ['com.clientname.projectname.view.*'];
_swiz = new Swiz(this,swizConfig,null,[Beans]);
_swiz.loggingTargets = [new SwizTraceTarget()];
_swiz.init();

I tried the defining the viewPackages with and without the ".*" at the
end.... This apears to be the case with all of my views under the view
package. Is there something different about the configuration and
definition of views when used with a Flash project?

BTW - I've used SWIZ in several other Flex projects before and found
it to be a great tool - so I'm not a complete novice - only when it
comes to setting it up without Flex....

Thanks for any suggestions!

Lisa

Brian Kotek

unread,
Feb 3, 2012, 10:16:17 AM2/3/12
to swiz-fr...@googlegroups.com
Hi Lisa, to be honest on this I'm not sure. I've actually never used Swiz in a non-Flex/AIR application. Anyone else done this?



Lisa

--
You received this message because you are subscribed to the Google Groups "Swiz Framework" group.
To post to this group, send email to swiz-fr...@googlegroups.com.
To unsubscribe from this group, send email to swiz-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swiz-framework?hl=en.


Reply all
Reply to author
Forward
0 new messages