Hi Everyone,
I have been working on a recent project and it requires a dynamic text scrolling horizontally like a marquee. When i use a small amount of text then it works smoothly. But then the text goes up to say around 800 characters or so. Flash 8 doesnt control the animation smoothly enough and it seems jumpy. Any feedback is welcome.
I have selected “Ani-alias for animation” and the scroll the movieclip in the OnEnterFrame event using _x-=2; equivalent to _x=_x-2;
Please guide me.
Many thanx in advance.
im pasting the code used in the movieclip and also the text that has been adjusted in the textfield within the movieclip for you reference.
//code in movieclip
//=======================
onClipEvent(enterFrame)
{
if (_root.animate==true)
{
_x=_x-2;
if (_x<(-_width+100))
{
_x=687.75;
}
}
}
//=======================
//code in frame adding the data
//=======================
scrollmov.textmov0.scrolltext.text="";
scrollmov.textmov0.scrolltext.autoSize=true;
scrollmov.textmov0.scrolltext.text=“Tokyo~temp 73F/23C~20~High 85F/29C Low 75F/24C Isolated Thunderstorms~Seoul~temp 73F/23C~26~High 81F/27C Low 69F/21C Mostly Cloudy~Frankfurt/Main~temp 86F/30C~30~High 95F/35C Low 71F/22C Mostly Sunny~Mexico City~temp 57F/14C~26~High 72F/22C Low 57F/14C Scattered Thunderstorms~Beijing~temp 66F/19C~4~High 76F/24C Low 66F/19C Thunderstorms~Paris~temp 88F/31C~34~High 97F/36C Low 72F/22C Mostly Sunny~Milan~temp 91F/33C~34~High 89F/32C Low 71F/22C Mostly Sunny~Istanbul~temp 84F/29C~34~High 86F/30C Low 71F/22C Sunny~Vienna~temp 88F/31C~30~High 88F/31C Low 67F/19C PM Thunderstorms~Casablanca~temp 77F/25C~32~High 78F/26C Low 69F/21C Mostly Sunny~Munich~temp 84F/29C~34~High 88F/31C Low 64F/18C Mostly Sunny~Rome~temp 86F/30C~34~High 86F/30C Low 72F/22C PM Thunderstorms~Sao Paulo~temp 68F/20C~28~High 81F/27C Low 60F/16C Sunny~Athens~temp 90F/32C~34~High 90F/32C Low 76F/24C Sunny/Wind~Moscow~temp 75F/24C~34~High 76F/24C Low 55F/13C Partly Cloudy~London~temp 81F/27C~30~High 91F/33C Low 67F/19C Sunny~Taipei~temp 84F/29C~11~High 84F/29C Low 78F/26C Thunderstorms/Wind~Washington~temp 73F/23C~34~High 86F/30C Low 72F/22C Isolated Thunderstorms~Monterrey~temp 75F/24C~32~High 99F/37C Low 76F/24C Scattered Thunderstorms~Casablanca~temp 77F/25C~32~High 78F/26C Low 69F/21C Mostly Sunny~Madrid~temp 93F/34C~30~High 100F/38C Low 68F/20C Sunny”;
//=======================
Ive tried using the code kindly sent by Joshua Jonah as
scrollmov.[COLOR=#000080]textmov0[/COLOR].[COLOR=#000080]cacheAsBitmap[/COLOR]COLOR=#000000[/COLOR];
but it still doesnt seem to work. Please help!!!