Just a few small questions, just to make sure.
1. I see that after pressing a button and going to the next frame, stage gets no focus, do i need to manually insert
stage.focus = stagein a next frame? Or is there something i’m doing wrong with buttons, because if i make MovieClip as a button everything is fine.
2. Let’s say we need to move background only if all three players are on the right side, this line should do it, but it doesn’t do exactly what we want:
(loop)
if (player1.x && player2.x && player3.x > 400)
{
back.x -= 5;
}
It will start moving background if player2.x and player3.x is > 400 but it doesn’t care about player1.x, so i had to change it to this:
(loop)
if (player1.x > 400 && player2.x && player3.x > 400)
{
back.x -= 5;
}
So, can’t we have more than 2 logic statements?
3. Is there somewhere a list of all classes like:
import fl.motion.MotionEvent; import flash.utils.Timer;
Because when creating an .as file flash does not import them automatically for some reason:(
How do you know which one to import?