How to set up a scrollpane with thumbnails and loads larger versions?
this should not hard. i'm trying make scrollpane has thumbnails buttons. when click button loads larger version right above scrollpane. know of tutorial this? seems linkage issue, or maybe "parent" or "root" issue? i'm not getting errors.
i have made simple scrollpane components in flash. have thumbnails in movie linked scrollpane , have made each 1 button. not able larger version load when test movie , click on 1 of thumbnails. here code have put movie linked scrollpane:
var xpos:number = 275;
var ypos:number = 180;
var jpg:movieclip;
var loader:loader = new loader();
var defaultimage:urlrequest = new urlrequest("swfs/mixed_media/one.jpg");
loader.load(defaultimage);
loader.x =xpos;
loader.y =ypos;
addchild(loader);
///////////////////////////////////////////////////////////////////
//btns universal function
function btnclick(event:mouseevent):void{
removechild(loader);
var newjpgrequest:urlrequest = new urlrequest("swfs/mixed_media/"+event.target.name+".jpg");
loader.load(newjpgrequest);
loader.x =xpos;
loader.y =ypos;
addchild(loader);
}
//btn listeners
one.addeventlistener(mouseevent.click, btnclick);
two.addeventlistener(mouseevent.click, btnclick);
three.addeventlistener(mouseevent.click, btnclick);
four.addeventlistener(mouseevent.click, btnclick);
five.addeventlistener(mouseevent.click, btnclick);
six.addeventlistener(mouseevent.click, btnclick);
More discussions in ActionScript 3
adobe
Comments
Post a Comment