Hi.
I’m making a simple non-stop text scroller with the help of AS, but I’ve been able to see that the scroll itself is not smooth and, what’s worse, it devours my PC resources when played in my AMD Athlon 1200 (which power I think should not be compromised by this simple text scroll ;))
What I’ve done is the following:
I’ve made a big dialog box where all text will be inside (I’ve made it big because it will contain a lot of dynamic text).
Basically, I’ve found 2 limitations:
The first one is that when text is being scrolled it stutters, movement is whatever but smooth…
The AS I’ve used is this:
[AS]this.bigtext.onEnterFrame = function()
{
if (this._y >-1750) {
this._y -=2;
} else {
this._y =210;
}
};[/AS]
You can see by the numbers (-1750) that the text box is huge! When it reaches that number it starts all over again from [COLOR=“Blue”]_y[/COLOR] position at 210.
In order to get a smoother movement I did the following:
- In the text box, I tried different smooth parameters (Anti-alias for readability, animation…) but nothing improved, so I let it set to “Anti-alias for readability”).
- I tried different values for the increasing [COLOR=“blue”]_y[/COLOR] number but “2” seems to be the most stable and visually correct among them all.
- I set the movie to 40 fps, however, irregular and choppy movement is still there.
- I exported it for Flash 8 Player but no improvement (I had heard that Flash 8 Player had been improved a lot for several animations all at once…but must I be forgetting any setting for this?).
What do you suggest me to do?
The second issue is related to updating the text: I’m using dynamic text to be displayed in the box which is loaded from a text file. However, I see that the longer I make the text file, the bigger I’ll have to make the box for the text file (and change the conditional [COLOR=“blue”]_y[/COLOR] values in order to let it all be displayed). This is an annoying issue that I’d like to improve too, so that there’s no need to retouch the box size everytime that additional text is added.
Any ideas for this?
For those of you who want to have a look at my simple Flash 8 .fla file,here it is.
Thank you very much.
Manare