Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/12/2007, 08:06
shinotriana
 
Fecha de Ingreso: septiembre-2007
Mensajes: 104
Antigüedad: 16 años, 6 meses
Puntos: 1
Re: ayuda con galeria xml

el código es bastante largo por eso no se donde estan los botones los mc,,,me pierdooo¡¡¡jejeje. Es el siguiente (te lo divido en tres mensajes porque no me deja ponerlo todo seguido):



[HTML]/*
** CURRENT VERSION **
+ Fixed List Loader issues

--- Update 14
+ Fixed album placement
+ Fixed depth issues
+ Multiple image lists

--- Update 13
+ Depth issues fixed
+ Less CPU intensive
+ Slideshow feature
+ Fixed brightness code
+ Fixed go to feature
+ Variable image sizes (Allows landscape/potrait)
+ Fade type is optional (Brightness or alpha)
+ Variable descriptions
+ Links open up a site on double click (self, blank, parent or top defined in XML for each item)

--- Update 12
+ Supports same-domain paths
+ Easier to use go to field
+ Items that are not at front are not grown to full size
+ Now changes brightness instead of fading off the edges
+ Fixed reflections

--- Update 11
'Thanks to DarkMotion and my little brother for the new album art'
+ Images snap to size (autoJump)
+ Default messages for missing information
+ Invalid image errors fixed
+ Better distortion
+ Less CPU usage for artwork
+ Go to field

--- Update 10
+ Fixed reflection depths
+ Solid-Transparent reflections
+ Blur for reflections
+ Fixed the last artwork loading (Accidentally took it out in the last update)

--- Update 9
+ Enhanced MouseWheel functioning
+ Fixed Mouse and Keyboard skipping bugs
+ More intelligent loading routines
+ Fixed alternative artwork display

--- Update 8
+ XML information
+ Dynamically loaded artork

--- Update 7
- Resizing jump
- Variable changes for items (the excessDisplay is no longer necessary)
+ Masking
+ Artwork's heights now change too
+ Scrollbar snaps
+ Scrollbar keeps scrolling while bar is clicked
+ Maximum scroll speeds, change maxSlide to change this... to not use this, set it really high, as in 3000

--- Update 6
- Creation of new MC for each artwork
+ Fixed Scrollbar (Compatible for varying lengths)
+ Less CPU Intensive

--- Update 5
+ code shortened

--- Update 4
- small resizing glitches
- reflection onPress events
+ fixed gradient fills for reflections

--- Update 3
+ Reflections
- Clicking Left/Right Double Jump Bugs

--- Update 2
+ Clicks on scrollbar work
+ Fullscreen thing (only using fcommand)
+ Improved skipping buttons

--- Update 1
+ Scrollbar
+ Skip buttons
+ Mouse Wheel interaction
+ Second Example Album
+ Proper "Fake" Song Information

** Version 1 **
*/
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
var root:MovieClip = this;
var myMO:Object;
var myKO:Object;
var loadedAll:Boolean;
var distance:Number;
var autoJump:Number = .15;
// The distance to automatically resize to the exact target sizes
var maxSlide:Number = 100;
// The maximum slide speed
var minScaleDistance:Number = 100;
// The minimum distance from centerX to scale
var deleteMinDistance:Number = 0;
// The minimum point to delete items
var doubleClickURL:Boolean = true;
// Whether or not to open a link on double click
var deleteMaxDistance:Number = 500;
// The maximum point to delete items
var doubleClickRegister:Number = 500;
// The maximum delay (in milliseconds) to register as a double click
var _CDProportions:String = "auto";
// auto or resize
// auto will KEEP proportions
// Anything else will resize the art
var frontCDWidth:Number = 200;
// If _CDProportions is NOT auto art will be resized to have a width of this when it's at the front
// Otherwise, if _CDProportions is auto art will be allowed to have a MAXIMUM width of this when it's at the front
var frontCDHeight:Number = 200;
// If _CDProportions is NOT auto art will be resized to have a width of this when it's at the front
// Otherwise, if _CDProportions is auto art will be allowed to have a MAXIMUM width of this when it's at the front
var shelveCDHeight:Number = 150;
// If _CDProportions is NOT auto art will be resized to have a height of this when it's at the front
// Otherwise, if _CDProportions is auto art will be allowed to have a MAXIMUM height of this when it's at the front
var shelveCDWidth:Number = 120;
// If _CDProportions is NOT auto art will be resized to have a width of this when it's NOT at the front
// Otherwise, if _CDProportions is auto art will be allowed to have a MAXIMUM width of this when it's NOT at the front
var shelveCDSpacing:Number = 50;
// If _CDProportions is NOT auto art will be resized to have a height of this when it's NOT at the front
// Otherwise, if _CDProportions is auto art will be allowed to have a MAXIMUM height of this when it's NOT at the front
var centerDistance:Number = 60;
// The x distance from the front artwork to the preceding and succeding art
var albumEase:Number = 3;
// The ease speed for the art
var angle:Number = 8;
// The angle of art not at the front
var fadePointMin:Number = 10;
// Minimum point to fade
var fadePointMax:Number = 490;
// Maximum point to fade
var fadeDist:Number = 50;
// How far to fade for
var fadeType:String = "brightness";
// alpha or brightness
// If set to alpha, art will have an alpha fade to the sides
// If set to brightness, art will have a brightness fade to the sides
var current:Number = 3;
// The starting album number
var centerX:Number = Stage.width/2;
// Where to start the placement from
var centerY:Number = 155;
// Where to place art on the y axis
var clickDelay:Number = 750;
// When a user presses the scrollbar's track, how long to wait before skipping to the next/previous
var scrollBarStart:Number = 20;
// Distance from the left in the scrollBar movieclip to allow the scrollbar
var scrollerDelay:Number = 150;
// When the left/right scrollbar arrows are pressed, the delay before skipping to the next/previous
var scrollBarStop:Number = scrollBar.scroller._width+31;
// Distance from the right in the scrollBar movieclip to allow the scrollbar
var reflectionBackgroundColour:Number = 0x000000;
// The colour to place behind the reflections
var reflectionBlurX:Number = 0;
// How much blur to put on the x of reflections
var reflectionBlurY:Number = 0;
// How much blur to put on the y of reflections
var reflectionQuality:Number = 3;
// The quality of the blur of reflections - 1,2,3
var reflectionSpace:Number = 0;
// How far space on the y between the art and the reflection
var reflectionAlpha:Number = 100;
// The alpha of the reflection
var reflectionRotation:Number = 90;
// The angle to fade the reflections (in degrees)
var reflectionFocalPointRatio:Number = 0.3;
// The focal point ratio of the reflections
var reflectionFillType:String = "linear";
// The fill type of the reflections gradient
var reflectionSpreadMethod:String = "pad";
// The spead method of the reflections gradient
var reflectionInterpolationMethod:String = "RGB";
// The interpolation method of the reflections gradient
var slideshowLooping:Boolean = true;
// Whether or not to loop the slidehow feature
var slideshowSpeed:Number = 2500;
// The speed (in milliseconds) of the slidehow feature
var unknownSong:String = "Unknown Title";
// Default caption for song's titles
var unknownArtist:String = "Unknown Artist";
// Default caption for song's artists
var unknownAlbum:String = "Unknown Album";
// Default caption for song's albums
var infostruc:Array = [];
// LEAVE THIS (unless you know what you're doing =] `)
var reflectionColors:Array = [0x000000, 0x000000];
// The colours of the reflections
var reflectionAlphas:Array = [100, 50];
// The alphas of the reflections gradients
var reflectionRatios:Array = [50, 255];
// The ratios of the reflections gradients
var xmlData:XML = new XML();
MovieClip.prototype.setSides = function(x1:Number, y1:Number, x2:Number, y2:Number, x3:Number, y3:Number, x4:Number, y4:Number):Void {
this.px1 = x1;
this.py1 = y1;
this.px2 = x2;
this.py2 = y2;
this.px3 = x3;
this.py3 = y3;
this.px4 = x4;
this.py4 = y4;
};