开发者

Flash - slowly loading external files

I've been using flash functionality in order to f开发者_开发百科ill in dynamic text variable with an external data. The script works fine, except that now runs very slow - around 30 seconds or so.

myData = new LoadVars();
            System.useCodepage  =  true;
            myData.load("get_content.php?id="+_root.id); //get external content
            myData.onLoad = function(success){

            if (success){
            my_dynamic_text.htmlText = this.content; //attach the read content to the my_dynamic_text varialble
            }
        }

Do you know where might be the problem?


The scrollbar UIScrollBar is just added to the textarea component(my_dynamic_text) graphically - to scroll it up and down automatically. No other onEnterFrame actions or loops except the only line before the whole code: System.security.allowDomain("http://mydomain.com");

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜