Hello
I think it could be simple to solve but i cant figure it out because im just starting with classes, so im posting here. The problem is that i want to excute a function on a class file every frame, but it just appears once when in test it. Here are the codes (i made a simple example to focus on the problem):
Class .as
class Repeat extends MovieClip {
var Container:MovieClip;
function Repeat (Target:MovieClip){
this.Container = Target;
}
function Speak (){
this.Container.onEnterFrame = this.Words();
}
function Words (){
trace ("Bla bla bla bla")
}
}
.fla code
var Holder:MovieClip = this.createEmptyMovieClip ("Holder",this.getNextHighestDepth());
var myRepeat = new Repeat(Holder);
myRepeat.Speak();
Any help will be appreciated
Thanks in advance=)