简体   繁体   中英

How to dynamically change FXG file?

I load my fxg and it's fine. But I want to change my fxg file in runtime, then i want to refresh my browser page and see my changes. Is it possible to do in flex?

An FXG is compiled; so you can't change it at runtime.

Since you mention refreshing your browser page; there may be a way. You may be able to modify the FXG in some manner; call a service that will use command line tools to recompile the project; and then when the browser is refreshed your updates should be shown.

You may be able to make this transparent to the user, without a formal page refresh, by using a "wrapper" application that just loads other SWFs via SWFLoader .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM