ashstampede
Programmer
I have some functions on my action layer for movie clip, in a second movie clip i attach the first movie clip via.
this works fine and the clip shows up when its attached.
but when i try to call the function for the clip it doesn't work, nothing happens.
i call the function like this, like i would in any OOP language
but that doesn't work ,I searched the internet for a while and found somthing about
prototype. so i went back and made my methods in my first movie clip like so.
when i tested it after this still no difference, how do you call functions from other movieclips?
Code:
this.attachMovie("firstClip","newClipname",1);
but when i try to call the function for the clip it doesn't work, nothing happens.
i call the function like this, like i would in any OOP language
Code:
newClipname.function1();
prototype. so i went back and made my methods in my first movie clip like so.
Code:
MovieClip.prototype.function = function(fields){
//I do stuff
};
when i tested it after this still no difference, how do you call functions from other movieclips?