Hey, everyone! So Halloween is just around the corner, and to celebrate this coming occasion, I give you... ZOMBIES!!! Enjoy! :)
Zombie Survival Guide - GN by *IbraimRoberson on deviantART
zombie by ~czarnystefan on deviantART
Zombie by ~Xythanon on deviantART
scream zombie by ~blow-engine on deviantART
Zombie apocalypse by ~korintic on deviantART
zombie boy by ~johnfsebastian on deviantART
Zombie by ~MrWizard44 on deviantART
Zombie Dude by ~DavidRapozaArt on deviantART
Zombie Eaters by *K-A-D-L on deviantART
Zombie Claire by ~someDude2 on deviantART
mother and zombie by ~the-wild-rover on deviantART
Zombie Apocalypse by ~GarthFT on deviantART
Zombie by ~artofneff on deviantART
Pages
▼
Monday, October 11, 2010
Thursday, October 7, 2010
Keyboard Events Won't Work Unless User Clicks Inside the Flash Movie First (and how to remove the yellow border around objects that are in focus)
If you find that, for some reason, you'll have to click inside your Flash movie first before the keyboard event listeners start working, then try adding a stage.focus statement to your code:
Place this on the main timeline in order to set the focus to your Flash movie. Focus refers to the currently active object in your Flash movie. Whenever you click on something, like a MovieClip or a TextField, it becomes the active object and becomes the object that is in focus. Here, we are setting the focus back to the entire Flash movie without having to click on anywhere inside the movie. This way, the keyboard events that you've created will work right away. I've encountered this problem a couple of times and I was able to solve them by adding this line. However, adding this line might cause a yellow border to appear around the object that is in focus. If that happens, then try adding this line before the stage.focus statement:
That yellow border is the stage focus rectangle which serves to highlight the object that is currently in focus. Here, we're setting the stageFocusRect property to false so that the border will not show up.
stage.focus = this;
Place this on the main timeline in order to set the focus to your Flash movie. Focus refers to the currently active object in your Flash movie. Whenever you click on something, like a MovieClip or a TextField, it becomes the active object and becomes the object that is in focus. Here, we are setting the focus back to the entire Flash movie without having to click on anywhere inside the movie. This way, the keyboard events that you've created will work right away. I've encountered this problem a couple of times and I was able to solve them by adding this line. However, adding this line might cause a yellow border to appear around the object that is in focus. If that happens, then try adding this line before the stage.focus statement:
stage.stageFocusRect = false; stage.focus = this;
That yellow border is the stage focus rectangle which serves to highlight the object that is currently in focus. Here, we're setting the stageFocusRect property to false so that the border will not show up.