-
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..
-
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...
-
2008 Man of the Year
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
-
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
-
2008 Man of the Year
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
-
what exactly do you mean?
-
2008 Man of the Year
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|