2 Replies Latest reply on Jun 27, 2011 7:09 AM by kglad

    "ActionScript 2.0 Class scripts may only define class or interface constructs" error help

    gabessdsp Level 1

      I get this error (ActionScript 2.0 Class scripts may only define class or interface constructs) for lines:

      1956

      1978

      1991

      2023

      2116

      2152

      2157

      2162

      2166

      and many more. I will post my code in a second post.

      I can't figure out why I am getting this error and I don't know how to fix it.

        • 1. Re: "ActionScript 2.0 Class scripts may only define class or interface constructs" error help
          gabessdsp Level 1

          Code:

          class net.snowcat.galleries.Banner extends mx.core.UIComponent

          {

              var dispatchEvent, backupSpeed, currentDuration, originalWidth, _bannerWidth, originalHeight, _bannerHeight, banner, currentImage, _settingsXML, inTrans, __get__settingsXML, _imagesXML, __get__imagesXML, _styleCSS, styles, __get__styleCSS, __get__bannerWidth, __get__bannerHeight, _randomImages, __get__randomImages, _randomTransitions, __get__randomTransitions, _imageFitting, __get__imageFitting, _autoStart, __get__autoStart, _firstWithTransition, __get__firstWithTransition, _autoTiming, __get__autoTiming, _pauseOnMouseOver, __get__pauseOnMouseOver, _loadNextImageInBack, __get__loadNextImageInBack, _backgroundColor, __get__backgroundColor, _transitions, __get__transitions, _imageEffects, __get__imageEffects, _preloaderOptions, __get__preloaderOptions, _controlsOptions, __get__controlsOptions, _controlsOrder, __get__controlsOrder, _textOptions, __get__textOptions, _textEffects, __get__textEffects, _textBackground, __get__textBackground, _buttonOptions, __get__buttonOptions, _buttonColors, __get__buttonColors, _buttonColorsOver, __get__buttonColorsOver, _numberColors, __get__numberColors, _numberColorsOver, __get__numberColorsOver, _selectedNumberColors, __get__selectedNumberColors, flashxml, createEmptyMovieClip, firstImage, controlsCreated, mouseIsInside, textIsOn, mOverDis, styleloaded, numbersCreated, overNext, overNumbersBack, overNumbers, currentMask, xmlSettings, req, photos, images, info, head, body, urls, target, durations, checked, pressed, order, customTrans, imageEffect, ieDuration, ieDirection, hPos, vPos, tWid, tHei, tSlide, tAppear, tFunction, tType, zoomPercent, hZoomPos, vZoomPos, xmlImages, reqImag, play, container, displayer, item, nextImage, lastImage, seq, controls, prevBut, playpauseBut, timer, no, nextBut, numbersBack, fs, inIndex, outIndex, holder, description, loadListener, mcLoader, pre, dividedInterval, currentTrans, currentEffect, currentZoomPercent, currentDirection, currentHZoomPos, currentVZoomPos, masc, currentTween1, previousTween1, currentTween2, previousTween2, hW, hH, bannerRatio, holderRatio, e, d, h, v, endW, endH, previousImage, itsnew, buffer, getURL, back, mask, menu, tw1, headandbody, headtxt, bodytxt, coord, beginHead, finishHead, beginBody, finishBody, easingFunc, __set__autoStart, __set__autoTiming, __set__backgroundColor, __set__bannerHeight, __set__bannerWidth, __set__buttonColors, __set__buttonColorsOver, __set__buttonOptions, __set__controlsOptions, __set__controlsOrder, __set__firstWithTransition, __set__imageEffects, __set__imageFitting, __set__imagesXML, __set__loadNextImageInBack, __set__numberColors, __set__numberColorsOver, __set__pauseOnMouseOver, __set__preloaderOptions, __set__randomImages, __set__randomTransitions, __set__selectedNumberColors, __set__settingsXML, __set__styleCSS, __set__textBackground, __set__textEffects, __set__textOptions, __set__transitions;

              function Banner()

              {

                  super();

                  this.checkCommercial();

                  function onEnterFrame()

                  {

                      if (Stage.displayState == "normal")

                      {

                          trace (Stage.displayState);

                          if (inFullScreen)

                          {

                              Stage.displayState = "normal";

                              this.dispatchEvent({type: "restore"});

                              currentDuration = backupSpeed;

                              _bannerWidth = originalWidth;

                              _bannerHeight = originalHeight;

                              inFullScreen = false;

                              this.createBackground();

                              banner[currentImage].holder._x = banner[currentImage].holder._y = 0;

                              banner[currentImage].masc._width = _bannerWidth + 4;

                              banner[currentImage].masc._height = _bannerHeight + 4;

                              this.createControls();

                              this.attachPreloader();

                              this.fitImage(currentImage);

                          } // end if

                      } // end if

                  } // End of the function

              } // End of the function

              function set settingsXML(s)

              {

                  var _loc2 = _settingsXML;

                  _settingsXML = s;

                  if (constructed)

                  {

                      if (!inTrans)

                      {

                          this.init();

                      }

                      else

                      {

                          _settingsXML = _loc2;

                      } // end if

                  } // end else if

                  //return (this.settingsXML());

                  null;

              } // End of the function

              function get settingsXML()

              {

                  return (_settingsXML);

              } // End of the function

              function set imagesXML(s)

              {

                  _imagesXML = s;

                  //return (this.imagesXML());

                  null;

              } // End of the function

              function get imagesXML()

              {

                  return (_imagesXML);

              } // End of the function

              function set styleCSS(v)

              {

                  _styleCSS = v;

                  if (constructed)

                  {

                      styles.load(_styleCSS);

                  } // end if

                  //return (this.styleCSS());

                  null;

              } // End of the function

              function get styleCSS()

              {

                  return (_styleCSS);

              } // End of the function

              function set bannerWidth(v)

              {

                  _bannerWidth = v;

                  if (constructed)

                  {

                      this.xmlLoadImages(true);

                  } // end if

                  //return (this.bannerWidth());

                  null;

              } // End of the function

              function get bannerWidth()

              {

                  return (_bannerWidth);

              } // End of the function

              function set bannerHeight(v)

              {

                  _bannerHeight = v;

                  if (constructed)

                  {

                      this.xmlLoadImages(true);

                  } // end if

                  //return (this.bannerHeight());

                  null;

              } // End of the function

              function get bannerHeight()

              {

                  return (_bannerHeight);

              } // End of the function

              function set randomImages(v)

              {

                  _randomImages = v;

                  //return (this.randomImages());

                  null;

              } // End of the function

              function get randomImages()

              {

                  return (_randomImages);

              } // End of the function

              function set randomTransitions(v)

              {

                  _randomTransitions = v;

                  //return (this.randomTransitions());

                  null;

              } // End of the function

              function get randomTransitions()

              {

                  return (_randomTransitions);

              } // End of the function

              function set imageFitting(v)

              {

                  _imageFitting = v;

                  //return (this.imageFitting());

                  null;

              } // End of the function

              function get imageFitting()

              {

                  return (_imageFitting);

              } // End of the function

              function set autoStart(v)

              {

                  _autoStart = v;

                  if (constructed)

                  {

                      this.xmlLoadImages(true);

                  } // end if

                  //return (this.autoStart());

                  null;

              } // End of the function

              function get autoStart()

              {

                  return (_autoStart);

              } // End of the function

              function set firstWithTransition(v)

              {

                  _firstWithTransition = v;

                  if (constructed)

                  {

                      this.xmlLoadImages(true);

                  } // end if

                  //return (this.firstWithTransition());

                  null;

              } // End of the function

              function get firstWithTransition()

              {

                  return (_firstWithTransition);

              } // End of the function

              function set autoTiming(v)

              {

                  _autoTiming = v;

                  if (constructed)

                  {

                      this.xmlLoadImages(true);

                  } // end if

                  //return (this.autoTiming());

                  null;

              } // End of the function

              function get autoTiming()

              {

                  return (_autoTiming);

              } // End of the function

              function set pauseOnMouseOver(v)

              {

                  _pauseOnMouseOver = v;

                  //return (this.pauseOnMouseOver());

                  null;

              } // End of the function

              function get pauseOnMouseOver()

              {

                  return (_pauseOnMouseOver);

              } // End of the function

              function set loadNextImageInBack(v)

              {

                  _loadNextImageInBack = v;

                  //return (this.loadNextImageInBack());

                  null;

              } // End of the function

              function get loadNextImageInBack()

              {

                  return (_loadNextImageInBack);

              } // End of the function

              function set backgroundColor(c)

              {

                  _backgroundColor = c;

                  if (constructed)

                  {

                      this.xmlLoadImages(true);

                  } // end if

                  //return (this.backgroundColor());

                  null;

              } // End of the function

              function get backgroundColor()

              {

                  return (_backgroundColor);

              } // End of the function

              function set transitions(v)

              {

                  _transitions = v;

                  if (constructed)

                  {

                      this.checkTrans();

                  } // end if

                  //return (this.transitions());

                  null;

              } // End of the function

              function get transitions()

              {

                  return (_transitions);

              } // End of the function

              function set imageEffects(v)

              {

                  _imageEffects = v;

                  //return (this.imageEffects());

                  null;

              } // End of the function

              function get imageEffects()

              {

                  return (_imageEffects);

              } // End of the function

              function set preloaderOptions(v)

              {

                  _preloaderOptions = v;

                  if (constructed)

                  {

                      this.attachPreloader();

                  } // end if

                  //return (this.preloaderOptions());

                  null;

              } // End of the function

              function get preloaderOptions()

              {

                  return (_preloaderOptions);

              } // End of the function

              function set controlsOptions(v)

              {

                  _controlsOptions = v;

                  if (constructed)

                  {

                      this.createControls();

                  } // end if

                  //return (this.controlsOptions());

                  null;

              } // End of the function

              function get controlsOptions()

              {

                  return (_controlsOptions);

              } // End of the function

              function set controlsOrder(v)

              {

                  _controlsOrder = v;

                  if (constructed)

                  {

                      this.createControls();

                  } // end if

                  //return (this.controlsOrder());

                  null;

              } // End of the function

              function get controlsOrder()

              {

                  return (_controlsOrder);

              } // End of the function

              function set textOptions(v)

              {

                  _textOptions = v;

                  //return (this.textOptions());

                  null;

              } // End of the function

              function get textOptions()

              {

                  return (_textOptions);

              } // End of the function

              function set textEffects(v)

              {

                  _textEffects = v;

                  //return (this.textEffects());

                  null;

              } // End of the function

              function get textEffects()

              {

                  return (_textEffects);

              } // End of the function

              function set textBackground(v)

              {

                  _textBackground = v;

                  //return (this.textBackground());

                  null;

              } // End of the function

              function get textBackground()

              {

                  return (_textBackground);

              } // End of the function

              function set buttonOptions(v)

              {

                  _buttonOptions = v;

                  //return (this.buttonOptions());

                  null;

              } // End of the function

              function get buttonOptions()

              {

                  return (_buttonOptions);

              } // End of the function

              function set buttonColors(v)

              {

                  _buttonColors = v;

                  //return (this.buttonColors());

                  null;

              } // End of the function

              function get buttonColors()

              {

                  return (_buttonColors);

              } // End of the function

              function set buttonColorsOver(v)

              {

                  _buttonColorsOver = v;

                  //return (this.buttonColorsOver());

                  null;

              } // End of the function

              function get buttonColorsOver()

              {

                  return (_buttonColorsOver);

              } // End of the function

              function set numberColors(v)

              {

                  _numberColors = v;

                  //return (this.numberColors());

                  null;

              } // End of the function

              function get numberColors()

              {

                  return (_numberColors);

              } // End of the function

              function set numberColorsOver(v)

              {

                  _numberColorsOver = v;

                  //return (this.numberColorsOver());

                  null;

              } // End of the function

              function get numberColorsOver()

              {

                  return (_numberColorsOver);

              } // End of the function

              function set selectedNumberColors(v)

              {

                  _selectedNumberColors = v;

                  //return (this.selectedNumberColors());

                  null;

              } // End of the function

              function get selectedNumberColors()

              {

                  return (_selectedNumberColors);

              } // End of the function

              function checkCommercial()

              {

                  if (commercial)

                  {

                      flashxml._visible = false;

                  }

                  else

                  {

                      var _loc2 = this.createEmptyMovieClip("swp", 100011);

                      flashxml.swapDepths(_loc2);

                      flashxml.onPress = net.ascb.util.Proxy.create(this, onPressFlashXML);

                  } // end else if

              } // End of the function

              function onPressFlashXML()

              {

                  _root.getURL("http://www.flashxml.net", "_blank");

              } // End of the function

              function init()

              {

                  mx.events.EventDispatcher.initialize(this);

                  if (_root.settingsXML != undefined)

                  {

                      _settingsXML = _root.settingsXML;

                  } // end if

                  inTrans = firstImage = true;

                  overNumbers = overNumbersBack = overNext = numbersCreated = styleloaded = mOverDis = textIsOn = mouseIsInside = controlsCreated = false;

                  currentMask = -1;

                  Stage.align = "TL";

                  xmlSettings = new XML();

                  xmlSettings.ignoreWhite = true;

                  xmlSettings.load((_root.folderPath ? (_root.folderPath) : ("")) + _settingsXML);

                  xmlSettings.onLoad = net.ascb.util.Proxy.create(this, xmlLoadSettings);

              } // End of the function

              function xmlLoadSettings(success)

              {

                  constructed = true;

                  if (success)

                  {

                      req = new net.snowcat.ui.XMLrequest(xmlSettings.childNodes);

                      this.loadSettings();

                  } // end if

                  banner = new Array();

                  photos = new Array();

                  images = new Array();

                  info = new Array();

                  head = new Array();

                  body = new Array();

                  urls = new Array();

                  target = new Array();

                  durations = new Array();

                  checked = new Array();

                  pressed = new Array();

                  order = new Array();

                  customTrans = new Array();

                  imageEffect = new Array();

                  ieDuration = new Array();

                  ieDirection = new Array();

                  hPos = new Array();

                  vPos = new Array();

                  hPos = new Array();

                  tWid = new Array();

                  tHei = new Array();

                  tSlide = new Array();

                  tAppear = new Array();

                  tFunction = new Array();

                  tType = new Array();

                  zoomPercent = new Array();

                  hZoomPos = new Array();

                  vZoomPos = new Array();

                  styles = new TextField.StyleSheet();

                  styles.load((_root.folderPath ? (_root.folderPath) : ("")) + _styleCSS);

                  styles.onLoad = net.ascb.util.Proxy.create(this, onloadstyle);

              } // End of the function

              function onloadstyle(success)

              {

                  if (success)

                  {

                      styleloaded = true;

                  } // end if

                  xmlImages = new XML();

                  xmlImages.ignoreWhite = true;

                  xmlImages.load((_root.folderPath ? (_root.folderPath) : ("")) + _imagesXML);

                  xmlImages.onLoad = net.ascb.util.Proxy.create(this, xmlLoadImages);

              } // End of the function

              function loadSettings()

              {

                  var _loc2;

                  if (commercial)

                  {

                      _loc2 = req.searchTagAttribute("showAbout", "value");

                      if (_loc2)

                      {

                          showAbout = this.Bool(_loc2);

                      } // end if

                  } // end if

                  _loc2 = req.searchTagAttribute("generalOptions", "imagesXML");

                  if (_loc2)

                  {

                      _imagesXML = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("generalOptions", "styleCSS");

                  if (_loc2)

                  {

                      _styleCSS = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("generalOptions", "bannerWidth");

                  if (_loc2)

                  {

                      _bannerWidth = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("generalOptions", "bannerHeight");

                  if (_loc2)

                  {

                      _bannerHeight = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("generalOptions", "randomImages");

                  if (_loc2)

                  {

                      _randomImages = this.Bool(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("generalOptions", "randomTransitions");

                  if (_loc2)

                  {

                      _randomTransitions = this.Bool(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("generalOptions", "imageFitting");

                  if (_loc2)

                  {

                      _imageFitting = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("generalOptions", "autoStart");

                  if (_loc2)

                  {

                      _autoStart = this.Bool(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("generalOptions", "firstWithTransition");

                  if (_loc2)

                  {

                      _firstWithTransition = this.Bool(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("generalOptions", "autoTiming");

                  if (_loc2)

                  {

                      _autoTiming = this.Bool(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("generalOptions", "pauseOnMouseOver");

                  if (_loc2)

                  {

                      _pauseOnMouseOver = this.Bool(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("generalOptions", "loadNextImageInBack");

                  if (_loc2)

                  {

                      _loadNextImageInBack = this.Bool(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("generalOptions", "backgroundColor");

                  if (_loc2)

                  {

                      _backgroundColor = _loc2;

                  }

                  else

                  {

                      _backgroundColor = null;

                  } // end else if

                  _loc2 = req.searchTagAttribute("transitions", "value");

                  if (_loc2)

                  {

                      _transitions = this.toArray(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("imageEffects", "type");

                  if (_loc2)

                  {

                      _imageEffects[0] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("imageEffects", "zoomPercent");

                  if (_loc2)

                  {

                      _imageEffects[1] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("imageEffects", "duration");

                  if (_loc2)

                  {

                      _imageEffects[2] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("imageEffects", "direction");

                  if (_loc2)

                  {

                      _imageEffects[3] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("imageEffects", "hZoomPos");

                  if (_loc2)

                  {

                      _imageEffects[4] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("imageEffects", "vZoomPos");

                  if (_loc2)

                  {

                      _imageEffects[5] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("preloaderOptions", "show");

                  if (_loc2)

                  {

                      _preloaderOptions[0] = this.Bool(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("preloaderOptions", "hAlign");

                  if (_loc2)

                  {

                      _preloaderOptions[1] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("preloaderOptions", "vAlign");

                  if (_loc2)

                  {

                      _preloaderOptions[2] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("preloaderOptions", "padding");

                  if (_loc2)

                  {

                      _preloaderOptions[3] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("preloaderOptions", "size");

                  if (_loc2)

                  {

                      _preloaderOptions[4] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("controlsOptions", "show");

                  if (_loc2)

                  {

                      _controlsOptions[0] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("controlsOptions", "hPos");

                  if (_loc2)

                  {

                      _controlsOptions[1] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("controlsOptions", "vPos");

                  if (_loc2)

                  {

                      _controlsOptions[2] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("controlsOptions", "padding");

                  if (_loc2)

                  {

                      _controlsOptions[3] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("controlsOptions", "alignment");

                  if (_loc2)

                  {

                      _controlsOptions[4] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("controlsOptions", "numbersOverNextButton");

                  if (_loc2)

                  {

                      _controlsOptions[5] = this.Bool(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("controlsOrder", "value");

                  if (_loc2)

                  {

                      _controlsOrder = this.toArray(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("textOptions", "show");

                  if (_loc2)

                  {

                      _textOptions[0] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("textOptions", "embedFont");

                  if (_loc2)

                  {

                      _textOptions[1] = this.Bool(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("textOptions", "hPos");

                  if (_loc2)

                  {

                      _textOptions[2] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("textOptions", "vPos");

                  if (_loc2)

                  {

                      _textOptions[3] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("textOptions", "width");

                  if (_loc2)

                  {

                      _textOptions[4] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("textOptions", "height");

                  if (_loc2)

                  {

                      _textOptions[5] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("textOptions", "padding");

                  if (_loc2)

                  {

                      _textOptions[6] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("textOptions", "distance");

                  if (_loc2)

                  {

                      _textOptions[7] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("textEffects", "slide");

                  if (_loc2)

                  {

                      _textEffects[0] = this.Bool(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("textEffects", "alpha");

                  if (_loc2)

                  {

                      _textEffects[1] = this.Bool(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("textEffects", "blur");

                  if (_loc2)

                  {

                      _textEffects[2] = this.Bool(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("textEffects", "appear");

                  if (_loc2)

                  {

                      _textEffects[3] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("textEffects", "function");

                  if (_loc2)

                  {

                      _textEffects[4] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("textEffects", "method");

                  if (_loc2)

                  {

                      _textEffects[5] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("textEffects", "duration");

                  if (_loc2)

                  {

                      _textEffects[6] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("textEffects", "bodyDelay");

                  if (_loc2)

                  {

                      _textEffects[7] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("textBackground", "type");

                  if (_loc2)

                  {

                      _textBackground[0] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("textBackground", "headColor");

                  if (_loc2)

                  {

                      _textBackground[1] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("textBackground", "alpha");

                  if (_loc2)

                  {

                      _textBackground[2] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("textBackground", "bodyColor");

                  if (_loc2)

                  {

                      _textBackground[3] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("textBackground", "padding");

                  if (_loc2)

                  {

                      _textBackground[4] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("textBackground", "cornerRadius");

                  if (_loc2)

                  {

                      _textBackground[5] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("buttonOptions", "shape");

                  if (_loc2)

                  {

                      _buttonOptions[0] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("buttonOptions", "size");

                  if (_loc2)

                  {

                      _buttonOptions[1] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("buttonOptions", "symbolSize");

                  if (_loc2)

                  {

                      _buttonOptions[2] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("buttonOptions", "spacing");

                  if (_loc2)

                  {

                      _buttonOptions[3] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("buttonColors", "back");

                  if (_loc2)

                  {

                      _buttonColors[0] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("buttonColors", "symbol");

                  if (_loc2)

                  {

                      _buttonColors[1] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("buttonColors", "alpha");

                  if (_loc2)

                  {

                      _buttonColors[2] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("buttonColorsOver", "back");

                  if (_loc2)

                  {

                      _buttonColorsOver[0] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("buttonColorsOver", "symbol");

                  if (_loc2)

                  {

                      _buttonColorsOver[1] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("buttonColorsOver", "alpha");

                  if (_loc2)

                  {

                      _buttonColorsOver[2] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("numberColors", "back");

                  if (_loc2)

                  {

                      _numberColors[0] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("numberColors", "symbol");

                  if (_loc2)

                  {

                      _numberColors[1] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("numberColors", "alpha");

                  if (_loc2)

                  {

                      _numberColors[2] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("numberColorsOver", "back");

                  if (_loc2)

                  {

                      _numberColorsOver[0] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("numberColorsOver", "symbol");

                  if (_loc2)

                  {

                      _numberColorsOver[1] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("numberColorsOver", "alpha");

                  if (_loc2)

                  {

                      _numberColorsOver[2] = Number(_loc2);

                  } // end if

                  _loc2 = req.searchTagAttribute("selectedNumberColors", "back");

                  if (_loc2)

                  {

                      _selectedNumberColors[0] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("selectedNumberColors", "symbol");

                  if (_loc2)

                  {

                      _selectedNumberColors[1] = _loc2;

                  } // end if

                  _loc2 = req.searchTagAttribute("selectedNumberColors", "alpha");

                  if (_loc2)

                  {

                      _selectedNumberColors[2] = Number(_loc2);

                  } // end if

              } // End of the function

              function xmlLoadImages(success)

              {

                  if (success)

                  {

                      this.about();

                      this.dispatchEvent({type: "xmlLoaded"});

                      if (_transitions[0] == "all")

                      {

                          for (var _loc4 = 0; _loc4 < 107; ++_loc4)

                          {

                              _transitions[_loc4] = _loc4 + 1;

                          } // end of for

                      } // end if

                      this.resetTween(false, true);

                      banner[currentImage].holder._x = banner[currentImage].holder._y = 0;

                      photos = xmlImages.firstChild.childNodes;

                      reqImag = new net.snowcat.ui.XMLrequest(xmlImages.childNodes);

                      if (_autoStart)

                      {

                          play = true;

                      }

                      else

                      {

                          play = false;

                      } // end else if

                      container = this.createEmptyMovieClip("container", 4);

                      this.createBackground();

                      displayer = container.createEmptyMovieClip("displayer", 1);

                      displayer.onPress = net.ascb.util.Proxy.create(this, onpressimage);

                      this.attachPreloader();

                      displayer.onRollOver = net.ascb.util.Proxy.create(this, rovdisplay);

                      displayer.onRollOut = net.ascb.util.Proxy.create(this, roudisplay);

                      this.createControls();

                      for (var _loc3 = 0; _loc3 < photos.length; ++_loc3)

                      {

                          images.push((_root.folderPath ? (_root.folderPath) : ("")) + photos[_loc3].attributes.image);

                          urls.push(photos[_loc3].attributes.url);

                          target.push(photos[_loc3].attributes.target);

                          durations.push(photos[_loc3].attributes.duration);

                          info.push(photos[_loc3].firstChild.nodeValue);

                          head.push(this.getTag("head", photos[_loc3].firstChild.nodeValue));

                          body.push(this.getTag("body", photos[_loc3].firstChild.nodeValue));

                          customTrans.push(photos[_loc3].attributes.transition);

                          imageEffect.push(photos[_loc3].attributes.effect);

                          ieDuration.push(photos[_loc3].attributes.dur);

                          ieDirection.push(photos[_loc3].attributes.direction);

                          hPos.push(photos[_loc3].attributes.hpos);

                          vPos.push(photos[_loc3].attributes.vpos);

                          tWid.push(photos[_loc3].attributes.width);

                          tHei.push(photos[_loc3].attributes.height);

                          tSlide.push(photos[_loc3].attributes.slide);

                          tAppear.push(photos[_loc3].attributes.appear);

                          tFunction.push(photos[_loc3].attributes.func);

                          tType.push(photos[_loc3].attributes.type);

                          zoomPercent.push(photos[_loc3].attributes.zoompercent);

                          hZoomPos.push(photos[_loc3].attributes.hzoompos);

                          vZoomPos.push(photos[_loc3].attributes.vzoompos);

                          item = displayer.createEmptyMovieClip("item" + _loc3, _loc3);

                          banner.push(item);

                          if (_autoTiming && info[_loc3])

                          {

                              durations[_loc3] = info[_loc3].length / 20;

                          } // end if

                      } // end of for

                      this.checkTrans();

                      nextImage = currentImage = null;

                      this.generateNextImage();

                      lastImage = currentImage = nextImage;

                      seq = 0;

                      this.changeImage();

                  } // end if

              } // End of the function

              function fadeInControls()

              {

                  if (controls._alpha < 100)

                  {

                      controls._alpha = controls._alpha + 15;

                  }

                  else

                  {

                      delete controls.onEnterFrame;

                  } // end else if

              } // End of the function

              function fadeOutControls()

              {

                  if (controls._alpha > 0)

                  {

                      controls._alpha = controls._alpha - 20;

                  }

                  else

                  {

                      delete controls.onEnterFrame;

                  } // end else if

              } // End of the function

              function destructControls()

              {

                  controls.onEnterFrame = net.ascb.util.Proxy.create(this, fadeOutControls);

                  controlsCreated = false;

              } // End of the function

              function createControls()

              {

                  switch (_controlsOptions[0])

                  {

                      case "true":

                      {

                          this.buildControls();

                          break;

                      }

                      case true:

                      {

                          this.buildControls();

                          break;

                      }

                      case "onMouseOver":

                      {

                          if (!controlsCreated && mOverDis)

                          {

                              this.buildControls();

                          } // end if

                          if (controlsCreated && !mOverDis)

                          {

                              this.destructControls();

                          } // end if

                          break;

                      }

                      case "false":

                      {

                          this.destructControls();

                          break;

                      }

                      case false:

                      {

                          this.destructControls();

                          break;

                      }

                  } // End of switch

              } // End of the function

              function buildControls()

              {

                  if (_controlsOptions[0] != "false" && _controlsOptions[0] != false)

                  {

                      controls = container.createEmptyMovieClip("controls", 3);

                      controls._alpha = 0;

                      controls.onEnterFrame = net.ascb.util.Proxy.create(this, fadeInControls);

                      controlsCreated = true;

                      this.checkOrder();

                      if (order[1])

                      {

                          prevBut = controls.attachMovie("prev", "prevBut", controls.getNextHighestDepth());

                          if (_buttonOptions[0] == "circle")

                          {

                              prevBut.back.gotoAndStop(2);

                          } // end if

                          prevBut._width = prevBut._height = _buttonOptions[1];

                          if (_controlsOptions[4] == "horizontal")

                          {

                              if (order[1] < order[4] || !order[4])

                              {

                                  prevBut._x = (order[1] - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                              }

                              else

                              {

                                  prevBut._x = (order[1] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + (photos.length - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                              } // end else if

                          }

                          else if (order[1] < order[4] || !order[4])

                          {

                              prevBut._y = (order[1] - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                          }

                          else

                          {

                              prevBut._y = (order[1] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + (photos.length - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                          } // end else if

                          prevBut._y = prevBut._y + _buttonOptions[1] / 2;

                          prevBut._x = prevBut._x + _buttonOptions[1] / 2;

                          prevBut.cont._width = prevBut.cont._width * (_buttonOptions[2] / 100);

                          prevBut.cont._height = prevBut.cont._height * (_buttonOptions[2] / 100);

                          prevBut.onPress = net.ascb.util.Proxy.create(this, onpressprev);

                          prevBut.onReleaseOutside = prevBut.onRelease = net.ascb.util.Proxy.create(this, onreleaseprev);

                          prevBut.onRollOver = net.ascb.util.Proxy.create(this, rovbutton, prevBut);

                          prevBut.onRollOut = net.ascb.util.Proxy.create(this, roubutton, prevBut);

                          prevBut.back._alpha = _buttonColors[2];

                          this.colorize(prevBut.back, _buttonColors[0]);

                          this.colorize(prevBut.cont, _buttonColors[1]);

                      } // end if

                      if (order[2])

                      {

                          playpauseBut = controls.attachMovie("playpause", "playpauseBut", controls.getNextHighestDepth());

                          if (_buttonOptions[0] == "circle")

                          {

                              playpauseBut.back.gotoAndStop(2);

                          } // end if

                          playpauseBut._width = playpauseBut._height = _buttonOptions[1];

                          if (_controlsOptions[4] == "horizontal")

                          {

                              if (order[2] < order[4] || !order[4])

                              {

                                  playpauseBut._x = (order[2] - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                              }

                              else

                              {

                                  playpauseBut._x = (order[2] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + (photos.length - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                              } // end else if

                          }

                          else if (order[2] < order[4] || !order[4])

                          {

                              playpauseBut._y = (order[2] - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                          }

                          else

                          {

                              playpauseBut._y = (order[2] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + (photos.length - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                          } // end else if

                          playpauseBut._y = playpauseBut._y + _buttonOptions[1] / 2;

                          playpauseBut._x = playpauseBut._x + _buttonOptions[1] / 2;

                          playpauseBut.cont._width = playpauseBut.cont._width * (_buttonOptions[2] / 100);

                          playpauseBut.cont._height = playpauseBut.cont._height * (_buttonOptions[2] / 100);

                          playpauseBut.onPress = net.ascb.util.Proxy.create(this, onpressplaypause);

                          playpauseBut.onReleaseOutside = playpauseBut.onRelease = net.ascb.util.Proxy.create(this, onreleaseplaypause);

                          playpauseBut.back._alpha = _buttonColors[2];

                          this.colorize(playpauseBut.back, _buttonColors[0]);

                          this.colorize(playpauseBut.cont, _buttonColors[1]);

                          playpauseBut.onRollOver = net.ascb.util.Proxy.create(this, rovbutton, playpauseBut);

                          playpauseBut.onRollOut = net.ascb.util.Proxy.create(this, roubutton, playpauseBut);

                      } // end if

                      if (order[3])

                      {

                          timer = controls.attachMovie("timer", "timer_", controls.getNextHighestDepth());

                          if (_buttonOptions[0] == "circle")

                          {

                              timer.back.gotoAndStop(2);

                          } // end if

                          timer._width = timer._height = _buttonOptions[1];

                          if (_controlsOptions[4] == "horizontal")

                          {

                              timer._y = timer._y + _buttonOptions[1] / 2;

                              if (order[3] < order[4] || !order[4])

                              {

                                  timer._x = (order[3] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + _buttonOptions[1] / 2;

                              }

                              else

                              {

                                  timer._x = (order[3] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + (photos.length - 1) * (_buttonOptions[3] + _buttonOptions[1]) + _buttonOptions[1] / 2;

                              } // end else if

                          }

                          else

                          {

                              timer._x = timer._x + _buttonOptions[1] / 2;

                              if (order[3] < order[4] || !order[4])

                              {

                                  timer._y = (order[3] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + _buttonOptions[1] / 2;

                              }

                              else

                              {

                                  timer._y = (order[3] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + (photos.length - 1) * (_buttonOptions[3] + _buttonOptions[1]) + _buttonOptions[1] / 2;

                              } // end else if

                          } // end else if

                          timer.back._alpha = _buttonColors[2];

                          this.colorize(timer.back, _buttonColors[0]);

                          this.colorize(timer.clock, _buttonColors[1]);

                      } // end if

                      if (order[4])

                      {

                          for (var _loc2 = 0; _loc2 < photos.length; ++_loc2)

                          {

                              no = controls.attachMovie("no", "no_" + _loc2, controls.getNextHighestDepth());

                              if (_buttonOptions[0] == "circle")

                              {

                                  no.back.gotoAndStop(2);

                              } // end if

                              no._width = no._height = _buttonOptions[1];

                              no.nr.txt.text = String(_loc2 + 1);

                              var _loc3 = new TextFormat();

                              _loc3.bold = true;

                              no.nr.txt.setTextFormat(_loc3);

                              if (_controlsOptions[4] == "horizontal")

                              {

                                  no._x = (order[4] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + _loc2 * (_buttonOptions[3] + _buttonOptions[1]);

                              }

                              else

                              {

                                  no._y = (order[4] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + _loc2 * (_buttonOptions[3] + _buttonOptions[1]);

                              } // end else if

                              no._y = no._y + _buttonOptions[1] / 2;

                              no._x = no._x + _buttonOptions[1] / 2;

                              no.nr._width = no.nr._width * (_buttonOptions[2] / 100 * 1.100000E+000);

                              no.nr._height = no.nr._height * (_buttonOptions[2] / 100 * 1.100000E+000);

                              no.onPress = net.ascb.util.Proxy.create(this, onpressno, _loc2);

                              no.onReleaseOutside = no.onRelease = net.ascb.util.Proxy.create(this, onreleaseno, _loc2);

                              no.back._alpha = this.__get__numberColors()[2];

                              this.colorize(no.back, _numberColors[0]);

                              this.colorize(no.nr.txt, _numberColors[1]);

                              no.onRollOver = net.ascb.util.Proxy.create(this, rovnumber, _loc2);

                              no.onRollOut = net.ascb.util.Proxy.create(this, rounumber, _loc2);

                          } // end of for

                      } // end if

                      if (order[5])

                      {

                          nextBut = controls.attachMovie("next", "nextBut", controls.getNextHighestDepth());

                          if (_buttonOptions[0] == "circle")

                          {

                              nextBut.back.gotoAndStop(2);

                          } // end if

                          nextBut._width = nextBut._height = _buttonOptions[1];

                          if (_controlsOptions[4] == "horizontal")

                          {

                              if (order[5] < order[4] || !order[4])

                              {

                                  nextBut._x = (order[5] - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                              }

                              else

                              {

                                  nextBut._x = (order[5] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + (photos.length - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                              } // end else if

                          }

                          else if (order[5] < order[4] || !order[4])

                          {

                              nextBut._y = (order[5] - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                          }

                          else

                          {

                              nextBut._y = (order[5] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + (photos.length - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                          } // end else if

                          nextBut._y = nextBut._y + _buttonOptions[1] / 2;

                          nextBut._x = nextBut._x + _buttonOptions[1] / 2;

                          nextBut.cont._width = nextBut.cont._width * (_buttonOptions[2] / 100);

                          nextBut.cont._height = nextBut.cont._height * (_buttonOptions[2] / 100);

                          nextBut.onPress = net.ascb.util.Proxy.create(this, onpressnext);

                          nextBut.onRelease = nextBut.onReleaseOutside = net.ascb.util.Proxy.create(this, onreleasenext);

                          nextBut.back._alpha = _buttonColors[2];

                          this.colorize(nextBut.back, _buttonColors[0]);

                          this.colorize(nextBut.cont, _buttonColors[1]);

                          if (_controlsOptions[5])

                          {

                              numbersBack = controls.createEmptyMovieClip("numbersBack", controls.getNextHighestDepth());

                              if (_controlsOptions[4] == "horizontal")

                              {

                                  this.drawRect(numbersBack, _backgroundColor, 0, 0, 0, _buttonOptions[1], photos.length * (_buttonOptions[3] + _buttonOptions[1]));

                                  numbersBack._x = nextBut._x - _buttonOptions[1] / 2;

                                  if (_controlsOptions[2] == "bottom")

                                  {

                                      numbersBack._y = controls._y - numbersBack._height;

                                  }

                                  else

                                  {

                                      numbersBack._y = controls._y + _buttonOptions[1];

                                  } // end else if

                              }

                              else

                              {

                                  this.drawRect(numbersBack, _backgroundColor, 0, 0, 0, photos.length * (_buttonOptions[3] + _buttonOptions[1]), _buttonOptions[1]);

                                  numbersBack._y = nextBut._y - _buttonOptions[1] / 2;

                                  if (_controlsOptions[1] == "right")

                                  {

                                      numbersBack._x = controls._x - numbersBack._width;

                                  }

                                  else

                                  {

                                      numbersBack._x = controls._x + _buttonOptions[1];

                                  } // end else if

                              } // end else if

                              for (var _loc2 = 0; _loc2 < photos.length; ++_loc2)

                              {

                                  no = controls.attachMovie("no", "no_" + _loc2, controls.getNextHighestDepth());

                                  if (_buttonOptions[0] == "circle")

                                  {

                                      no.back.gotoAndStop(2);

                                  } // end if

                                  no._width = no._height = 0;

                                  no.nr.txt.text = String(_loc2 + 1);

                                  _loc3 = new TextFormat();

                                  _loc3.bold = true;

                                  no.nr.txt.setTextFormat(_loc3);

                                  if (_controlsOptions[4] == "horizontal")

                                  {

                                      no._x = nextBut._x;

                                      if (_controlsOptions[2] == "bottom")

                                      {

                                          no._y = nextBut._y - (photos.length - _loc2) * (_buttonOptions[3] + _buttonOptions[1]);

                                      }

                                      else

                                      {

                                          no._y = nextBut._y + (_loc2 + 1) * (_buttonOptions[1] + _buttonOptions[3]);

                                      } // end else if

                                  }

                                  else

                                  {

                                      no._y = nextBut._y;

                                      if (_controlsOptions[1] == "right")

                                      {

                                          no._x = nextBut._x - (photos.length - _loc2) * (_buttonOptions[3] + _buttonOptions[1]);

                                      }

                                      else

                                      {

                                          no._x = nextBut._x + (_loc2 + 1) * (_buttonOptions[1] + _buttonOptions[3]);

                                      } // end else if

                                  } // end else if

                                  no.nr._width = no.nr._width * (_buttonOptions[2] / 100 * 1.100000E+000);

                                  no.nr._height = no.nr._height * (_buttonOptions[2] / 100 * 1.100000E+000);

                                  no.onPress = net.ascb.util.Proxy.create(this, onpressno, _loc2);

                                  no.onRelease = no.onReleaseOutside = net.ascb.util.Proxy.create(this, onreleaseno, _loc2);

                                  no.back._alpha = this.__get__numberColors()[2];

                                  this.colorize(no.back, _numberColors[0]);

                                  this.colorize(no.nr.txt, _numberColors[1]);

                                  no.onRollOver = net.ascb.util.Proxy.create(this, rovnumber, _loc2);

                                  no.onRollOut = net.ascb.util.Proxy.create(this, rounumber, _loc2);

                              } // end of for

                              numbersBack.onRollOut = net.ascb.util.Proxy.create(this, rounumbers);

                              numbersBack.onRollOver = net.ascb.util.Proxy.create(this, rovnumbers);

                          } // end if

                          nextBut.onRollOver = net.ascb.util.Proxy.create(this, rovnext, nextBut);

                          nextBut.onRollOut = net.ascb.util.Proxy.create(this, rounext, nextBut);

                          if (_autoStart)

                          {

                              play = true;

                              playpauseBut.cont.gotoAndStop(2);

                          }

                          else

                          {

                              play = false;

                              playpauseBut.cont.gotoAndStop(1);

                          } // end if

                      } // end else if

                      if (order[6])

                      {

                          fs = controls.attachMovie("fullscreen", "fs", controls.getNextHighestDepth());

                          if (_buttonOptions[0] == "circle")

                          {

                              fs.back.gotoAndStop(2);

                          } // end if

                          fs._width = fs._height = _buttonOptions[1];

                          if (inFullScreen)

                          {

                              fs.cont.gotoAndStop(2);

                          }

                          else

                          {

                              fs.cont.gotoAndStop(1);

                          } // end else if

                          if (_controlsOptions[4] == "horizontal")

                          {

                              if (order[6] < order[4] || !order[4])

                              {

                                  fs._x = (order[6] - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                              }

                              else

                              {

                                  fs._x = (order[6] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + (photos.length - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                              } // end else if

                          }

                          else if (order[6] < order[4] || !order[4])

                          {

                              fs._y = (order[6] - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                          }

                          else

                          {

                              fs._y = (order[6] - 1) * (_buttonOptions[3] + _buttonOptions[1]) + (photos.length - 1) * (_buttonOptions[3] + _buttonOptions[1]);

                          } // end else if

                          fs._y = fs._y + _buttonOptions[1] / 2;

                          fs._x = fs._x + _buttonOptions[1] / 2;

                          fs.cont._width = fs.cont._width * (_buttonOptions[2] / 100);

                          fs.cont._height = fs.cont._height * (_buttonOptions[2] / 100);

                          fs.onPress = net.ascb.util.Proxy.create(this, onpressfullscreen);

                          fs.onRollOver = net.ascb.util.Proxy.create(this, rovbutton, fs);

                          fs.onRollOut = net.ascb.util.Proxy.create(this, roubutton, fs);

                          fs.back._alpha = _buttonColors[2];

                          this.colorize(fs.back, _buttonColors[0]);

                          this.colorize(fs.cont, _buttonColors[1]);

                      } // end if

                      switch (_controlsOptions[1])

                      {

                          case "left":

                          {

                              controls._x = _controlsOptions[3];

                              break;

                          }

                          case "right":

                          {

                              if (_controlsOptions[4] == "horizontal")

                              {

                                  controls._x = _bannerWidth - controls._width - _controlsOptions[3];

                              }

                              else

                              {

                                  controls._x = _bannerWidth - _buttonOptions[1] - _controlsOptions[3];

                              } // end else if

                              break;

                          }

                          case "center":

                          {

                              controls._x = (_bannerWidth - controls._width) / 2;

                          }

                      } // End of switch

                      switch (_controlsOptions[2])

                      {

                          case "top":

                          {

                              controls._y = _controlsOptions[3];

                              break;

                          }

                          case "bottom":

                          {

                              if (_controlsOptions[4] == "horizontal")

                              {

                                  controls._y = _bannerHeight - _buttonOptions[1] - _controlsOptions[3];

                              }

                              else

                              {

                                  controls._y = _bannerHeight - controls._height - _controlsOptions[3];

                              } // end else if

                              break;

                          }

                          case "center":

                          {

                              controls._y = (_bannerHeight - controls._height) / 2;

                          }

                      } // End of switch

                      this.changeNumberColors();

                  } // end if

              } // End of the function

              function oefnumbersback()

              {

                  if (!numbersCreated)

                  {

                      delete nextBut.onEnterFrame;

                      inIndex = 0;

                      nextBut.onEnterFrame = net.ascb.util.Proxy.create(this, oefnextin);

                      numbersCreated = true;

                  } // end if

                  if (!overNext && !overNumbers && !overNumbersBack)

                  {

                      delete nextBut.onEnterFrame;

                      outIndex = 0;

                      nextBut.onEnterFrame = net.ascb.util.Proxy.create(this, oefnextout);

                      delete numbersBack.onEnterFrame;

                      numbersCreated = false;

                  } // end if

              } // End of the function

              function oefnextin()

              {

                  if (inIndex < 7 * photos.length)

                  {

                      ++inIndex;

                      for (var _loc2 = 0; _loc2 < inIndex; ++_loc2)

                      {

                          if (_controlsOptions[2] == "bottom" && _controlsOptions[4] == "horizontal" || _controlsOptions[1] == "right" && _controlsOptions[4] == "vertical")

                          {

                              if (controls["no_" + (photos.length - _loc2)]._width < _buttonOptions[1])

                              {

                                  controls["no_" + (photos.length - _loc2)]._width = controls["no_" + (photos.length - _loc2)]._width + _buttonOptions[1] / 5;

                                  controls["no_" + (photos.length - _loc2)]._height = controls["no_" + (photos.length - _loc2)]._height + _buttonOptions[1] / 5;

                              } // end if

                              continue;

                          } // end if

                          if (controls["no_" + _loc2]._width < _buttonOptions[1])

                          {

                              controls["no_" + _loc2]._width = controls["no_" + _loc2]._width + _buttonOptions[1] / 5;

                              controls["no_" + _loc2]._height = controls["no_" + _loc2]._height + _buttonOptions[1] / 5;

                          } // end if

                      } // end of for

                  }

                  else

                  {

                      delete nextBut.onEnterFrame;

                  } // end else if

              } // End of the function

              function oefnextout()

              {

                  if (outIndex < 7 * photos.length)

                  {

                      ++outIndex;

                      for (var _loc2 = 0; _loc2 < outIndex; ++_loc2)

                      {

                          if (_controlsOptions[2] == "top" && _controlsOptions[4] == "horizontal" || _controlsOptions[1] == "left" && _controlsOptions[4] == "vertical")

                          {

                              if (controls["no_" + (photos.length - _loc2)]._width > 0)

                              {

                                  controls["no_" + (photos.length - _loc2)]._width = controls["no_" + (photos.length - _loc2)]._width - _buttonOptions[1] / 5;

                                  controls["no_" + (photos.length - _loc2)]._height = controls["no_" + (photos.length - _loc2)]._height - _buttonOptions[1] / 5;

                              } // end if

                              continue;

                          } // end if

                          if (controls["no_" + _loc2]._width > 0)

                          {

                              controls["no_" + _loc2]._width = controls["no_" + _loc2]._width - _buttonOptions[1] / 5;

                              controls["no_" + _loc2]._height = controls["no_" + _loc2]._height - _buttonOptions[1] / 5;

                          } // end if

                      } // end of for

                  }

                  else

                  {

                      delete nextBut.onEnterFrame;

                  } // end else if

              } // End of the function

              function rovnext(button)

              {

                  overNext = true;

                  numbersBack.onEnterFrame = net.ascb.util.Proxy.create(this, oefnumbersback);

                  this.rovbutton(button);

              } // End of the function

              function rounext(button)

              {

                  overNext = false;

                  this.roubutton(button);

              } // End of the function

              function rovnumbers()

              {

                  overNumbersBack = true;

                  mouseIsInside = true;

              } // End of the function

              function rounumbers()

              {

                  overNumbersBack = false;

              } // End of the function

              function rovnumber(i)

              {

                  mouseIsInside = true;

                  overNumbers = true;

                  if (i != currentImage)

                  {

                      this.colorize(controls["no_" + i].back, _numberColorsOver[0]);

                      this.colorize(controls["no_" + i].nr.txt, _numberColorsOver[1]);

                      controls["no_" + i].back._alpha = _numberColorsOver[2];

                  } // end if

              } // End of the function

              function rounumber(i)

              {

                  overNumbers = false;

                  if (i != currentImage)

                  {

                      this.colorize(controls["no_" + i].back, _numberColors[0]);

                      this.colorize(controls["no_" + i].nr.txt, _numberColors[1]);

                      controls["no_" + i].back._alpha = _numberColors[2];

                  } // end if

              } // End of the function

              function rovbutton(button)

              {

                  mouseIsInside = true;

                  button.back._alpha = _buttonColorsOver[2];

                  this.colorize(button.back, _buttonColorsOver[0]);

                  this.colorize(button.cont, _buttonColorsOver[1]);

              } // End of the function

              function roubutton(button)

              {

                  button.back._alpha = _buttonColors[2];

                  this.colorize(button.back, _buttonColors[0]);

                  this.colorize(button.cont, _buttonColors[1]);

              } // End of the function

              function rovdescription()

              {

                  mouseIsInside = true;

              } // End of the function

              function constructNumbers()

              {

                  for (var _loc2 = 0; _loc2 < photos.length; ++_loc2)

                  {

                      controls["no_" + _loc2]._width = controls["no_" + _loc2]._height = _buttonOptions[1];

                  } // end of for

              } // End of the function

              function destructNumbers()

              {

                  for (var _loc2 = 0; _loc2 < photos.length; ++_loc2)

                  {

                      controls["no_" + _loc2]._width = controls["no_" + _loc2]._height = 0;

                  } // end of for

              } // End of the function

              function changeImage()

              {

                  holder = banner[currentImage].createEmptyMovieClip("holder", 3);

                  description.removeMovieClip();

                  textIsOn = false;

                  mcLoader.removeListener(loadListener);

                  loadListener = new Object();

                  mcLoader = new MovieClipLoader();

                  mcLoader.addListener(loadListener);

                  mcLoader.loadClip(images[currentImage], banner[currentImage].holder);

                  if (_preloaderOptions[0])

                  {

                      pre._visible = true;

                  } // end if

                  loadListener.onLoadInit = net.ascb.util.Proxy.create(this, onloadinit, currentImage);

                  clearInterval(dividedInterval);

                  this.generateNextImage();

              } // End of the function

                  }

                  function onloadinit(a, i)

                  {

              this.generateNextMask();

              currentTrans = Number(customTrans[currentImage] ? (customTrans[currentImage]) : (_transitions[currentMask]));

              banner[currentImage].holder._alpha = 100;

              banner[currentImage]._x = banner[currentImage]._y = banner[currentImage].holder._x = banner[currentImage].holder._y = 0;

              pre._visible = false;

              banner[currentImage].swapDepths(displayer.getNextHighestDepth());

              if (play)

              {

                  clearInterval(dividedInterval);

                  dividedInterval = setInterval(this, "sequential", (Number(durations[currentImage]) + transDur[currentTrans]) * 1000 / 12);

              } // end if

              lastImage = currentImage;

              this.changeNumberColors();

              banner[currentImage].masc.removeMovieClip();

              this.fitImage(i);

              currentEffect = imageEffect[currentImage] ? (imageEffect[currentImage]) : (_imageEffects[0]);

              currentZoomPercent = zoomPercent[currentImage] ? (zoomPercent[currentImage]) : (_imageEffects[1]);

              currentDuration = ieDuration[currentImage] ? (ieDuration[currentImage]) : (_imageEffects[2]);

              currentDirection = ieDirection[currentImage] ? (ieDirection[currentImage]) : (_imageEffects[3]);

              currentHZoomPos = hZoomPos[currentImage] ? (hZoomPos[currentImage]) : (_imageEffects[4]);

              currentVZoomPos = vZoomPos[currentImage] ? (vZoomPos[currentImage]) : (_imageEffects[5]);

              if (currentEffect != "none" && !inFullScreen)

              {

                  this.initEffects();

              } // end if

              if ((!firstImage || firstImage && _firstWithTransition) && !inFullScreen && currentTrans)

              {

                  if (currentTrans >= 2 && currentTrans <= 31)

                  {

                      masc = banner[currentImage].attachMovie("mask" + (currentTrans - 1), "masc", 2);

                      masc._width = _bannerWidth + 4;

                      masc._height = _bannerHeight + 4;

                      masc._x = masc._y = -2;

                      banner[i].setMask(banner[i].masc);

                  }

                  else if (currentTrans >= 32)

                  {

                      banner[i].holder.forceSmoothing = true;

                      banner[i].createEmptyMovieClip("masc", 2);

                      this.drawRect(banner[i].masc, 0, 0, 0, 0, _bannerWidth, _bannerHeight);

                      banner[i].setMask(banner[i].masc);

                      switch (currentTrans)

                      {

                          case 32:

                          {

                              this.slideup(mx.transitions.easing.Regular.easeInOut, 2, true);

                              break;

                          }

                          case 33:

                          {

                              this.slideup(mx.transitions.easing.Back.easeOut, 1.500000E+000, false);

                              break;

                          }

                          case 34:

                          {

                              this.slideup(mx.transitions.easing.Bounce.easeIn, 2, true);

                              break;

                          }

                          case 35:

                          {

                              this.slideup(mx.transitions.easing.Bounce.easeOut, 2, true);

                              break;

                          }

                          case 36:

                          {

                              this.slideup(mx.transitions.easing.Elastic.easeOut, 2.500000E+000, false);

                              break;

                          }

                          case 37:

                          {

                              this.slidedown(mx.transitions.easing.Regular.easeInOut, 2, true);

                              break;

                          }

                          case 38:

                          {

                              this.slidedown(mx.transitions.easing.Back.easeOut, 1.500000E+000, false);

                              break;

                          }

                          case 39:

                          {

                              this.slidedown(mx.transitions.easing.Bounce.easeIn, 2, true);

                              break;

                          }

                          case 40:

                          {

                              this.slidedown(mx.transitions.easing.Bounce.easeOut, 2, true);

                              break;

                          }

                          case 41:

                          {

                              this.slidedown(mx.transitions.easing.Elastic.easeOut, 2.500000E+000, false);

                              break;

                          }

                          case 42:

                          {

                              this.slideright(mx.transitions.easing.Regular.easeInOut, 2, true);

                              break;

                          }

                          case 43:

                          {

                              this.slideright(mx.transitions.easing.Back.easeOut, 1.500000E+000, false);

                              break;

                          }

                          case 44:

                          {

                              this.slideright(mx.transitions.easing.Bounce.easeIn, 2, true);

                              break;

                          }

                          case 45:

                          {

                              this.slideright(mx.transitions.easing.Bounce.easeOut, 2, true);

                              break;

                          }

                          case 46:

                          {

                              this.slideright(mx.transitions.easing.Elastic.easeOut, 2.500000E+000, false);

                              break;

                          }

                          case 47:

                          {

                              this.slideleft(mx.transitions.easing.Regular.easeInOut, 2, true);

                              break;

                          }

                          case 48:

                          {

                              this.slideleft(mx.transitions.easing.Back.easeOut, 1.500000E+000, false);

                              break;

                          }

                          case 49:

                          {

                              this.slideleft(mx.transitions.easing.Bounce.easeIn, 2, true);

                              break;

                          }

                          case 50:

                          {

                              this.slideleft(mx.transitions.easing.Bounce.easeOut, 2, true);

                              break;

                          }

                          case 51:

                          {

                              this.slideleft(mx.transitions.easing.Elastic.easeOut, 2.500000E+000, false);

                              break;

                          }

                          case 52:

                          {

                              this.scaleleft(mx.transitions.easing.Strong.easeInOut, 1.500000E+000);

                              break;

                          }

                          case 53:

                          {

                              this.scaleleft(mx.transitions.easing.Back.easeOut, 1);

                              break;

                          }

                          case 54:

                          {

                              this.scaleleft(mx.transitions.easing.Bounce.easeIn, 2);

                              break;

                          }

                          case 55:

                          {

                              this.scaleleft(mx.transitions.easing.Bounce.easeOut, 2);

                              break;

                          }

                          case 56:

                          {

                              this.scaleleft(mx.transitions.easing.Elastic.easeOut, 2);

                              break;

                          }

                          case 57:

                          {

                              this.scaleright(mx.transitions.easing.Strong.easeInOut, 1.500000E+000);

                              break;

                          }

                          case 58:

                          {

                              this.scaleright(mx.transitions.easing.Back.easeOut, 1);

                              break;

                          }

                          case 59:

                          {

                              this.scaleright(mx.transitions.easing.Bounce.easeIn, 2);

                              break;

                          }

                          case 60:

                          {

                              this.scaleright(mx.transitions.easing.Bounce.easeOut, 2);

                              break;

                          }

                          case 61:

                          {

                              this.scaleright(mx.transitions.easing.Elastic.easeOut, 2);

                              break;

                          }

                          case 62:

                          {

                              this.scaleup(mx.transitions.easing.Strong.easeInOut, 1.500000E+000);

                              break;

                          }

                          case 63:

                          {

                              this.scaleup(mx.transitions.easing.Back.easeOut, 1);

                              break;

                          }

                          case 64:

                          {

                              this.scaleup(mx.transitions.easing.Bounce.easeIn, 2);

                              break;

                          }

                          case 65:

                          {

                              this.scaleup(mx.transitions.easing.Bounce.easeOut, 2);

                              break;

                          }

                          case 66:

                          {

                              this.scaleup(mx.transitions.easing.Elastic.easeOut, 2);

                              break;

                          }

                          case 67:

                          {

                              this.scaledown(mx.transitions.easing.Strong.easeInOut, 1.500000E+000);

                              break;

                          }

                          case 68:

                          {

                              this.scaledown(mx.transitions.easing.Back.easeOut, 1);

                              break;

                          }

                          case 69:

                          {

                              this.scaledown(mx.transitions.easing.Bounce.easeIn, 2);

                              break;

                          }

                          case 70:

                          {

                              this.scaledown(mx.transitions.easing.Bounce.easeOut, 2);

                              break;

                          }

                          case 71:

                          {

                              this.scaledown(mx.transitions.easing.Elastic.easeOut, 2);

                              break;

                          }

                          case 72:

                          {

                              this.scalecenter(mx.transitions.easing.Strong.easeInOut, 1.500000E+000);

                              break;

                          }

                          case 73:

                          {

                              this.scalecenter(mx.transitions.easing.Back.easeOut, 1.500000E+000);

                              break;

                          }

                          case 74:

                          {

                              this.scalecenter(mx.transitions.easing.Bounce.easeOut, 1.500000E+000);

                              break;

                          }

                          case 75:

                          {

                              this.scalecenter(mx.transitions.easing.Bounce.easeIn, 2);

                              break;

                          }

                          case 76:

                          {

                              this.scalecenter(mx.transitions.easing.Elastic.easeOut, 2);

                              break;

                          }

                          case 77:

                          {

                              this.scalecenterup(mx.transitions.easing.Strong.easeInOut, 1.500000E+000);

                              break;

                          }

                          case 78:

                          {

                              this.scalecenterup(mx.transitions.easing.Bounce.easeOut, 1.500000E+000);

                              break;

                          }

                          case 79:

                          {

                              this.scalecenterup(mx.transitions.easing.Elastic.easeOut, 2);

                              break;

                          }

                          case 80:

                          {

                              this.scalecenterdown(mx.transitions.easing.Strong.easeInOut, 1.500000E+000);

                              break;

                          }

                          case 81:

                          {

                              this.scalecenterdown(mx.transitions.easing.Bounce.easeOut, 1.500000E+000);

                              break;

                          }

                          case 82:

                          {

                              this.scalecenterdown(mx.transitions.easing.Elastic.easeOut, 2);

                              break;

                          }

                          case 83:

                          {

                              this.rotatecenter(mx.transitions.easing.Strong.easeInOut, 2, 0, 360, true, true);

                              break;

                          }

                          case 84:

                          {

                              this.rotatecenter(mx.transitions.easing.Bounce.easeIn, 2, 180, 0, true, true);

                              break;

                          }

                          case 85:

                          {

                              this.rotatecenter(mx.transitions.easing.Bounce.easeOut, 2, 330, 360, true, true);

                              break;

                          }

                          case 86:

                          {

                              this.rotatecenter(mx.transitions.easing.Elastic.easeOut, 2, 40, 0, true, true);

                              break;

                          }

                          case 87:

                          {

                              this.rotatecenter(mx.transitions.easing.Strong.easeInOut, 1.500000E+000, 0, 360, false, true);

                              break;

                          }

                          case 88:

                          {

                              this.rotatecenter(mx.transitions.easing.Bounce.easeIn, 2, 180, 360, false, true);

                              break;

                          }

                          case 89:

                          {

                              this.rotatecenter(mx.transitions.easing.Bounce.easeOut, 2, 40, 0, true, false);

                              break;

                          }

                          case 90:

                          {

                              this.rotatecenter(mx.transitions.easing.Elastic.easeOut, 2, 270, 360, true, true);

                              break;

                          }

                          case 91:

                          {

                              this.rotateupleft(mx.transitions.easing.Strong.easeOut, 1, 270, 360, false, false);

                              break;

                          }

                          case 92:

                          {

                              this.rotateupleft(mx.transitions.easing.Bounce.easeIn, 1.500000E+000, 270, 360, false, false);

                              break;

                          }

                          case 93:

                          {

                              this.rotateupleft(mx.transitions.easing.Bounce.easeOut, 1.500000E+000, 270, 360, false, false);

                              break;

                          }

                          case 94:

                          {

                              this.rotateupleft(mx.transitions.easing.Elastic.easeOut, 2, 330, 360, false, false);

                              break;

                          }

                          case 95:

                          {

                              this.rotateupleft(mx.transitions.easing.Strong.easeOut, 1, 90, 0, true, true);

                              break;

                          }

                          case 96:

                          {

                              this.rotateupleft(mx.transitions.easing.Bounce.easeOut, 1.500000E+000, 90, 0, true, true);

                              break;

                          }

                          case 97:

                          {

                              this.rotateupleft(mx.transitions.easing.Elastic.easeOut, 2, 30, 0, true, true);

                              break;

                          }

                          case 98:

                          {

                              this.rotateupcenter(mx.transitions.easing.Strong.easeInOut, 1.500000E+000, 180, 360, true, false);

                              break;

                          }

                          case 99:

                          {

                              this.rotateupcenter(mx.transitions.easing.Bounce.easeIn, 1.500000E+000, 180, 360, false, false);

                              break;

                          }

                          case 100:

                          {

                              this.rotateupcenter(mx.transitions.easing.Bounce.easeOut, 1.500000E+000, 180, 360, false, false);

                              break;

                          }

                          case 101:

                          {

                              this.rotateupcenter(mx.transitions.easing.Elastic.easeOut, 2, 180, 360, false, false);

                              break;

                          }

                          case 102:

                          {

                              this.rotateupcenter(mx.transitions.easing.Bounce.easeOut, 1.500000E+000, 180, 0, true, true);

                              break;

                          }

                          case 103:

                          {

                              this.rotateupcenter(mx.transitions.easing.Elastic.easeOut, 2, 35, 0, true, true);

                              break;

                          }

                          case 104:

                          {

                              this.rotaterightdown(mx.transitions.easing.Strong.easeInOut, 1.500000E+000, 90, 0, true, true);

                              break;

                          }

                          case 105:

                          {

                              this.rotaterightdown(mx.transitions.easing.Bounce.easeIn, 1.500000E+000, 90, 0, false, false);

                              break;

                          }

                          case 106:

                          {

                              this.rotaterightdown(mx.transitions.easing.Bounce.easeOut, 1.500000E+000, 30, 0, true, true);

                              break;

                          }

                          case 107:

                          {

                              this.rotaterightdown(mx.transitions.easing.Elastic.easeOut, 2, 90, 0, false, true);

                              break;

                          }

                      } // End of switch

                  }

                  else if (currentTrans == 1)

                  {

                      new mx.transitions.Tween(banner[currentImage].holder, "_alpha", mx.transitions.easing.Regular.easeInOut, 0, 100, 1.500000E+000, true);

                      banner[i].createEmptyMovieClip("masc", 5);

                  } // end else if

              }

              else

              {

                  banner[i].createEmptyMovieClip("masc", 5);

              } // end else if

              inTrans = true;

              banner[currentImage].masc.onEnterFrame = net.ascb.util.Proxy.create(this, oefmask, getTimer(), inFullScreen ? (0) : (transDur[currentTrans] * 1000 - 300), banner[currentImage].masc);

          } // End of the function

          function oefmask(now, delay, clip)

          {

              if (getTimer() - now >= delay)

              {

                  delete clip.onEnterFrame;

                  clip.onEnterFrame = net.ascb.util.Proxy.create(this, oefmask2, getTimer(), inFullScreen ? (0) : (400), clip);

                  previousTween1 = currentTween1;

                  previousTween2 = currentTween2;

                  if (currentEffect != "none" && !inFullScreen)

                  {

                      this.tweenEffects();

                  } // end if

                  if ((_textOptions[0] == "true" || _textOptions[0] == true) && info[currentImage])

                  {

                      this.showText();

                  } // end if

                  if (_textOptions[0] == "onMouseOver" && info[currentImage] && mOverDis)

                  {

                      this.showText();

                  } // end if

              } // end if

          } // End of the function

          function oefmask2(now, delay, clip)

          {

              if (getTimer() - now >= delay)

              {

                  delete clip.onEnterFrame;

                  this.resetTween(!firstImage, false);

                  if (firstImage)

                  {

                      firstImage = false;

                  } // end if

                  inTrans = false;

              } // end if

          } // End of the function

          function fitImage(i)

          {

              hW = banner[i].holder._width;

              hH = banner[i].holder._height;

              bannerRatio = _bannerWidth / _bannerHeight;

              switch (_imageFitting)

              {

                  case "bestFit":

                  {

                      holderRatio = banner[i].holder._width / banner[i].holder._height;

                      if (bannerRatio > holderRatio)

                      {

                          banner[i].holder._width = _bannerWidth;

                          banner[i].holder._height = _bannerWidth / holderRatio;

                          banner[i].holder._y = -(banner[i].holder._height - _bannerHeight) / 2;

                      }

                      else

                      {

                          banner[i].holder._height = _bannerHeight;

                          banner[i].holder._width = holderRatio * _bannerHeight;

                          banner[i].holder._x = -(banner[i].holder._width - _bannerWidth) / 2;

                      } // end else if

                      break;

                  }

                  case "shrinkToFit":

                  {

                      banner[i].holder._width = _bannerWidth;

                      banner[i].holder._height = _bannerHeight;

                      holderRatio = _bannerWidth / _bannerHeight;

                  }

              } // End of switch

          } // End of the function

          function initEffects()

          {

              banner[currentImage].holder.forceSmoothing = true;

              e = this.searchArray(currentEffect, effectType) ? (currentEffect) : (this.randomFromArray(effectType));

              if (e == "zoom")

              {

                  this.searchArray(currentDirection, inout) ? (d = currentDirection) : (d = this.randomFromArray(inout));

                  this.searchArray(currentHZoomPos, horiz) ? (h = currentHZoomPos) : (h = this.randomFromArray(horiz));

                  this.searchArray(currentVZoomPos, vertic) ? (v = currentVZoomPos) : (v = this.randomFromArray(vertic));

                  switch (h)

                  {

                      case "left":

                      {

                          hW = hW / 4;

                          break;

                      }

                      case "center":

                      {

                          hW = hW / 2;

                          break;

                      }

                      case "right":

                      {

                          hW = hW * 7.500000E-001;

                      }

                  } // End of switch

                  switch (v)

                  {

                      case "top":

                      {

                          hH = hH / 4;

                          break;

                      }

                      case "center":

                      {

                          hH = hH / 2;

                          break;

                      }

                      case "bottom":

                      {

                          hH = hH * 7.500000E-001;

                      }

                  } // End of switch

              }

              else

              {

                  this.searchArray(currentDirection, hv) ? (d = currentDirection) : (d = this.randomFromArray(hv));

                  if (bannerRatio != holderRatio)

                  {

                      while (bannerRatio < holderRatio && (d == "top" || d == "bottom") || bannerRatio > holderRatio && (d == "left" || d == "right"))

                      {

                          d = this.randomFromArray(hv);

                      } // end while

                  }

                  else

                  {

                      d = "none";

                  } // end else if

              } // end else if

              com.darronschall.DynamicRegistration.initialize(banner[currentImage].holder);

              banner[currentImage].holder.setRegistration(hW, hH);

              switch (d)

              {

                  case "out":

                  {

                      endW = banner[currentImage].holder._width2;

                      endH = banner[currentImage].holder._height2;

                      banner[currentImage].holder._width2 = banner[currentImage].holder._width2 + banner[currentImage].holder._width2 * currentZoomPercent / 100;

                      banner[currentImage].holder._height2 = banner[currentImage].holder._height2 + banner[currentImage].holder._height2 * currentZoomPercent / 100;

                      break;

                  }

                  case "bottom":

                  {

                      banner[currentImage].holder._y = 0;

                      break;

                  }

                  case "top":

                  {

                      banner[currentImage].holder._y = -banner[currentImage].holder._height + _bannerHeight;

                      break;

                  }

                  case "right":

                  {

                      banner[currentImage].holder._x = 0;

                      break;

                  }

                  case "left":

                  {

                      banner[currentImage].holder._x = -banner[currentImage].holder._width + _bannerWidth;

                      break;

                  }

              } // End of switch

          } // End of the function

          function tweenEffects()

          {

              switch (d)

              {

                  case "in":

                  {

                      this.tweenin(banner[currentImage].holder);

                      break;

                  }

                  case "out":

                  {

                      this.tweenout(banner[currentImage].holder);

                      break;

                  }

                  case "bottom":

                  {

                      this.tweenbottom(banner[currentImage].holder);

                      break;

                  }

                  case "top":

                  {

                      this.tweentop(banner[currentImage].holder);

                      break;

                  }

                  case "right":

                  {

                      this.tweenright(banner[currentImage].holder);

                      break;

                  }

                  case "left":

                  {

                      this.tweenleft(banner[currentImage].holder);

                      break;

                  }

              } // End of switch

          } // End of the function

          function tweenin(mc)

          {

              currentTween1 = new mx.transitions.Tween(mc, "_width2", mx.transitions.easing.Regular.easeInOut, mc._width2, mc._width2 + mc._width2 * currentZoomPercent / 100, currentDuration, true);

              currentTween2 = new mx.transitions.Tween(mc, "_height2", mx.transitions.easing.Regular.easeInOut, mc._height2, mc._height2 + mc._height2 * currentZoomPercent / 100, currentDuration, true);

          } // End of the function

          function tweenout(mc)

          {

              currentTween1 = new mx.transitions.Tween(mc, "_width2", mx.transitions.easing.Regular.easeInOut, mc._width2, endW, currentDuration, true);

              currentTween2 = new mx.transitions.Tween(mc, "_height2", mx.transitions.easing.Regular.easeInOut, mc._height2, endH, currentDuration, true);

          } // End of the function

          function tweenbottom(mc)

          {

              currentTween1 = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Regular.easeInOut, mc._y, -mc._height + _bannerHeight, currentDuration, true);

          } // End of the function

          function tweentop(mc)

          {

              currentTween1 = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Regular.easeInOut, mc._y, 0, currentDuration, true);

          } // End of the function

          function tweenright(mc)

          {

              currentTween1 = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeInOut, mc._x, -mc._width + _bannerWidth, currentDuration, true);

          } // End of the function

          function tweenleft(mc)

          {

              currentTween1 = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeInOut, mc._x, 0, currentDuration, true);

          } // End of the function

          function sequential()

          {

              if (seq == 12)

              {

                  if (order[3])

                  {

                      timer.clock.gotoAndPlay(24);

                  } // end if

                  seq = -1;

                  previousImage = currentImage;

                  currentImage = nextImage;

                  this.changeImage();

              }

              else if (order[3])

              {

                  timer.clock.gotoAndStop(seq * 2 + 2);

              } // end else if

              ++seq;

          } // End of the function

          function generateNextImage()

          {

              if (!_randomImages)

              {

                  if (nextImage == undefined)

                  {

                      nextImage = 0;

                  }

                  else

                  {

                      nextImage = currentImage + 1;

                      if (nextImage > photos.length - 1)

                      {

                          nextImage = 0;

                      } // end if

                  } // end else if

              }

              else

              {

                  for (itsnew = false; !itsnew; itsnew = false)

                  {

                      itsnew = true;

                      nextImage = Math.round(Math.random() * (photos.length - 1));

                      for (var _loc2 = 0; _loc2 < checked.length; ++_loc2)

                      {

                          if (checked[_loc2] == nextImage)

                          {

                              itsnew = false;

                          } // end if

                      } // end of for

                      if (checked.length == 0 && currentImage == nextImage)

                      {

                      } // end if

                  } // end of for

                  if (checked.length == photos.length - 1)

                  {

                      checked = [];

                  }

                  else

                  {

                      checked.push(nextImage);

                  } // end else if

              } // end else if

              if (_loadNextImageInBack)

              {

                  buffer.removeMovieClip();

                  buffer = container.createEmptyMovieClip("buffer", 0);

                  buffer.loadMovie(images[nextImage]);

                  buffer._alpha = 0;

              } // end if

          } // End of the function

          function onpressprev()

          {

              if (!inTrans)

              {

                  previousImage = currentImage;

                  if (_randomImages)

                  {

                      currentImage = nextImage;

                  }

                  else

                  {

                      --currentImage;

                      if (currentImage == -1)

                      {

                          currentImage = photos.length - 1;

                      } // end if

                  } // end else if

                  seq = 0;

                  if (order[3])

                  {

                      timer.clock.gotoAndStop(1);

                  } // end if

                  this.changeImage();

                  prevBut._width = prevBut._height = _buttonOptions[1] - 2;

              } // end if

          } // End of the function

          function onreleaseprev()

          {

              prevBut._width = prevBut._height = _buttonOptions[1];

          } // End of the function

          function onpressplaypause()

          {

              if (play)

              {

                  play = false;

              }

              else

              {

                  play = true;

              } // end else if

              if (!play)

              {

                  playpauseBut.cont.gotoAndStop(1);

                  clearInterval(dividedInterval);

              }

              else

              {

                  playpauseBut.cont.gotoAndStop(2);

                  dividedInterval = setInterval(this, "sequential", (Number(durations[currentImage]) + transDur[currentTrans]) * 1000 / 12);

              } // end else if

              playpauseBut._width = playpauseBut._height = _buttonOptions[1] - 2;

          } // End of the function

          function onreleaseplaypause()

          {

              playpauseBut._width = playpauseBut._height = _buttonOptions[1];

          } // End of the function

          function onpressno(i)

          {

              if (i != lastImage && !inTrans)

              {

                  clearInterval(dividedInterval);

                  previousImage = currentImage;

                  currentImage = i;

                  if (_randomImages)

                  {

                      if (checked.length == photos.length - 1)

                      {

                          checked = [];

                      }

                      else

                      {

                          checked.push(currentImage);

                      } // end if

                  } // end else if

                  seq = 0;

                  if (order[3])

                  {

                      timer.clock.gotoAndStop(1);

                  } // end if

                  this.changeImage();

                  controls["no_" + i]._width = controls["no_" + i]._height = _buttonOptions[1] - 2;

                  pressed[i] = 1;

              } // end if

          } // End of the function

          function onreleaseno(i)

          {

              if (pressed[i])

              {

                  controls["no_" + i]._width = controls["no_" + i]._height = _buttonOptions[1];

              } // end if

              pressed[i] = 0;

          } // End of the function

          function onpressnext()

          {

              if (!inTrans)

              {

                  previousImage = currentImage;

                  currentImage = nextImage;

                  seq = 0;

                  if (order[3])

                  {

                      timer.clock.gotoAndStop(1);

                  } // end if

                  this.changeImage();

                  nextBut._width = nextBut._height = _buttonOptions[1] - 2;

              } // end if

          } // End of the function

          function onreleasenext()

          {

              nextBut._width = nextBut._height = _buttonOptions[1];

          } // End of the function

          function changeNumberColors()

          {

              for (var _loc2 = 0; _loc2 < photos.length; ++_loc2)

              {

                  if (_loc2 != currentImage)

                  {

                      no = controls["no_" + _loc2];

                      no.back._alpha = this.__get__numberColors()[2];

                      this.colorize(no.back, _numberColors[0]);

                      this.colorize(no.nr.txt, _numberColors[1]);

                      continue;

                  } // end if

                  no = controls["no_" + _loc2];

                  no.back._alpha = this.__get__selectedNumberColors()[2];

                  this.colorize(no.back, _selectedNumberColors[0]);

                  this.colorize(no.nr.txt, _selectedNumberColors[1]);

              } // end of for

          } // End of the function

          function generateNextMask()

          {

              if (_transitions.length == 1)

              {

                  currentMask = 0;

              }

              else if (_randomTransitions)

              {

                  for (var _loc2 = currentMask; _loc2 == currentMask; _loc2 = Math.round(Math.random() * (_transitions.length - 1)))

                  {

                  } // end of for

                  currentMask = _loc2;

              }

              else if (currentMask == _transitions.length - 1)

              {

                  currentMask = 0;

              }

              else

              {

                  ++currentMask;

              } // end else if

          } // End of the function

          function checkTrans()

          {

              if (!_transitions.length)

              {

                  _transitions = new Array();

                  _transitions.push(0);

                  currentMask = 0;

              } // end if

          } // End of the function

          function checkOrder()

          {

              for (var _loc2 = 1; _loc2 <= 6; ++_loc2)

              {

                  order[_loc2] = 0;

              } // end of for

              for (var _loc2 = 6; _loc2 >= 1; --_loc2)

              {

                  switch (_controlsOrder[_loc2 - 1])

                  {

                      case "previous":

                      {

                          order[1] = _loc2;

                          break;

                      }

                      case "playpause":

                      {

                          order[2] = _loc2;

                          break;

                      }

                      case "timer":

                      {

                          order[3] = _loc2;

                          break;

                      }

                      case "numbers":

                      {

                          order[4] = _loc2;

                          break;

                      }

                      case "next":

                      {

                          order[5] = _loc2;

                          break;

                      }

                      case "fullscreen":

                      {

                          order[6] = _loc2;

                      }

                  } // End of switch

              } // end of for

              if (_controlsOptions[5])

              {

                  order[4] = 0;

              } // end if

              for (var _loc6 = 1; _loc6 <= 5; ++_loc6)

              {

                  var _loc5 = 0;

                  for (var _loc2 = 1; _loc2 <= 6; ++_loc2)

                  {

                      if (order[_loc2])

                      {

                          ++_loc5;

                      } // end if

                  } // end of for

                  for (var _loc3 = 1; _loc3 <= _loc5; ++_loc3)

                  {

                      var _loc4 = false;

                      for (var _loc2 = 1; _loc2 <= 6; ++_loc2)

                      {

                          if (order[_loc2] == _loc3)

                          {

                              _loc4 = true;

                          } // end if

                      } // end of for

                      if (!_loc4)

                      {

                          for (var _loc2 = 1; _loc2 <= 6; ++_loc2)

                          {

                              if (order[_loc2] > _loc3)

                              {

                                  --order[_loc2];

                              } // end if

                          } // end of for

                      } // end if

                  } // end of for

              } // end of for

          } // End of the function

          function onpressimage()

          {

              if (urls[currentImage])

              {

                  this.getURL(urls[currentImage], target[currentImage]);

              } // end if

          } // End of the function

          function createBackground()

          {

              back = this.createEmptyMovieClip("back", 1);

              var _loc2;

              _backgroundColor == null ? (_loc2 = 0, 0) : (_loc2 = 100, 100);

              this.drawRect(back, _backgroundColor, _loc2, 0, 0, _bannerWidth, _bannerHeight);

              mask = this.createEmptyMovieClip("mask", 0);

              this.drawRect(mask, 0, 0, 0, 0, _bannerWidth, _bannerHeight);

              container.setMask(mask);

          } // End of the function

          function Bool(s)

          {

              if (s == "true")

              {

                  return (true);

              }

              else

              {

                  return (false);

              } // end else if

          } // End of the function

          function about()

          {

              var _loc2 = new ContextMenu();

              _loc2.hideBuiltInItems();

              menu = _loc2;

              var _loc3 = new ContextMenuItem("About Banner Rotator FX", gotoBannerRotator);

              if (showAbout)

              {

                  _loc2.customItems[0] = _loc3;

              } // end if

          } // End of the function

          function gotoBannerRotator()

          {

              _root.getURL("http://www.flashxml.net/banner-rotator.html", "_blank");

          } // End of the function

          function rovdisplay()

          {

              if (_pauseOnMouseOver && play)

              {

                  play = false;

                  playpauseBut.cont.gotoAndStop(1);

                  clearInterval(dividedInterval);

              } // end if

              if (_textOptions[0] == "onMouseOver" && info[currentImage] && !inTrans)

              {

                  this.showText();

              } // end if

              mOverDis = true;

              if (_controlsOptions[0] == "onMouseOver")

              {

                  this.createControls();

              } // end if

          } // End of the function

          function roudisplay()

          {

              mouseIsInside = false;

              displayer.onEnterFrame = net.ascb.util.Proxy.create(this, rollwait, getTimer(), 100, displayer);

          } // End of the function

          function rollwait(now, delay, clip)

          {

              if (getTimer() - now >= delay)

              {

                  delete clip.onEnterFrame;

                  if (!mouseIsInside)

                  {

                      if (_pauseOnMouseOver && !play)

                      {

                          play = true;

                          playpauseBut.cont.gotoAndStop(2);

                          dividedInterval = setInterval(this, "sequential", (Number(durations[currentImage]) + transDur[currentTrans]) * 1000 / 12);

                      } // end if

                      if (_textOptions[0] == "onMouseOver")

                      {

                          description.removeMovieClip();

                          textIsOn = false;

                      } // end if

                      mOverDis = false;

                      if (_controlsOptions[0] == "onMouseOver")

                      {

                          this.destructControls();

                      } // end if

                  } // end if

              } // end if

          } // End of the function

          function attachPreloader()

          {

              pre = container.attachMovie("preloader", "pre", 4);

              pre._width = pre._height = _preloaderOptions[4];

              switch (_preloaderOptions[1])

              {

                  case "left":

                  {

                      pre._x = _preloaderOptions[3] + pre._width / 2;

                      break;

                  }

                  case "right":

                  {

                      pre._x = _bannerWidth - _preloaderOptions[3] - pre._width / 2;

                      break;

                  }

                  case "center":

                  {

                      pre._x = _bannerWidth / 2;

                  }

              } // End of switch

              switch (_preloaderOptions[2])

              {

                  case "top":

                  {

                      pre._y = _preloaderOptions[3] + pre._height / 2;

                      break;

                  }

                  case "bottom":

                  {

                      pre._y = _bannerHeight - _preloaderOptions[3] - pre._height / 2;

                      break;

                  }

                  case "center":

                  {

                      pre._y = _bannerHeight / 2;

                  }

              } // End of switch

              pre._visible = false;

          } // End of the function

          function onpressfullscreen()

          {

              this.resetTween(true, true);

              if (Stage.displayState == "normal")

              {

                  Stage.displayState = "fullScreen";

                  this.dispatchEvent({type: "fullScreen"});

                  if (currentZoomPercent && currentDuration)

                  {

                      backupSpeed = currentDuration;

                      currentDuration = 0;

                      delete banner[currentImage].onEnterFrame;

                  } // end if

                  inTrans = false;

                  originalWidth = _bannerWidth;

                  originalHeight = _bannerHeight;

                  _bannerWidth = Stage.width;

                  _bannerHeight = Stage.height;

                  inFullScreen = true;

                  banner[currentImage].masc.removeMovieClip();

              }

              else

              {

                  Stage.displayState = "normal";

                  this.dispatchEvent({type: "restore"});

                  currentDuration = backupSpeed;

                  _bannerWidth = originalWidth;

                  _bannerHeight = originalHeight;

                  inFullScreen = false;

              } // end else if

              this.createBackground();

              banner[currentImage].holder._x = banner[currentImage].holder._y = 0;

              banner[currentImage].masc._width = _bannerWidth + 4;

              banner[currentImage].masc._height = _bannerHeight + 4;

              this.createControls();

              this.attachPreloader();

              this.fitImage(currentImage);

          } // End of the function

          function osslideupdown()

          {

              banner[previousImage]._y = 0;

          } // End of the function

          function osslideleftright()

          {

              banner[previousImage]._x = 0;

          } // End of the function

          function slideup(func, dur, useSecond)

          {

              tw1 = new mx.transitions.Tween(banner[currentImage], "_y", func, _bannerHeight, 0, dur, true);

              if (useSecond)

              {

                  new mx.transitions.Tween(banner[previousImage], "_y", func, 0, -_bannerHeight, dur, true);

              } // end if

              tw1.onMotionStopped = net.ascb.util.Proxy.create(this, osslideupdown);

          } // End of the function

          function slidedown(func, dur, useSecond)

          {

              tw1 = new mx.transitions.Tween(banner[currentImage], "_y", func, -_bannerHeight, 0, dur, true);

              if (useSecond)

              {

                  new mx.transitions.Tween(banner[previousImage], "_y", func, 0, _bannerHeight, dur, true);

              } // end if

              tw1.onMotionStopped = net.ascb.util.Proxy.create(this, osslideupdown);

          } // End of the function

          function slideright(func, dur, useSecond)

          {

              tw1 = new mx.transitions.Tween(banner[currentImage], "_x", func, _bannerWidth, 0, dur, true);

              if (useSecond)

              {

                  new mx.transitions.Tween(banner[previousImage], "_x", func, 0, -_bannerWidth, dur, true);

              } // end if

              tw1.onMotionStopped = net.ascb.util.Proxy.create(this, osslideleftright);

          } // End of the function

          function slideleft(func, dur, useSecond)

          {

              tw1 = new mx.transitions.Tween(banner[currentImage], "_x", func, -_bannerWidth, 0, dur, true);

              if (useSecond)

              {

                  new mx.transitions.Tween(banner[previousImage], "_x", func, 0, _bannerWidth, dur, true);

              } // end if

              tw1.onMotionStopped = net.ascb.util.Proxy.create(this, osslideleftright);

          } // End of the function

          function scaleleft(func, dur)

          {

              new mx.transitions.Tween(banner[currentImage], "_xscale", func, 0, 100, dur, true);

              tw1 = new mx.transitions.Tween(banner[previousImage], "_x", func, 0, _bannerWidth, dur, true);

              tw1.onMotionStopped = net.ascb.util.Proxy.create(this, osslideleftright);

          } // End of the function

          function scaleright(func, dur)

          {

              new mx.transitions.Tween(banner[currentImage], "_xscale", func, 0, 100, dur, true);

              new mx.transitions.Tween(banner[currentImage], "_x", func, _bannerWidth, 0, dur, true);

              tw1 = new mx.transitions.Tween(banner[previousImage], "_x", func, 0, -_bannerWidth, dur, true);

              tw1.onMotionStopped = net.ascb.util.Proxy.create(this, osslideleftright);

          } // End of the function

          function scaleup(func, dur)

          {

              new mx.transitions.Tween(banner[currentImage], "_yscale", func, 0, 100, dur, true);

              tw1 = new mx.transitions.Tween(banner[previousImage], "_y", func, 0, _bannerHeight, dur, true);

              tw1.onMotionStopped = net.ascb.util.Proxy.create(this, osslideupdown);

          } // End of the function

          function scaledown(func, dur)

          {

              new mx.transitions.Tween(banner[currentImage], "_yscale", func, 0, 100, dur, true);

              new mx.transitions.Tween(banner[currentImage], "_y", func, _bannerHeight, 0, dur, true);

              tw1 = new mx.transitions.Tween(banner[previousImage], "_y", func, 0, -_bannerHeight, dur, true);

              tw1.onMotionStopped = net.ascb.util.Proxy.create(this, osslideupdown);

          } // End of the function

          function scalecenter(func, dur)

          {

              this.alphaTween(func, dur);

              this.regBanner(_bannerWidth / 2, _bannerHeight / 2);

              new mx.transitions.Tween(banner[currentImage], "_xscale2", func, 0, 100, dur, true);

              new mx.transitions.Tween(banner[currentImage], "_yscale2", func, 0, 100, dur, true);

          } // End of the function

          function scalecenterup(func, dur)

          {

              this.alphaTween(func, dur);

              com.darronschall.DynamicRegistration.initialize(banner[currentImage]);

              banner[currentImage].setRegistration(_bannerWidth / 2, _bannerHeight / 2);

              new mx.transitions.Tween(banner[currentImage], "_xscale2", func, 0, 100, dur, true);

              new mx.transitions.Tween(banner[currentImage], "_yscale", func, 0, 100, dur, true);

          } // End of the function

          function scalecenterdown(func, dur)

          {

              this.alphaTween(func, dur);

              this.regBanner(_bannerWidth / 2, _bannerHeight / 2);

              new mx.transitions.Tween(banner[currentImage], "_xscale2", func, 0, 100, dur, true);

              new mx.transitions.Tween(banner[currentImage], "_yscale", func, 0, 100, dur, true);

              tw1 = new mx.transitions.Tween(banner[currentImage], "_y", func, _bannerHeight, 0, dur, true);

              tw1.onMotionStopped = net.ascb.util.Proxy.create(this, osslideupdown);

          } // End of the function

          function rotatecenter(func, dur, angle1, angle2, usex, usey)

          {

              this.alphaTween(func, dur);

              this.regBanner(_bannerWidth / 2, _bannerHeight / 2);

              if (usex)

              {

                  new mx.transitions.Tween(banner[currentImage], "_xscale2", func, 0, 100, dur, true);

              } // end if

              if (usey)

              {

                  new mx.transitions.Tween(banner[currentImage], "_yscale2", func, 0, 100, dur, true);

              } // end if

              new mx.transitions.Tween(banner[currentImage], "_rotation2", func, angle1, angle2, dur, true);

          } // End of the function

          function rotateupleft(func, dur, angle1, angle2, usex, usey)

          {

              this.alphaTween(func, dur);

              new mx.transitions.Tween(banner[currentImage], "_rotation", func, angle1, angle2, dur, true);

              if (usex)

              {

                  new mx.transitions.Tween(banner[currentImage], "_xscale", func, 0, 100, dur, true);

              } // end if

              if (usey)

              {

                  new mx.transitions.Tween(banner[currentImage], "_yscale", func, 0, 100, dur, true);

              } // end if

          } // End of the function

          function rotateupcenter(func, dur, angle1, angle2, usex, usey)

          {

              this.alphaTween(func, dur);

              this.regBanner(_bannerWidth / 2, 0);

              new mx.transitions.Tween(banner[currentImage], "_rotation2", func, angle1, angle2, dur, true);

              if (usex)

              {

                  new mx.transitions.Tween(banner[currentImage], "_xscale2", func, 0, 100, dur, true);

              } // end if

              if (usey)

              {

                  new mx.transitions.Tween(banner[currentImage], "_yscale2", func, 0, 100, dur, true);

              } // end if

          } // End of the function

          function rotaterightdown(func, dur, angle1, angle2, usex, usey)

          {

              this.alphaTween(func, dur);

              this.regBanner(_bannerWidth, _bannerHeight);

              new mx.transitions.Tween(banner[currentImage], "_rotation2", func, angle1, angle2, dur, true);

              if (usex)

              {

                  new mx.transitions.Tween(banner[currentImage], "_xscale2", func, 0, 100, dur, true);

              } // end if

              if (usey)

              {

                  new mx.transitions.Tween(banner[currentImage], "_yscale2", func, 0, 100, dur, true);

              } // end if

          } // End of the function

          function regBanner(w, h)

          {

              com.darronschall.DynamicRegistration.initialize(banner[currentImage]);

              banner[currentImage].setRegistration(w, h);

          } // End of the function

          function showText()

          {

              if (!textIsOn)

              {

                  textIsOn = true;

                  var _loc9 = tType[currentImage] ? (tType[currentImage]) : (_textBackground[0]);

                  description = container.createEmptyMovieClip("description", 2);

                  headandbody = description.createEmptyMovieClip("headandbody", 2);

                  headandbody.createEmptyMovieClip("head", 1);

                  headtxt = headandbody.head.createTextField("headtxt" + currentImage, 1, 0, 0, 0, 0);

                  if (head[currentImage].length > 7)

                  {

                      headtxt.autoSize = true;

                      headtxt.multiline = true;

                      headtxt.selectable = false;

                      if (_textOptions[1])

                      {

                          headtxt.embedFonts = true;

                      } // end if

                      headtxt.html = true;

                      if (styleloaded)

                      {

                          headtxt.styleSheet = styles;

                      } // end if

                      headtxt.htmlText = head[currentImage];

                  } // end if

                  var _loc4;

                  var _loc10;

                  var _loc12;

                  var _loc11;

                  _loc10 = tWid[currentImage] ? (tWid[currentImage]) : (_textOptions[4]);

                  _loc11 = tHei[currentImage] ? (tHei[currentImage]) : (_textOptions[5]);

                  Number(_loc10) ? (_loc4 = Number(_loc10), Number(_loc10)) : (_loc4 = _bannerWidth - 2 * _textOptions[6], _bannerWidth - 2 * _textOptions[6]);

                  Number(_loc11) ? (_loc12 = Number(_loc11), Number(_loc11)) : (_loc12 = _bannerHeight - 2 * _textOptions[6], _bannerHeight - 2 * _textOptions[6]);

                  if (headtxt._width > _loc4)

                  {

                      headtxt._width = _loc4;

                  }

                  else

                  {

                      ++headtxt._width;

                  } // end else if

                  headtxt.wordWrap = true;

                  headandbody.createEmptyMovieClip("body", 2);

                  bodytxt = headandbody.body.createTextField("bodytxt" + currentImage, 1, 0, 0, 0, 0);

                  if (body[currentImage].length > 7)

                  {

                      bodytxt.autoSize = true;

                      bodytxt.multiline = true;

                      bodytxt.selectable = false;

                      if (_textOptions[1])

                      {

                          bodytxt.embedFonts = true;

                      } // end if

                      bodytxt.html = true;

                      if (styleloaded)

                      {

                          bodytxt.styleSheet = styles;

                      } // end if

                      bodytxt.htmlText = body[currentImage];

                      if (bodytxt._width > _loc4)

                      {

                          bodytxt._width = _loc4;

                      }

                      else

                      {

                          ++bodytxt._width;

                      } // end else if

                      bodytxt.wordWrap = true;

                      headandbody.body._y = headtxt._height + (_loc9 != "wide" ? (2 * _textBackground[4]) : (0)) + _textOptions[7];

                      headandbody.body._visible = false;

                  } // end if

                  var _loc8 = hPos[currentImage] ? (hPos[currentImage]) : (_textOptions[2]);

                  if (!this.searchArray(_loc8, horiz))

                  {

                      _loc8 = this.randomFromArray(horiz);

                  } // end if

                  switch (_loc8)

                  {

                      case "center":

                      {

                          headandbody._x = _bannerWidth / 2 - headandbody._width / 2;

                          break;

                      }

                      case "right":

                      {

                          headandbody._x = _bannerWidth - headandbody._width - _textOptions[6];

                          break;

                      }

                      default:

                      {

                          headandbody._x = _textOptions[6];

                      }

                  } // End of switch

                  var _loc6 = vPos[currentImage] ? (vPos[currentImage]) : (_textOptions[3]);

                  if (!this.searchArray(_loc6, vertic))

                  {

                      _loc6 = this.randomFromArray(vertic);

                  } // end if

                  switch (_loc6)

                  {

                      case "center":

                      {

                          headandbody._y = _bannerHeight / 2 - headandbody._height / 2;

                          break;

                      }

                      case "bottom":

                      {

                          headandbody._y = _bannerHeight - headandbody._height - _textOptions[6];

                          break;

                      }

                      default:

                      {

                          headandbody._y = _textOptions[6];

                      }

                  } // End of switch

                  var _loc5 = tAppear[currentImage] ? (tAppear[currentImage]) : (_textEffects[3]);

                  if (!this.searchArray(_loc5, hv))

                  {

                      _loc5 = this.randomFromArray(hv);

                  } // end if

                  var _loc3 = 33;

                  switch (_loc5)

                  {

                      case "top":

                      {

                          coord = "_y";

                          beginHead = headtxt._y - _loc3;

                          finishHead = headtxt._y;

                          beginBody = headandbody.body._y - _loc3;

                          finishBody = headandbody.body._y;

                          break;

                      }

                      case "bottom":

                      {

                          coord = "_y";

                          beginHead = headtxt._y + _loc3;

                          finishHead = headtxt._y;

                          beginBody = headandbody.body._y + _loc3;

                          finishBody = headandbody.body._y;

                          break;

                      }

                      case "left":

                      {

                          coord = "_x";

                          beginHead = headtxt._x - _loc3;

                          finishHead = headtxt._x;

                          beginBody = bodytxt._x - _loc3;

                          finishBody = bodytxt._x;

                          break;

                      }

                      case "right":

                      {

                          coord = "_x";

                          beginHead = headtxt._x + _loc3;

                          finishHead = headtxt._x;

                          beginBody = bodytxt._x + _loc3;

                          finishBody = bodytxt._x;

                          break;

                      }

                  } // End of switch

                  var _loc7 = tFunction[currentImage] ? (tFunction[currentImage]) : (_textEffects[4]);

                  if (!this.searchArray(_loc7, functions))

                  {

                      _loc7 = this.randomFromArray(functions);

                  } // end if

                  switch (_loc7)

                  {

                      case "Back":

                      {

                          easingFunc = mx.transitions.easing.Back[_textEffects[5]];

                          break;

                      }

                      case "Bounce":

                      {

                          easingFunc = mx.transitions.easing.Bounce[_textEffects[5]];

                          break;

                      }

                      case "Elastic":

                      {

                          easingFunc = mx.transitions.easing.Elastic[_textEffects[5]];

                          break;

                      }

                      case "Strong":

                      {

                          easingFunc = mx.transitions.easing.Strong[_textEffects[5]];

                          break;

                      }

                  } // End of switch

                  if (_loc9 != "wide")

                  {

                      if (head[currentImage].length > 7)

                      {

                          headandbody.head.createEmptyMovieClip("backHead", 0);

                          this.drawRoundedRect(headandbody.head.backHead, headtxt._width + 2 * _textBackground[4], headtxt._height + 2 * _textBackground[4], _textBackground[5], _textBackground[1], _textBackground[2]);

                          headandbody.head.backHead._x = headandbody.head.backHead._x - _textBackground[4];

                          headandbody.head.backHead._y = headandbody.head.backHead._y - _textBackground[4];

                      } // end if

                      if (body[currentImage].length > 7)

                      {

                          headandbody.body.createEmptyMovieClip("backBody", 0);

                          this.drawRoundedRect(headandbody.body.backBody, bodytxt._width + 2 * _textBackground[4], bodytxt._height + 2 * _textBackground[4], _textBackground[5], _textBackground[3], _textBackground[2]);

                          headandbody.body.backBody._x = headandbody.body.backBody._x - _textBackground[4];

                          headandbody.body.backBody._y = headandbody.body.backBody._y - _textBackground[4];

                      } // end if

                      headandbody.head.backHead.onRollOver = headandbody.body.backBody.onRollOver = net.ascb.util.Proxy.create(this, rovdescription);

                  } // end if

                  if (_textEffects[2])

                  {

                      new net.snowcat.utils.BlurTween(headandbody.head, "in", 3, 3, 3, _textEffects[6], mx.transitions.easing.Regular.easeOut);

                  } // end if

                  if (tSlide[currentImage] ? (this.Bool(tSlide[currentImage])) : (_textEffects[0]))

                  {

                      new mx.transitions.Tween(headandbody.head, coord, easingFunc, beginHead, finishHead, _textEffects[6], true);

                  } // end if

                  if (_textEffects[1])

                  {

                      new mx.transitions.Tween(headandbody.head, "_alpha", easingFunc, 0, 100, _textEffects[6], true);

                  } // end if

                  headandbody.onEnterFrame = net.ascb.util.Proxy.create(this, bodywait, getTimer(), _textEffects[7] * 1000, headandbody);

                  if (_loc9 == "wide")

                  {

                      var _loc2 = description.createEmptyMovieClip("back", 0);

                      this.drawRect(description.back, _textBackground[1], _textBackground[2], 0, 0, 1, 1);

                      if (Math.max(headtxt._width, bodytxt._width) + 2 * _textOptions[6] > _bannerWidth / 2)

                      {

                          _loc2._y = headandbody._y - _textOptions[6];

                          _loc2._width = _bannerWidth;

                          _loc2._height = headtxt._height + bodytxt._height + _textOptions[7] + 2 * _textOptions[6];

                      }

                      else

                      {

                          _loc2._x = headandbody._x - _textOptions[6];

                          _loc2._height = _bannerHeight;

                          _loc2._width = Math.max(headtxt._width, bodytxt._width) + 2 * _textOptions[6];

                      } // end else if

                      if (_textEffects[1])

                      {

                          new mx.transitions.Tween(_loc2, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, _textEffects[6], true);

                      } // end if

                      _loc2.onRollOver = net.ascb.util.Proxy.create(this, rovdescription);

                  } // end if

              } // end if

          } // End of the function

          function bodywait(now, delay, clip)

          {

              if (getTimer() - now >= delay)

              {

                  delete clip.onEnterFrame;

                  headandbody.body._visible = true;

                  if (_textEffects[2])

                  {

                      new net.snowcat.utils.BlurTween(headandbody.body, "in", 3, 3, 3, _textEffects[6], mx.transitions.easing.Regular.easeOut);

                  } // end if

                  if (tSlide[currentImage] ? (this.Bool(tSlide[currentImage])) : (_textEffects[0]))

                  {

                      new mx.transitions.Tween(headandbody.body, coord, easingFunc, beginBody, finishBody, _textEffects[6], true);

                  } // end if

                  if (_textEffects[1])

                  {

                      new mx.transitions.Tween(headandbody.body, "_alpha", easingFunc, 0, 100, _textEffects[6], true);

                  } // end if

              } // end if

          } // End of the function

          function getTag(tag, html)

          {

              var _loc4 = html.indexOf("<" + tag + ">");

              var _loc3 = html.indexOf("</" + tag + ">");

              return (html.slice(_loc4, _loc3) + "</" + tag + ">");

          } // End of the function

          function drawRoundedRect(mc, wid, hei, cR, fC, fA)

          {

              with (mc)

              {

                  beginFill(fC, fA);

                  moveTo(cR, 0);

                  lineTo(wid - cR, 0);

                  curveTo(wid, 0, wid, cR);

                  lineTo(wid, cR);

                  lineTo(wid, hei - cR);

                  curveTo(wid, hei, wid - cR, hei);

                  lineTo(wid - cR, hei);

                  lineTo(cR, hei);

                  curveTo(0, hei, 0, hei - cR);

                  lineTo(0, hei - cR);

                  lineTo(0, cR);

                  curveTo(0, 0, cR, 0);

                  lineTo(cR, 0);

                  endFill();

              } // End of with

          } // End of the function

          function alphaTween(func, dur)

          {

              new mx.transitions.Tween(banner[currentImage], "_alpha", func, 30, 100, dur, true);

          } // End of the function

          function searchArray(e, a)

          {

              for (var _loc1 = 0; _loc1 < a.length; ++_loc1)

              {

                  if (e == a[_loc1])

                  {

                      return (true);

                  } // end if

              } // end of for

              return (false);

          } // End of the function

          function randomFromArray(a)

          {

              return (a[Math.round(Math.random() * (a.length - 1))]);

          } // End of the function

          function colorize(mc, color)

          {

              var _loc1 = new Color(mc);

              _loc1.setRGB(color);

          } // End of the function

          function drawRect(mc, color, alpha, x, y, w, h)

          {

              with (mc)

              {

                  beginFill(color, alpha);

                  moveTo(x, y);

                  lineTo(w, y);

                  lineTo(w, h);

                  lineTo(x, h);

                  lineTo(x, y);

                  endFill();

              } // End of with

          } // End of the function

          function toArray(string, separator)

          {

              var _loc5 = new Array();

              if (typeof(string) == "string")

              {

                  if (separator == undefined)

                  {

                      separator = ",";

                  } // end if

                  if (string == null)

                  {

                      return (false);

                  } // end if

                  for (var _loc2 = 0; _loc2 < string.length; _loc2 = _loc1 + 1)

                  {

                      var _loc1 = string.indexOf(separator, _loc2);

                      if (_loc1 == -1)

                      {

                          break;

                      } // end if

                      var _loc4 = string.slice(_loc2, _loc1);

                      _loc5.push(_loc4);

                  } // end of for

                  if (_loc5.length < 1)

                  {

                      _loc5.push(string);

                  }

                  else

                  {

                      _loc5.push(string.slice(_loc2, string.length));

                  } // end else if

              }

              else

              {

                  _loc5.push(string);

              } // end else if

              return (_loc5);

          } // End of the function

          function resetTween(p, c)

          {

              if (p)

              {

                  previousTween1.rewind();

                  previousTween1.stop();

                  previousTween2.rewind();

                  previousTween2.stop();

              } // end if

              if (c)

              {

                  currentTween1.rewind();

                  currentTween1.stop();

                  currentTween2.rewind();

                  currentTween2.stop();

              } // end if

          } // End of the function

          var transDur = [0, 1.500000E+000, 1.500000E+000, 2, 1.300000E+000, 1.500000E+000, 1.500000E+000, 1.300000E+000, 2.500000E+000, 2.200000E+000, 1.300000E+000, 8.500000E-001, 2.300000E+000, 1, 1.300000E+000, 1.600000E+000, 1, 1.300000E+000, 1, 1, 2, 1, 1.500000E+000, 1, 1, 1, 2, 1, 1, 1, 2.100000E+000, 9.000000E-001, 2, 1.500000E+000, 2, 2, 1.500000E+000, 2, 1.500000E+000, 2, 2, 2.500000E+000, 2, 1.500000E+000, 2, 2, 2.500000E+000, 2, 1.500000E+000, 2, 2, 2.500000E+000, 1.500000E+000, 1, 2, 2, 2, 1.500000E+000, 1, 2, 2, 2, 1.500000E+000, 1, 2, 2, 2, 1.500000E+000, 1, 2, 2, 2, 1.500000E+000, 1.500000E+000, 1.500000E+000, 2, 2, 1.500000E+000, 1.500000E+000, 2, 1.500000E+000, 1.500000E+000, 2, 2, 2, 2, 2, 1.500000E+000, 2, 2, 2, 1, 1.500000E+000, 1.500000E+000, 2, 1, 1.500000E+000, 2, 1.500000E+000, 1.500000E+000, 1.500000E+000, 2, 1.500000E+000, 2, 1.500000E+000, 1.500000E+000, 1.500000E+000, 2];

          var constructed = false;

          var showAbout = true;

          var effectType = ["zoom", "kenburns"];

          var horiz = ["left", "center", "right"];

          var vertic = ["top", "center", "bottom"];

          var inout = ["in", "out"];

          var hv = ["top", "bottom", "left", "right"];

          var functions = ["Regular", "Bounce", "Elastic", "Strong"];

          var inFullScreen = false;

          var keyListener = new Object();

          var commercial = false;

          • 2. Re: "ActionScript 2.0 Class scripts may only define class or interface constructs" error help
            kglad Adobe Community Professional & MVP

            i scrolled to the bottom of your message to get to the the reply button to let you know, no one is going to read all that code in a forum.

             

            but at the end i noticed two things:

             

            1.  you have code outside your class that will trigger that error and

            2.  that looks like you decompiled someone elses code which usually, but not always, means you don't understand that code.

             

            anway, hopefully you do understand that code and can fix the problem now that it's been pinpointed in 1.  of course, there's likely to be more problems if that is decompiled code.