Results 1 to 3 of 3

Thread: Flex Application parameters (Flex 3.5)

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Location
    Aachen / Germany
    Posts
    1

    Default 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. #2
    Join Date
    Oct 2008
    Location
    Belgium
    Posts
    160

    Default

    Hi,

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

    regards,
    Christophe
    Christophe Herreman
    Spring ActionScript Founder
    http://www.herrodius.com

  3. #3
    Join Date
    Feb 2011
    Posts
    1

    Default

    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);
    }

Posting Permissions

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