PDA

View Full Version : as soon as I load sub.swf into main.swf using the text no longer appears


ylevasseur
03-04-2011, 10:04 AM
hi all!!!

here I am again with yet another newbie question... I've searched the web and seen millions of people have the same problem and i'm assuming it's been fixed a copious amount of times before but still can't seem to find the answer i'm looking for...

in short

when i load text.txt in sub.swf everything works using loadVars technique

here's the tut i used
w.republicofcode.com/tutorials/flash/loadvars_bc/[/url]

but as soon as I load sub.swf into main.swf using the text no longer appears...How can i fix this?

here's the tut I used for the preloader on my main.swf
w.kirupa.com/developer/mx/preloader_transition.htm[/url]

things i've tryed:

adding _root, _parent, _level0 after myText_txt

also read up on embeding font's which not sure if i did it right but failed also.

Please help i've been searching for a while...
i'm about to gotoAndHang.self();lol

thank you!!!

ylevasseur
03-04-2011, 10:04 AM
hi all!!!

here I am again with yet another newbie question... I've searched the web and seen millions of people have the same problem and i'm assuming it's been fixed a copious amount of times before but still can't seem to find the answer i'm looking for...

in short

when i load text.txt in sub.swf everything works using loadVars technique

here's the tut i used
w.republicofcode.com/tutorials/flash/loadvars_bc/
but as soon as I load sub.swf into main.swf using the text no longer appears...How can i fix this?

here's the tut I used for the preloader on my main.swf
w.kirupa.com/developer/mx/preloader_transition.htm
things i've tryed:

adding _root, _parent, _level0 after myText_txt

also read up on embeding font's which not sure if i did it right but failed also.

Please help i've been searching for a while...
i'm about to gotoAndHang.self();lol

thank you!!!

ylevasseur
03-04-2011, 12:21 PM
hey wow sorry about the clarity of that last post... sigh night shift

anyway what i meant to say is:

im trying to load an external txt file into a dynamic text field which is located within a .,swf file

currently I'm using the loadVars() method (there are many tuts) and it seemed to be working until i loaded the swf into my main movie.

the following is my action script located in my main timeline

//Code that loads the txt file into the dynamic text box.
// instance for text box= news_txt
myData = new LoadVars();
myData.onLoad = function(){
_level0.news_txt.text = this.news;
};
myData.load("news.txt",0);
stop();

the movie is loaded using loadMovie in my main.swf

any helpwould be appreciated

thanks