# For statement not quite working

**URL:** <https://forum.kirupa.com/t/for-statement-not-quite-working/174305>\
**Category:** Uncategorized\
**Created:** [January 4, 2006, 3:37pm UTC](https://forum.kirupa.com/t/for-statement-not-quite-working/174305 "2006-01-04T15:37:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul\_ferrie](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@paul\_ferrie](https://forum.kirupa.com/u/paul_ferrie)\
**Post date:** [January 4, 2006, 3:37pm UTC](https://forum.kirupa.com/t/for-statement-not-quite-working/174305/1 "2006-01-04T15:37:03Z")

</div>

ActionScript Code:  
[FONT=Courier New][LEFT]\</p\>  
\<p\>function flasher COLOR=#66cc66[/COLOR] [COLOR=#66cc66]{[/COLOR]\</p\>  
\<p\> [COLOR=#0066cc]trace[/COLOR] [COLOR=#66cc66]([/COLOR][COLOR=#ff0000]“flasher running”[/COLOR][COLOR=#66cc66])[/COLOR];\</p\>  
\<p\> count = [COLOR=#cc66cc]20[/COLOR];\</p\>  
\<p\> [COLOR=#b1b100]for[/COLOR] [COLOR=#66cc66]([/COLOR]i = [COLOR=#cc66cc]0[/COLOR]; i \< count; i++[COLOR=#66cc66])[/COLOR] [COLOR=#66cc66]{[/COLOR]\</p\>  
\<p\> flashs = [COLOR=#66cc66]([/COLOR]i % [COLOR=#cc66cc]5[/COLOR][COLOR=#66cc66])[/COLOR] ? [COLOR=#ff0000]“0”[/COLOR] : [COLOR=#ff0000]“1”[/COLOR];\</p\>  
\<p\> [COLOR=#0066cc]trace[/COLOR] [COLOR=#66cc66]([/COLOR][COLOR=#ff0000]“flasher=”[/COLOR] + flashs[COLOR=#66cc66])[/COLOR];\</p\>  
\<p\> win11.[COLOR=#0066cc]\_visible[/COLOR] = flashs;\</p\>  
\<p\> [COLOR=#66cc66]}[/COLOR]\</p\>  
\<p\>[COLOR=#66cc66]}[/COLOR]\</p\>  
\<p\>  
[/LEFT]  
[/FONT]

If i am right this should make win11 flicker 4 times but it aint:confused:  
I dont need to use a onEnterFrame for this do i?
