tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/320-modular-robotlegs-not-working-online-modules-startup-method-within-the-context-never-gets-firedRobotlegs: Discussion 2018-10-18T16:35:27Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/73305822011-05-19T15:05:12Z2011-05-19T15:05:12ZModular Robotlegs not working online - Module's startup() method within the context never gets fired<div><p>Not sure if this attachment will be posted...</p>
<p>Says ( Processing Asset)</p>
<p>Here is a link off of my server<br>
<a href=
"http://urbanalias.com/test/modules/DynamicModuleLoading.zip">http://urbanalias.com/test/modules/DynamicModuleLoading.zip</a></p>
<p>Thanks again!</p>
<p>Derek</p></div>derekrosientag:robotlegs.tenderapp.com,2009-10-18:Comment/73305822011-05-25T08:07:36Z2011-05-25T08:07:36ZModular Robotlegs not working online - Module's startup() method within the context never gets fired<div><p>Hi Derek - sorry you didn't get helped with this faster, did you
get a solution? If not, shout and we'll dig into it - you caught us
at a busy time.</p>
<p>What version of FP were you testing with?</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/73305822011-05-25T11:44:22Z2011-05-25T11:44:22ZModular Robotlegs not working online - Module's startup() method within the context never gets fired<div><p>Nope never got any updates as of yet... Been really racking my
brain on this one... Any help at this point would be great!!!</p>
<p>I am still using the preview release of Burrito ( haven't had
the time to install the final release that I upgraded to )...</p>
<p>I am also trying to publish using the 4.5.0.20967 SDK ( the
latest public release )...</p>
<p>I am also part of the beta program with the 4.5 SDK but have yet
to try it on any of those builds as of yet. Again, haven't had the
time to uninstall the preview release of Burrito and worked from
there...</p>
<p>What I did figure out though was that if I removed the Mediator
on the main class ( removing the mapping of the Main.mxml to the
MainMediator.as class ) this actually worked...</p>
<p>But I obviously need the MainMediator... ( there is nothing in
this demo one at the moment )...</p>
<p>I have also tried to publish with different SDKs with the same
results... I haven't tried to publish in FlashBuilder 4
though...</p>
<p>What do you think?</p>
<p>Its strange that it is all working in Flashbuilder but craps out
as soon as you put it online...</p>
<p>I have basically taken all of this off of the DynModules
example</p>
<p>What do you think?</p>
<p>Derek</p></div>derekrosientag:robotlegs.tenderapp.com,2009-10-18:Comment/73305822011-05-25T11:46:54Z2011-05-25T11:46:54ZModular Robotlegs not working online - Module's startup() method within the context never gets fired<div><p><a href=
"http://labs.riamore.com/content/robotlegs/examples/dynmodules">http://labs.riamore.com/content/robotlegs/examples/dynmodules</a></p>
<p>Here was the example I started from...</p></div>derekrosientag:robotlegs.tenderapp.com,2009-10-18:Comment/73305822011-05-25T12:05:44Z2011-05-25T12:05:44ZModular Robotlegs not working online - Module's startup() method within the context never gets fired<div><p>Hi Derek,</p>
<p>I don't use flashBuilder but there have been a few occasions on
the forum where FB has been the culprit.</p>
<p>I <em>was</em> going to suggest that perhaps your release build
was stripping the metadata from the shell? But the whole remove/add
mediator from your main app fixes things part doesn't make a lot of
sense.</p>
<p>If there's some sort of 'clean' you can do on the project, give
that a go. Otherwise I'll see if someone can take a look in FB.</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/73305822011-05-25T12:56:47Z2011-05-25T12:56:47ZModular Robotlegs not working online - Module's startup() method within the context never gets fired<div><p>Yeah I have cleaned plenty of times... Pretty much every time I
change something.</p>
<p>Is there a quick way to test with some sort of command line
builder? Like an ANT script or something that will compile the
project?</p>
<p>Sorry, but I am not all that familiar with using the command
line to publish projects...</p>
<p>If it comes down to having to do this for release builds I am
fine with that and just continue on testing within Flashbuilder as
this is working fine when debugging.</p>
<p>Derek</p></div>derekrosientag:robotlegs.tenderapp.com,2009-10-18:Comment/73305822011-05-25T13:39:14Z2011-05-25T13:39:14ZModular Robotlegs not working online - Module's startup() method within the context never gets fired<div><p>GOT IT!!!</p>
<p>Did a search for "release builds are stripping out the robotlegs
metadata"</p>
<p>Found this post:<br>
<a href=
"http://knowledge.robotlegs.org/discussions/problems/22-export-release-build-in-flash-builder">
http://knowledge.robotlegs.org/discussions/problems/22-export-relea...</a></p>
<p>Adding the following to the compiler arguments in Flashbuilder
works perfectly in my test example and my main project as well!</p>
<p>-keep-as3-metadata+=Inject -keep-as3-metadata+=PostConstruct</p>
<p>Thanks for the help in starting me down the trail of FB
stripping out the Metadata...</p>
<p>Derek</p></div>derekrosientag:robotlegs.tenderapp.com,2009-10-18:Comment/73305822011-05-25T13:58:07Z2011-05-25T13:58:07ZModular Robotlegs not working online - Module's startup() method within the context never gets fired<div><p>Excellent!</p></div>Stray