Displaying text from XML.

Hello,
I hoping that somone can steer me in the right direction
here.
Right now I have an application that reads an XML and
displays thumbnails of images.
A user clicks on the thumbnail and a larger image appears.
What I would like to do is, instead of loading "images" into
the thumbnails from the XML,
I would like to load "text" into the thumbnails from the XML.
So now the user can click on the text and an image would
appear.
I just can't seem to get my head around it.
Attached below is the code I am currently using.
Thank you for any help you can provide

Yes Andrei1,
You mean try something like,
var holderArray:TextField = new TextField();
Instead of,
var holderArray:Array = new Array();
But,
this must not be correct because when I create a TextField
like this.
I get this error,
Error #1056: Cannot create property 0 on
flash.text.TextField.
What would be the best way to create a TextField inside the
Thumbnail?
Thanks for your help.

Similar Messages

  • Need help in automating text from xml into illustrator

    I have seen some examples of automation script for filling text from xml into illustrator, need some help in this matter.
    Need script (currently working in mac OS)

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • Importing text from XML file, "\n" not working

    Hi I'm currently trying to set up my game so it pulls in all text from an external XML file (to make switching between different languages easier). The problem is that on several occasions I need to use the special code "\n" to start a new line (for formatting purposes) but when I'm pulling the text in from the XML file this is not starting a new line any more - it is just appearing as normal in the text. (e.g "Here is some \n example game text") How do I get around this?
    Any help here appreciated, I'm supposed to be finished everything by tomorrow so I need suggestions asap haha Thanks.

    I don't see how I can be setting it wrongly, I have the exact line:
    XML.ignoreWhitespace = false;
    Before this I tried myXMLDocName.ignoreWhitespace = false; (before I realised it was a static function)
    This line is placed immediately after I have loaded my XML document and assigned it to a variable. e.g.
    private function XMLLoaded(e:Event):void
                trace("XML Loaded");
                MyGameGlobalVars.xmlDoc = new XML(e.target.data);
                XML.ignoreWhitespace = false;       //previously: MyGameGlobalVars.xmlDoc.ignoreWhitespace = false;
                xmlLoaded = true;

  • Passing parameter to the i18n text from xml view in fiori app

    Hi,
    Could somebody let me know how to pass parameter to get the i18n text inside xml view of a Fiori app.
    For e.g. inside my i18n properties file i have a entry like:
    PEC_ISSUE={0}issues of total{1}
    inside xml i use it like {i18n>PEC_ISSUE}
    but now how do i pass those 2 parameters to this ??
    i know in javascript it works with , (comma) but does not work in xml. Any help...
    Thanks,
    Ashish

    Hi Michele,
    I found it. Below is the example from my coding.
    <Text      text="{parts: [{path: 'i18n>PEC_to'}, {path: 'promoprocsteps>RetailPromotionSalesFromDate_E'},
                                                           {path:'promoprocsteps>RetailPromotionSalesToDate_E'}],
                                                           formatter: 'retail.promn.promotioncockpit.utils.Formatter.formatDatesString'}"  />
    So you have to create a formatter and pass all the strings to the formatter and then do it inside JS.
    In JS you do it in this way:
    i18n.getText(i18String, [newString, string2]);
    i hope this helps.
    Regards,
    Ashish

  • If Number = than then display text from another cell

    Hi
    I'd appreciate it if anyone can help me with this please.
    I am putting together a gradebook type spreadsheet. I would like to display the text from another cell if the number entered in another cell is greater than or less than a certain number.
    So - if the number in cell A is equal to or greater than 70 then the text displayed in cell B equals the text contained in cell C
    Hope this makes sense.
    Many thanks in advance.
    regards,

    Hello Lee,
    The Numbers User Guide PDF available from the Numbers Help menu as a download is good reading for beginners. As a reference document, the iWork Formulas and Functions User Guide is also valuable.
    The function you need is called "IF", and the syntax is: IF "logic-expression" is true, then do this, else do this. As a calculation in a cell, that would have the form: =IF("Cell A" is equal to or greater than 70, then display the content of cell C, else display "something else") You need to provide the "something else", which can be a null string, "", if you wish.
    As you will find when you read the guide, the cells all have row and column address components where the column is identified by a letter of the alphabet and the row by a number. So If your data is in A1, your text string in B1 and your expression is in C1, you would write in C1:
    =IF(A1>=70, B1, "")
    Does this help?
    Jerry

  • Problems with displaying text from gtk+-2.0 with Cairo

    I've got a 64-bit app that uses gtk+-2.0 (2.8.17 with Cairo). I had to build my own libraries since the gtk+-2.0 libraries Solaris 10 ships with is 32-bit only (and does not contain Cairo support). The app is statically linked so that our customers don't have to do any more than just install the app.
    I've got a customer who's using a Sun Ray 2fs to run our app from a Sun Ray server. The problem is that none of the text in the UI is readable (including the menubar). He sent a screenshot and I can tell it's rendering the glyphs, just not correctly. The best way of describing the text rendering problem is to take a bitmap of antialised text drawn with a black pen color. Now remove all non solid black pixels. You only see pieces of the glyphs (typically, just the vertical and horizontal parts).
    We don't have a Sun Ray client to test with but for testing purposes, I installed our app on freshly built Solaris 10 (5/09) and Open Solaris systems with no modifications to the virgin systems. I could run our app on both Solaris systems and display the app on a remote X display just fine. I asked the customer to try a real X display and he ran X-Win32 on a Windows XP guest using VirtualBox on the Sun Ray server and our app appeared just fine on his Sun Ray client. I told him if our app displays just fine on a real X display, then the problem must be with the Sun Ray server.
    Has anyone encountered this problem? I'm going to try building the latest gtk+-2.0 libraries but I'm not convinced it's going to do any good. I don't think it's a Fontconfig configuration problem because our app worked out of the box on freshly installed systems (unless perhaps Sun has made changes to /etc/fonts/fonts.conf since the version on his system versus ours).
    PS. We actually need the Cairo graphics support. It just happens that the version of Pango that's in 2.8 (and all versions of gtk+-2.0 since) also uses it for text rendering in the widgets.

    Garrett Cobarr wrote:
    > I have been attempting to import text from Illustrator
    CS2 into Flash 8. I
    > would like to retain the layers if possible.
    >
    > I am having many different problems as I have
    experiemented at the AI side.
    > One is having the text come in with the outline offset
    and no longer alligned.
    > When I drag and drop, the outline completly dissappers.
    The text when it does
    > come in is converted to a png and longer has the layers
    seperated.
    >
    > I am also getting a message in the report window, on
    some of my tries, that it
    > is an improper PDF.
    >
    > The bottom line question is: What is the recommended
    method of importing text
    > from AI CS 2?
    You have to remember that both programs are totally different
    animals and simply
    some of the option used by you in AI won't be working or
    can't be translated into
    flash's environment. You will never get editable content,
    just an image.
    Export to SWF from AI and import that SWF to flash. Should be
    as close as possible
    to original file tho I can't assure your layers will
    maintain.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • On Button click change the button display text from LOCK to UNLOCK

    Hi Freinds,
    I am rendering a TreeByNestingTableColumn with two columns  like:  Name , Status as below shown. In The status column I inserted a Table Cell editor Button type and  the button element property text mapped to the context attribute called statusButton and set the button name in the code to display as LOCK. When the tree renders all the vales are displaying in status column as LOCK. Now whrn the user click on LOCK i should fire the event and change the button text from LOCK to UNLOCK. The same way when they click on UNLOCK and i have change to LOCK. please help how to do this.
       Name                          Status
    |> Employee1------------------LOCK (when i click on lock  button here, his and under neath of him button status should                 
            |>Employee2-----------LOCK    change from LOCK status to UNLOCK)                                                     
                   |>Employee3----LOCK
    Thanks in advance.
    Thanks
    Srini

    Armin,
    Yes I removed the method and created the calicualted value as you suggested and I able to get the out put what i have asked.
    My complete scenario is some thing like this, i able to complete upto certain level but not able to make it work for complete scenario, I appreicate your comments or advice for getting me the below output
    I have a TreeByNestingTableColum UI rendering with three columns as NAME(node |>), STATUS(Toggle Button) and PLANNING (Text view)  (developed based on sample tutorial Integration of a Tree Structure in a Web Dynpro Table.pdf)
    I am trying to get this output:
    From the sap backed i am getting flag value, based on that i have to render Tree UI columns NAME,  STATUS(Toggle Button) and PLANNING (Text view). if the flag is null i have to show as LOCK and In Planning else Unlock and Submitted  (please see the below picture for clear idea)*
    if (statusflag = ""){
    i have to show values in two columns like Lock ...Planning
    } else
    show values in two columns like Un Un Lock ...Submitted
    One more thing is , If i lock a record at secound node level , then all the records should locked underneath of that node (it could be 2 nodes or 10 nodes) and then the status column values should change from lock to Unlock and Planning column values should change from In Planning to Submitted. where as when i Click on Unlock , only that perticular record (not node level) should changed from unlocked to Lock and planning is  from Submitted to In Planning.
    This is the functionality actually I am looking for.
    Here the tree sample:
    Name                        Status              Planning
    |>M1                         Lock                 In Planning
       |>M2                      Lock                 In Planning
         *M2a                    Lock                 In Planning
       |>M3                    Un Lock                Submittd
    Thank you.
    Srini

  • Partial correct caption displaying text from Success caption

    Hi, as the title of my post suggests the Partial correct caption is displaying the text from my Success caption. To my knowledge I have correctly configured these in Quiz > Quiz Preferences > Default Labels with all fields having unique text entered in to them.
    I'm using Captivate 7 and am working on a master slide for my MCQs within a project template file. I intend to allow multiple options to be selected in the MCQ, hence the need for a partially correct answer.
    Has anyone else had this issue, if so did you manage to get around it and how?
    Thanks.

    Hi Lilybiri, thanks for replying.
    I'm setting up my MCQ master slide and have edited the labels in Quiz > Quiz Preferences > Default Labels, then I've added the captions to the page via Quiz > Question Placeholder Objects.

  • Display text from MySQL Text Field

    Hi,
    I am trying to display text which is stored in mysql text field. But it displays nothing. and when i try this code:
    <c:out value="${rowSrearch.pDetails}" />
    <c:set var="text" value="${rowSrearch.pDetails}"/>
    <%
    String text = (String)pageContext.getAttribute("text");
    out.print(text);
    %>
    it gives me null.
    I am just opening a resultset using <sql:query and trying to retrieve data using <c:forEach loop.
    What is the best way to retrieve data from MySQL text field.
    I am using:
    Apache2
    Tomcat 5.5.17
    MySQL 5.0.22
    mysql-connector-java-5.0.3
    Thanks

    One way is to enter them into the database with the desired formatting.

  • Chinese display issues from xml

    Hello all,
    I'm currently developing a standalone application that can be launched as an applet that needs internationalization support. The app reads in text and information for buttons and menus from an XML file with a custom parser (which I did not write). The app or applet will not display any chinese or non-US standard characters, it displays odd symbols. My XML is in UTF-8 and I know that java supossedly displays this correctly... I can't seem to figure out where the issue is.
    Any ideas?
    Thanks a lot!
    Jake

    The file is definitely in UTF-8, and it converts the XML directly to strings for the application to use. I'm pretty sure the parser itself can't read UTF-8 correctly, but I am unsure how to correct this. I tried to encode my file in ISO-8859-1, but clearly chinese fonts will not work in this encoding.
    What is the best known method for reading in a UTF-8 XML encoded file in java?

  • Master page fields not displaying data from XML file

    Hi,
    For some reason if I a add a field on the master page, when previewed it does not display the xml data assigned to the field.
    I have a work around, but it looks messy and would prefer to resolve the problem correctly.
    My work around is to create another field with the same name in the "Design view" layout, and change the presence to invisible. I don't even have to link it to the xml data, simply select Global as the default binding.
    Any ideas what I have done wrong, I assume it's a simple setting somewhere but I have no idea what it is.
    Thanks
    Russell

    If there, try removing the $. at the beginning of the binding that gets puts there if you select the item from the pop up list.
    I have a text field that is read only and bound without the $. that was working fine for displaying data. I have a drop down that had the $. and was not saving. I removed the $. and now it is getting saved to the XML. However, it does not display on the next render of the form.

  • Displaying text from domain in ALV Grid OO

    Hi all,
    i have a problem regarding ALV grid OO.
    I try to displaying domain text instead of domain value in the grid.
    The domain value range are:
    1     text 1
    5     text 5
    6     text 6
    I created a drop down list and it works fine, but the eintries in the grid displaying only the value instead of text.
    General I like to work the value's but in the grid schoul be only the texts.
    Have anybody any idea?
    Thanks,
    a
    If it is not enogh clear , please ask me.

    hi,
    look this.
    U should be able to get text of domain  from table DD07V.
    SELECT DOMNAME VALPOS DOMVALUE_L DOMVALUE_H
    into idomval
    from dd07v
    where domname = Domain Name
    and ddlanguage = sy-langu.
    <i><b>opr u can use the below FM</b></i>
    DATA : BEGIN OF int_orient OCCURS 10,
               domvalue_l LIKE dd07v-domvalue_l,
               ddtext LIKE dd07v-ddtext,
               END OF int_orient.
    DATA: ZPETS_PORTORIEN type dd07l-domname,
            int_values_table  TYPE dd07v OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'GET_DOMAIN_VALUES'
        EXPORTING
          domname         = 'ZPETS_PORTORIEN'
          text            = 'X'
        TABLES
          values_tab      = int_values_table
        EXCEPTIONS
          no_values_found = 1
          OTHERS          = 2.
      LOOP AT int_values_table.
         int_orient-domvalue_l = int_values_table-domvalue_l.
        int_orient-ddtext = int_values_table-ddtext .
        append int_orient.
      ENDLOOP.
    read table int_orient. with key domvalue_l transporting  ddtext .
    rgds
    Anver
    <b>if hlped pls mark points</b>

  • Is it possible to display text from one area of my website onto another?

    I'm busy building a site, and on my site I have a news section on my landing page with latest news. This news section is just the headline, and when you click on the link it takes you to the article. Is there any way to link the two together? I want the news section headline to be drawn from the article, so that when I update the article the news headline will be automatically updated. I want this done because the news headline section goes across all my pages, but I'm using 6 templates to achieve my design. So instead of updating my article section and each template, I want to know if I can do it in one process?
    Is there a pure html/css way of achieving this, or would I need to use a JS plugin? If I need a plugin could anyone suggest one?

    BeaverKing wrote:
    learning to build a DB then. ^_^ It could be a valuable skill.
    I admire your attitude; I often regret not learning about databases.
    A couple alternatives for you.if time is an issue:
    1. Put your news code in its own page, and have multiple pages display it in an iframe.
    2.  Invest a lot less time learning to use Server Side Includes (SSI).
    You place your news code in a separate text file and "call" it into any pages you wish with a tiny snippet of PHP code. This skill will  be used far more often than a database. You will use it for all sorts of repetitive information like headers, menus and footers etc.
    Both methods allow you to update a single file, and have it be updated automatically  all the pages it appears.

  • Flash Builder 4.5 SDK Problem while reading/saving Data/Text from XML

    Hi,
    I'm working on a FLASH BUILDER 4.5 Project. Previously I was working on FLEX 3 with SDK 3. Now I have shifted my Project to FLASH BUILDER 4.5 with SDK (Apache Flex 4.11).
    In this project, I have few links with me, clicking on which opens a TAB, and the respective Link data (XML DATA) loads into the Respective TAB. I'm using Flash Builder 4.5 currently and Apache Flex 4.11 SDK. When I use Previous Version of SDK (SDK 3), then the Data loads fine... but when I use higher version SDK (4.6 or 4.11), then the data starts to break, for instance:
    When I click on link, i.e. CLICK FOR THE VERY FIRST TIME, the Data Shows like:
    <P ALIGN="LEFT">Link 1 body text comes here</P>
    Again, when I click on the same link for SECOND time, the Data Shows like:
    <P ALIGN="LEFT">&lt;P ALIGN=&quot;LEFT&quot;&gt;Link 1 body text comes here&lt;/P&gt;</P>
    Again, when I click on the same link for THIRD time, the Data Shows like:
    <P ALIGN="LEFT">&lt;P ALIGN=&quot;LEFT&quot;&gt;&amp;lt;P ALIGN=&amp;quot;LEFT&amp;quot;&amp;gt;Link 1 body text comes here&amp;lt;/P&amp;gt;&lt;/P&gt;</P>
    I got stuck inot this issue very badly. Any help would be apreciated.
    Thanks in advance.
    IMAGE 1 (FIRST CLICK)                                                                                      
    IMAGE 2 (SECOND CLICK)
    IMAGE 3 (THIRD CLICK)                                                                                     
    IMAGE 4 (FOURTH CLICK)
    THANKS

    Hello everyone -
    Since I last posted an interesting update happened. I tested my  Flex application again, it is calling a Jetty Server that returns a JSON object, in different BROWSERS.  I disabled HTTPS for now, and the crossdomain.xml policy file is wide open for testing (ie. allowing every request to return data). So the app accessing the data using HTTP only. Browsers  -  IE, Opera, Firefox and Chrome. Each browser contained the SAME application, revision of the Flash Player (10.3.183.10 debugger for firefox, chrome, opera, safari PC; 11.0.1.129 consumer version in IE9,) take a look at the screen shot (safari not shown although the result was the same as IE and chrome)
    Note that Opera and Firefox returned successful values (i.e. successful JSON objects) using the same code generated from the Data Services Wizard. Chrome, IE and, Safari failed with an Internal error. So I am left wondering - WHY? Is it something with the Flash Player? the Browsers?  the Flex SDK? Any thoughts are appreciated. Again, the code is found in the original thread above.

  • How do I use IB(Mac) to display text from opened tty port?

    I'm using OSX10.9.4, XCode 5.1.1 etc, Mac Mini. 2012. 16GB. Fast processor.
    I can open the serial/usb port and read the data from it with a [command line] tool...
    sample code here.
    What I'd like to be able to do is display the data that comes in live in a Graphical Interface, not as a command line tool. It also saves it to a file, and perhaps it's easier to read the continuously built file? Certainly for building historical data.
    [code]
    #ifdef DEBUG
        printf("Debug Mode on\n");
    #endif
      fd = open(PORT, O_RDWR );
    #ifdef DEBUG
      printf("...Serial port open - Return code : %d\n", fd);
    #endif
      if (-1 == fd)
            perror(PORT); perror(msg); exit(-1);
      struct termios theTermios;
      memset(&theTermios, 0, sizeof(struct termios));
      cfmakeraw(&theTermios);
      cfsetspeed(&theTermios, 38400);
      theTermios.c_cflag = CREAD | CLOCAL; // turn on READ and ignore modem control lines
      theTermios.c_cflag |= CS8;
      theTermios.c_cc[VMIN] = 1;
      theTermios.c_cc[VTIME] = 0; // set to 10 if 1 sec timeout
      ret = ioctl(fd, TIOCSETA, &theTermios);
    #ifdef DEBUG
      printf("opening /dev/cu.usbserial...\n");
    #endif
      fd = open("/dev/cu.usbmodem14311", O_RDONLY);
    #ifdef DEBUG
      printf("...Serial port open - Return code : %d\n", fd);
    #endif
      if (fd < 0)
      printf("Erreur a l'ouverture de /dev/cu.usbserial - Code=%d\n", fd);
      exit(1);
    #ifdef DEBUG
      printf("Serial port opened...\n");
    #endif
        /* while (1) is an endless loop, unless errors develop */
        pFile=fopen(DATASTORE,"wt");
      while (1)
      ret = read(fd, &c, 1);
      if (ret == 1) {
            /*  put the incoming data into an array/structure */
    [/code]
    Thanks
    Robert

    you can do this with the firewall (ipfw) or ssh. id suggest googling those and also posting this in the UNIX forum here. Ive never attempted to do it but i know it can be done with either. which you use will depend on what you need to accomplish.

Maybe you are looking for

  • How do I see the applications I installed from marketplace on dektop Aurora?

    I am using Aurora 22a2 on desktop I was trying some marketplace apps. Problem is that there is no UI to maanage/launch/uninstall these apps. To launch these apps I have to go to marketplace website, search the app and then launch it from its page.

  • How to download Adobe LiveCycle Designer new version.

    Hi, I'm new to this forum and new to Adobe interactive forms. I went through the SAP Service market by refering to the sapnote 962763 where they mention the path as shown below Installation Source You can download the Adobe LiveCycle Designer install

  • Megahertz values in ram

    I have seen a Kingston ram stick listed in advertisment with megahertz values. and that could be just the same as selling vacums based on watts. i did some research and found http://en.wikipedia.org/wiki/Megahertz_myth good read, but outside of a foc

  • Multiselect that only allows single selection

    Good afternoon, I have two multiselect lists on a page. I need to modify the second list so that <ctrl> and <shift> clicking is disabled, and only one item can be selected at a time. Can this be done? I understand it would function better as a select

  • Email conversion from Yahoo

    Since the email conversion on 15/09/2014 my son cannot access his emails in Czech Republic. He has a sub account on my BT Account. I can access his account in the UK. He has had numerous conversations with BT but they have not got an answer as yet. H