0 Replies Latest reply on Jul 17, 2007 7:22 AM by TaylorJumbo

    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();
      //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.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