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

Similar Messages

  • Problem with Image positioning

    Hello everyone I am having a problem with the positioning of an image I want to sit on  top of the background in DW. I want it to sit on top of the background  because I want to use a behaviour effect so that it fades in. Anyway, I  go to Insert and choose the image I want, and it shows up in the  top-left corner of my DW, which I expect it to. However, I want the  Image to sit a lot further down the page (and eventually at the center). So, I select the image and go  to the "V Space" in the properties panel and I alter the value in it so  that the image will be positioned further down the page. However, when I  do this for some reason the whole page shifts to the left a little and I  also get a scroll bar that makes the page a lot longer, which I don't  want. Does anybody know why this is happening and what I could do to  prevent it? I will attach a "before" and "after" screenshot so you can see what I mean a little more clearly.
    If you can see the whole page shifts slightly to the left and I get a scroll bar which makes the page a fair bit longer. I've also experimented a little by moving the image down bit by bit and found that everything is fine until I cross around 200 on "VSpace"-  after that is when the page shifts and I get the scroll bar.
    I greatly appreciate any help! Thanks

    As a starting point, Copy & Paste this code into a new, blank  HTML document.   The comments will guide you.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    html {font-size: 100%}
    body {
    margin: 0;
    background:#000;
    font: 1em Geneva, Arial, Helvetica, sans-serif;
    color: #FFF;
    text-align:center;
    #wrapper {
    width: 960px; /**width in px, ems or %**/
    margin:0 auto; /**centers page**/
    padding: 0;
    border: 2px solid silver; /**optional border**/
    #header {
    text-align: center;
    border: 1px dotted silver; /**optional border**/
    /**Main Menu**/
    #navlist {
    margin: 0;
    padding: 0;
    font: italic 24px "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    text-align: center;
    #navlist li {
    margin: 0;
    padding:0;
    list-style: none;
    display: inline;
    #navlist li a {padding: 0.75em; text-decoration: none;}
    /**link colors**/
    #navlist li a:link,
    #navlist li a:visited { color: #999; }
    /**On mouseover**/
    #navlist li a:hover,
    #navlist li a:active,
    #navlist li a:focus { color: #FFF; text-decoration: underline;
    /**End Menu styles**/
    #content {
    width: 400px;
    font-size: small;
    margin: 20px auto 0 auto;
    text-align: center;
    color: #CCC;
    #content ul li {margin:0; padding:0;
    list-style:none}
    /**Rollover Image**/
    #content a img {
    border:none;
    opacity: 0.6;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
    filter: alpha(opacity=70)}
    #content a img:hover,
    #content a img:active,
    #content a img:focus {opacity: 1.0;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: alpha(opacity=100)}
    #footer {
    border-top: 4px solid #990000;
    font-size: x-small;
    text-align: left;
    margin:0;
    padding: 0 0 0 15px
    /**RE-USABLE CLASSES**/
    .left {text-align:left}
    .right {text-align: right}
    .center {text-align:center}
    </style>
    </head>
    <body>
    <div id="wrapper">
    <!--begin header -->
    <div id="header">
    <h1>Amy Carrier </h1>
    <!--end header --></div>
    <!--begin menu-->
    <ul id="navlist">
    <li><a href="#">AC</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Gallery</a></li>
    <li><a href="#">Contact</a></li>
    </ul> <!--end navlist -->
    <!--end menu -->
    <!--begin content -->
    <div id="content">
    <p class="left">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ac dolor velit, sed adipiscing ipsum. </p>
    <ul>
    <li>details</li>
    <li>details</li>
    <li>details</li>
    </ul>
    <!--Replace this linked image with your own -->
    <a href="http://www.google.com/chrome"><img src="http://dret.net/lectures/web-fall09/img/chrome-logo.png" alt="image" /></a>
    <!--end content --></div>
    <!--begin footer -->
    <div id="footer">
    <p>@ 2010 Footer text goes here</p>
    <!--end footer --></div>
    <!--end wrapper --></div>
    </body>
    </html>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Problem with Image file

    Hi,
    Iam facing with one problem.I have one swing interface through which I can upload files(back end servlet programme).Now I can upload all types of file but problem with image file it uploading perfectly that means size of the uploaded file is ok but its format damaged.It can not be open.My backend servlet programme is ok coz i tested it with html form it is working perfectly.Problem with swing interface.Plz guide me where I done a mistake.Below r my codes:-
    ImageIcon Upload=new ImageIcon("images/Upload.gif");
         Button=new JButton(Upload);
         Button.setToolTipText("Upload");
    Button.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
              int returnVal = fc.showOpenDialog(ActionDemo4.this);
              if (returnVal == JFileChooser.APPROVE_OPTION) {
              File file = fc.getSelectedFile();
    String aa=file.getAbsolutePath();
              textArea3.append(aa);
                   textArea2.append("Local URL:");
    long l=file.length();
              try
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff);
              String str1=textArea10.getText();
    url = new URL ("http://127.0.0.1:7001/servletUpload?x="+str1);
         urlConn = url.openConnection();
         urlConn.setDoInput (true);
         urlConn.setDoOutput (true);
         urlConn.setUseCaches (false);
         urlConn.setRequestProperty("Content-Type","multipart/form-data;boundry=-----------------------------7d11e410e500f2");
         printout = new DataOutputStream (urlConn.getOutputStream ());
    String content ="-----------------------------7d11e410e500f2\r\n"+"Content-Disposition: form-data;"+"name=\"upload\"; filename=\""+aa+"\"\r\n"+"Content-Type: application/octet-strem\r\n\r\n\r\n"+conffile+"-----------------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);
    printout.flush ();
    printout.close ();
    Best Regards
    Bikash

    The errors are here:
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff); (conffile is a String object containing the image)
    and here:
    String content ="-----------------------------7d11e410e500f2\r\n"+"Con
    ent-Disposition: form-data;"+"name=\"upload\";
    filename=\""+aa+"\"\r\n"+"Content-Type:
    application/octet-strem\r\n\r\n\r\n"+conffile+"--------
    --------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);conffie is sent to the server but
    it's non possible to treat binary data as String!
    Image files must be sent as byte[] NOT as String ......

  • Problem with images opened in Photoshop CS 5

    Hi, I have a problem with images that I open in Photoshop CS 5. F. ex. I opened
    the following image:
    The image appears with a purple color in Photoshop. If I hover over the image
    with a tool like lasso, it temporarily regains it´s original color. The image mode is RGB Color, 8 Bits/Channel.
    I resetted the start settings of Photoshop with the CTRL-Shift-Alt-combination, which had no effect.

    The confusion arises from the imprecise error message in the Preferences > Performance dialog box, to wit:
    OK, that seems to be open to misunderstanding indeed.
    The video card: Citrix Systems Inc. Display Driver.
    Could not find a list for CS6 specifically, but the card may fall short.
    http://helpx.adobe.com/photoshop/kb/tested-video-cards-photoshop-cs5.html
    If I invoke View > Proof Colors, the only thing that changes is that the text in the brackets
    Also if you set View > Proof Setup to something different?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)?

  • Problem with image url

    Hello,
    today I have a problem with image url. I wanted Image to change when mouse dragged over it. But nothing happened. Any ideas?
    def maxIco: ImageView = ImageView{
    image: Image{
    url: "{__DIR__}ikony/max.png"
    onMouseDragged: function(event: MouseEvent){
    maxIco.image = Image{
    url: "{__DIR__}ikony/max2.png"
    }

    This is working for me:
    src/main/Main.fx
    src/main/icon/image1.bmp
    src/main/icon/image2.bmp
    //Main.fx
    package main;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.input.MouseEvent;
    var changed = false;
    def imgView: ImageView = ImageView {
        image: Image {
            url: "{__DIR__}icon/image1.bmp"
        onMouseDragged: function (e: MouseEvent): Void {
            if (not changed) {
                imgView.image = Image {
                    url: "{__DIR__}icon/image2.bmp"
                changed = true;
                println(imgView.image.url);
        onMouseReleased: function (e: MouseEvent): Void {
            imgView.image = Image {
                url: "{__DIR__}icon/image1.bmp"
            changed = false;
            println(imgView.image.url);
    Stage {
        title: "ImageTest"
        scene: Scene {
            width: 700
            height: 600
            content: [
                imgView
    }I've changed few things to switch image only one time on mouseDragged event.
    It print the image URL.

  • Problem with Image.createImage()

    Hi all!
    I'm writing a simple midlet just to display an image on the screen and I'm having some problems with Image.createImage()
    Here is my code
    Image bg_img;
    ImageItem imageItem1;
    imageItem1 = new ImageItem("", null,ImageItem.LAYOUT_DEFAULT, "");
    try{
    bg_img = Image.createImage("/image.png");
    imageItem1.setImage(bg_img);
    catch(java.io.IOException e){
    e.printStackTrace();
    I'm getting an exception on bg_img = Image.createImage("/image.png");
    I can't understand what is it...:(
    I know for sure that the problem is not "file not found"
    Any one can help me???

    If you are catching IOException, then u may have problem with ur image path. "image not found on the specified path." if ur image is not in the current directiry then put it into current directory. otherwise, If u are using resouce folder and it is already included into the resouce path, then put ur image in that folder..try this..
    Still not get, then please give some detail about ur development toolkit. and ur apllication packaging scheem. are you using ANT?
    Pranav

  • Problem with image gallery

    Hi to all.
    With ios 5.01 I have a little problem with image gallery. As you can see I have only 1 image, but there is always this **** message "download 0 of 46) (sorry, but I'm Italian )
    I've removed my icloud account from settings, but there is nothing to do, this message don't goes away. What I can do? Thanks in advance

    Hello,
    Just adding a gallery I want to do the same slideshow WoodWing's, but in InDesign, if anyone knows of?
    Thank you
    Link video slideshow WoodWing's: http://www.youtube.com/watch?v=Xt6gNaEZ0-M&feature=relmfu
    The first slideshow shown

  • Problems with image scaling

    I'm facing a real problem with image scaling
    I've used several algorithms but it all has defects but the most common thing is the out of memory error after several enlargments...
    does any one know a solution...
    note:
    I've used several packages to do so,but I'm looking for a solution from the jdk itself
    JAlexscorpio

    Did you take into account that the getScaledInstance() -method creates a completly new Image?
    So if you use it like in
    ImageIcon icon1=new ImageIcon("Blah.gif");
    ImageIcon icon2=new ImageIcon(icon1.getImage().getScaledInstance(400,400,SCALE_FAST);
    you will end up with 2 different Images which have their own data and memory requirements.
    even if you use something like
    ImageIcon icon1=new ImageIcon("Blah.gif");
    Image i=icon1.getImage();
    icon1.setImage(i.getScaledInstance(200,200,SCALE_FAST));
    You will need enough memory to store the data for the original image, as well as the data for the scaled
    version of the image, at least for the time that it take the JRE to create the scaled version. You never know when the garbage collector kicks in to delete you old data so it could be that this takes some time and until
    that moment your memory is not available. If your now doing several of the scaling operations, and there is no chance for the garbage collector to do its work, you will run out of memory.
    I hope that might help, if not feel free to post again

  • Problems with Image Variants

    I got two problems with Image Variants:
    1. catalogCache.GetImagePath("Images", id) doesn’t work for some id. The error message is “GetImageVariant error”.
    2. catalogCache.Preload("Images", “Original”)
        catalogCache.Preload("Images", “Thumbnails”)
        catalogCache.Preload("Images", null)
       catalogCache.Preload("Images", "")
    get failed, the status code is -2147483647
    Anyone know how to setup  image variants?
    Thanks.
    Forrest

    status code: -2147483647 is RC_BADPARAM.

  • Copy and Paste Problems with Images

    I'm having the strangest problems with images. I copy an image off of the web for one of my art history classes and I go to paste into another program but, whether it's Keynote, Powerpoint, Photoshop, or Graphic Converter, something always goes wrong: the images definitely lose some of their quality, become brighter in appearance, and get jagged on the edges. This is starting to drive me nuts, especially since it never happened in 10.4 on my iBook G4. Any suggestions?

    Make it an 8-bit file (Image menu > mode).

  • BIS users in Pakistan::: HTML email view with images

    Mobilink, service provider, has updated their BIS to 2.5 in July. But they are unable to provide HTML email view with images on Blackberry sets running on ver. 4.5.
    Mobilink says that it is only available to BES users at the moment. BIS users will get it late on.
    Please explain, is it a Mobilink issue or RIM? as all around the world BIS users are getiing it.

    i dont beleive this. RIM wont leave  out Mobilink, infact they cant. The upgrade was done on BIS servers across the board not for some service providers. You probably wanna try another device or may be re-install oS On device?
    chk this thread: http://supportforums.blackberry.com/rim/board/message?board.id=BlackBerryInternetSolution&thread.id=...
    Click on KUDOS to appreciate our efforts and mark the thread RESOLVED if your issue is resolved.

  • Experiencing problem with image display in LR5

    I have an intermittent problem with images displaying and exporting in LR. It just began a couple of months ago and is totally random - will do it with RAW (CR2) or JPG. It displays this way in all modules - Library, Develop, Slideshow....The image displays fine in a non-Adobe image viewer (Faststone or Windows Viewer). I've reloaded LR5 and PSCC and is still persists. I know the image file is fine. It also has begun effecting older images that were showing up just fine a while ago. I just loaded about 200 images and maybe 3 or so have this viewing problem in LR & PS. Has anyone else experienced it and have a suggested fix? My graphics card has the latest drivers and shows no problems with other applications. Here is the same image - one a jpg export from Lighroom, the other a save as jpg from Faststone. HELP!

    This is almost always a hardware problem, causing corruption of the file. The difference you see between Lightroom and other software is that Lightroom is accessing the full RAW image, while the other software is trying to read the embedded JPG preview.
    To figure out exactly what hardware is the problem, you need to try different transmission paths and hardware ... different camera cards, different card readers or USB cables/USB ports, different hard disks, etc. Eventually you should be able to isolate the problem.

  • My daughter's older Ipod Touch is having a problem with images becoming pixilated when taken from an e-mail and placed into her camera roll. ( She wants to put on Instagram ) Any help?

    My daughter's older Ipod Touch is having a problem with images becoming pixilated when taken from an e-mail and placed into her camera roll. ( She wants to put on Instagram ) Any help?

    I think that may be a consequence of the email provider she is using. Some services (AOL is one example) inspect and modify email attachments, particularly photos, resulting in reduced resolution compared to the email that was sent.
    The iPod does not do this. The resolution of the picture in the email she receives will be identical to what is imported.

  • CS5 Problem with box positioning

    CS5 Problem with box positioning. 0 Point for box positioning is on the right side now, how can I change it so its on the left side of the box again?
    (When I started to work on my document all of my text boxes were positioned at 20px now they are at 180px and they are 160px width)
    Thanks in advance!

    Without a screen capture showing a bit more about what you mean, I can't tell if this is just a case that you need to reset the zero-point on the ruler (or change from ruler per page to ruler per spread or ruler on spine...) or some other problem entirely.
    You can embed a screen capture in a post using the camera icon on the web page like this:

  • Problem with geo positioning

    I have big problems with geo positioning in Google Maps (and other apps) with my Swedish 3G 2.1 iPhone. Most of the time it works fine and my positions is found quick and easy. On some places, the positioning is WAY OFF. For example, at my home the positioning system seems to think that I am in India. Not the case, I can tell you! When I was in London this weekend the positioning said I was in Thailand when I was at Stansted airport. Same story both on the day of arrival and departure. In the city of London it worked fine at all times.
    What can I do about this much annoying stuff?
    Please help!
    Message was edited by: HenkeL

    Turn off WiFi.
    What is happening is some WiFi router near you was recorded into SkyHooks database with it's MAC address and Lat/Lng as being in those places. Part of the lookup of finding you will use any nearby wifi MAC addresses and look them up in Skyhooks database. If their data is wrong, that is what happens. People can move from one place to another bring their router with them. Companies can need to repair a router and send it off to another part of their business (eg: from one airport to another).
    Turning off WiFi means it won't try to use MAC addresses of nearby wifi spots. It is the price you pay for relying on somebody elses data that has the ability to get out of date.

Maybe you are looking for

  • How to open several psdfiles simultaniously in Camera Raw 8.1

    I've replaced my Ps 5.5 by Ps 6. Now I'm having problems with opening psd files in Camera Raw; in Ps 5 I worked from Bridge and could open that type of files from Bridge to ACR. I just found out how to open it in Photoshop: open as....RAW file. But I

  • SC workflow not started

    I am on SRM6.0 and in my development system SC workflow is not getting started, it shows "awaiting status". When I look into the approval preview, I don't get any process level whereas it works fine in QA and PRD system. I checked the configuration a

  • ActionScript Packages in Tomcat 6

    Hello all, first time poster here. I'm new to using ActionScript packages. I was wondering if there's a standard place/directory to place ActionScript helper packages on Tomcat 6 server. My application consists of a combination of JEE and Flex front

  • Moving an iPhoto 08 Library

    A few weeks ago I had a harddrive crash, but I was able to salvage my data to another ibook. I used target disk mode and I save all of my info to another MacBook. Well I have a new hardrive and all is well. I move all my data back and I feel all is w

  • Regarding JButton in Table Row

    Hi all i want insert the button in row of table. i want to insert two colums of data and one button plz hel me