Announcement Announcement Module
Collapse
No announcement yet.
Inject Flashvars to application context properties Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Inject Flashvars to application context properties

    Hi' All!
    Is is it possible to automatically populate application context properties with Flashvars parameters?

  • #2
    not yet

    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

    Comment


    • #3
      I resolved the problem by using an IInitializingObject interface:

      Code:
         ....
         public function afterPropertiesSet():void {
              var app:Application = Application(ApplicationUtils.application);
              lectureID = app.parameters["lectureId"];
              partID = app.parameters["partId"];
              chapterID = app.parameters["requestChapter"];
         } 
         ....
      Thank you

      Comment


      • #4
        alrighty

        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

        Comment

        Working...
        X