Hi' All!
Is is it possible to automatically populate application context properties with Flashvars parameters?
Hi' All!
Is is it possible to automatically populate application context properties with Flashvars parameters?
Hey there,
currently there is no way of injecting flashvars into the context yet. Its an interesting concept though, so if you add a feature request in JIRA we might eb able to look into it in the future:
http://jira.springframework.org/brow...ACTIONSCRIPTAS
Cheers,
Roland
I resolved the problem by using an IInitializingObject interface:
Thank youCode:.... public function afterPropertiesSet():void { var app:Application = Application(ApplicationUtils.application); lectureID = app.parameters["lectureId"]; partID = app.parameters["partId"]; chapterID = app.parameters["requestChapter"]; } ....
Hey there,
that's indeed a work-around, if you want to prevent having to have a dependency on the Spring AS framework you could also use the 'init-method' property on your objectdefinition:
http://www.springactionscript.org/do...tion_callbacks
cheers,
Roland