Groups | Blog | Home
all groups > flash actionscript > april 2006 >

flash actionscript : paths and variables


Verstile
4/11/2006 10:08:51 PM
function removeClip(insName, cName) // coming from globals and are Strings
{
//this line under works as i want giving the path manually
_level0.Oslo.theButtOslo.removeMovieClip();

//this i cant make work and where my problem is.!!!!!
var test = eval(insName); // retuns Oslo when traced
var test2 =eval(cName); // returns theButtOslo when trace(test2);

// this doesnt work why and how can i fix this??
_level0.test.test2.removeMovieClip();
}

Hope u can help me !!!

kind regards V.
shyaway
4/11/2006 10:22:58 PM
Verstile
4/11/2006 10:28:57 PM
Thnx a lot mate!!!

it didnt work with the parameter names, however it worked with the new variables.
=> _root.removMovieClip();

Thank you again shyaway!!

shyaway
4/11/2006 11:03:07 PM
param name will work but they have to be String type.
Verstile
4/11/2006 11:22:54 PM
ok i believe you, but thx anyway!!

I have a similar problem now with the set () function.

set("_level.Oslo.isLocal", false); WORKS FINE

i have a function that receives aparam I eval it and then

set("_root.isLocal", false); does not work.. I have tried _level0.isLocal ....
but still not...
AddThis Social Bookmark Button