PDA

View Full Version : scroll pane blinking


zedder
01-04-2008, 12:29 PM
i'm using scrollpane component to load movieclip onclick button,
every time i load a movie all the content is refreshed and this cause blinking
very annoing.
How can i add the movieclip avoiding blinking?
here a piece of code i'm using...i'mtrying invalidate and redraw withou results

function scrollPaneLoadTxt(instance:Object,str:String,row:N umber,nick:String,sizeN:Number,act:String,color,bo ld,italic) {
if (instance instanceof mx.containers.ScrollPane) {
delete _root.onEnterFrame;
instanceListener = new Object();
instanceListener.complete = function(evtObject) {
// Load txt into the loaded movie clip
loadTxt(evtObject.target,str,row,nick,sizeN,act,co lor,bold,italic,instance);
//instance.redraw(true);
//instance.invalidate();
instance.vPosition=ver;

};
ver=ver+30;

instance.addEventListener("complete", instanceListener);
scroll_sp.contentPath = "clips.swf";
//instance.refreshPane();
}
}