hi
i have made a gallery from the tutorials which works fine. the images are loaded dynamically from xml file. the images are of diff sizes. i have made a rectangle (movieclip: rect) and my main clip which is empty movieclip (movieclip: holder). my question is how can i resize the image and the rectangle simultaneously.i have made an attachment of the outline
the code is below
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var whoIsOn:Number;
x.onLoad = function(){
var photos:Array = this.firstChild.childNodes;
for(i=0;i<photos.length;i++){
urls.push(photos*.attributes.url);
}
holder.loadMovie(urls[0]);
whoIsOn=0;
}
x.load("images.xml");
previous.onRelease = function(){
if(whoIsOn > 0){
whoIsOn--;
holder.loadMovie(urls[whoIsOn]);
}
}
next.onRelease = function(){
if(whoIsOn < urls.length-1){
whoIsOn++;
holder.loadMovie(urls[whoIsOn]);
}
}
thx in adv