Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-23-2005, 10:13 AM   #1
raute4ever
Registered User
 
Join Date: Jun 2005
Posts: 4
Default loading external .swf

Hi, i´m new here and have a "big" problem. (sorry my english is not very good):

i have a .swf file that loads text dynamically from a external textfile in a textfield. That works fine. But when i load this .swf as a external .swf in a other .swf (in a blank movie on mainstage) then the variable from the textfile is not displayed any more.
Can anyone help me please?
raute4ever is offline   Reply With Quote
Old 06-23-2005, 11:01 AM   #2
Batu
Registered User
 
Join Date: Mar 2005
Posts: 4
Lightbulb

Quote:
Originally Posted by raute4ever
Hi, i´m new here and have a "big" problem. (sorry my english is not very good):

i have a .swf file that loads text dynamically from a external textfile in a textfield. That works fine. But when i load this .swf as a external .swf in a other .swf (in a blank movie on mainstage) then the variable from the textfile is not displayed any more.
Can anyone help me please?
Hallo there if use loadmovieNum ("my_mc", 2); make sure and your loadmovieNum that the txt is loaded is also on level 2 loadmovieNum ("my_txt.txt", 2);

and i hope you understund my english
Batu is offline   Reply With Quote
Old 06-23-2005, 11:17 AM   #3
raute4ever
Registered User
 
Join Date: Jun 2005
Posts: 4
Default

No, that doesn´t solve the Problem:-((
Are you german?:-) (Bist Du Deutscher/kannst Du Deutsch?)
raute4ever is offline   Reply With Quote
Old 06-23-2005, 12:21 PM   #4
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

Are you loading the movie in a container clip or on another level?
What's the code you're using to load it?

And what are you using to load the text file?

loadVariables or LoadVars()?

And are you using the textfield's instance name or a variable in it's VAR box?
oldnewbie is offline   Reply With Quote
Old 06-23-2005, 12:39 PM   #5
raute4ever
Registered User
 
Join Date: Jun 2005
Posts: 4
Default

hi,
i´m loading the movie in a container clip(root.blank movie) simple with loadMovie:
holder_mc.loadMovie("taekwondo.swf");
The text file will loaded with:
loadVariablesNum("html.txt", self); --> this work when the movies plays alone but not when the movie is loaded in the other movie
I´m using a variable in the textfields VAR box
raute4ever is offline   Reply With Quote
Old 06-23-2005, 12:44 PM   #6
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

Use this instead...

loadVariablesNum("html.txt", 0);

Then add _level0 to your variable's name in the VAR box.
If your variable was my_var make it _level0.my_var instead... It should then work as a charm.

You should also look into the new LoadVars() object, much better than loadVariables to load your variables.
oldnewbie is offline   Reply With Quote
Old 06-23-2005, 12:52 PM   #7
raute4ever
Registered User
 
Join Date: Jun 2005
Posts: 4
Default

Thanks very much oldnewbie, it works!!:-))
raute4ever is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:27 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.