A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] External Text - Undefined (re-post)

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    6

    resolved [RESOLVED] External Text - Undefined (re-post)

    I realise before i didn't use code brackets or state my flash version and that it may not have been approved because of that.


    my problem is that i have an external text file feeding my flash website. it all works fine with the preview but when i get it on a remote server then i get "Undefined". I realise a few people have this problem and i still have not found a working solution.

    here is my code:

    Actionscript Code:
    myData = new LoadVars();
    myData.onLoad = function() {
        dynamicTextHome.home_text.html=true;
        dynamicTextHome.home_text.htmlText = this.homeText;


    };

    myData.load("myText.txt");


    and here is myText.txt:

    &homeText=<html><font color="#AA0000"><p align="center"><b>Website under construction, please keep an eye out for new stuff to play around on.</b></p></font></html>
    &downloadsText=<html><p align="center"><b>Update: Mixes can be found on our forums untill the website is fully up and running</b></p></html>
    &aboutText=<html><p align="center"><b>Update: Mixes can be found on our forums untill the website is fully up and running</b></p></html>
    &


    any help would be much appreciated.

    the website at the moment is http://dirtynotes.comeze.com/

  2. #2
    Junior Member
    Join Date
    Oct 2011
    Posts
    6
    Sorted it now, used xml page and a style sheet works a treat and easier to maintain, if any one wants the code let me know

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center