Skip to main content
January 13, 2008
Question

Passing i value to a onRollover funcion HELP!!!!

  • January 13, 2008
  • 2 replies
  • 265 views
I am trying to make a row of buttons depending on how many a person wants using flash and xml. But for some reason the rollOver function isnt working and the thumbnail images are not being set. Can some one hep me please.

for (i=0;i<_root.ThumbnailsImages.length;){
var t = _root.LowerSection.Thumbnails.attachMovie("LowerSection_Thumbnail_Container", "LowerSection_Thumbnail_Container"+i, i);

t._x = t._width*i;

t.ThumbPic.contentPath=_root.ThumbnailsImages ;

t.Testimonial.text = caption
;
var TestimonialColor:TextFormat = new TextFormat();
TestimonialColor.color = ColorCoding+_root.captionColor ;
t.Testimonial.setTextFormat(TestimonialColor);

t.Thumbnail_Button.onRollOver = function(i){
_root.LowerSection.Video_Info.ClickedTitle.text = _root.clickedtitle
;
_root.LowerSection.Video_Info.ClickedCaption.text = _root.clickedcaption ;
}

i++;
}
This topic has been closed for replies.

2 replies

January 14, 2008
ok I have changed the section that places the thumbnails to this

t.Thumbnail_Button.PlaceImageHere.contentPath = _root.ThumbnailsImages ;

and I placed a loader inside the Thumbnail_Button called PlaceImageHere but the image doesnt show up. Any ideas?
January 13, 2008
You should use the attach code button. If you type in [ i ], it simply makes the remaining text italic and it makes it hard to see what is missing in your script.
January 13, 2008
can you show me an example pls