|
-
thanks for the reply, angel,
I just tried getting rid of some files in the server thinking It could be a file size related issue, but no change. The folders are exactly the same either locally or in the server. I can only see the thumbs loaded. I noticed it wouldn't load the png image files even locally at first when they were over a certain size, but I can't figure out what may be going on when i have changed their size and I even tried a different format (jpgs) that wouldn't work either...
this is the code in my fla and this is my site's: http://webs.ono.com/jpdurba/
stop();
var myGalleryXML:XML = new XML();
myGalleryXML.ignoreWhite = true;
myGalleryXML.load("gallery.xml");
myGalleryXML.onLoad = function():Void {
gallery_x = myGalleryXML.firstChild.attributes.gallery_x;
gallery_y = myGalleryXML.firstChild.attributes.gallery_y;
gallery_width = myGalleryXML.firstChild.attributes.gallery_width;
gallery_height = myGalleryXML.firstChild.attributes.gallery_height;
myImages = myGalleryXML.firstChild.childNodes;
myImagesTotal = myImages.length;
thumb_height = myGalleryXML.firstChild.attributes.thumb_height;
thumb_width = myGalleryXML.firstChild.attributes.thumb_width;
full_x = myGalleryXML.firstChild.attributes.full_x;
full_y = myGalleryXML.firstChild.attributes.full_y;
callThumbs();
};
function callThumbs():Void {
createEmptyMovieClip("container_mc", getNextHighestDepth());
container_mc._x = gallery_x;
container_mc._y = gallery_y;
var clipLoader:MovieClipLoader = new MovieClipLoader();
var preloader:Object = new Object();
clipLoader.addListener(preloader);
for (i=0; i<myImagesTotal; i++) {
thumbURL = myImages[i].attributes.thumb_url;
myThumb_mc = container_mc.createEmptyMovieClip(i, container_mc.getNextHighestDepth());
myThumb_mc._x = thumb_width*i;
clipLoader.loadClip("thumbs/"+thumbURL, myThumb_mc);
preloader.onLoadComplete = function(target):Void {
target.onRelease = function():Void {
callFullImage(this._name);
};
target.onRollOver = function():Void {
this._alpha = 75;
};
target.onRollOut = function():Void {
this._alpha = 100;
};
};
}
}
function callFullImage(myNumber):Void {
myURL = myImages[myNumber].attributes.full_url;
createEmptyMovieClip("fullImage_mc", getNextHighestDepth());
fullImage_mc._x = full_x;
fullImage_mc._y = full_y;
var fullClipLoader = new MovieClipLoader();
fullClipLoader.loadClip("imatges/"+myURL, fullImage_mc);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|