开发者

Flash - slowly loading external files

开发者 https://www.devze.com 2023-02-02 00:28 出处:网络
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.

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

精彩评论

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

关注公众号