allTransitionsInDone Event


i've created small proof of concept flash module that's based around flash form application.  choose kind of application because i'm simulating multi-page information gathering application, , form application appeared "simplify" task....

 

i've created number of "input" forms , @ end - process everything.  of input received, want whole bunch of processing , build pdf displayed user.

 

originally, thought inserting "calculation" code inside "reveal" event.  but, found out reveal happens form gaining focus. net effect of of calculation code executing in reveal nasty "pause" before screen ever pops up.

 

i next tried "focusin" , "focusout" - code never being fired!

 

thinking i'd botched code, added "hide" - , find hide code fires when transition off of form (my trace() fires - know i'm getting thru code...)

 

i'm playing little code in actions - frame form.  since form based upon screen, of events screens available.  , interesting event available me alltransitionsindone.  added code add event handler trap alltransitionsindone , alltransitionsoutdone , ran code.

 

i've added focusin, focusout, hide, alltransitionsindone , alltransitionsoutdone event listeners code.  running code, see hide event fire when transition off of form.

 

my frame1 code looks like:

 

addeventlistener("focusin", onfocusin);
addeventlistener("focusout", onfocusout);
addeventlistener("hide", onhide);
addeventlistener("alltransitionsindone", transitionsindone);
addeventlistener("alltransitionsoutdone", transitionsoutdone);

function transitionsindone() {
    var d1:date = new date();
    trace("alltransitionsindone completed @ " + d1);
}

function transitionsoutdone() {
    var d1:date = new date();
    trace("alltransitionsoutdone completed @ " + d1);
}

function onfocusin() {
    var d1:date = new date();
    trace("onfocusin received @ " + d1);
}

function onfocusout() {
    var d1:date = new date();
    trace("onfocusout received @ " + d1);
}

function onhide() {
    var d1:date = new date();
    trace("onhide received @ " + d1);
}

 

i don't see what, if anything, i'm doing wrong....

 

anyone got ideas???

 

thanks!

 

 

bob

the addeventlistener("alltransitionsindone", transitionsindone), must have transition obj contain transition.in parameter, can correct result.



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???