Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loadMovie dynamic text swf

Status
Not open for further replies.

blues007

Technical User
Oct 25, 2005
59
PT
I'm trying to loadMovie a dynamic text swf and I'm getting nothing. Although I would be very much surprised if it had worked, I don't understand the reason why it doesn't.

the code is:

on(release){
move.loadMovie("somemovie.swf");
}

being some movie.swf a dynamic text swf, that works perfectly as sandalone. Now what? Thank you very much.
 



frame 1: loadVariables("text.txt","_root");
frame 2: stop();

in frame 2 I have a dynamic text box
 
You should be using the LoadVars() object instead, but if you still want to use loadVariables, you've got to get rid of your reference to _root, which no longer points to the root timeline of your loaded movie itself, but to the root timeline of the other movie in which you're loading your movie into.

Thus, in the text movie use...

loadVariablesNum("text.txt",0);

And add _level0 to your variable's name in the VAR box...
If your variable's name was my_text, make it _level0.my_text instead.

And it should work fine... Although you may also experience loading lag time (if this is online...) and may need to set your loadVariables action in a loop until an added extra last variable is read, confirming that the text file was all loaded.

You might even need to add a few extra frames between your loadVariables action and the display, when testing this locally.

Regards. Web Hosting - Web Design
03/13/05 -> OLDNEWBIE VS FLASHKIT
 
It works fine offline. Online it doesn't work at all.

in the file I want to open i put:

frame 1: loadVariablesNum("text.txt",0);
frame 2: stop();

in the Var box I put _level0.text

What do I do?
 
The button is working because:

if you open "Contactos" the address, email and things appear. If you press "Quem Somos" the address disappears. It's a sure sign the button is working.
 
Well... Guess I have to take your word for it.
Have you tried loading in some other .swf, or at least add a border to your textfield (in your present text .swf) so see if the border at least appears?

Is this .swf loaded under a mask? If so have you embedded the font used?

Regards. Web Hosting - Web Design
03/13/05 -> OLDNEWBIE VS FLASHKIT
 
I put the files I sent you in


and they work ok

The code is the same I put in keepersoflight.pt. I don't understand. I'll work around puting text in some other way, though it's nice to replace a .txt file if you want to replace the text in your page. Thank you very much anyway. You're the best.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top