Consulted the tutorial from Erin's Flash lite blog. Adjusted the script.
Now, the object can move "Left", "Right", "Up", "Down".
And I find out used case 1 instead of case 2, the ActionScript Bytes is reduced.
( for my project, it reduced from 788bytes to 773bytes )
case 1
if ( ) {
}
if ( ) {
}
if ( ) {
}
if ( ) {
}
case 2
if ( ) {
}
else if ( ) {
}
else if ( ) {
}
else if ( ) {
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment