HtmlText: img src= from Library?

Hello Guys
I have a htmlText Field, and I wanna embed a Movieclip from my library into the text.
I've tried everything for about 5 hours, nothing worked, even though the Adobe Help stated that it's possible:
src: Specifies the URL to an image or SWF file, or the linkage identifier  for a movie clip    symbol in the library. This attribute is required;  all other attributes are optional. External files (JPEG, GIF, PNG,     and SWF files) do not show until they are downloaded completely.
So you can stick images from your library in html textFields... the question is how?
Thank you in advance.
Kenji

Well, I was using the linkage and everything correctly. I found out my fault. I was using a TLF-Textfield which doesn't support the embedding of library images (or does it??)
It works in classic textfields though, but in classic textfields, the textflow is totally broken with images. Instead of inserting it into the textline, it creates a new line, only for the picture. But for my purpose (chat smileys) that's of no use. I need my pictures right in the text line where they have to be...
Like <-- this.
And not like <--- this, as it is with classic textfields.
Does anyone know how to embed library movieclips into a TLF-Text??

Similar Messages

  • Regular Expresson to Extrcat URLs from img src tags

    Hi,
    I have a huge string containing html tags, some of these tags being <img src="URL"> ones. I need to extract the urls from all the occurences of these tags in the input string. This is what I am doing:
    Pattern p=null;
    Matcher m= null;
    String word0= null;
    String word1= null;
    p= Pattern.compile(".*<img[^>]*src=\"([^\"]*)",Pattern.CASE_INSENSITIVE);
    m= p.matcher(txt);
    while (m.find())
        word0=m.group(1);
        System.out.println(word0.toString());
         }The problem with this code is that this prints only the last URL. For example if there are 5 <img src="URL"> tags, this code prints only the URL contained withn the 5th< img src> tag. Please tell me how to solve this.
    Thanking you in advance

    Here's another approach:
    ok so this is assuming that the source text is not one line of strings, but mulitple lines.
    String[] lines = txt.split("\n")this splits the string based on the newline character. then you can iterate through the array and use the pattern on each string. The only thing that can go wrong here is if there are two images in one line of code. Then you can use some of the methods in the String class to find each instance of "img src=", and you can figure out the rest.
    another, better, way to split the string is with a string tokenizer (simple method in my library):
    * Returns an array of strings from splitting the givin string
    * with the given deliminator.  See the example<br/>
    * <br/>
    * <i>Example:</i><br/>
    * <code>splitTokens("ID: 1920129 NAME: JOHNY IAMYOURFATHER: IDONOTWANT", ": ")</code> would return:<br/>
    * <code>["ID",190129","NAME","JOHNY","IAMYOURFATHER","IDONOTWANT"]</code>
    * @param base
    *               the string to be split
    * @param delim
    *               the deliminator that is used to split the string.  If the
    *               deliminator is <code>", "</code>, then the string will be
    *               split on any combination of commas and spaces, along with
    *               individual commas and spaces.
    * @return an array of strings split from the base string by the deliminator
    public static String[] splitTokens(String base, String delim) {
         StringTokenizer toker = new StringTokenizer(base, delim);
         String pieces[] = new String[toker.countTokens()];
         int index = 0;
         while (toker.hasMoreTokens()) {
              pieces[index++] = toker.nextToken();
         return pieces;
    }{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Using multiple img src / with htmlText --display problem

    I need help.
    I am using multiple <img src /> tag with htmlText and
    pictures displays in layers(overlay)?
    html_txt.html = true;
    html_txt.htmlText = "text<br><img src = '
    http://picture1.jpg 'width='500'
    height='491' hspace='0' /><br>more text<br><img
    src = '
    http://picture2.jpg' width='299'
    height='612' hspace='101' ><br>end with text";
    Is there any way to refresh text field when pictures are
    fully loaded so it will display like regular html page?
    this is flash version, evrything is shown but it is not
    right.
    http://www.sosui.jp/flash/test/v001/pages/home/homeBlogV002.swf
    I want to show them like this page.
    http://sosui.jp/flash/test/v001/pages/home/blog.html
    I tried onEnterFrame but pictures will not show. I think it
    is because it is trying to load pictures everytime. So I cannot use
    onEnterFrame, i need other way to refresh text field.
    Please help me. you might of guessed I am not an English
    speaker, so my English might be little off.
    Thank you.

    does anybody know anything? how long do i need to wait to see
    if someone replies? I just need to know if it is possible or not.

  • Flash CS5, image from library in TLFTextField?

    I cannot seem to embed an inline image in a TLFTextField from the library.  Using the following snippet (with both a TLFTextField and a standard Dynamic TextField on the stage), the image appears ok in the Dynamic TextField, but no image in the TLFTextField.
    var source:String ="image <img src='linkageId' width='100' height='100'/> footer";
    TLFText.htmlText = source;
    DynamicText.htmlText = source;
    Changing the image source to a file path, and the image appears correctly in both.  However, I would really like to keep using the in-library symbols if possible, and the TLFTextField documentation suggests this is still possible.
    This is using Flash Professional CS5 11.0.0.485 on Windows 7.  Any suggestions would be appreciated.

    I'm not sure where you've misunderstood, so, I'll try to explain the entire process.
    Steps to reproduce:
    1. Draw or select a shape on the stage.
    2. With the shape selected, do Convert to Symbol... under the Modify menu.
    3. Give the symbol a good name, say "MySymbol".
    4. Make sure to select the "Export for ActionScript" checkbox in the Advanced section & check "Export in frame 1".
    5. In the frame script code (Window->Actions), I wrote the following function:
    function inlineResolver(incomingILG:Object):DisplayObject
    var ilg:InlineGraphicElement =  InlineGraphicElement(incomingILG);
    if (ilg == null)
    return null;
    return new InlineText;
    This is a function that TLF calls when it's sees an inline graphic in the markup, and it wants a DisplayObject for it. To create the DisplayObject, I simply create an instance of the symbol (new MySymbol(), or in my case, new InlineText()) and return that to the caller.
    6. Also note this line of code in the frame script:
    config.inlineGraphicResolverFunction = inlineResolver;
    That's what tells TLF which function to call when it finds an inline graphic in the markup.
    OK, I bet you knew all that stuff. What I think you're asking is how the original code shows the inline graphic on the stage. The only way to do that is to export it from InDesign. InDesign can export FLA files and the inline graphic objects get exported correctly in the markup. However, you can also hand write your markup which contains inline graphic objects. Here's the markup for the "tlf" object in my example FLA:
    <TextFlow blockProgression="tb" direction="ltr" lineBreak="toFit" whiteSpaceCollapse="preserve" version="2.0.0" xmlns="http://ns.adobe.com/textLayout/2008"><p breakOpportunity="auto" direction="ltr" dominantBaseline="roman" leadingModel="romanUp" paragraphEndIndent="0" paragraphSpaceAfter="0" paragraphSpaceBefore="0" paragraphStartIndent="0" tabStops="s36 s72 s108 s144 s180 s216 s252 s288 s324 s360 s396 s432" textAlign="left" textIndent="0" textRotation="auto"><span baselineShift="0" cffHinting="horizontalStem" color="#1a1718" digitCase="default" digitWidth="default" dominantBaseline="roman" fontFamily="Minion Pro" fontSize="12" fontStyle="normal" fontWeight="normal" kerning="on" ligatureLevel="common" lineHeight="120%" lineThrough="false" locale="en" renderingMode="cff" textDecoration="none" trackingLeft="0%" trackingRight="0%">Red Circle Inline graphic </span><img baselineShift="0" customSource="225" locale="en" source="225"/><span baselineShift="0" cffHinting="horizontalStem" color="#1a1718" digitCase="default" digitWidth="default" dominantBaseline="roman" fontFamily="Minion Pro" fontSize="12" fontStyle="normal" fontWeight="normal" kerning="on" ligatureLevel="common" lineHeight="120%" lineThrough="false" locale="en" renderingMode="cff" textDecoration="none" trackingLeft="0%" trackingRight="0%"> Text following the red circle inline graphic</span></p></TextFlow>
    Notice the <img> tag and that there is a "customSource" attribute. For the purposes of writing custom markup, all instances of the same symbol should use the same customSource numeric identifier. Other than that, they should all be unique numeric values. You can use the customSource identifier in the inlineResolver() function to know which graphic TLF is asking you for. For example, you could have code that looks like this:
    function inlineResolver(incomingILG:Object):DisplayObject
    var ilg:InlineGraphicElement =  InlineGraphicElement(incomingILG);
    if (ilg == null)
    return null;
    if (incomingILG.userStyles.customSource == 225)
         return new MySymbol();
    return null;
    I hope that answers your question.
    Rusty

  • I want to display BLOB image in JSP Using  html tags IMG src=

    GoodAfternoon Sir/Madom
    I Have got the image from oracle database but want to display BLOB image using <IMG src="" > Html tags in JSP page . If it is possible than please give some ideas or
    Send me sample codes for display image.
    This code is ok and working no problem here Please send me code How to display using html tag from oracle in JSP page.
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="javax.swing.ImageIcon;" %>
          <%
            out.print("hiiiiiii") ;
                // declare a connection by using Connection interface
                Connection connection = null;
                /* Create string of connection url within specified format with machine
                   name, port number and database name. Here machine name id localhost
                   and database name is student. */
                String connectionURL = "jdbc:oracle:thin:@localhost:1521:orcl";
                /*declare a resultSet that works as a table resulted by execute a specified
                   sql query. */
                ResultSet rs = null;
                // Declare statement.
                PreparedStatement psmnt = null;
                  // declare InputStream object to store binary stream of given image.
                   InputStream sImage;
                try {
                    // Load JDBC driver "com.mysql.jdbc.Driver"
                    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
                        /* Create a connection by using getConnection() method that takes
                        parameters of string type connection url, user name and password to
                        connect to database. */
                    connection = DriverManager.getConnection(connectionURL, "scott", "root");
                        /* prepareStatement() is used for create statement object that is
                    used for sending sql statements to the specified database. */
                    psmnt = connection.prepareStatement("SELECT image FROM img WHERE id = ?");
                    psmnt.setString(1, "10");
                    rs = psmnt.executeQuery();
                    if(rs.next()) {
                          byte[] bytearray = new byte[1048576];
                          int size=0;
                          sImage = rs.getBinaryStream(1);
                        //response.reset();
                          response.setContentType("image/jpeg");
                          while((size=sImage.read(bytearray))!= -1 ){
                response.getOutputStream().write(bytearray,0,size);
                catch(Exception ex){
                        out.println("error :"+ex);
               finally {
                    // close all the connections.
                    rs.close();
                    psmnt.close();
                    connection.close();
         %>
         Thanks

    I have done exactly that in one of my applications.
    I have extracted the image from the database as a byte array, and displayed it using a servlet.
    Here is the method in the servlet which does the displaying:
    (since I'm writing one byte at a time, it's probably not terribly efficient but it works)
         private void sendImage(byte[] bytes, HttpServletRequest request, HttpServletResponse response) throws IOException {
              ServletOutputStream sout = response.getOutputStream();
              for(int n = 0; n < bytes.length; n++) {
                   sout.write(bytes[n]);
              sout.flush();
              sout.close();
         }Then in my JSP, I use this:
    <img src="/path-to-servlet/image.jpg"/>
    The name of the image to display is in the URL as well as the path to the servlet. The servlet will therefore need to extract the image name from the url and call the database.

  • HTML tags img src="Pic.gif" alt="blah..." a href="file" title="blah..."

    Has anyone managed to have the "alt" tag on an image <img src="abc.gif" alt="my image descriptor"> or the title tag (such as in ) work in the JavaHelp. If so, how did you accomplish the task. I have exhausted every avenue and have not been able to get those tags to work. They display fine in all browsers (IE, Moz, Firefox and Netscape), I am baffled.
    Furthermore, I have still to be able to get any of the org.netbeans.modules.javahelp.* to work of the JavaHelp. Checked all params and values, they are correct, but all i get in the JavaHelp are the cursed ??. Is their a file or library that needs to be included at the top of the HTML file?
    This question is also posted in JavaHelp Blogs
    Thanks
    Pablo

    I have posted similar items in every blog i could think of in order to fetch an answer. Unfortunatelly, my belief is that JavaHelp is unable to support the alt and title tags within html code.
    TY Balus
    ps I wish I could award more stars for an answer to this dilema...
    Edited by: pablodiaz on Dec 4, 2008 9:21 PM

  • What syntax should be used in jspx for img src= c:out value="${}" /

    Dear Friend If I query in a database and the database return a url and with this url  I like to generate an image in jspx.
    *The syntax work ok with the jsp <img src=<c:out value="${abc.xyz}" />*
    *But with jspx it shows syntax error of < What you people recommend for it.*

    I stored all pix in my Tomcat web server where the url of them is as
    http://localhost:8080/pix/anna.jpg etc.
    and I stored the same url in the database table.
    <?xml version="1.0"?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:c="http://java.sun.com/jstl/core"
    xmlns:sql="http://java.sun.com/jstl/sql"
    version="1.2">
    <jsp:directive.page contentType="text/html"/>
    <jsp:directive.page import="java.util."/>
    <jsp:directive.page import="java.text."/>
    <html>
    <head>
    <title>Snap Diary</title>
    </head>
    <body bgcolor="white">
    <sql:query var="img">
    SELECT snap FROM snap_pix
    WHERE name =?
    <sql:param value="${param.name}" />
    </sql:query>
    <img src="${img.snap}" />
    <p>
    <form action="recentsnap.jsp" method="post" >
    <input type="submit" value=" Recent Snap " />
    </form>
    <form action="oldsnap.jsp" method="post" >
    <input type="submit" value="Old Snap" />
    </form>
    </p>
    </body>
    </html>
    </jsp:root>
    the right click on image show this url http://localhost:8080/Snap_Diary/${img.snap}
    where the actual folder in which I stored snap is http://localhost:8080/pix/ and the url which I stored in the database
    is also as http://localhost:8080/pix/anna.jpg etc...
    Query should return the value as http://localhost:8080/pix/anna.jpg not as http://localhost:8080/Snap_Diary/${img.snap}.

  • Dreamweaver CSS Mac writes image links wrong... img src="/www/images/asian_sales_office.jpg"

    Dreamweaver CSS Mac writes image links wrong... <img src="/www/images/asian_sales_office.jpg" width="x" height="x" alt="x"> Took me a bit to find this, now back to hand coding all image links and also checking other code. Any fixes?

    That looks to me like you may have your site definition set up incorrectly and you appear to be using "Site Root Relative" vs "Document Relative"
    Go to Site > Manage Sites > click the  site you are working on > Click the Edit icon > Advanced Settings > Links relative to: should be set as Document, unless you have a very specific reason for choosing Site Root there
    If your server root folder is called www, you'll need to remove that folder from your site root. You are only transferring files from root to root, so the name of your local root folder is not important (the files inside it go to the server root). It is important not to accidentally have a duplicate of the server root folder inside your local root though which would accidentally nest your files within another folder when transferring to the server.

  • IMG SRC="???" I've read old threads...

    Hello,
    I've spent 2 days pulling my hair out trying to get a servlet to present an image in html the same old boring easy way you would do it in a web page. I have searched this forum and read many threads, trying what each of them suggested, and uniformly failing to get anything going. In a last ditch effort, I am going to bug you folks with what is obviously an old problem. I certainly appreciate any help. By the way, I am a complete newbie to web programming, just in case that wasn't obvious ;)
    Directory Structure
    _________ROOT___________
    | | |
    WEB-INF PotteryPics index.html
    | |
    | _________
    | | |
    | Pottery Utility
    |
    | | |
    classes lib web.xml
    | |
    | catalina-root.jar
    |
    org
    |
    apache
    |
    jsp
    In total desperation I tried the following code just to see if it would work on the server machine. It did indeed produce a perfect looking page, but, of course, it failed when accessed from the web:
    "<IMG SRC=\"C:/jakarta-tomcat-5.0.24/webapps/ROOT/PotteryPics/Pottery/Picture.jpg\">"
    This also worked:
    "<IMG SRC=\"C:\\jakarta-tomcat-5.0.24\\webapps\\ROOT\\PotteryPics\\Pottery\\ Picture.jpg\">"
    This, however, and MANY other attempts similar to it uniformly fail:
    "<IMG SRC=\"../PotteryPics/Pottery/Picture.jpg\">"
    I'll refrain from saying anything more for now...no sense in repeating everything I tried with moving directories etc.
    Thanks for you time,
    Keith Myers

    Non-mangled version ( I hope )
                                                 _________ROOT___________
                                                |          |             |
                                            WEB-INF    PotteryPics    index.html
                                                |          |
                                                |       _________
                                                |      |         |
                                                |   Pottery    Utility
                                                |
                                       |        |          |
                                   classes     lib      web.xml
                                       |        |
                                       |    catalina-root.jar
                                       |
                                      org
                                       |
                                    apache
                                       |
                                      jsp

  • I downloaded a WMA audiobook from library using Overdrive. It shows up on my Itunes listing of Audiobooks on my Ipod, but on the actual Ipod it only shows up on Playlists. How do I get it to show up under Audiobooks?

    I downloaded a WMA audiobook from library using Overdrive. It shows up on my Itunes listing of Audiobooks on my Ipod, but on the actual Ipod it only shows up on Playlists.  It is marked as an audiobook in Options | Media Kind.  It is also marked to Remeber Position, but it does not do that. How do I get it to show up under Audiobooks and remember the position?  I have a 4th Gen Ipod running Ios5

    Check out the instructions for a work around on this post: https://discussions.apple.com/message/18702732#18702732
    This worked for me.  I would like to see Apple fix this issue, as it isn't very fun to have to do this for every downloaded book.

  • Is it safe to delete the cache file folder from library

    is it safe to delete the cache file folder from library ?

    As I understand it Robo doesn't really 'do' third-party
    source control. We use SourceGear Vault, but really only as a
    repository for the files. We can't really work concurrently because
    Robo needs exclusive access to the top level project files. But it
    kind of works for us, because we're on opposite sides of the globe.
    I see what you're saying on the 'local' versions of (say) the
    cpd files conflicting. If anyone else has an informed view, I'm all
    ears. We've set it up this way ourselves - I don't know of anyone
    doing the same. If someone tells me this is a bad idea, I'm happy
    to think again.
    Cheers!

  • Nikon D800 raw files taken with Sandisk extreme plus 32GB SDHC card got corrupted. Able to preview them in Lightroom4.4 Library, but not able to import or transfer the files from card to computer. Any ideas on how to save images from Library Window in Lig

    Hi, I have shot few pictures on 31st December night in RAW mode using Nikon D800 and Sandisk extreme plus 32GB SDHC card. It looks like card got some memory errors so not able to transfer the files from Card to computer. However I am able to view the pics thru Lightroom ver 4.4 Library, but when I tried to import them, it gives me an error stating that file can't be read.
    Is there a way to save the pics from Library window in lightroom overcoming the card read errors ?
    Thanks in advance

    Hi SSPRENGEL,
    Thank you for your response. Here is the error message I am receiving, I tried with various destination folders in the computer but it still gives the same error:. Just to let you know, I am able to import pictures into these folders from other memory cards.
    I am able to finally at least extract the jpgs using the option suggested by elie-d

  • Itunes on Windows plays one song from library and stops

    I am a new ipod owner and new to itunes. Loaded many CD's, videos and audiobooks without difficulty into itunes 6.0.4.2. Library of songs is extensive but trying to play songs from library results in itunes playing ONLY one selected song. I must re-select another song in order to play another. It will not continue to play the songs in the library. I have re-installed itunes and that did not correct the problem. Also tried selecting multiple songs and still itunes only plays the 1st song of the list. Obviously I've done something wrong or have not done something that is required. I've check all I know and have also not found this problem in the discussion groups. What am I doing wrong? Any help would be appreciated. Thanks

    This'll happen when all of the checkboxes are unchecked. iTunes will only play unchecked songs if they are directly clicked.
    To check all songs, ctrl+check one.

  • I am running a MAC Yosimite 10.10.1 (latest) and have just updated Lightroom to 5.7 to allow me to manipulate files from my Canon 7D mark 2. When I go from Library to Develop there is no basic adjustments available? Help Please?Ray Wood

    I am running a MAC Yosimite 10.10.1 (latest) and have just updated Lightroom to 5.7 to allow me to manipulate files from my Canon 7D mark 2. When I go from Library to Develop there is no basic adjustments available? I have a histogram but no access to the basic controls as per normal.
    How can I get to these?
    Help Please?
    Ray Wood

    See this:
    Missing Panels/Modules - Lightroom Forums

  • After updating to new 2014 updates Lightroom would not go from 'library' to Develop - screen was greyed out with the message saying:- Please renew your membership to reinstate the develop module. My membership is up to date. I then uninstalls Lightroom an

    After updating from CC to new 2014 updates Lightroom would not go from 'Library' to 'Develop' - develop screen was greyed out showing the message 'Develop module is disabled. Please renew your membership to reactivate the Develop module.' Since my membership is fully up to date. I then uninstalled Lightroom 5 and then installed it again. Now when I try to open Lightroom 5 its LOGO flashes onto the screen and then 'crashes' in an instant. Please fix.

    Hi brooks45,
    Please try the steps mentioned in the KB Doc : http://helpx.adobe.com/lightroom/kb/unable-launch-lightroom-55.html
    Regards,
    Rave

Maybe you are looking for

  • Error in setting Pricelist/Currency code

    I'm using Siebel Self-Services 8.1.1 and I always get the following error every for new session of the application: "Error in setting Pricelist/Currency code. Please contact System Administator". Anyone having an idea how to solve it? Thanks! /Jon-Er

  • Usb 2 connection to laserjet 1100 possible?

    want to use hp laserjet 1100 with laptop but can't find usb cable with connector that will fit laserjet's line in connector.

  • Can no longer set firefox to always open links in a new tab

    In the previous version I was able to set a preference that had firefox always open a clicked link in a new tab. Now I have to right click and select the option. I'm disappointed, I want that feature again. Is it hidden somewhere?

  • EPM add-in installation log

    Dear experts,      I am being tasked to convert the EPM add-in installer which is in .exe format to .msi, which is claimed as MS SCCM requirement. I am also required to make it as single-file, offline & silent installer. For that reason, I wrote simp

  • What are the similarities between BSA/BA and a BPX

    i have been working as an abap developer for past five years and wish to gather some information on business system analyst...i wish to know if the same rules apply for sap (<i>implementation through ASAP or the different phases of a business process