Advertisement
Advertisement
| 08.29.2008 at 09:24AM PDT, ID: 23689347 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: |
var myGalleryXML = new XML();
myGalleryXML.ignoreWhite = true;
myGalleryXML.load("gallery.xml");
myGalleryXML.onLoad = function() {
_root.gallery_x = myGalleryXML.firstChild.attributes.gallery_x;
_root.gallery_y = myGalleryXML.firstChild.attributes.gallery_y;
_root.gallery_width = myGalleryXML.firstChild.attributes.gallery_width;
_root.gallery_height = myGalleryXML.firstChild.attributes.gallery_height;
_root.myImages = myGalleryXML.firstChild.childNodes;
_root.myImagesTotal = myImages.length;
_root.thumb_height = myGalleryXML.firstChild.attributes.thumb_height;
_root.thumb_width = myGalleryXML.firstChild.attributes.thumb_width;
_root.full_x = myGalleryXML.firstChild.attributes.full_x;
_root.full_y = myGalleryXML.firstChild.attributes.full_y;
callThumbs();
createMask();
thumbsOver();
callFullImage(0);
};
function callThumbs() { _root.createEmptyMovieClip("container_mc",_root.getNextHighestDepth());
container_mc._x = _root.gallery_x;
container_mc._y = _root.gallery_y;
var clipLoader = new MovieClipLoader();
var preloader = new Object();
clipLoader.addListener(preloader);
for (i=0; i<_root.myImagesTotal; i++) {
thumbURL = myImages[i].attributes.thumb_url;
/*create myThumb_Container
which holds "holder" into which you load the image and
holds "bordermc" which is the border around your image
*/
myThumb_Container = container_mc.createEmptyMovieClip(i, container_mc.getNextHighestDepth());
myThumb_Container._y = _root.thumb_height*i*1.25;
myThumb_mc = myThumb_Container.createEmptyMovieClip("holder", myThumb_Container.getNextHighestDepth());
myBorder = myThumb_Container.createEmptyMovieClip("bordermc", myThumb_Container.getNextHighestDepth());
/// draw the border
myBorder.lineStyle(1,0x000000,100);
myBorder.moveTo(0,0);
myBorder.lineTo(_root.thumb_width,0);
myBorder.lineTo(_root.thumb_width,_root.thumb_height);
myBorder.lineTo(0,_root.thumb_height);
myBorder.lineTo(0,0);
////first make all borders visible=false
myBorder._visible = false;
clipLoader.loadClip("photos_thumbs/"+thumbURL,myThumb_mc);
preloader.onLoadComplete = function(target) {
target.onRelease = function() {
//// this._parent._name since we added the myThumb_Container which holds everything
callFullImage(this._parent._name);
/// loop through all thumbs and make border visible=false
for (i=0; i<_root.myImagesTotal; i++) {
var deselectmc:MovieClip = container_mc[i].bordermc;
deselectmc._visible = false;
}
/// make the selected border visible=true
this._parent.bordermc._visible = true;
};
target.onRollOver = function() {
this._alpha = 40;
};
target.onRollOut = function() {
this._alpha = 100;
};
};
}
}
////Listener for fullImage_mc
var fClip = new Object();
fClip.onLoadInit = function(target_mc:MovieClip) {
target_mc.onRelease = function() {
getURL(_root.FullImageLink, "_blank");
};
};
function callFullImage(myNumber) {
myURL = myImages[myNumber].attributes.full_url;
_root.createEmptyMovieClip("fullImage_mc",_root.getNextHighestDepth());
fullImage_mc._x = _root.full_x;
fullImage_mc._y = _root.full_y;
////store the link from XML in _root.FullImageLink
_root.FullImageLink = myImages[myNumber].attributes.thelink;
////////////////////////////////////////////////////
var fullClipLoader = new MovieClipLoader();
fullClipLoader.addListener(fClip);
fullClipLoader.loadClip("photos_full/"+myURL,fullImage_mc);
}
function createMask() {
_root.createEmptyMovieClip("mask_mc",_root.getNextHighestDepth());
mask_mc._x = _root.gallery_x;
mask_mc._y = _root.gallery_y;
mask_mc.beginFill(0x000000,100);
mask_mc.lineTo(_root.gallery_width,0);
mask_mc.lineTo(_root.gallery_width,_root.gallery_height);
mask_mc.lineTo(0,_root.gallery_height);
mask_mc.lineTo(0,0);
container_mc.setMask(mask_mc);
}
container_mc.onRollOver = thumbsOver;
function thumbsOver() {
this.onEnterFrame = scrollThumbs;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollThumbs() {
if (_ymouse<b.yMin || _ymouse>b.yMax || _xmouse<b.xMin || _xmouse>b.xMax) {
this.onRollOver = thumbsOver;
delete this.onEnterFrame;
}
if(container_mc._y >= 10) {
container_mc._y=10
}
if(container_mc._y <= -210) {
container_mc._y=-210
}
var xdist = _ymouse - 100;
container_mc._y += xdist / -10;
}
|