getting swf version info

后端 未结 5 1705
庸人自扰
庸人自扰 2021-01-22 19:25

In FlashBuilder\'s compiler options (Properties->Flex Compiler), under \"Adobe Flash Player options\" there is an option for \"Use a specific version\", where you can tell it wh

5条回答
  •  执念已碎
    2021-01-22 20:15

    Are you doing this with a project that you can modify or are you trying to find the version of a swf file after the build, if it's the former you can modify the index.template.html to include flash vars using the build variables as parameters then retrieve these at runtime.

    
    
        
            
        
    
    

    my index.template.html

    
    
    
    
    
    
    
    
    
    
    
    ${title}
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    If this is what you want to do you'll probably want to fill in the variables in the noscript block as well and add some delimiters for the version but I just wanted to see if this worked as I expected and if it's what you're going for in the first place.

提交回复
热议问题