Load Text Dynamicly

hi guys…
i know it’s very simple question but i don’t know what is the reason…

i’ve main SWF whichis load mc_dataHolder… it works
mc_dataHolder which is load text file ok… everything was great.

main SWF in FLA folder
mc_dataHolder in SWF folder
text in text folder

when i put the text in the text folder i can’t see text it’s load the SWF no problem in it. but there is no text appear… :m:

if i run mc_dataHolder lonly it loads text file no problem.
i don’t know what is the problem… i spent the night trying to solve it alone but i couldn’t.

i asked for this before:
my preloader appear in 70% precent… i want to tell you that i removed the components from my file and make load in separat mc … of course after loading complete (-:

Do you have a mask in your main.swf ? If it’s the case, embed your fonts. If not, post your files it would be easier to see what’s wrong with it.
Ubik

no masks in any layer… :puzzled:
here are the files as i used in my PC :pleased:

hi guys… :wink:
i tried everything to make it load in the main SWF but i faild… :hangover: :hangover: . i don’t know what is the problem is… so can anyone help me please … i’m going to kill myself :jail: .

I think you are not setting the right path to the textfile.

this is the code in the bgDataHolder
[AS]onClipEvent (load) {
loadText = new loadVars();
loadText.load("…/text/textNews.txt");
loadText.onLoad = function(success) {
if (success) {
trace(success);
_root.mc_textHolder.newsBox.html = true;
_root.mc_textHolder.newsBox.htmlText = this.myNews;
}
};
}
[/AS]
:sigh:

onClipEvent (load) {
        loadText = new loadVars();
        loadText.load("../text/textNews.txt");
        loadText.onLoad = function(success) {
                if (success) {
                        trace(success);
                        mc_textHolder.newsBox.html = true;
                        mc_textHolder.newsBox.htmlText = this.myNews;
                }
        };
}

[AS]mc_textHolder.newsBox.html = true;
mc_textHolder.newsBox.htmlText = this.myNews;[/AS]
you put me in the right way… i think you know it’ wouldn’t work :sigh: but i got what you mean claudio… :beer: .
finally i got it and it’s working now :pleased: :pleased:
[AS]newsBox.html = true;
newsBox.htmlText = this.myNews;[/AS]
i removed mc_textHolder too … :pleased: :pleased:

many thanx claudio :beer:

i asked for this before:
my preloader appear in 70% precent… i want to tell you that i removed the components from my file and make load in separat mc … of course after loading

can you solve this too … :sigh:

new question… i want to control bgDataHolder.swf from the main swf… is it possible :h:

thanx :azn:

I was pretty sure it was a path problem, but since you didnt post the fla, it was hard to know for sure the correct path.
Glad you got it working now. :slight_smile:

there is lot of simple things stop a complex work… :frowning:
i was wondering if i want to control this SWF and i saw _root all the time but i didn’t imagine it’s the main problem.

To control the bgDataHolder.swf you need to target the movieclip where it was loaded into, in this case, the movieclip mc_dataHolderbg.
As for the preloader problem, how big is the swf that is being preloaded?

the movieclip mc_dataHolderbg

you mean this is will be the parent for bgDataHolder.swf .
like the root for the main SWF… sorry i’m very confused now :h: .

movie is 60 kb… :puzzle:

Lets say you want to move the _x coordinate of the bgDataHolder.swf to 100.
You will need to target the movieclip that contains the bgDataHolder.swf:

mc_dataHolderbg._x = 100;

As for the preloader, im guessing it has almost nothing, maybe an interface for the text, and its most lots of code on the first frames. That may be causing that delay on your prelaoder.

thanx a lot claudio … :wink: .
but there are a lot of questions… be ready.

thanx again.

Welcome :slight_smile:
And post as many questions you may have… if i cant answer, others will. :wink: