Hi,
I’m trying to have an external jpeg load into a scrollpane. Everything is working fine, I’ve even got a preloader for the jpeg. Only thing is that the loaded jpeg doesn’t fit get masked by the scrollpane, and the scrollpane doesn’t give a scrollbar to move the jpeg.
Here is the code I’ve used…
champscroll.loadMovie("http://www.sportstv.eu.com/ChampionshipList.jpg");
loadingBar._xscale = 1;
loadingBar.onEnterFrame = function(){
kBytesLoaded = this._parent.champscroll.getBytesLoaded() / 1024;
kBytesTotal = this._parent.champscroll.getBytesTotal() / 1024;
percentage = Math.round(kBytesLoaded / kBytesTotal * 100);
this._xscale = percentage;
if (percentage < 99.9) {
loadingBar._alpha = 100;
bar2box._alpha = 100;
}
if (percentage == 100) {
delete this.onEnterFrame;
loadingBar._alpha = 0;
bar2box._alpha = 0;
}
}
loadingBar and bar2box are parts of the preloader. champscroll is the scrollpane and ChampionshipList.jpg is the external jpeg, obviously.
Does anyone have any ideas? I’ve tried to use redraw and refreshPane after the above code but they didn’t work.
Thanks for any help.