1 Reply Latest reply on Jul 10, 2006 7:50 PM by Newsgroup_User

    LoadVars text drops

    hushhurt
      Hello,
      I am having issue with my html file dropping. I have a master swf, and inside that master swf with a mp3 player the progressively downlaods external mp3. From that master swf other external swfs load into the master (when click on buttons) I have completely different loadVar names for each othe the sections loading and the mp3 player -

      but for some reason, it will load the .html file but after a minute or so, will drop the file and leave my text field blank...whats going on????


      here is the coade to one of the sections:
        • 1. Re: LoadVars text drops
          Level 7
          To eliminated your formatting code being a problem add a trace here


          if (success)
          {
          myText.htmlText = myAboutLV.info;
          trace ("myAboutLV.info ="+myAboutLV.info );
          }

          and here

          myText.styleSheet = this;
          trace("cssStyles.onLoad");
          myAboutLV.load("about.html");


          --
          Lon Hosford
          www.lonhosford.com
          Flash, Actionscript and Flash Media Server examples:
          http://flashexamples.hosfordusa.com
          May many happy bits flow your way!
          "hushhurt" <webforumsuser@macromedia.com> wrote in message
          news:e8u7k1$svh$1@forums.macromedia.com...
          > Hello,
          > I am having issue with my html file dropping. I have a master swf, and
          > inside
          > that master swf with a mp3 player the progressively downlaods external
          > mp3.
          > From that master swf other external swfs load into the master (when click
          > on
          > buttons) I have completely different loadVar names for each othe the
          > sections
          > loading and the mp3 player -
          >
          > but for some reason, it will load the .html file but after a minute or so,
          > will drop the file and leave my text field blank...whats going on????
          >
          >
          > here is the coade to one of the sections:
          >
          > var myAboutLV:LoadVars = new LoadVars();
          > var tChangeInterval:Number = setInterval(tChange, 5);
          >
          > myText._alpha = 0;
          >
          > myAboutLV.onLoad = function(success) {
          > if (success) {
          > myText.htmlText = myAboutLV.info;
          > } else {
          > myText.text = "There was an error when loading the external file.";
          > }
          > };
          > myText.html = true;
          > myText.condenseWhite = true;
          >
          > var cssStyles:TextField.StyleSheet = new TextField.StyleSheet ();
          > cssStyles.onLoad = function () {
          > myText.styleSheet = this;
          > myAboutLV.load("about.html");
          > };
          > cssStyles.load("styles.css");
          >
          > function tChange() {
          > myText._alpha+=5;
          > updateAfterEvent();
          > if (myText._alpha == 100) {
          > clearInterval(tChangeInterval);
          > }
          > }
          >