1.0

3 views
Skip to first unread message

Josh McDonald

unread,
Apr 13, 2009, 10:21:23 PM4/13/09
to smartyp...@googlegroups.com
'Nuf said.

http://code.google.com/p/smartypants-ioc/

--
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  jo...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/

dtyrell

unread,
Apr 14, 2009, 6:33:44 AM4/14/09
to Smartypants IOC
Tremendous! Dig the logo!

Is there a way to turn logging off?

Many thanks,

On Apr 14, 4:21 am, Josh McDonald <j...@joshmcdonald.info> wrote:
> 'Nuf said.
>
> http://code.google.com/p/smartypants-ioc/
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> Josh 'G-Funk' McDonald
>   -  j...@joshmcdonald.info

Josh McDonald

unread,
Apr 14, 2009, 7:02:09 AM4/14/09
to smartyp...@googlegroups.com
Sure, check this out, I just added it to SVN:

http://is.gd/skLd

Then to make sure it gets compiled into your app, just reference it somewhere like so:

import net.expantra.smartypants.extra.NoSmartyPantsLogging;
NoSmartyPantsLogging;

It should work for your needs, and also serve as an example if you want to use your own logging, or hook into the Flex defaul (I'll add another "extra" class for that soon).

-Josh

2009/4/14 dtyrell <Dar...@gmail.com>
  -  jo...@joshmcdonald.info

dtyrell

unread,
Apr 14, 2009, 7:23:44 AM4/14/09
to Smartypants IOC
Ah, perfect.

Just tried it out.. Works well for Flex projects, but seems to have no
effect on plain AS projects. I know very little about Mixins, but I
suspect they get ignored by plain AS3 projects?


On Apr 14, 1:02 pm, Josh McDonald <j...@joshmcdonald.info> wrote:
> Sure, check this out, I just added it to SVN:
>
> http://is.gd/skLd
>
> Then to make sure it gets compiled into your app, just reference it
> somewhere like so:
>
> import net.expantra.smartypants.extra.NoSmartyPantsLogging;
> NoSmartyPantsLogging;
>
> It should work for your needs, and also serve as an example if you want to
> use your own logging, or hook into the Flex defaul (I'll add another "extra"
> class for that soon).
>
> -Josh
>
> 2009/4/14 dtyrell <Dars...@gmail.com>

Josh McDonald

unread,
Apr 14, 2009, 7:24:58 AM4/14/09
to smartyp...@googlegroups.com
Probably. It just makes your class go in frame 1, and calls init() before it bootstraps the app. You can just call the static init() function from somewhere.

-Josh

2009/4/14 dtyrell <Dar...@gmail.com>
  -  jo...@joshmcdonald.info

dtyrell

unread,
Apr 14, 2009, 8:05:03 AM4/14/09
to Smartypants IOC
Awesome, thanks, that did the trick.

On Apr 14, 1:24 pm, Josh McDonald <j...@joshmcdonald.info> wrote:
> Probably. It just makes your class go in frame 1, and calls init() before it
> bootstraps the app. You can just call the static init() function from
> somewhere.
>
> -Josh
>
> 2009/4/14 dtyrell <Dars...@gmail.com>
Reply all
Reply to author
Forward
0 new messages