0

I've been trying to position an image tag in actionScript3 (from an xml file) like this:

<![CDATA[

Hey, <br/>
<img style="margin-left:200px;" src="imgs/_mamo.jpeg"/>
<p>

some text some text some text some text some text some text some text some text some text
</p>
<p>
Thanks,<br/>
web-dev.
</p>
    ]]>

but as3 is not using the styling.

Is AS3 able to recognize css styling? If not how would I position the image tag?

4

1 回答 1

1

May I suggest (if you aren't married to pure ActionScript for your project) that you check ou the following link...

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf62883-7ff2.html

Flex has the ability to use style sheets for both components as well as text using the wonderful CSS you are used to.

Flex for AIR also provides a container for rendering above HTML 1. FlashBuilder's proprietary MXML can also give you more freedom in mixing images with text.

于 2013-02-04T20:54:15.677 回答