Problem with TLF - floating an inline image

I am running the latest version of Flash Builder 4 (4.0.1).  The problem that I having:
When I use an InlineGraphicsElement if aTextFlow (in a RichEditableText component), if I set a value for the "float" attribute of an <img> element; the image is not visible.  Without the float attribute, I see the image.
Is this a version problem with TLF?  How do I know which version of TLF that I'm using?  How do I install the correct version of TLF?
Thanks for the help.
     Oz
Some code fragments:
The TextFlow string with "float":
<div color="#444444" fontFamily="Times New Roman" fontSize="20" paragraphSpaceAfter="15" textIndent="10">
<p><span color="0xff0000" >Alice, </span><span>really, was </span><span color="0xff0000" >beginning </span><span>to </span><span color="0xff00" >get very </span><span>tired of </span><span color="0xff00" >sitting </span><span>by her </span><span color="0xff00" >sister </span><span>on the </span><span color="0xff00" >bank, </span><span>and of </span><span color="0xff00" >having nothing </span><span>to do:  once or twice she had peeped into the book her </span><span color="0xff00" >sister </span><span>was reading, but it had no </span><span color="0x888800" >pictures </span><span>or </span><span color="0xffff" >conversations </span><span>in it, `and what is the use of a book,' thought </span><span color="0xff0000" >Alice `</span><span>without </span><span color="0x888800" >pictures </span><span>or </span><span color="0xff00" >conversation?'</span></p>
<p>
<img float="left" width="100" source="assets/library/alice/images/White Rabbit.png" height="100"/>
<span>So she was </span><span color="0xffff" >considering </span><span>in her own mind</span><span>(</span><span>as well as she could, for the hot day made her feel </span><span color="0xff00" >very </span><span>sleepy and stupid), whether the pleasure of making a daisy-chain would be </span><span color="0x880000" >worth </span><span>the trouble of getting up and picking the daisies, when suddenly a White </span><span color="0xff00" >Rabbit </span><span>with pink eyes ran close by her.</span></p>
</div>
Without "float":
<div color="#444444" fontFamily="Times New Roman" fontSize="20" paragraphSpaceAfter="15" textIndent="10">
<p><span color="0xff0000" >Alice, </span><span>really, was </span><span color="0xff0000" >beginning </span><span>to </span><span color="0xff00" >get very </span><span>tired of </span><span color="0xff00" >sitting </span><span>by her </span><span color="0xff00" >sister </span><span>on the </span><span color="0xff00" >bank, </span><span>and of </span><span color="0xff00" >having nothing </span><span>to do:  once or twice she had peeped into the book her </span><span color="0xff00" >sister </span><span>was reading, but it had no </span><span color="0x888800" >pictures </span><span>or </span><span color="0xffff" >conversations </span><span>in it, `and what is the use of a book,' thought </span><span color="0xff0000" >Alice `</span><span>without </span><span color="0x888800" >pictures </span><span>or </span><span color="0xff00" >conversation?'</span></p>
<p>
<img width="100" source="assets/library/alice/images/White Rabbit.png" height="100"/>
<span>So she was </span><span color="0xffff" >considering </span><span>in her own mind</span><span>(</span><span>as well as she could, for the hot day made her feel </span><span color="0xff00" >very </span><span>sleepy and stupid), whether the pleasure of making a daisy-chain would be </span><span color="0x880000" >worth </span><span>the trouble of getting up and picking the daisies, when suddenly a White </span><span color="0xff00" >Rabbit </span><span>with pink eyes ran close by her.</span></p>
</div>
A bit of MXML code:
    <s:Group id="myGroup" width="100%" height="100%">
        <s:RichEditableText id="myRichText" lineBreak="toFit">
        </s:RichEditableText>
        <!--- Do not set the height of the RichEditableText - since it seems to prevent the appearance of the vertical scroll bars -->
    </s:Group>
And some Actionscript that adds components:
            scroller = new SxScroller();
            scroller.dx = dxScroller;
            scroller.dy = dyScroller;
            scroller.addEventListener(FlexEvent.CREATION_COMPLETE,scrollerEvent);
            scroller.addEventListener(FlexEvent.UPDATE_COMPLETE,scrollerEvent);
            richText = scroller.richText;
            richText.editable = false;  // textCharacter.enableEdit; // probably false.  TODO:  support true???
            richText.selectable = true; // required
            richText.width = dxRichText;
And finally the import of a TextFlow string:
richText.textFlow = TextFlowUtil.importFromString(textFlowString, WhiteSpaceCollapse.PRESERVE);

On the TextFlow forum I found the answer:
Use Flash Builder Hero, since it support TLF 2.0 out-of-the-box.  The InlineGraphics support several valuable attributes, including float="left" etc.
Beautiful.

Similar Messages

  • Problems with the floating lens.

    Hello Nokia,
    My Lumia 920 has a very wierd problem with the floating lens. When I tilt the device up it blurrs the image for a sec or two and it makes a squirk sound which also records on the footage.
    Here is a video made with my Lumia 920.
    http://youtu.be/jlzzOBlAT6Q
    I sent my phone for a replacement, but I just wanted to let you know that this could happen and maybe stimulate those little chinese people in your factories to do a better job.

    Hello Nokia,
    My Lumia 920 has a very wierd problem with the floating lens. When I tilt the device up it blurrs the image for a sec or two and it makes a squirk sound which also records on the footage.
    Here is a video made with my Lumia 920.
    http://youtu.be/jlzzOBlAT6Q
    I sent my phone for a replacement, but I just wanted to let you know that this could happen and maybe stimulate those little chinese people in your factories to do a better job.

  • Programming problems with INT / FLOAT

    I got a problem with datatypes float and int.
    I'm just developing a c-program on HP-UX with the gcc-compiler. 'cause i have not ever been done an ORACLE-access before, i has started with the "cdemo2.c" - example from the oracle-demo-dircetory in version 8.0.4.
    in the DB there's a column with NUMBER-TYPE, but when i call the oci-function (or what ever it is) "odescr()", the variable "scale" (which is supposed to differentiate between FLOAT_TYPE and INT_TYPE) always is set to "0". this variable should be set to anything else but "0" if a FLOAT_TYPE is detected, but it isn't.
    what I do wrong ???
    How can I know the exact datatype, when a NUMBER_TYPE in the DB appears ???
    if there is a better way to realize an oracle-access in C, please don't wait to tell it to me
    many thanks
    null

    You basically got it. Another approach is to always work on the rightmost digit; that way you'll always be dividing, mod'ing, or multiplying by 10.
    You don't need to know the length of anything to use a for loop. Remember that a for loop has 4 parts: the initialization, the conditional, the "update", and the body. (There are probably more correct names for these that I can't recall right now.) The conditional and the update tend to be length checks and increments only because for loops are commonly used over arrays or strings, but they don't have to be.
    Another hint: how do you know when you're done pulling the digits out of the source number? What is the value of the source number when you're done?

  • Problems with my Acrobat IX reading images

    I have just started having problems with my Acrobat IX reading images.  I have now noticed that when I open up a PDF, the images are now blacked out with a black box. These are all documents that I have been able to read just fine in the past.  I have done some research online and have found others who are having the same problem but I cannot find a solution.  Some solutions I have found are to make sure on the printer settings that it reads large images which I have done and that it prints in color which I have also done.  When I print out the document, it prints just fine, I just cannot read it on the screen.
    Please any help would be greatly appreciated.

    Thank you so much for taking the time to respond but nope. unfortunately I have tried that a few times, both clicking and unclicking the view large images with no luck. Since I have Acrobat IX Adobe wont help me.  Any other suggestions? Should I just uninstall and reinstall this program?? When I Google this problem it appears that a lot of people are having this problem.

  • Kerning/Letterspacing Problems with TLF - and more

    Hello,
    I have some troubles with TLF (RichEditableText - editable) and Letterspacing/Kerning.
    Problem is, that I my application uses a different rendering-engine on the server-side. Textediting happens with a Flash/Flex Client displaying serverside stored layouts, mass-printing/spoolfile generating again is being done on the server side.
    Now Text looks terrible  (currently most annoying when using Verdana , size 10pt). Even when typing the same word twice letterspacing of the two words looks (and is by one Pixel) diffferent.
    I could life with some differences happening here and there but the Layout and resulting Paragraph height it is a complete mess. Word wrapping accours on different words in almost every line compared to the serverside template-document.
    Last hope is that I am doing things wrong.
    Is this correct: 10 point fontsize equals 10 pixel fontsize in Flash (as flash.system.Capabilities always says DPI is 72)?
    Fonts being used are embedded in MXML style declaration.
    Thanks for any help
    Regards
      Andreas

    The server side rendering engine is a complex system wich produces multiple output formats like PDF, AFP, PCL and so on using own and 3rd Pary Modules. Resulting (printed) Documents do always match each other. I know, that there can be slight differences resulting in an unwanted Linebreak.
    But in the TLF output almost nothing looks like it should - it just does not match the template (screenrendering own C# Windows Textengine) or the print output. It is not about pixel, it's such a huge difference, sadly resulting in additional lines:
    Picture shows Text in our Design Tool (Windows .NET Application)  - Text is Verdana (regular/bold) 10pt
    TLF Version - FontFamily "Verdana", Font-Size: 10
    Same Text layouted in Word 2007 matching exaktly our Layout-Tool.
    Typing twice I ment typing the same word in tlf editor.
    Charspace between "M" and "ü" differs between 3 and 4 pixel, the same happens with "ü" and "l" - which is not a pretty look as you can see in the image.
    Regards
      Andreas

  • Problem with loading Binary Stream as image

    Hi all,
    I'm facing problem of loading Binary Stream as image.
    from source system we are getting image in XML file as string (i.e binary stream).
    Now i want to load that string again into table as BLOB. i am able to load in to BLOB column but not able to view image properly. it's giving error like "Image has not been decoded properly from binary stream".
    How can i solve this issues?
    Any help.
    thanks in advance.
    Vinay

    michali7x4s1 wrote:
    Thats a code i found somewhere, tried to check how some things work.Have you used exceptions before? If not, please read the sun tutorial on them as they are very very important. Also, whether this is your code or someone else's doesn't matter as it's yours now, and you would be best served by never throwing out exceptions as is done in this code. It's like driving with a blindfold on and then wondering why you struck the tree. It's always best to go through the tutorials to understand code before using it. If it were my project, I'd do it in Swing, not AWT. Fortunately Sun has a great tutorial on how to code in Swing, and I suggest you head there as well. Best of luck.

  • IPad camera -problems with still shot, very grainy images indoors or atnight

    Hello, I have the ipad 2 and am experiencing problems with the still camera shots (using the built in rear camera). The images are very grainy to such an extent that th ipad camera images are unusable when taken indoors (under full light), in early evening (under partial light) or at night (under normal indoor night lighting). I can not see any camera settings so not sure if this is a camera problem with my ipad2 or a more general problem with ipad 2 camera images. Any suggestions welcome as It means my iPad2 camera is effectively unusable

    The cameras on the iPad won't produce the quality of photo that you'd get from a compact digital camera, and when the light isn't good there will be a noticeable graining. The cameras on the iPad are mainly for things such as FaceTime or for use in good light conditions - otherwise you'll get better results with a digital compact, or even something like an iPhone 4.

  • Problem with adding a mak to image

    im having problems adding a mask to an image and am following
    the instructions from
    http://www.adobe.com/support/dreamweaver/programs/mx_banner/mx_banner04.html
    when holding shift to drag over the picture nothing happens,
    although i can drag the marker across the image without holding
    shift but once i let go of the mouse button the image dissapears
    and the background is made into a gradiant. any help would be
    greatly apreciated?

    This is a good question and unfortunately one that I don't think has an easy answer.
    Your best bet is to hide the current matrix, and create a new matrix with your new column and then copy the information in the original matrix into the new matrix.
    Hopefully in the future we will be able to
    matrix.clear()
    and then when we have added our new column
    then we can go
    dbDataSource.query()
    and the system matrix will be refilled from the dbDataSource.
    Hope this has helped,
    Cormac

  • Problem with sparse & sparse bundle disk images

    Lion (OS 10.7) is driving me carzy.
    Setting up sparse and sparse bundle disk images goes fine. But sometimes when attempting to open the image later, particularily after adding content (JPGs) I get the spinning beachball and then I must restart the computer. I have restarted this computer more than all my others put together, going back to OSA 7.
    Other times everything seems to work fine
    I have a G-5 running OS10.5, and there is no problem. The system is very stable re disk images.
    I've tried all kinds of work-arounds with limited success. These include changing the names of the disk images or the files in them. Usually, I'm back to restarting the computer. If I copy an image that doesn't work on the Mac Pro to the G-5, it'll work. Sometimes the number for the size of the image in list view is grayed out and I don't know what that means.
    It's interesting that when I first got the Pac Pro with Lion installed, sparse and sparse bundle images wouldn't work at all. After several updates to 10.7.2 or 3, the disk images work, but are not stable.
    I would be very grateful if anyone out there has any info or hopefully an answer for this situation.
    Thank you - kajz

    More from kajz
    Sorry about the typos in my first message. I was tired after fighting the sparse image problem with Lion.
    Today I have tried read/write disk images (dmg) and so far they seem to work fine. I would prefer sparse or sparse bundle disk images since they only take as much room as their contents, but I'll have to be practical about this.
    The frustrating thing is that sometimes the sparse or sparse bundle images seem to work, but just when I relax, I'll open one and see all the blank square icons for each of the jpg files, and then I know I'll have to restart the computer.
    I'm still hoping that someone else has had this problem and that maybe there's an answer. Maybe it'll take a future update by Apple to fix this.
    Thanks in advance  -  kajz

  • Problems with import of static files/images

    I have a series of static files (such as jquery/jquery ui libraries) that we have been storing in WORKSPACE_IMAGES. We had hoped to be able to export the static files and use our automated build process to import the files via sqlplus. However, I have run into problems with the files being "corrupted"...either they don't show up at all in firebug, or one file contains parts of another file, rendering it useless. If I delete these files and re-upload them separately through the builder, then I don't have any problems.
    I can only assume there is some perhaps special character or some other issue that I'm not aware of either during the export process or the import process.
    My first preference would be to store these files on the app server, but unfortunately that's not on the table at the moment.
    Any ideas what would be causing the issues here?
    Any help would be appreciated.
    Thanks in advance
    Jeff

    Hello all,
    This is an old thread, but it's an old problem that I'm concerned may still be continuing.
    We're moving from 3.2 to 4.1. While copying our applications from 3.2 to a test 4.1 installation, we did a static file export for "All static files" from 3.2 and did an import to 4.1. We're seeing the same behavior that I and others have reported in the past - any static files that are javascript are corrupted when "all static files" was chosen. Exporting/importing each javascript static file individually appears to work fine.
    If the bug was in 3.2 in that it was generating a corrupted export file when "all static files" is chosen, then I'm not concerned - we're moving from 3.2 anyway. But, if the issue is in the import then it must still exist in 4.1 and that would be a concern.
    Does anyone know if this was a recognized bug in 3.2 and has since been corrected?
    Thanks!
    John

  • Problems with animated masks and external images

    I have an instance of a movieClip on the stage and I load an external JPG into the movieClip.  The movieClip is masked by a layer that begins animating on a certain frame.  As soon as I reach that frame my externally loaded JPG disappears.  The movieClip doesn't mind being masked, but as soon as the mask animates the external image goes away.  The mask animation is shapes drawn frame by frame.
    It is interesting to note that if I create a Class and load the JPG into the movieClip (or do this in a constructor) I do not experience this problem - it is when the JPGs are loaded into an instance of the movieClip that lives on the stage that I encounter this. Unfortunately that is not an option in my project (since I have to get the path for the JPG from an xml file I am loading).
    Could someone please help me with this?

    that's a flash bug.

  • Problem with filters not finding an image in LR 4.0 after being edited in Photoshop CS6 beta

    I am running Lightroom 4.0 on a Win7 Professional 64-bit system. I have come up with a strange problem I can describe but don't know how it can more generally be duplicated, unless this is a Photoshop CS6 beta bug.
    I am looking through in Library module at a shoot. When I filter by a keyword that some of the pictures have, a recently edited image does not show up. Here is what I mean; let X=IMG_6260:
    1) For X.CR2, edit in Photoshop CS5. All works well - X-ed.tif gets created and added to my LR previous import set.
    2) Clicking on X-ed.tif, edit in Photoshop CS6 beta. All seems fine - X-ed-2.tif gets created and added to my LR previous import set.
    3) The keywords on all three images - the original and the two edits - are the same. I can confirm that by, in grid view, selecting these three and noting no asterisks in the composite keyword view. One of the keywords is the person's name - let's say it is "Sara".
    4) Now, when I click in the keyword list on "Sara", all images in this most recently imported set show up with her *except* X-ed-2.tif - the one created by CS6 beta.
    Strange! Should this be reported in a CS6 forum? Thanks.

    Yep, it returns nothing. Debug output seems to be largely irrelevant except this oddity:
    -- Debug: Received Message:
    -------------------------- BEGIN NETLINK MESSAGE ---------------------------
    [NETLINK HEADER] 16 octets
    .nlmsg_len = 36
    .type = 2 <ERROR>
    .flags = 0 <>
    .seq = 1421583995
    .port = 1853883468
    [ERRORMSG] 20 octets
    .error = 0 "Success"
    [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .type = 16 <0x10>
    .flags = 5 <REQUEST,ACK>
    .seq = 1421583995
    .port = 1853883468
    --------------------------- END NETLINK MESSAGE ---------------------------
    Message type = "error" with a message = "success"? Not sure if this is normal or not

  • Problem with put a table in Image....?

    respeced sir....
    i have an issue like i want to show the content of table on image so could any one tell me how can i put a table on image......
    like
    <table>
    <tr>
    <td>
    some Data from database
    </td>
    <td>
    some other Data from database
    </td>
    </tr>
    </table>
    how can i draw that data with table form on image .....
    what to do to execuet HTML tag <table> on image so it will give me a simple table like in html page....
    same i want to show that table on image can any one help me....
    regards......

    I've solved this problem now. I had an initializer on a feedback node wired incorrectly which caused unbounded increases in array size.
    Thanks for the suggestions I did receive
    Neil

  • Problem with replacing colour in posterised image

    Hello,
    I am looking for help with a problem I am havng in trying to create a Warhol type poster image
    I have scanned in a B & W image as a tiff file(epson v750 pro).
    I have then opened the image in CS4.
    then used the poster edge filter.
    I have then have to clone large areas to clean it up (remove speckels to clean the image to get large areas to white).
    I want to then replace the white area (already cleaned to get it to white) with yelow for example. I have  change the mode from greyscale to RGB to allow me to add colours.
    I can select the colour replace tool and select my colour(Colour picker tool, yellow).
    But the image is not taking the colour. Nothing is being painted on the image.
    I have tried so many times. some times I am getting the replacing colour on only about half of the image (going left to right). It still leaves
    I thought thi smight have had something to do with the cloning action. but the half of the image that takes the colour has large parts of it cloned to white.
    It is not possible to clone the image before using the poster filter as there is no true white in it.
    I am under a bit of pressure to have this completed by Friday for a Birthday party.
    Any help greatly Appreciated.
    Many Thanks
    k.

    You didn't really say how many colors you needed to make it. There are a couple of ways to do this, some are destructive and others are non-destructive.
    I assume the shades of gray are quite distinct. The more contrast between the shades the easier it is to select the shades.
    First option is destructive - Select all of one shade, then hit shift-backspace both keys on right side of keyboard. This will bring up the fill dialog box. here you can select a color and click ok then the selected areas will have that color.
    Second way non-destructive. Create a new layer and fill it with the color that you want, createanother layer and fill that one and so on untill you have all the colors that you need.
    Now select the layer the image is on and create your first selection of one of the shades. Click on the layer that has the color that you want. Next click on the icon at the bottom of the layer panel that looks like a circle inside a square. You selection should now disappear and a new icon on the layer of that color.
    Repat for each color.
    If the colors are blocking your imsge which odds are they will be, click on the eye icon on the color layer to temporarally make it not visible. And repeat for any layer blocking your view. Clicking the where the eye was will make it visible again.
    The second way may seam more difficult, but once you have the selections done for each color layer, it is a simple process to change the color at any time or remove that layer all together or better yet click the eye. The point is once the hard work is done should you change your mind, it is extremely simple to change latter on. As long as you save your file to include layers you can change this any time later on. Both tiff and psd allow you to save layers.
    An additional option: if your image as a texture or other details that you want to keep, change the blend mode on that colors layer from normal to color or hue. You might even want to try out some of the other blend modes and see how they effect your image. Doing this step to an image with details will make it more beleiveable. In fact option two and this step is the way to go if there are details in the image as with out blending, or reducing the opacity of the color layers, it would look like a color by number.

  • Lightroom problems with large folders of Raw images

    I have a problem processing folders with a large number of Raw images in Lightroom and the same folder is easily processed in Adobe Bridge (without much loading time). The folder locked up Lightroom more than once. The folder has Nikon D2X and D2H .NIF files and it has 850 images. I bought Lightroom to simplify the editing and sorting and sorting process but I often work out of large folders like this. Is Bridge a better answer for what I am looking for or am I doing something wrong (like not waiting long enough).

    It can take some ime for LR to import a large folder of RAWs. But once in it should be faster.
    How are you importing. Are they already on your HD, or coming from the camera with copy, or a cardreader?
    Don
    Don Ricklin, MacBook 1.83Ghz Duo 2 Core running 10.4.9 & Win XP, Pentax *ist D
    http://donricklin.blogspot.com/

Maybe you are looking for