Flash / Actionscript: How to insert images in dynamic text (In line image)?

余生长醉 提交于 2020-01-07 03:15:11

问题


I want to insert images in dynamic-text-box(s) which should be inline.
Detail:
I am preparing an application using flash CS4; The application is just like a chat room which will show conversation the only difference in this; it will show stored messages (stored in XML file). I want to insert smiling faces (emotions) in text body (using html tags) but the problem is that image is not inline (like in chat room [yahoo, hotmail, etc.]).
I have no idea what to do......


回答1:


Please paste your code where you set the dynamic-text-box.text

Make sure that you wrap the whole text in html braces, not only images.




回答2:


You can embed images in any HTMLText field using the tag. The image, however, must be loaded externally. You can't get images stored in your library.




回答3:


Its good to get the solution of my problem but sad I got solution by myself :-P
The simplest solution I got is, to update my Flash CS4 to Flash CS6; in Flash CS6 text (TextField) have extra feature like TLF (Text Layout Framework). By use TLF I can insert graphics in text area and inserted graphics are inline as well.
Problem Solved :-)



来源:https://stackoverflow.com/questions/14134392/flash-actionscript-how-to-insert-images-in-dynamic-text-in-line-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!