Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : Make dynamic text work in a movie clip inside...


artguy2
2/23/2004 7:18:05 PM
What do I need to do to make dynamic text work inside a movie clip inside a
button?

I figured out it has something to do wih the path. But I don't know in what
order to put the Code.

Here is the the code as it stands loadVariables("wheeler.txt","_root"); this
worked as just a .FLA file by it self.

My Dynamic text is in the Movie clip (M_descrip) and in the button
(B_Descript) What order do I put the Code in?

Scene 1---- B_Descript------ M_descrip

Steve
ufitzi
2/23/2004 7:25:56 PM
try this:

_root.b_Descript.m_descript."nameOfDynamicTextBox"

artguy2
2/23/2004 9:18:28 PM
I tried that and this is what is said.

Symbol=M_descrip, Layer=Layer 1, Frame=1: Line 1: Wrong number of parameters;
loadVariables requires between 2 and 3.
loadVariables("_root","B_Descript","M_descript","wheeler.txt");

Steve
ufitzi
2/23/2004 9:43:18 PM
YOu are using the function incorrectly.
In flash go to help->ActionScript Dictionary.
In the search bar type loadVariables()

Choose the appropriate result and read up.....

for starters you are passing 4 parameters (arguments) to the function, it
takes a mximum of 3, that is the error report your reading. Look at the
examples in the Flash help section mentioned above to get a feel for how to use
this function

Also, try switching your actions panel to normal mode, which can help
eliminate errors in code
AddThis Social Bookmark Button