FlashVars passing during testing in Flex Builder

I can transfer values ​​from HTML to SWF when I run my own HTML file, but I see no way to do this in Flex Builder.

Creating your own HTML file with an additional parameter in the object tag works fine:

<param name="flashVars" value="greeting=Hello"/>

Then I can use this ActionScript to get the value in Flex:

blah = Application.application.parameters.greeting

But clicking the Run button in Flex Builder to test my application uses HTML that is built by the compiler and cannot be modified. Is there any way to configure the parameters for going to the project? Thank.

+3
source share
1 answer

flex builder html-template, index.template.html, .

+6

Source: https://habr.com/ru/post/1733520/


All Articles