Skip to content

Instantly share code, notes, and snippets.

@jonathantorres
Created February 17, 2010 01:28
Show Gist options
  • Save jonathantorres/306175 to your computer and use it in GitHub Desktop.
Save jonathantorres/306175 to your computer and use it in GitHub Desktop.
//LOADS THE XML PASSED IN THE CONSTRUCTOR BROWSER GALLERY - BrowserGallery(xmlString:String)
xml = new XML();
xmlURL = new URLRequest(xmlString);
xmlLoader = new URLLoader(xmlURL);
//EVENT LISTENERS TO THE XML, PICTURES MOVIE CLIP AND THE ARROWS
xmlLoader.addEventListener(Event.COMPLETE, loadXML);
pictures.addEventListener(MouseEvent.ROLL_OVER, displayArrows);
pictures.addEventListener(MouseEvent.ROLL_OUT, hideArrows);
arrowLeftSquare.addEventListener(MouseEvent.CLICK, prevImage);
arrowRightSquare.addEventListener(MouseEvent.CLICK, nextImage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment