dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: converting dynamic text code to work in flash player 8

  1. #1
    Senior Member brocwind's Avatar
    Join Date
    Jan 2003
    Location
    London
    Posts
    268

    converting dynamic text code to work in flash player 8

    Hi

    I use this code all the time to import text from a external text file which i can scroll. It doesn't work in flash player 8 though, can anyone convert it so it would work please?

    Code:
    System.useCodepage = true;
    LoadVarsText = new LoadVars();
    LoadVarsText.load("english.txt");
    LoadVarsText.onLoad = function(success) {
    	if (success) {
    		scroller.htmltext = this.mainContent;
    		scrolling = 0;
    		frameCounter = 1;
    		speedFactor = 3;
    	} else {
    		trace("not loaded");
    	}
    };

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    Well I'm not sure why it would work at all...htmltext should be htmlText. Past that there's nothing wrong with it.

  3. #3
    Senior Member brocwind's Avatar
    Join Date
    Jan 2003
    Location
    London
    Posts
    268
    thanks that's made the text show up, but the links from the text file don't work for some reason. If i change the publish settings to Flash 6 player they work fine but when it's Flash player 8 the full html code is shown instead?

  4. #4
    Senior Member brocwind's Avatar
    Join Date
    Jan 2003
    Location
    London
    Posts
    268
    got it sorted thanks, the text box was set as bold and i forgot that for some reason that always stops it working in flash

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