Whuddup guys?
I’m fairly new here, but I hope you flash masters will be able to help me out. I’m working on my first ever flash website, which is my portfolio site.
http://heythequickness.com/flashsite/
Now, one thing im having trouble on is when you click on digital art, I don’t know how to get the pictures to center. They’re being loaded in there via .xml. The digital art page is a loaded movieclip, digitalart.swf and within that swf is another holder called galleryHolder that is the exact same size as the stage of digitalart.swf, so the holder is pretty much taking up the entire stage of digitalart.swf. Anyways, I want to have the loaded pictures center in the holder, but I have looked in google and cannot find a way to do this that relates to the way i built the gallery. I hope someone here can provide a good way to work around this.
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var currentPicture:Number;
x.onLoad = function(){
var photos:Array = this.firstChild.childNodes;
for(i=0;i<photos.length;i++){
urls.push(photos*.attributes.url);
}
galleryHolder.loadMovie(urls[0]);
currentPicture = 0;
}
x.load(“digitalartphotos.xml”);
digitalLeft.onRelease = function(){
if(currentPicture > 0){
currentPicture–;
galleryHolder.loadMovie(urls[currentPicture]);
}
}
digitalRight.onRelease = function(){
if(currentPicture < urls.length-1){
currentPicture++;
galleryHolder.loadMovie(urls[currentPicture]);
}
}
galleryLoader._visible = false;
and the galleryLoader’s registration point is in the top left corner.
Also, on my gallery, should i build a smaller preloader for each image being loaded? If so, do I have to rebuild the entire actionscript to include things such as moviecliploader and listeners?
I will upload the fla files if that will be extra helpful. Thank you all so much!