TextFlow img / problem !

Dear friends in Adobe,
There is a simple question here:
When we are using textFlow in our project, and when we want import some html tags in it, specially when our textFlow obj. is in a Module, for example:
<mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
     xmlns:s="library://ns.adobe.com/flex/spark"
     xmlns:mx="library://ns.adobe.com/flex/halo"
     layout="absolute" width="100%" height="100%"
     creationComplete="func();">
     <fx:Declarations>
          <!-- Place non-visual elements (e.g., services, value objects) here -->
     </fx:Declarations>
     <fx:Script>
          <![CDATA[
          import flashx.textLayout.conversion.TextConverter;
          internal var Pvar:String = new String();         
          public function func():void{         
               Pvar = "<TextFlow xmlns='http://ns.adobe.com/textLayout/2008'>"+
                      "<div><span color='#ff0000'>some text here</span><br />"+
                      "<div><img id='img1' source='Sunset.jpg' /></div>"+
                      "</div></TextFlow>"
               rtxt.textFlow= TextConverter.importToFlow(PoetsBCvar2, TextConverter.TEXT_LAYOUT_FORMAT);              
          ]]>
     </fx:Script>
     <s:RichText id="rtxt" />
</mx:Module>
everything is allright, except showing the image file !
and it will shown if we set both of width and height attributes in the <img... tag, just like this:
"<div><img id='img1' source='Sunset.jpg' width='100' height='100' /></div>"
I wonder if it could show the image without setting these attributes in default size, that was not so better and easier?!

How is the module being used?

Similar Messages

  • Do embedded fonts work in TextFlow yet?

    Embedded fonts aren't working for me in TextFlow for SDK build 8537. I added the embedAsCFF: true thing, and the font does show up in Spark controls; it's just not working when I use it in TextFlow (defaults to Times). Non-embedded fonts are working fine though in TextFlow, the problem is only with the embedded ones. Is this a known issue at this time?

    Turns out this is because of the linkage setting to RSLs in the newer SDK builds, Adobe is looking at this. Check outhttp://forums.adobe.com/message/2121775#2121775 for details/workaround.

  • Empty upgrade customizing view in release upgrade IMG

    At customer side we are in a releaseupgrade from R/3 4.7 to ERP 6.0.
    Now we want ro generate a project IMG with the view for upgrade customizing.
    Our problem is, that we get no entries.
    We tried to generate the view with all IMG-entries and all components.
    Release is SAP ECC 6.0 (EHP 4) SP0005
    Generating a delta IMG the system begins to generate.
    From older projects (before EHP4) I know, that we got really much entries.
    Any ideas?
    Thanks in advance!
    Gunther

    Dear Gunther,
    Kindly note that as new releases are developed, new customizing steps are added to the
    system, which in turn, adds events to the IMG model.  After an upgrade,
    the Enterprise IMG must be regenerated to include these new tasks. Since
    the Project IMGs are a subset of the Enterprise IMG, they must also be
    regenerated.
    Regarding your issue kindly try to regenerate the Enterprise IMG: transaction SPRO, menu
    path: Basic Functions -> Enterprise IMG -> Manual extension.
    Select the missing nodes and then generate.
    Please take a look at the following notes which explain how to regenerate the IMG:
      130688  -  Project IMG must be regenerated after an
      42272    -  IMG problems after upgrade
      916585  -  Missing IMG Activity Texts in IMG Display
    I hope this helps.
    Regards,
    Abhishek

  • JDialog - Frame-icon missing if resizable=false

    Hello friends,
    I have one JDialog which i create with this in the constructor :
    super(owner_frame,"Title",true);
    where 1st argument is the frame for which we set imageicon as
    setIconImage(img);
    Problem :
    Now whats happening that when for JDialog i make setResizable(true)
    I get this icon on the extreme-left-corner of the dialog BUT when i make
    setResizable(false) , icon disappears .
    Reason May be :
    actually when icon appears ( for resizable==true) and when we click that icon
    we get a popup-menu showing options for "Move","Size" and "Close"
    But after we make resizable==false , we dont need these options .
    Cant we get this :
    after we make resizable=false , cant we get the icon and when click
    that , popup-menu should show up with "Move" and "Size" options as disabled
    and only "Close" as enabled.
    please suggest what I should do to make it possible.
    thanx and regrds,
    Raj

    To work around the bug, add this to your JDialog
          addComponentListener(new ComponentAdapter() {               // need this to prevent window resizing
             public void componentResized(ComponentEvent e) {          // can't use setResizable(false) because then the icon in the title bar is gone
                if (size==null) return;  // must be set elsewhere when JDialog is visible
                setSize(size);  // restore the original size of JDialog
          });;o)
    V.V.

  • XSLT problem with img tag in Saxon

    Hi,
    Iam getting a problem with <img> tag when transforming a document using Saxon transformer. In the input XSLT I have proper closing tag for <img>, but the output of the transformation is not well formed as the closing tag for <img> does not appear. I need to feed the output to a FO object to generate a print preview, but the output is not well-formed.
    Kindly help to resolve the issue.
    Kind Regards,
    Abhinandan

    Perhaps that is because you are generating HTML as your output? As I recall, <img> tags don't have to be closed in HTML. So try generating XML instead if you need XML.

  • RichEditableText textFlow problem with \n

    I cant say more right now, but I have found some strange problem. We have skin with RichEditableText and we bind text property with some data from server. If there is string with \n inside whole app froze, or CPU is very high. In profiler I have found infinite calls fro textFlow recreating. I need to find out more, but maybe someone has some idea, what's wrong.
    When I create some small test app with just 2 RichEditableText and just copy string with enters, it works, but debugger doest show \n, but just multilined string. So maybe it's something with encoding or something similar.
    Im suing flex sdk 14403...
    any idea? Can I use any characters inside, or is there any limitations?
    Thanks

    dear alzaeem i ran java in before this time when i installed it in memory card
    i dont know whay u say it doesnt run in memory card
    before this i installed every application of java and symbian in memory card with out any problem and after installation icon of them were in application list
    when i install java in memry card i dont have problem with installation and its complete installation and there is the name of that software java in installation list but my problem is that there is any icon of software in application list or every where to start or run it.

  • Img Tag in textfield adobe air problem help :(

    Hi there,
    i ve got a textfield on the stage and wanted to give it a img
    tag.
    If i am using flash 9 in publishing, it is no problem.
    if i change to adobe air. There is no img in the textfield.
    Is this a bug???

    I've had the same problem. Using an img tag in a dynamically
    generated text field does not work the same published for AIR as it
    does published for Flash Player. If I use a relative path for the
    image or the class name of a symbol in the library in Flash it
    works perfectly, but neither work if the same code is published for
    AIR. Is there a solution to this that anyone knows of?
    Here's an example:
    var optionFont:Font = new UniversBold();
    var optionFormat = new TextFormat();
    optionFormat.color = 0x27318b;
    optionFormat.bold = true;
    optionFormat.size = 38;
    optionFormat.font = optionFont.fontName;
    var field:TextField = new TextField();
    field.embedFonts = true;
    field.autoSize = TextFieldAutoSize.LEFT;
    field.defaultTextFormat = optionFormat;
    field.selectable = false;
    field.htmlText = "Hi There <img src='GTE38'> Hi There";
    field.wordWrap = true;
    field.width = 200;
    addChild( field );
    UniversBold and GTE38 are classes in the library. This works
    when published for Flash, but if republished for AIR, the image
    does not show up.

  • [svn:fx-trunk] 10214: This fixes the problem that if two text components share the same textFlow there is an infinite loop involving updateDisplayList - damageHandler - invalidateDisplaylist - back to updateDisplayList.

    Revision: 10214
    Author:   [email protected]
    Date:     2009-09-13 07:33:58 -0700 (Sun, 13 Sep 2009)
    Log Message:
    This fixes the problem that if two text components share the same textFlow there is an infinite loop involving updateDisplayList -> damageHandler -> invalidateDisplaylist -> back to updateDisplayList.  The bug file was for TextArea which is RET but the same bug was in RichText as well.
    This example with a renderer exposed it because the typicalItem that is composed to figure out sizes and the actual first item in the list share the same textFlow.  It actually has nothing to do with useVirtualDisplay other than it was sharing a textFlow.
    It turns out that the TextFlowFactory dispatches damage events every time the textFlow is composed.  Unlike when the flowComposer is used, it always considers the flow damaged.  It was exacerbated by each of the two components having a damage handler for the same textFlow.
    The solution is to use the textFlow generation number.  In the damageHandler if the generation is the last known generation number, assume no changes, and return immediately from the damage handler.
    QE notes: There are 1 TextArea, 6 TextInput and 2 NumericStepper failuers, with or without my changes.  The common link seems to be DispatchKeyEvent.  Most were testing maxChar, displayAsPassword and restrict.  I tested these and they seem to be working correctly.
    Doc notes:
    Bugs: SDK-23002
    Reviewer: Gordon
    Tests run: checkintests, TextArea, TextInput and NumericStepper
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23002
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/RichEditable TextContainerManager.as

    Revision: 10214
    Author:   [email protected]
    Date:     2009-09-13 07:33:58 -0700 (Sun, 13 Sep 2009)
    Log Message:
    This fixes the problem that if two text components share the same textFlow there is an infinite loop involving updateDisplayList -> damageHandler -> invalidateDisplaylist -> back to updateDisplayList.  The bug file was for TextArea which is RET but the same bug was in RichText as well.
    This example with a renderer exposed it because the typicalItem that is composed to figure out sizes and the actual first item in the list share the same textFlow.  It actually has nothing to do with useVirtualDisplay other than it was sharing a textFlow.
    It turns out that the TextFlowFactory dispatches damage events every time the textFlow is composed.  Unlike when the flowComposer is used, it always considers the flow damaged.  It was exacerbated by each of the two components having a damage handler for the same textFlow.
    The solution is to use the textFlow generation number.  In the damageHandler if the generation is the last known generation number, assume no changes, and return immediately from the damage handler.
    QE notes: There are 1 TextArea, 6 TextInput and 2 NumericStepper failuers, with or without my changes.  The common link seems to be DispatchKeyEvent.  Most were testing maxChar, displayAsPassword and restrict.  I tested these and they seem to be working correctly.
    Doc notes:
    Bugs: SDK-23002
    Reviewer: Gordon
    Tests run: checkintests, TextArea, TextInput and NumericStepper
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23002
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/RichEditable TextContainerManager.as

  • Problem with .img files

    Hey folks!
    I am having a problem with some .img files. Every time I try to open them with DiskUtility, i get a message saying that the operation was failed because the thing was not recognized. I was wondering if there is some sort of workaround for this problem.
    Cheers,
    Al

    .img files are normally OS 9-style disk images. They are quite similar to OS X .dmg, except for the fact that they contain a tiny amount (less than 4 KB) of critical information in the resource fork of the file. If this information goes missing (the file inadvertently loses the resource fork), the disk image can no longer be mounted and is irrevocably damaged.
    If you're not careful, and you involve PCs, it's possible that you could lose the resource fork, which would result in the behavior you're seeing.
    Dual 2.7GHz PowerPC G5 w/ 2.5 GB RAM; 17" MacBook Pro w/ 2 GB RAM -   Mac OS X (10.4.8)  

  • HTML Textfield Problem with Image Positions/Image Tag img

    I am using :
    Flash Builder Burito - Flex Hero SDK -  Air 2.5 - Flash Player 10.1
    Hi,
    i have a problem with the normal Textfield.I'm loading html text into it and apply an css stylesheet on it. Everything works fine, but if there is an <img> in the html code, the image is displayed at the wrong position (top left).
    It looks like the Problem is only in Air Applications. I tried the exact same code in an normal actionscript project and tested it in the broweser. Here the images are at the right position.
    Does anybody else has this problem in Air or knows a solution to this?
    Thanks. Laurid
    btw: I tried it on Windows 7 and Android with the same problem.

    Okay, I think I found the solution myself:
    http://www.kirupa.com/forum/showthread.php?t=322233
    For AIR content in the application security sandbox, AIR ignores img  tags in HTML content in ActionScript TextField objects. This is to  prevent possible phishing attacks,
    This does not make any sense to me. Can somebody please explain it to me? I can load images with the loader-class and combine it with my html text. The only thing which does not work is that the text is wrapping aroung the images. So why does this prevent phishing attacks?
    For me this doesn't make sense at all. It's just annoying that you develop an application in Flash and that it's not working the same way in Adobe Air. Now I have to find a complicated work-around myself. Or does anybody know how I can easily wrap text around images?
    Thanks. Laurid

  • Visio 2013 trial, problems to install the .img file

    As soon as I download the trial for visio 2013 it automotically downloads an .img file. How do I either get an .exe file or the .img file to run? I would like to install the programm, thats all.
    Its the 64 bit version

    I also have no option to mount an .img file, so there are 2 problems:
    1) This process doesn't work because we can't mount it, and
    2) Clearly, some software that performs the mounting is missing from the System Requirements.
    Please answer how to do #1, and fix #2 on the MSDN pages.
    Hi @thrillride, for your issue relating to MSDN, are you referring to this?:
    http://msdn.microsoft.com/en-us/subscriptions/aa948864.aspx
    Perhaps part of the difficulty is that various products, are "packaged" in differing ways (some are offered as EXE, some as ISO, some as IMG).
    Also, different versions/editions of Windows, offer different disc-image-handling options as built-in features.
    So it's not straightforward to have a one-size-fits-all guide for this topic.
    The information on the linked MSDN page is somewhat adequate for most situations, but, a certain familiarity with the topic is assumed, and maybe it's that assumption which is unreasonable.
    Since MS don't develop/offer/sell disc image software, MS are cautious when and how advising customers to select and use such software. (except for the builtin-in features).
    There is a very wide range of software available to perform the "burning" or "virtual drive/mount" function, and MS do list some suggestions on the above-linked page. There is no need to wrestle with "mounting", if you choose
    to "burn" the disc image to a recordable CD or DVD.
    Some other popular choices include MagicISO, VirtualCloneDrive, WinCDEmu.
    Also note that the software product itself (in this case, Visio) has no requirement for any such software. It's the delivery-vehicle that has the requirement, and, I agree that a bit more useful information about the "packaging and delivery vehicle"
    is needed.
    You can raise this with the MSDN Feedback forum, since it's not related to the Visio product itself, but how it is offered via the MSDN channel.
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=msdnfeedback
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • DDP/IMG difference possible? Problems with the menu.

    Hej,
    I exported an IMG and a DDP from Encore CS5. The IMG was burned as a DVD-Video. The DDP was burned as Data to a DVD.
    Both were sent to a replicator. They made a few hundred copies from the DDP.
    The resulting DVDs have a bug on most standalone DVD-Players and on MACs (tested with MacBook and MacBookPro): If you do nothing in the menu for a few seconds it is not possible to select any menu item anymore. The menu has a motion background and music in a loop. But the problem occurs before the loop is played through one time.
    BUT ... the DVD-Video from the IMG works fine.
    My problem is that I can not determine if Encored did something diffrent with the DDP or if the replicator itnroduced this strange bug somehow.
    I have no software available to burn the DDP and see for myself if that works.
    So my questions are:
    - Has someone experienced differences between DDPs and IMGs?
    - Has someone experienced the same wired bug with the menu?
    Cheers
    Erik

    Hello,
    thanks for the offer to check it. But in the meantime I retransmitted (this time as a download) the same image (IMG not DDP as I feared there was something wrong with the DDP) I already gave them. The new batch of DVDs work fine. I guess I will never find out what happend because their communication is rather strange. Either something went wrong on the way with the first image (burning/reading) or they messed something up on their side and would not tell.
    Cheers
    Erik

  • Problems with tags img

    Hello, i`m here again, now i have a little problem that when
    i have a dataset in a table, and in the repeat region not showme
    images when ar einside the text, only showme undefine in this
    current row, somebody cuold help me to know what are wrong?

    HI Kin, yes sorry, i forget, look i will push part of my
    class, when i use the code of spry, in this first funciton i make a
    query from the database and i list all message from a guestbook
    public function MostrarGuest(){
    $Consulto="SELECT IdGuest AS id_query, Titulo, Mensaje,
    NombreVisitante FROM guestusuarios usuGuets JOIN `reg_usuarios` reg
    on reg.`id_registros`=usuGuets.id_registros WHERE
    reg.`usuario`='".$this->usuario."' ORDER BY IdGuest";
    $datosCantidad=count($this->db->ejecutarQuery($Consulto));
    $marioSpry=new SpryDelfino();
    //genero el query para el list box
    $camposxml="MensajesUsu,Mensajes";
    $camposHijos="Mensaje,NombreVisitante";
    $html=$marioSpry->CargaArchivos(constant("RUTA")."php_Files/clases/SpryDelfino/xpath,".co nstant("RUTA")."php_Files/clases/SpryDelfino/SpryData").$marioSpry->DataSetSpryDelfino(con stant("RUTA")."php_Files/clases/SpryDelfino/xml.php?query=$Consulto&camposxml=$camposxml&c amposhijos=$camposHijos","dsUsuarios","/MensajesUsu/Mensajes");
    $tabla= new tablaccs('domtable',"My Guest
    Book",$datosCantidad." Message Found");
    $html.="<div spry:region=\"dsUsuarios\">";
    $html.=$tabla->DibujoEncabezado();
    $html.="<tr
    spry:repeat=\"dsUsuarios\"><td><div
    class=resultListItems>
    <ul ><li class='resultListTitle'>";
    $html.="{NombreVisitante}";
    $html.="</li></ul>";
    $html.="<div id=contenido class=CeltasDescripEvent>";
    $html.="{Mensaje}";
    $html.="</div></div></td></tr>";
    $html.=$tabla->dinujoFIntabla();
    $html.="</div>";
    return $html;
    in the line when say $html=$marioSpry->CargaArchivos are a
    class where i load the js spry and when i pass the query to reload
    the xml, this ist not the problem, my real problem are that when i
    have in the data from the database like this
    "This are a sample from the guest<img alt=""
    src="/tglife2ver/php_Files/clases/Formularios/fckeditor/editor/images/smiley/msn/teeth_sm ile.gif"
    />"
    the xml read the tag <img like another row i guess, so i
    need to know how i can make this to insert image in middle of the
    text
    Thank you

  • Padding on top of img tags imported to TextFlow

    I'm trying to use an external HTML data source with the Spark RichEditableText control, and it has the following structure:
    <p>My wrapping text here.</p><img id="picture1" src="image1.png" /><img id="picture2" src="image2.png" /><p>More text...</p>
    I'm noticing a large gap above my <img> tags when rendered in the RichEditableText control. Anyone know how I can control the padding on top of <img> elements that are specified in external HTML and imported using TextFlow.importToFlow() ? This also might be a rendering bug, because I can see the text rewrap on initialization, and it's as if the control is leaving the once occupied space still empty and not moving the <img> elements up along the y axis. Many thanks in advance.

    Richard, thanks for the reply. I tried your suggestion, but it didn't seem to help. I've recreated with a simple MXML test:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:RichEditableText width="890" height="600" whiteSpaceCollapse="collapse" fontSize="18">
         <s:TextFlow whiteSpaceCollapse="collapse">
              <s:p>
              The secondary survey of this patient reveals he has suffered two major penetrating shrapnel injuries just below the right eye and right parietal scalp region. He also has minor shrapnel wounds to his left forearm, right deltoid region, and right cheek.
              </s:p>
              <s:div tabStops="0 350">
                   <s:img source="http://flashsupport.com/images/waterfall.png"  />
                   <s:tab />
                   <s:img source="http://flashsupport.com/images/waterfall.png" />
                   <s:br/>
                   Left deltoid injury
                   <s:tab />
                   Right deltoid injury
             </s:div>
         </s:TextFlow>
    </s:RichEditableText>
    </s:Application>
    (The padding occurs with or without the <s:div>, but I thought you should see what I'm ultimately trying to accomplish.)
    thanks again for your help!
    -Robert
    p.s. thank you to peter dehaan for the tabstops help!

  • TextArea TextFlow and TextConverter problem

    In FB4 I am sending data to php/mySQL using FB4 data services.  In the object that I am sending over is TextFlow from a TextArea; I am using (not the exact code)
    myObj.myTextFlow = TextConverter.export(textArea.textFlow, TextConverter.TEXT_LAYOUT_FORMAT, ConversionType.STRING_TYPE);
    also at the end of the above code I've used .toString().
    The problem is if any of the TextArea text has a ' in it (for example - Starbuck's) the app gets a channel disconnected which usually means php/mySQL didn't like it.  The data in Network monitor's request looks good.  If the ' is taken out everything works.
    Any suggestions?

    If you're seeing the "data disconnected" message it probably means that your server is returning bad data, probably a big fat error message.There are ways to debug your php script using log messages, error control handlers, php debuggers (like zend's debugger), etc. I would at a minimum configure an error handler to keep some kind of log or else you'll remain totally in the dark about the "data disconnected" message.
    Anyway, from your description of the problem it sounds like your db might not like the data it's receiving. You are using real_escape_string() before inserting data, right?
    - e

Maybe you are looking for