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
Call of the functionCode:function tilePlant(plant,id,level,plantStrand){ //do stuff return plant; }
So, I need to call the function from an external button that works for all 25.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.. }
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?
likeand call the sender?Code:sender = "_root.a1[1] = _root.tilePlant (_root.a1[1],1,11),_root.plant1[4];";
Does that make sense? Or am I a babbling fool?![]()




Reply With Quote
