Copy link to clipboard
Copied
Flash AS3 -- Got ff.fla code importing cl.as class -- cl class has a tt:Timer -- How do I get a tt:Timer event to run a function on ff.fla code?
kili wrote:
Thankyou. Please, I need further assistance.
My ff. fla has
****************
import CC
var mm:CC = new CC();
mm.addEventListener('fromCCE',aaa);
function aaa(e:Event){
trace(“****”);
}
*****************
my CC.as file has
*******************
var tt:Timer = new Timer(……);
tt.addEventListener(TimerEvent.TIMER_COMPLETE, YYYY)
tt.start();
function YYYY(e:TimerEvent):void{
dispatchEvent(new Event('fromCCE')); // or if you want to dispach e, do so
}
Copy link to clipboard
Copied
add a listener there.
Copy link to clipboard
Copied
Thankyou. Please, I need further assistance.
My ff. fla has
****************
import CC
var mm:CC = new CC;
function aaa(XXXX){
trace(“****”);
}
*****************
my CC.as file has
*******************
var tt:Timer = new Timer(……);
tt.addEventListener(TimerEvent.TIMER_COMPLETE, YYYY)
tt.start();
***********************************
Question: I need the Event to call function aaa. What do I write instead of XXXX and YYYY?
Thanks again
Héctor
De: kglad
Enviado el: lunes, 8 de febrero de 2016 17:15
Para: Héctor Kilijanski
Asunto: Flash AS3 -- Got ff.fla code importing cl.as class -- cl class has a tt:Timer -- How do I get a tt:Timer event to run a function on ff.fla code?
Flash AS3 -- Got ff.fla code importing cl.as class -- cl class has a tt:Timer -- How do I get a tt:Timer event to run a function on ff.fla code?
created by kglad <https://forums.adobe.com/people/kglad> in ActionScript 3 - View the full discussion <https://forums.adobe.com/message/8475587#8475587>
Copy link to clipboard
Copied
kili wrote:
Thankyou. Please, I need further assistance.
My ff. fla has
****************
import CC
var mm:CC = new CC();
mm.addEventListener('fromCCE',aaa);
function aaa(e:Event){
trace(“****”);
}
*****************
my CC.as file has
*******************
var tt:Timer = new Timer(……);
tt.addEventListener(TimerEvent.TIMER_COMPLETE, YYYY)
tt.start();
function YYYY(e:TimerEvent):void{
dispatchEvent(new Event('fromCCE')); // or if you want to dispach e, do so
}
Copy link to clipboard
Copied
Thanks. I reported “answer correct”.
Héctor
De: kglad
Enviado el: lunes, 8 de febrero de 2016 22:45
Para: Héctor Kilijanski
Asunto: Flash AS3 -- Got ff.fla code importing cl.as class -- cl class has a tt:Timer -- How do I get a tt:Timer event to run a function on ff.fla code?
Flash AS3 -- Got ff.fla code importing cl.as class -- cl class has a tt:Timer -- How do I get a tt:Timer event to run a function on ff.fla code?
created by kglad <https://forums.adobe.com/people/kglad> in ActionScript 3 - View the full discussion <https://forums.adobe.com/message/8476692#8476692>
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now