Adobe AIR - Dynamic SWF Value for content tag in descriptor file

75 Views Asked by At

We have a swf based AIR application. From Descriptor file we are loading a swf file like this

<?xml version="1.0" encoding="utf-8" ?>
<application xmlns="http://ns.adobe.com/air/application/32.0">  
    <id>com.test.HelloWorld</id>
    <filename>HelloWorld</filename>
    <name>HelloWorldApplication/name>
    <versionNumber>1.0.0</versionNumber>
    <initialWindow>
        <content>HelloWorld.swf</content>
....

As you can see we are directly referring locally present HelloWorld.swf file like this <content>HelloWorld.swf</content> while bundling our application.

The problem we are facing is, we have different .swf file for different environment like non prod and prod.

Is there a provide dynamic value to <content> tag so that it can automatically decide which .swf to pick either from server or local.

1

There are 1 best solutions below

0
Programmer Dancuk On

Use SWF loader mechanism. However this won't work if you target iOS but works on Windows and Android