PDA

View Full Version : problem in using scrollpane, scrollbar disappear


yeung1073
02-28-2006, 01:54 PM
cspThumbnails.contentPath = "EmptyMCSymbol";
for (var i = 0; i<aSlides.length; i++)
{
cspThumbnails.content.createEmptyMovieClip("mcHolder"+i, cspThumbnails.content.getNextHighestDepth());
cspThumbnails.content["mcHolder"+i].createEmptyMovieClip("mcJPEG", 1);
cspThumbnails.content["mcHolder"+i].mcJPEG.loadMovie(aSlides[i].thumbnail);
cspThumbnails.content["mcHolder"+i]._x = i*70+10;
cspThumbnails.content["mcHolder"+i].index = i;
cspThumbnails.content["mcHolder"+i].onRelease = function()
{
this._parent._parent._parent.loadFullImage(this.in dex);
};

}

i am doing a photogallery component, while my code above which is using a scrollpane component cannot work, the scroll bar cannot appear. while the above code is work in my non component version.

cspThumbnails is the instance of scrollpane.


sorr............as i forget to post all of the code in this part >.<""

skjc
02-28-2006, 02:02 PM
look up contentPath in the help

yeung1073
02-28-2006, 02:53 PM
look up contentPath in the help

sorr i have miss some of the code, here i have modified it

yeung1073
03-01-2006, 01:15 AM
can any one help me???
still can't find the solution