0
Welcome Guest! Login
0 items Join Now

SOLVED Load external data for swf. in module

  • SOLVED Load external data for swf. in module

    Posted 17 years 6 months ago
    • Hi

      Ok-this is a very special question :D I placed a flashfile that loads data from an external .txt file in a module. I put both the swf. and the textfile in the same folder in the Media Manager. The problem is, that the swf. shows up, but no data is displayed-instead it only says "fined" where normally the text from the external .txt-file appears

      If it help: I used following Actionscript:
      //create new instance of LoadVars object
      myData = new LoadVars();
       
      //define what to do with content once it has loaded
      myData.onLoad = function() {
           //the value of the "content" property is assigned to the text field
           myText_txt.htmlText = this.content;
      };
       
      //now load the external file into the myData object
      myData.load("mytext.txt");
       
      stop();

      The textfile starts with "b>&content=<p>"

      Anyone has a clue? ???
    • Last Edit: 17 years 6 months ago by Max Leon Dalheimer.
  • Re: SOLVED Load external data for swf. in module

    Posted 17 years 6 months ago
    • no one? :-[
  • Re: SOLVED Load external data for swf. in module

    Posted 17 years 6 months ago
    • how about
      //now load the external file into the myData object
      myData.load("http://www.yoursite.com/pathfolder/wherethefile/is/at/mytext.txt");
    • IT Consulting - Asesor Informatico
      www.ninjoomla.com
      Extensions, training, tips and services to support Web Developers and Site Owners.
  • Re: SOLVED Load external data for swf. in module

    Posted 17 years 6 months ago
    • Hi

      thanks for your help-it works now :P I still don't understand though why it didn't work before, since both files where in the same folder ???

      but who cares now ;D

Time to create page: 0.064 seconds