Results 1 to 4 of 4

Thread: Inject Flashvars to application context properties

  1. #1
    Join Date
    Jun 2010
    Posts
    2

    Default Inject Flashvars to application context properties

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

  2. #2
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    407

    Default 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

  3. #3
    Join Date
    Jun 2010
    Posts
    2

    Default

    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

  4. #4
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    407

    Default 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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •