开发者

What kind of Flex component can I utilize in NativeWindow?

开发者 https://www.devze.com 2023-01-20 00:51 出处:网络
I\'m developing Adobe Air application. To show additional window, I create NativeWindow object. In the object, \"stage.addChild( Sprite Obj )\" does work, but almost all other flex components do not w

I'm developing Adobe Air application. To show additional window, I create NativeWindow object. In the object, "stage.addChild( Sprite Obj )" does work, but almost all other flex components do not work. Actually I want to add 'spark.components.BorderContainer', 'spark.components.Group', 'mx.controls.Image', etc., but cannot.

One solution I found is to use 'flash.html.HTMLLoader' and to display rich content (that includes images and styled text) into the window.

Is there any better way to show rich 开发者_StackOverflow中文版content?


NativeWindow is not a Flex container.

Use spark.components.Window or mx.core.Window - they allow BorderContainer, Group and Image to be added (do not forget to use window.addElement() method).

0

精彩评论

暂无评论...
验证码 换一张
取 消