A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Dynamic Loading Text on Buttons

  1. #1
    Junior Member
    Join Date
    Nov 2004
    Location
    Eau Claire WI
    Posts
    18

    Dynamic Loading Text on Buttons

    I am trying to load text in a box from hitting a button. I have put in this AS..

    on (release) {
    loadText = new LoadVars();
    loadText.load("text1.txt");
    loadText.onLoad = function(success) {
    if (success) {
    // trace(success);
    newsBox.html = true;
    newsBox.htmlText = this.myNews;
    }
    };
    }


    But for whatever reason it isnt working. Its flash MX2004 Can someone help?? Thanks..

  2. #2
    Senior Member
    Join Date
    Oct 2004
    Location
    Rio de Janeiro, Brazil
    Posts
    344
    Is newsBox a dynamic textbox? If yes, you must to add the characters, by clicking the characters button and specifying ranges, or else it will not show the text...

  3. #3
    2008 Man of the Year JWin's Avatar
    Join Date
    Aug 2005
    Location
    here
    Posts
    768
    actually, the only reason to add characters is if the font is not one of the basic fonts, but it would still display the default font.
    I had issues with importing text then I switched the publish setting to flash 6 and it worked fine. Does 7 suck or is it just me?
    If it doesn't work with that maybe some cats with better coding shops will help ya out.
    Good luck,
    -JWin

    SAMedia Blog (general bs) :: jwinmedia (my music site)
    "Think of an advertisement where the product you're marketing is Jesus!"
    -From a work for hire ad

  4. #4
    Junior Member
    Join Date
    Nov 2004
    Location
    Eau Claire WI
    Posts
    18
    Hey thanks for the help, it still isnt working, I tried to publish as 6 and then I changed my font to Times, and it still wont work. The ***** of it all, is that it works and my other swf. I dont know what the deal is. Maybe Ill just delete everything around my other one and work from that one. Just weird. Once again thanks a ton for the help.

    Tony

  5. #5
    2008 Man of the Year JWin's Avatar
    Join Date
    Aug 2005
    Location
    here
    Posts
    768
    if you didnt give up, perhaps actionscript setting? I always beat a dead horse before actually trying to REDO something.

    SAMedia Blog (general bs) :: jwinmedia (my music site)
    "Think of an advertisement where the product you're marketing is Jesus!"
    -From a work for hire ad

  6. #6
    Junior Member
    Join Date
    Nov 2004
    Location
    Eau Claire WI
    Posts
    18
    what exactly do you mean?

  7. #7
    2008 Man of the Year JWin's Avatar
    Join Date
    Aug 2005
    Location
    here
    Posts
    768
    having the publish settings flash 6 and actionscript 1

    SAMedia Blog (general bs) :: jwinmedia (my music site)
    "Think of an advertisement where the product you're marketing is Jesus!"
    -From a work for hire ad

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