Smartypants with dynamically loaded modules

1 view
Skip to first unread message
Message has been deleted

nishantkyal

unread,
Jun 23, 2009, 7:19:56 AM6/23/09
to Smartypants IOC
Hey,

This doesn't particularly concern smartypants. But I haven't been able
to find a solution elsewhere and discovered this while using
smartypants so here it goes :D

Here's the scenario. I've an app using smartypants ioc and some
dynamically loaded modules which also use smartypants to access main
apps components. This works fine in the normal dev builds but doesn't
when 'Export release build' option is used.
All the injected values come null.

My guess is that this is because the inject metatag is getting ignored
while compiling the modules, hence they don't get injected into. Is
there a solution for this please?

Josh McDonald

unread,
Jun 23, 2009, 7:41:55 AM6/23/09
to smartyp...@googlegroups.com
Hmmm, you could try just compiling against the SP SWC file without referencing any of its classes, which might work, or you can just add --keep-as3-metadata+=Inject to your compiler options, which should do it.

-Josh

2009/6/23 nishantkyal <nishan...@gmail.com>



--
"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/

Reply all
Reply to author
Forward
0 new messages