So, how do I explain this?...
I'm working with all dynamic stuff.
On the main frame, I have a function, with parameters.
Each tile (there's 25), holds it's own call on the function.
Main Frame Function
Code:
function tilePlant(plant,id,level,plantStrand){
//do stuff
return plant;
}
Call of the function
Code:
on (release) {
_root.a1[1] = _root.tilePlant (_root.a1[1],1,11,_root.plant1[4]);
// _root.a2[1] = _root.tilePlant (_root.a2[1],2,12),_root.plant2[4];
// _root.a3[1] = _root.tilePlant (_root.a3[1],3,13),_root.plant3[4];
// ect..
}
So, I need to call the function from an external button that works for all 25.
But I can't specify the call of the function from there, it breaks the dynamics.
Could I like, somehow send the call of the function to the button somehow?
like
Code:
sender = "_root.a1[1] = _root.tilePlant (_root.a1[1],1,11),_root.plant1[4];";
and call the sender?
Does that make sense? Or am I a babbling fool?