quarta-feira, 13 de janeiro de 2010

Exit Frame Event

I always wanted to listen to the exit frame event on Actionscript 3 but couldn't because I kept having an error in Event.EXIT_FRAME. Now looking at the livedocs of Flex 3.5 (my compiler) I saw that the constant is defined as "exitFrame" and I tried it and it worked! If you do

addEventListener("exitFrame", func);

then func will be called in the exit frame event :) I don't know why I keep having errors with the constant, but I'm happy to be able to use the event.

I hope this helped some restless soul that needed the event but could not make it work :p

Nenhum comentário:

Postar um comentário