Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/mobosof/public_html/forum/common.php on line 106
[phpBB Debug] PHP Notice: in file /includes/session.php on line 916: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 916: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 916: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3528: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3529: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3530: Cannot modify header information - headers already sent by (output started at /common.php:106)
Will's World • View topic - loop a sprite set number of times

loop a sprite set number of times

a section for more in-depth help and explanation

Moderator: FLASH-X

loop a sprite set number of times

Postby mobosof on Sat Mar 03, 2007 5:59 pm

need to loop a sprite but only xxx times?

loop a sprite x times......

onLoad () {
howmany= 0;
}
onFrame (YOURLASTFRAME) {
howmany=howmany+ 1;
if (howmany < //example 10...HOWMANYTIMESTOLOOP) {
gotoAndPlay(1);
} else {
stop();
}
}
PLEASE VOTE FOR ME AT WEBBIEWORLD! :)

http://www.webbieworld.com/vote.asp?recordno=318509
User avatar
mobosof
Site Admin
 
Posts: 2806
Joined: Fri Feb 20, 2004 7:33 pm
Location: uk

Return to TUTORIALS

Who is online

Users browsing this forum: No registered users and 1 guest

cron