hi, im having the worst time with this. i want the images to load on the stage as i clic on them. ive tried everything i can and cant get it to work. please help me figure this out
thanx
#  /  posted on Oct 20, 2008
Home / /community/ / Components Discussions / dock menu 2.0
hi, im having the worst time with this. i want the images to load on the stage as i clic on them. ive tried everything i can and cant get it to work. please help me figure this out
thanx
Hi,
To achieve what you're saying you should do this:
Create an empty movie clip on the stage, say Holder.
In the dockmenu_container symbol's code, find the getURL function. Instead of it use
_root.Holder.loadMovie(imagesURL[i]);
where imagesURL is an array which holds the paths of the images you wish to load.
Hope this helps,
Snowcat
hey snowcat, thanx for the response!!!
forgive my ignorance but cant get it to work @#$%
i did this
inserted a new mc called Holder. dragged it to the stage. jumped into the code and found:
MovieClip.prototype.onClick = function(i) {
this.onPress = function() {
getURL(urls[i], target);
}
so i changed it to
MovieClip.prototype.onClick = function(i) {
this.onPress = function() {
_root.Holder.loadMovie(imagesURL[i]);
}
and it doesnt work. what am i doing wrong?
sorry man, and thank you
Did you named the instance name of the Holder symbol to Holder?
wow i got it!!!!!!!!!!!!!!
i just changed the code a lil bit
wrote
_root.mediadisplay.loadMovie(images[i]);
i dont really know what it means but its working beautifully. i just need to resize the images now
thanx for the help!!!
great work!!!!!!
OK THERES A NEW PROBLEM NOW. IM LOADING THE IMAGES INTO THE IMAGE HOLDER BUT THEY ARE DIFFERENT SIZES SO I NEED TO GET THEM CENTERED CAUSE IM GETTING THEM ALL ALIGNED TO THE LEFT.
HOW CAN I GET THIS RIGHT?
THANX
Well you'll have to use loadClip instead of loadMovie, and in the onLoadInit event you'll have to resize and allign your image. Check out the Flash manual for these.
Regards,
Snowcat
hi - can you point me where to find the function that resizes the thumbnails? would like them to resize only by 100% when rolled over.
thanks
Hi,
When you open the FLA file, double-click the dockmenu_container symbol from the Library and then hit F9 (Actions panel). In there you will find minThumbW, minThumbH, maxThumbW and maxThumbH variables in order to set the width and height of the images for the roll over and roll out states.
Regards,
Snowcat
Please login to post replies.