Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function _xmlCompleteHandler(event:LoaderEvent):void {
- _slides = [];
- var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
- var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
- //loop through each <image /> node and create a Slide object for each.
- for each (var image:XML in imageList) {
- _slides.push( new Slide(image.@name,
- image.@description,
- new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",
- {
- name:image.@name + "Thumb",
- width:_THUMB_WIDTH,
- height:_THUMB_HEIGHT,
- //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
- //x:260, y:320,//doesn't work here but works in line 69
- scaleMode:"proportionalInside",
- bgColor:0x000000,
- estimatedBytes:13000,
- onFail:_imageFailHandler}),
- new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
- {
- name:image.@name + "Image",
- width:_IMAGE_WIDTH,
- height:_IMAGE_HEIGHT,
- //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
- x:0, y:144,
- scaleMode:"proportionalInside",
- bgColor:0x000000,
- estimatedBytes:820000,
- onFail:_imageFailHandler})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement