How to use embedded image in TextArea in Air (differs from Flex) ?

So I was trying the example from the LiveDocs:
Making hyperlinks out of embedded images
http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_04.html
This doesn't seem to work in an Air application (the image doesn't show).
Even simply adding an image with a relative path doesn't work in Air (the image doesn't show either):
    <mx:Image source="../assets/butterfly.gif" />
I'm sure I must be missing something really straightforward here, can anyone help ?
Also, more generally, where I can see the source code of TextArea and RichTextEditor, understanding their inner working would be a great help.
Thanks

Embedding images in htmlText in a TextFiled isn't supported in AIR.
See: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.ht ml#htmlText
The source for the Flex components is included in the Flex SDK.

Similar Messages

  • How to insert embedded image into TextArea htmlText (and add IOErrorEvent.IO_ERROR listener).

    I unsuccessfully tried to find way to insert embedded image into TextArea via <img> tag. Can you point me out how to do this?
    Also, please, tell me how to handle IOErrorEvent from TextArea because adding IOErrorEvent.IO_ERROR listener to TextArea doesn't cause any effect when image url of img tag has not been found.
    Thanks

    i 've successfully inserted the image into the database... here is my code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package PMS;
    import java.io.File;
    import java.io.FileInputStream;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    public class Browse_java
    static Connection con=null;
    public static void main(String args[])
    try{
    System.out.println("(browse.java) just entered in to the class");
    con = new PMS.DbConnection().getConnection();
    System.out.println("(browse.java) connection string is"+con);
    PreparedStatement ps = con.prepareStatement("INSERT INTO img_exp VALUES(?,?)");
    System.out.println("(browse.java) prepare statement object is"+ps);
    File file =new File("C:/Documents and Settings/Administrator/Desktop/Leader.jpg");
    FileInputStream fs = new FileInputStream(file);
    byte blob[]=new byte[(byte)file.length()];
    fs.read(blob);
    ps.setString(1,"C:/Documents and Settings/Administrator/Desktop/Leader.jpg");
    ps.setBytes(2, blob);
    System.out.println("(browse.java)length of picture is"+fs.available());
    int i = ps.executeUpdate();
    System.out.println("image inserted successfully"+i);
    catch(Exception e)
    e.printStackTrace();
    finally
    try {
    con.close();
    } catch (SQLException ex) {
    ex.printStackTrace();
    }

  • How To: Using Embedded Images for Drawing Fills

    I had some challenges making this seemingly simple feature work, so as I found no examples, I made an example on how to do this.  The key I found was using the “BitmapAsset” class which is compatible with posting our embedded image into BitmapData objects. That put things together.
    See the full narrative at:  http://digitalshowcase.biz/wordpress/?p=234
    Download the Flex Project here:  http://digitalshowcase.biz/flex/FillsWithEmbeddedImages.zip
    - Alan Gruskoff, Digital Showcase LLC

    >>says that this export technique does not work, it produces a low res screen version of the file.
    Are you certain the original files were any better?
    My preferred method of doing this works well, but it takes a few extra steps. I'd make a high-res PDF out of the PM file, then pick apart the PDF to extract the graphics. Are the graphics raster or vector? If they're raster, you can use Acrobat's Touch-up Object tool to open them in Photoshop. If they're vector, you can open the PDF in Illustrator and save out the graphics from there.
    HTH

  • How to Use an Image to Customize the Static Button Widget

    Can I just get someone to help me figure out how to use an image to customize the static button widget, please?
    I have tried using several different types of images, but none of them seem to actually change the appearance of the button.
    Thanks!
    Laura
    Captivate 5.5

    I tried to use the tools within the widget itself - it offers you the opportunity to use an image (see screenshot below).
    I also opened it in Flash and tried to replace the images for one of the button styles there w/ my own, but in re-publishing the SWF from there I broke the widget.  When I attempted to use the edited widget, there were no customization controls available after I inserted it (see screenshot two below).

  • How to use an image as my form background in form central

    how to use an image as my form background in form central pls help me....

    Unfortunately this is not supported but you can submit a feature request on this form FormsCentral Ideas.

  • How to use the image manipulation palette to extract a part of an image

    How to use the image manipulation palette to extract a part of an image?I have a parent image from which i need to extract a certain sub part.can somebody pls help me on how to use this particular tool?
    Thanks

    Use the above snippet. You might need to convert the Image Type you are using with picture functions. The above snippet will give you good idea on how to achieve what you intend to.
    -FraggerFox!
    Certified LabVIEW Architect, Certified TestStand Developer
    "What you think today is what you live tomorrow"

  • How to use for all entires clause while fetching data from archived tables

    How to use for all entires clause while fetching data from archived tables using the FM
    /PBS/SELECT_INTO_TABLE' .
    I need to fetch data from an Archived table for all the entries in an internal table.
    Kindly provide some inputs for the same.
    thanks n Regards
    Ramesh

    Hi Ramesh,
    I have a query regarding accessing archived data through PBS.
    I have archived SAP FI data ( Object FI_DOCUMNT) using SAP standard process through TCODE : SARA.
    Now please tell me can I acees this archived data through the PBS add on FM : '/PBS/SELECT_INTO_TABLE'.
    Do I need to do something else to access data archived through SAP standard process ot not ? If yes, then please tell me as I am not able to get the data using the above FM.
    The call to the above FM is as follows :
    CALL FUNCTION '/PBS/SELECT_INTO_TABLE'
      EXPORTING
        archiv           = 'CFI'
        OPTION           = ''
        tabname          = 'BKPF'
        SCHL1_NAME       = 'BELNR'
        SCHL1_VON        =  belnr-low
        SCHL1_BIS        =  belnr-low
        SCHL2_NAME       = 'GJAHR'
        SCHL2_VON        =  GJAHR-LOW
        SCHL2_BIS        =  GJAHR-LOW
        SCHL3_NAME       =  'BUKRS'
        SCHL3_VON        =  bukrs-low
        SCHL3_BIS        =  bukrs-low
      SCHL4_NAME       =
      SCHL4_VON        =
      SCHL4_BIS        =
        CLR_ITAB         = 'X'
      MAX_ZAHL         =
      tables
        i_tabelle        =  t_bkpf
      SCHL1_IN         =
      SCHL2_IN         =
      SCHL3_IN         =
      SCHL4_IN         =
    EXCEPTIONS
       EOF              = 1
       OTHERS           = 2
       OTHERS           = 3
    It gives me the following error :
    Index for table not supported ! BKPF BELNR.
    Please help ASAP.
    Thnaks and Regards
    Gurpreet Singh

  • HT4356 How to use Canon Selphy Photo Printer (CP900) to print from iPad 3?

    How to use Canon Selphy Photo Printer (CP900) to print from iPad 3?  I would like to print the photos in my ipad on my Canon Selphy Photo Printer (CP900) which has wifi...

    hi
    ideally if you want to print from the ipad you should have an airprint enabled printer:
    http://support.apple.com/kb/ht4356
    however, there are workarounds, you can download a decent third party app to print such as print n share, printcentral or printdirect

  • Why can't I make a purchase from my new IPod using a new credit card which is different from the one registered with my apple account ?

    Why can't I make a purchase from my new IPod using a new credit card which is different from the one I have registered with iTunes before ?

    You can only use one credit card to one Apple ID.

  • How to use embedded font

    Hi all,
    I have a flex application where i want to rotate the textarea.I have a mxml file and a .as file.I want to use the embedded font in my application.But I don't know anything.Please advice me details and also how to proceed to create embedded font,how to create the ttf file?I am not using any package and not using library path.
    Please help me.Thanks in advance.

    FangAvatar,
    looks like the same question as the other one we are talking about. The Live docs page
    http://www.adobe.com/livedocs/flex/3/html/help.html?content=fonts_04.html
    has ane xample with rotated labels just oevr half way down the page.
    If you are having trouble navigating with this link, just go to the root
    http://www.adobe.com/livedocs/flex/3/html/help.html
    then in the contents bar on the left open up
    User interfaces
    ...using fonts
    ......using embedded fonts
    the section is just above the heading "Using advanced anti-aliasing"
    Richard

  • How can you use one image and edit it three different ways to export later?

    I am a new Lightroom 3 user.  How can use the same image and edit it multiple ways to produce mulitple images to later export?  For example,  I have a picture of a bride and groom.  I want to use that image and create a color image, a black and white image, and a close up of their hands.

    Do I need to do either of those options before I start editing the image at all?  For example,  what if I am working on the image and doing some creative edits.  Then I think of another option that I could do.  Is it too late at that time or can I still get the original image to begin with?

  • How to use an image as button?

    I want to set an image as the background of a frame, and also want use four regions of the image as four buttons. How?

    How about an image on the JFrame with four JButtons with some type of image (even if you copy a piece of you original image to place on the button)? I played around with this and its kind of neat. Easier from a gui perspective to see buttons than flat regions -
    Have fun
    //in a class that extends JFrame, create the image panel and add buttons with icons to it...
    Container contentPane = getContentPane();
    ImagePanel imagePanel = new ImagePanel(); //see below
    contentPane.add(imagePanel);
    JButton button = new JButton();
    button.setIcon(new ImageIcon(WorldMap.class.getResource("someGIF.gif"))); //or other form of getting and setting an icon
    button.setSize(65,45);
    mcsButton.setLocation(405,175);
    mcsButton.setContentAreaFilled(false); //important so the button looks like a raised part of the picture...not a grey box with an icon.
    mcsButton.addMouseListener(new MouseAdapter()
    public void mouseClicked(MouseEvent e)
    //do something
    imagePanel.setLayout(null);
    imagePanel.add(mcsButton,null);
    //code to put an image on a JPanel I received from this forum
    class ImagePanel extends JPanel
    private Image image;
    public ImagePanel()
    image = Toolkit.getDefaultToolkit().getImage("C:/WholeWorldViewJPG.jpg");
    MediaTracker tracker = new MediaTracker(this);
    tracker.addImage(image, 0);
    try
    tracker.waitForID(0);
    catch (InterruptedException e)
    public void paintComponent(Graphics g)
    super.paintComponent(g);
    Dimension d = getSize();
    int clientWidth = d.width;
    int clientHeight = d.height;
    int imageWidth = image.getWidth(this);
    int imageHeight = image.getHeight(this);
    g.drawImage(image, 0, 0, this);
    for (int i = 0; i * imageWidth <= clientWidth; i++)
    for (int j = 0; j * imageHeight <= clientHeight; j++)
    if (i + j > 0)
    g.copyArea(0, 0, imageWidth, imageHeight, i * imageWidth, j * imageHeight);
    }

  • How to display embedded image & text in content presenter web template

    We have a requirement to display both text and embedded image together like in WYSIWYG editor in Webcenter spaces. The content has to be dynamic and is context sensitive so that users in the same role can edit and publish the content. The users who are in different role would see different piece of content.
    To achieve this use case, i think Content Presenter enabled with Site studio is the best choice. I have created element and region definitions with WYSIWYG and region templates in site studio. Created contributor data file in UCM. Content Presenter in webcenter is configured with that region definition and the region template etc.
    At design time, the contributor data file is edited and some image / text is added in WYSIWYG editor.. But however at runtime view, i could see only the text added in WYSIWYG editor and the file name of the image embedded....Any one successfully used Content Presenter with Site studio???
    Regards
    Prasath.C

    Hi
    I'm using the site studio tags in jdev. My code is the following one and I have the same result I see the the html tags instead a formatted text.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:dt="http://xmlns.oracle.com/webcenter/content/templates"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:trh="http://myfaces.apache.org/trinidad/html">
    <dt:contentTemplateDef var="node">
    <af:panelGroupLayout layout="vertical" id="pgl3">
    <af:panelGroupLayout layout="horizontal" valign="top" inlineStyle="background-color:#FFF; padding:10px;" id="pgl4">
    <af:spacer width="10px;" id="s1" inlineStyle="background-color:#DDD; color:white;"/>
    <af:panelGroupLayout layout="vertical" id="pgl1" valign="top">
    <af:outputText value="#{node.propertyMap['RD_RICH_TEXT:text1'].asTextHtml}"
    id="ot2" styleClass="bodytext"/>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    </dt:contentTemplateDef>
    </jsp:root>

  • How to use add image in HTML tag

    Hello frndz
                     i  m working on text chat application in adobe  air.using <mx:html/> tag for dispalying text and  images(smiley).but the font size fo flex is diffrent and html diffrent.i  mean i m using 10 font size but it looks too large on  <mx:html/>  component.is there any way to cast them in same size.
    The second and major problem is that it can not add images to html  tag.when i m giving images like:-private var txt:String="<img  src='src\smily\tongue.gif'/>" .
    it shows nothing but when i give images through http path it shows  images on html componenet.
    can any body explain me the problem.
    Thanks And regards
      Vineet Osho

    thanks Alot René Bühling for  your quick reply.but the link u mentioned ith reply is not working for  me.
    ok can u tell me how can i manage my flex font  size 10 to  <mx:html tag 's font size 10.
    i think there is large difference  between flex font and html font.so please guide me for that.
    Thanks  Alot
    Vineet osho

  • How to prevent embedded images falling off the page

    I have embedded images in a multi-column document. It's great to have the images flow with the text, but sometimes they flow over the edge of the page. Is there a way to set the keep options so that embedded images stay on the page?

    Again, I'm going to ask what behavior you expect for this? Where would you have that image move? If what you want is for the entire paragraph to go to the next page, you are using the correct mothod by adding a keep option that will keep sufficient lines together  to match the image height. Adding the keep within the top and bottom boundaries of the column (rather than the page) for inline anchored images might be useful if it behaved like a keep option forcing the containing paragraph to the next page, but not so good if it pushed the position of the image up or down relative to its anchor point.
    What you are learning is that anchored objects are extremely useful, but that they are problematic when they fall at the bottom of a column. You almost always need to som manual editing to accomodate the odd case.

Maybe you are looking for