Skip to main content
Participating Frequently
August 12, 2010
Question

Image not showing

  • August 12, 2010
  • 1 reply
  • 1329 views

I can get a text flow working with some texts and a link but my image isnt show

ing here is my way

articleField.textFlow = TextFlowUtil.importFromString(brandz[currentBrand].summary);

<s:RichEditableText paddingLeft="10"
                                        paddingBottom="5"
                                        paddingRight="10"
                                        id="articleField"
                                        maxHeight="300"
                                        selectable="false"
                                        editable="false" />

when it is loaded the following html is available and is working as I can see the text around the img tag following, is there some kind of loaded event i need to wait for ?

<img src='http://www.google.com/intl/en_ALL/images/srpr/logo1w.png'/>

Also how can I make sure I have the latest best tlf libs 2.0 ? do I need to update anythign else like the flex SDK ? I do want to use the float attribute so need this functionality.

a big thanks for help on my posts as I'm tearing my hair out yet again with text in flash, after loving so much about flex I feel this is quite a dissapointment how hard it is to get this working. 10 years of flash text hell one might say

This topic has been closed for replies.

1 reply

Adobe Employee
August 16, 2010

Sorry things are not working more smoothly for you. Text is complicated -- there are just lots of different options. I think the previous post on the StatusChangeEvent should help.

To tell what version of TLF you are using, see the flashx.textLayout.BuildInfo class. The VERSION string will be 1.0, 1.1 or 2.0. You can also see the build number there. There are updates you need to make to Flex to use this latest version of TLF, see this blog post for instructions about how to do it:

http://blogs.adobe.com/tlf/2010/07/flex-4-updates-for-tlf-20.html

- robin

djNomadAuthor
Participating Frequently
August 16, 2010

I have version v 1.0 will try updating it to see if this helps. Thanks


djNomadAuthor
Participating Frequently
August 16, 2010

It appears very complicated to get TLF 2.0 working and beyond my understanding as I dont know really how to use ant and if I were not so close to a big deadline I may be braver. I am sure that inline images wore working in previous versions of flash, this feels like a backwards step for me and

making me jump through hoops.

Am I really missing something ? IMG tags dont work with TLF 1.0 in flex 4 !!! Thanks for ideas on this, I'm not popular on the project for this problem I am holding up deadlines.