How can I get the background color of a loaded swf file?

后端 未结 2 1973
伪装坚强ぢ
伪装坚强ぢ 2020-12-18 15:49

I\'m loading an swf file into my main application using URLLoader, I want to get the background color of the loaded swf file. ( I heard that one solution wold be reading the

2条回答
  •  感情败类
    2020-12-18 16:14

    You SWF file has to pass it to a web page with JS.

    getURL("javascript:setColour(" + DESIRED COLOUR + ")");

    The "setColour" function of course must do what you want it to do.

提交回复
热议问题