Announcement Announcement Module
Collapse
No announcement yet.
Flex Application parameters (Flex 3.5) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Flex Application parameters (Flex 3.5)

    Hello,

    I'd tried to use the FlexPropertyPlaceholderConfigurer to pass custom flashVars parameters in the application context.

    I am using Flex 3.5 and not 4.0 and I'm not shure if that works with 4.0.
    In my case I wrote a workaround in an extension of FlexPropertyPlaceholderConfigurer.

    Whould you like the take that in the next release?

    PHP Code:
    // repair App parameters for Flex 3.5 and earlier 
    if (PARAMETERS in app
    {
        
    _appProperties.setProperty(APP_PARAMETERSapp[PARAMETERS]);
        
    //Add parameters as application properties
        
    if (app[PARAMETERS] != null) {
            for (var 
    name:String in app[PARAMETERS]) {
                
    _appProperties.setProperty(APP nameapp[PARAMETERS][name]);
        }
    }
    } else {
        
    _appProperties.setProperty(APP_PARAMETERSnull);


  • #2
    Hi,

    thanks for pointing that out and providing a fix. We'll look into it.

    regards,
    Christophe

    Comment


    • #3
      The following codes in SVN are not work for me . Could you please take a look

      if (app.hasOwnProperty(APP_PARAMETERS)) {
      _appProperties.setProperty(APP_PARAMETERS, app[APP_PARAMETERS]);
      //Add parameters as application properties
      if (app[APP_PARAMETERS] != null) {
      for each (var name:String in app[APP_PARAMETERS]) {
      _appProperties.setProperty(APP + name, app[APP_PARAMETERS][name]);
      }
      }
      } else {
      _appProperties.setProperty(APP_PARAMETERS, null);
      }

      Comment

      Working...
      X