Archive for May, 2008

Flash Actionscript Smooth Horizontal Text Scrolling

Well sounds simple. But it caused me a severe headache.

I created a movieclip with a text field, that needed to scroll horizontally from left to right.
The text must be readable because you must type this word before it reaches the end…

The movieclip graphics moved very smoothly, only the textfield wasn’t.

To solve the problem I needed to perform the following operations:

  • Set the anti-alias method for this textfield to “Optimize for Animation”
  • Well that was not enough, after a lot of trying, I found out I also needed to Embed the font of the textfield, for a completely smooth animation..

    Very frustrating…
    And I don’t like the solution because my swf file is bigger… But it will do for now..

    PHP’s Frustrating Flush

    PHP not listening when you try to flush data. Try the following, it helped for me:

    @ob_flush(); // try a normal flush
    flush();

    If PHP isn’t flushing it could be your webserver that’s collecting your output for gzipping:


    mod_gzip_on no

    This worked for me..