Hyas guys. Im wandering how can i use the complete function for a sfx.Where do i override it ,what do i do with it? I have no idea >.<. Thx
Sfx complete function usage[SOLVED]
JonathanStoler
(Jonathan Stoler)
#2
/* using constructor */
var sfx:Sfx = new Sfx(__SOURCE__, function():void{
// do something
}, "type");
sfx.play();
/* using property */
var sfx:Sfx = new Sfx(__SOURCE__);
sfx.complete = function():void{
// do something
}
sfx.play();
miguelmurca
(Mike Evmm)
#3
Itβs like an event. You define a function somewhere and then point that function as the callback in the constructer. Well, I was beaten to it