Archive for July, 2008

25
Jul

A quick way to detect Idleing in flash actionscript 2

Posted By wassim in Flash, Flash Tutorials

So I had this customer who asked me to do an flv player for his site, he wanted the controls of the player to fade out when the user is idle, now flash does not have an onIdle event of any kind and the only way around this was to trigger a signal when the mouse kept its position (did not move) for more than 3 second (or x seconds, customizable) or keys has not been pressed for x seconds.

Again, flash does not have an onMouseStill event so I had to do it this way:


this.onMouseMove=function(){
clearTimeout(toInt);
fadeControlsIn();
toInt=setTimeout(fadeOut,3000);

}
function fadeOut(){
//fading out code goes here...
}
function fadeControlsIn(){
/fading in code goes here....

}

A similar approach can be applied to keypresses.

Hope this helps.

14
Jul

A year has passed…

Posted By wassim in Education/Teaching, Wassim

I read this quote on a site and immediately remembered a student of mine who passed away last year in July, here’s what it says:

“Nous partirons l’un après l’autre, et ceux qui restent porteront la mémoire de ceux qui ont disparu.”

Which means:

We leave one after the other, those who remain hold the memory of those who passed away.

Indeed, we still remember you, Nadim…

14
Jul

Our chicks are leaving the nest…

Posted By wassim in Education/Teaching, Wassim

Yes, another scholastic year has passed, a new wave of our beloved teen students graduated, they are out in the wild now getting ready for the big deal!

Leen, Ali, Mohammad, Sally, Dima, Rania and the lovely Lara are now out of the nest :) they are flying on their own, I will miss you all.

Hear me out guys, the fun has just began! Enjoy yourselves, learn and get out of there as soon as you can.