all groups > flash (macromedia) > august 2004 >
You're in the

flash (macromedia)

group:

Problem with Flash MX


Problem with Flash MX filmorder
8/23/2004 9:00:26 PM
flash (macromedia):
Hi friends
i have problem with Dynamic text in flash mx

i want flash read my text out of swf for example from " mainpage.txt " in same
folder that i saved swf.

i could creat it with loadVariablesNum("mainpage.txt", 0);
and i haven't problem and i can see it but my problem is ALPHA of dynamic text
and i couldn't past it in Symbol Moveiclip !
What should i do ? :(
i'm very thankful if you help me
thanks in advance
Re: Problem with Flash MX NSurveyor
8/23/2004 9:23:09 PM
myData = new LoadVars();
myData.onLoad = function() {
myMovieclip.myText= this.mainpage;
//replace myMovieclip with the instance name of your movieclip
};
myData.load("mainpage.txt");
//and just to make sure it worked,
trace(myMovieclip.myText)
//replace myMovieclip with the instance name of your movieclip
in your mainpage.txt, set it up like this:

mainpage = Hi, welcome to my main page. Replace this text with what should be
in this variable. Quotes are not needed.

Thanks alot Dear Master filmorder
8/24/2004 4:47:44 AM
Hi dear Master
i'll try as soon as your action now i should go to class sorry.
after it i go there again.
i hope this script work good :)

in your mainpage.txt, set it up like this: mainpage = Hi, welcome to my
main page. Replace this text with what should be in this variable. Quotes are
not needed.
i think i should start text in external source same as mainpage.txt with "&" ?
for this script it's don't need ?
Thanks again for solving my problem.
Re: Thanks alot Dear Master filmorder
8/24/2004 4:04:20 PM
Hi dear Master
now i try this script with this way :

MyMoveiClip=txt (instance name)
text file = main.txt
*****************
onClipEvent (load) {
myData = new LoadVars();
myData.onLoad = function() {
txt.myText= this.main;
//replace myMovieclip with the instance name of your movieclip
};
myData.load("main.txt");
//and just to make sure it worked,
trace(txt.myText)
//replace myMovieclip with the instance name of your movieclip
}
******************
i added your action script to my Moveicilp (txt) "(not in frame)".
my moveiclip inculde of Action script ::> loadVariablesNum=("main.txt", 0);
and i created dynamic text and then i converted it to graphic becuse

i want to move it from some frame to another one.

it's have problem ! nothing ! text is disappear

My error ::> undefined
I upload my FLA to my site :::> rahshekan.com/text dynamic problem.zip
i think my problem is the way that i use your Action script ?
May you help me more than before ?
Thanks in Advance
:(( filmorder
8/25/2004 2:57:29 PM
plzzzzzz help :(

:(( filmorder
8/25/2004 2:57:32 PM
plzzzzzz help :(

plz some one help me :(( filmorder
8/25/2004 5:00:06 PM
Re: plz some one help me :(( David Stiller
8/25/2004 6:40:44 PM
Happy to. What's your problem?


David
stiller (at) quip (dot) net

Re: plz some one help me :(( David Stiller
8/26/2004 7:25:07 AM
You can't change the _alpha properties of dynamic text unless that text
has the font outlines embedded. (Select your dynamic text field, then click
the Character... button in the Properties panel.

I'm not sure what you mean by "couldn't play dynamic txt in clip." Do
you mean you couldn't change dynamic text? If so, your text field should
have an instance name (again, look in the Properties panel). In
ActionScript, address that instance name's .text property, like
myTextField.text = "this is dynamic text" -- and if that text field is
inside a movie clip, that movie clip should also have an instance name.
Then you would address your text field as something like
myMovieClip.myTextField.text = "this is different dynamic text."


David
stiller (at) quip (dot) net


[quoted text, click to view]

Re: plz some one help me :(( filmorder
8/26/2004 8:11:45 AM
my problem is still i couldn't play dynamic txt in clip and i couldn't change alpha of my txt!
i don't want to creat a alpha with object :(
Re: filmorder
8/26/2004 4:23:16 PM
i do something like that but i have problem i couldn't see any txt in movei
screen.!! :(

I upload my FLA to my site :::> rahshekan.com/text dynamic problem.zip
i upload my fla plz see :: > what problem i created :(

i upload a example somebody created a swf that you can change alpha on it :(
but i don't now how !!!!!

Re: Re: David Stiller
8/26/2004 9:12:53 PM
filmorder,

Follow instructions, buddy! I looked at your FLA and made the _alpha
work very easily. The solution is right there in the first paragraph of my
2nd post:

[quoted text, click to view]

Everything you need is already there, just follow the steps I told you.


David
stiller (at) quip (dot) net




[quoted text, click to view]

AddThis Social Bookmark Button