Help with delivering dynamic text through an external file, through XML?

I'm struggling to find the best way to deliver dynamic text
from an external file, through XML, to a Flash file.
I use small Flash pieces to deliver multiple sets of content
through a single .swf file. An example is here:
http://www.esi-intl.com/public/government/federal.asp
In the .swf file at the bottom, I'm using a three-scene .fla
file. I'm putting the actionScript in the Actions layer atop each
frame. Example:
stop ();
loadVarsText = new LoadVars();
loadVarsText.load("fedNews.txt");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "scroller" equal to the
//contents of the variable
scroller.html=true;
scroller.htmlText = this.var1;
} else {
trace("not loaded");
In that .txt file, I'm putting the information like this:
var1=<font face="tahoma,verdana,sans-serif" size="11px"
color="#000000"><b><a href='
http://www.esi-intl.com/public/classroomtraining/dau.asp'>DAU
Grants ESI Course CON353
Equivalency</a></b><br>Advanced Business Solution
in Contracting (CON 353) is an equivalency for DAU's CON 3535
course, Advanced Business Solutions for Mission Support. <a
href='
http://www.esi-intl.com/public/classroomtraining/dau.asp'><U><font
color="#996633">Continue</font></U></a></font>
So much of this is pick-ups from what I've researched in
Google. I'm looking for a way I can feel more confident in my code,
and also have that code follow CSS.
Lastly, I recognize the problems in XML with using single
quotes / double quotes, and the & symbol. This is one of my
largest time sucks, and I'd like to find a better way to do this.
Thank you

Hi,
Did you ever find a resolution to this? I'm having a similar
issue that I can't seem to get multiline dynamic text working in
CS3.
The font is embedded but it just displays the first line, and
then a blank. I'm sure this worked fine in Flash MX.
Cheers, Ant

Similar Messages

  • How load text into dynamic text boxes from external file?

    hi all,
    my animation is very simple - a background image and 2 text boxes.  one of the textboxes shows a large word, which crossfades to another word, with a total of about 12 words (showing one at a time in different text boxes fading in & out in the same spot).
    i need a way to have the text be imported dynamically via xml or json (xml preferred).  this article is a good start, but i noticed he's putting all of the text into one box - i need separate strings put into separate boxes from the xml.
    Chris Gannon - Loading XML via AJAX into Adobe Edge
    he uses
    var outputField = $(this.lookupSelector(“xmlOutput”));
    for his text box.  what would be the best way to revise this code to include all my individual strings to be loaded into my individual text boxes?  thinking an array might work, but my js skills are limited.
    any other suggestions or tutorials you could point me to would be appreciated.
    thanks!!

    thanks joel_pau !
    this is helpful in seeing how the array is created, but after giving it a go I became a little confused.
    i wound up trying it again based on the example i linked out to previously, but it's not adding the text from my xml file when previewing.
    here's the code i'm using in edge animate on my stage.  something must be wrong somewhere.  let me know if you have any suggestions on this.
    // insert code to be run when the composition is fully loaded here
    // here i'm assigning a variable to each one of my textboxes at they're named in my edge animate comp
    var outputField1 = $(this.lookupSelector("helps2"));
    var outputField2 = $(this.lookupSelector("communicate"));
    var outputField3 = $(this.lookupSelector("experience"));
    var outputField4 = $(this.lookupSelector("interact"));
    var outputField5 = $(this.lookupSelector("understand"));
    var outputField6 = $(this.lookupSelector("overcome"));
    var outputField7 = $(this.lookupSelector("flourish"));
    var outputField8 = $(this.lookupSelector("collab"));
    var outputField9 = $(this.lookupSelector("trust"));
    var outputField10 = $(this.lookupSelector("grow"));
    var outputField11 = $(this.lookupSelector("engage"));
    var outputField12 = $(this.lookupSelector("survive"));
    var outputField13 = $(this.lookupSelector("thrive"));
    var outputField14 = $(this.lookupSelector("evolve"));
    var outputField15 = $(this.lookupSelector("connect"));
    var outputField16 = $(this.lookupSelector("achieve"));
    $.ajax({   
        type: "GET",
        url: "myxmlfile.xml",
        dataType: "xml",
        success: function(xml) {
    //here i'm trying to load the the text in my xml file into my textboxes in edge animate.  'txt1, txt2, txt3' are the tags in my xml file
            outputField1 = $(xml).find('txt1').text();
            outputField2 = $(xml).find('txt2').text();
            outputField3 = $(xml).find('txt3').text();
            outputField4 = $(xml).find('txt4').text();
            outputField5 = $(xml).find('txt5').text();
            outputField6 = $(xml).find('txt6').text();
            outputField7 = $(xml).find('txt7').text();
            outputField8 = $(xml).find('txt8').text();
            outputField9 = $(xml).find('txt9').text();
            outputField10 = $(xml).find('txt10').text();
            outputField11 = $(xml).find('txt11').text();
            outputField12 = $(xml).find('txt12').text();
            outputField13 = $(xml).find('txt13').text();
            outputField14 = $(xml).find('txt14').text();
            outputField15 = $(xml).find('txt15').text();
            outputField16 = $(xml).find('txt16').text();
    but nothing happens on preview.  my textboxes still contain the original text that lives in my comp.

  • How to link one scroll bar with two dynamic text boxes.

    How to link one scroll bar with two dynamic text boxes.
    If i move scroll bar in one text box,automatically text will
    be moved in another text box.But scroll bar is not visible.
    Can you please help me.
    Thanks in advance.

    See the following article:
    JavaScript - setFocus Method for tabbing to next form field
    And see if iOS can even handle the sample form.
    iOS and android devices are not a powerful as your desktop of laptop computer and have limited support for JavaScript within PDF forms. This limitation for specific apps ranges from none to quite a bit but not all JavaScript.

  • I need Help with the dynamic link feature in CS3

    Hi I was wondering if anyone could help me with an issue I am having? I have the adobe cs3 master collection. Having watched tutorials on the dynamic link feature my version seems not to have the same options as those I have viewed. I wish to send my premiere video creation to encore using dynamic link, however when I click "file" and then "adobe dynamic link" the only options available are about "adobe after effects". I can export to encore however I am only alloowed to export one premiere sequence to one new encore file, I cannot create an encore file and import several premiere sequence into the same encore project. That means currently I can only have an encore creation with one premiere sequence in it, and I have no adobe dynamic link. Any help anyone could offer would be greatly appreciated.

    Thanks very much for that guys but my premiere media encoder only lets me export as: MPEG1, MPEG1-VCD, MPEG2, MPEG2 blu-ray, MPEG2-DVD, MPEG2-SVCD, H.264, H.264 blu-ray, Adobe Flash Video, Quicktime, Real Media, Windows Media. Are any of these formats DV AVI?
    Am I to export my videos direct to encore or save them elsewhere (e.g desktop). It seems that I cannot export sequences from different premiere projects to the same encore project.
    Sorry if any of these questions seem obvious, I am just new to premiere and keen to do things right from the off.
    Many thanks again guys.
    Date: Tue, 24 Nov 2009 19:32:47 -0700
    From: [email protected]
    To: [email protected]
    Subject: I need Help with the dynamic link feature in CS3
    Harm is correct.  For SD DVD, exporting as a DV AVI file from Pr will give you good results.  Encore's Automatic Transcoding will give you maximum quality for the available disc space.
    -Jeff
    >

  • I have CS4 Ilustrator and am having problems with gradient banding. I'm ripping files through Wasatch 6.7 to a Roland SC-540 printer.

    I have CS4 Ilustrator and am having problems with gradient banding. I'm ripping files through Wasatch 6.7 to a Roland SC-540 printer. Is there a fix for this? Please let me know, I have been asking here for a few days here and no answers yet? Josh

    I have CS4 Ilustrator and am having problems with gradient banding. I'm ripping files through Wasatch 6.7 to a Roland SC-540 printer. Is there a fix for this? Please let me know, I have been asking here for a few days here and no answers yet? Josh

  • Need help with actively replacing text in SVG

    I am new to Dreamweaver, Illustrator and SVG.  Also, I do have a firm understanding of HTML but limited knowledge of Javascript and other languages.  I am trying to create a website where the user is able to type in a form field (or something to that extent) and have the text in a displayed SVG be updated with the typed text.  I've done extensive searching on the subject and come up with nothing that seems to work.  Nor do I seem to be able to make it work.
    I found a dead tutorial on the Adobe website which might help illustrate what I am trying to achieve:
    http://www.adobe.com/svg/basics/text.html
    ANY help would be GREATLY appreciated.
    Thank you
    Adam

    Select the text. Copy to Clipboard. Open TextEdit. Paste. Resize its window appropriately. Choose Print off its File menu. Done.

  • Using alerts with variables-"dynamic text" not working

    Hello all,
    I'm triggering an alert from a BPM, and have set the flag "dynamic text" on for the alert category associated with it. I'm doing it in a similar way to the blog 1382 by Michal:
    [/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated|/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated]
    The only difference is that I'm just assigning a fixed text instead of a payload element to the container element, which I've defined as simple type - string.
    However, the text of the alert doesn't show anything. I'm getting an email with just "Process <id>" as the subject and "Alert ID: <number>" in the body of the email (the same in the Alert Inbox).
    I'm starting to think that there could be something wrong in PI 7.1 which I'm using, as I've configured other alerts in scenarios without BPM without problem.
    Thanks for your suggestions!

    I've solved it using an alert from the Enterprise Services Builder (Integration Repository). It's a new feature in PI 7.1. It seems the tab "Container" in the alert category didn't exist before (that's why you don't find it in the weblogs of Michal and others) and now you have to use it.

  • Help Needed for Dynamic Text

    I am looking to create a good dynamic text scroller like the
    one that
    is a component. Any one have information on how to make one
    it is
    really appreciated.
    Thanks
    Randy

    In your program and dynamic actions use structure RP50D for return dates (RP50D-DATE1 and RP50D-DATE2 to retrun values)
    0000 06 75 I INS,0041,,,(RP50D-DATE1),(RP50D-DATE2)/D
    0000 06 76 W P0041-DAR01='01'
    0000 06 77 W P0041-DAT01=RP50D-DATE1
    PROGRAM  ZHPADYN.
    TABLES : RP50D,
             P0000,
             P0041.
    *&      Form  GET_DATE
    *       text
    FORM GET_DATE .
      DATA : I0041 LIKE P0041,
             L_DAT LIKE P0041-DAT01,
             L_DAR LIKE P0041-DAR01.
      PERFORM READ_INFOTYPE(SAPFP50P) USING P0000-PERNR
                                            '0041'
                                            P0000-BEGDA
                                            P0000-ENDDA
                                            '1'
                                            'NOP'
                                            I0041.
      DO 12 TIMES
         VARYING L_DAR FROM I0041-DAR01 NEXT I0041-DAR02
         VARYING L_DAT FROM I0041-DAT01 NEXT I0041-DAT02.
        IF L_DAR = 'HR'.
          RP50D-DATE1 = L_DAT.
        ENDIF.
        IF L_DAR = 'PE'.
          RP50D-DATE2 = L_DAT.
        ENDIF.
      ENDDO.
    ENDFORM.                    "GET_DATE
    Hope this helps,
    Puneet

  • Is Dynamic Loading of Text from an external file possible in Captivate?

    Hello all,
    I am wondering if Dynamic loading of text is possible in captivate or not.
    As we can load an external file in flash.
    & which is the universal font to be used for the text entry box which will visible on any media?
    Thanks & Regards,
    Chirag

    Hello,
    I'm not a specialist about JavaScript. Have a look at Jim Leichliter's blog:
    http://captivatedev.com/
    Lilybiri

  • I need help with my wifi text. I can't use them

    I need help with my iPhone 4. I can't text since. I get wifi in my house ?

    What is the make & model of the wireless router that you are trying to extend with the WN3000RP? Can any other wireless clients connect to the extended network, just not your iMac?

  • Need help with creating template. Changes are not going through to index.html page

    Hi all,
    I have an issue with my template that I am creating and also a question about creating template Regions (Repeating and Editable).
    Somehow my changes to my index.dwt are not changing my index.html page.
    Also my other question is: For my top navigation bar and left navigation bar links, do I need to select and define each individual button or link as Repeating/Editable Region? or can I just select the whole navigation bar (the one on the top) etc...
    Below are my steps for creating my template...I am kinda fairly new to using DW and this is my first attempt to making a template following the DW tutorial CD that came with DW CS3.
    I appreciate any help with this...regards, Dano
    -Open my index.html file
    -File/save as template
    -Save
    -update links - yes
    -Select Repeating and Editable Regions (I selected the whole top navigation bar and selected Repeating Region and Editable Region, same with the left side navigation links)
    -File close all
    -Open the index.dwt
    -Save as and selected the index.html and chose to overide it..
    When I make changes to my index.dwt it is not changing the index.html
    I feel that I am missing some important steps here.....
    Website address
    www.defenseproshop.com

    Figured out

  • HELP WITH FINDING MY MUSIC ON MY EXTERNAL HARD DRIVE

    OK here goes need some help,i have my music on my external hard drive that i dragged on to my itunes everythings fine no problems there.But i went to tidy up my music in my external hard drive but can't find the mp3's all i see is the album folder.I know that the music is there because it say's on my hard drive and all the music in Itunes plays no problem can someone help me figure this one out.

    It points to my external hard drive, it's just when i go to the external hard drive and go to the music folder theres just the artist and album name no mp3's

  • How to display Dynamic text after adding flash file to html

    Please help - I have a dynamic text field in a movieclip
    inside a main movieclip - Within flash the dynamic text display
    properly but once I load the file to an html page the dynamic text
    no longer display - It loads undefined in text box. However when I
    remove the movieclip from main movieclip text display no
    problem.

    that's as2 code, not as3. please post in the correct forum
    next time.
    either about.txt is not in the same directory as the html
    file that loads or embeds your swf or there's a case issue with
    about.txt really being About.txt, for example.

  • Writing code or text in an external file

    i want to write some text or code in an external file such as
    (text file or something else)
    when an event in flash occurs
    like (on mouse click)
    thanks for your answer

    Its important to know whether its plain text or code that
    you're expecting to execute. You can use something like the
    loadVars method to read a plain text or XML file. You could get
    variables from it to use in your code. But the movie will have been
    compiled already, so I don't think large blocks of code are
    appropriate here. That having been said, you can create external AS
    files that are compiled into your SWF.
    Hope that helps!

  • Loading Knob Digital Display Text Labels from External File

    I have a knob interface. I display it on the instrument's front panel with the digital display.
    The knob controls the settings on an external GPIB switch. The value of the 6 devices selected changes. I want to see the numbers 1 thru 6 on the knob, but the knob's digital display needs to show something like "12.5-13.5 MHz BPF".
    I want to load the text visible in the knob's digital display from an external file located on the machine. I will not have the possibility of changing the VI for each location.
    Can you do that?
    If not, would an a case or event structure containing a text indicator, with text values read in from a file, be the best apporach?
    73/gus

    If you don't have 8.0 and XControls, you can do something like the attached. I edited the knob control and then replaced the digital display with a text ring.Message Edited by Dennis Knutson on 04-21-2006 12:32 PM
    Attachments:
    Knob with text ring.vi ‏30 KB

Maybe you are looking for

  • My ipad 4 wont show up in itunes on my windows 8.1 pc

    My IPAD 4 wont show up in ITUNES on my Windows 8.1 pc

  • Office 2013 cannot open documents from SharePoint 2007 with IE 11.

    Hei  One of my client cannot open word documents (office 2013) from SharePoint 2007 with IE11. Are there any compatibility issues among Office 2013/SharePoint 2007/Internet Explorer 11? Thanks in advance.  

  • ITunes 8.2.1.6 - Memory leak?

    I upgraded to the latest iTunes recently and the application has become unusable. When I click on any a song, a menu item, or anything, there is always a 5-10 second delay before the item is even highlighted. No "beachball", nothing. Using Task Manag

  • Watermark Not Antialiased?

    Maybe I'm doing something wrong... I created my watermark in Photoshop as described in the manual. It's one layer of antialiased text with a transparent background. When I export from Aperture, the watermark shows up with jaggies because it lacks ant

  • Where to place external temp sensor?

    I have a MSI 845 Ultra (6398) MB with a PIV 2Ghz processor and I have just changed case to a ThermalTake XaserII 6000. The case came with an external temp sensor that "can be placed anywhere". The reason I changed case was that my temp readings was v