Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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?

Community Beginner ,
Feb 08, 2016 Feb 08, 2016

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?

TOPICS
ActionScript
430
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 08, 2016 Feb 08, 2016

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
}
Translate
Community Expert ,
Feb 08, 2016 Feb 08, 2016

add a listener there.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 08, 2016 Feb 08, 2016

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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 08, 2016 Feb 08, 2016

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
}
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 08, 2016 Feb 08, 2016

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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2016 Feb 09, 2016
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines