AS3 script syntax error?


hi all, i'm trying backengineer flash script, , complete newbie flash (but  smart enough otherwise, hope : ) )

anyways, get

 

symbol=sprite 29, layer=initclip script, frame=1, line 1 syntax error.
symbol=sprite 29, layer=initclip script, frame=1, line 3 syntax error.
symbol=sprite 29, layer=initclip script, frame=1, line 4 syntax error.

and don't know why, if can take , point me in right direction....

 

thanks!

 

dynamic class gametoolbar {     var setupfinished: boolean = false;     var selectedthumbindex: number = 0;     var tweensfinished: number = 0;     var toolbarinitialized: boolean = false;     var animating: boolean = false;     var thumbwidth: number = 68;     var toolbarposition: number = 0;     var assetsloaded: number = 0;     var largeswfinitialized: boolean = false;     var currentgameurl;     var currentlinktarget;     var gamelibrary;     var gamexml;     var lastselectedthumbindex;     var leftscrollx;     var pagetween;     var preloadfadetween;     var rightscrollx;     var toolbarcontents;     var totalassets;     function gametoolbar(xmlfilelocation)     {         this.leftscrollx = _global.movieroot.back_arrow._x;         this.rightscrollx = _global.movieroot.next_arrow._x;         this.toolbarcontents = new array();         this.loadgamexml(xmlfilelocation);     }     function settoolbar(arrayindex)     {         if (this.animating)          {             return;         }         this.animating = true;         this.lastselectedthumbindex = this.selectedthumbindex;         this.gamelibrary[this.lastselectedthumbindex].stoplargeswf();         this.gamelibrary[this.lastselectedthumbindex].hidescreenshot();         this.selectedthumbindex = arrayindex;         delete this.toolbarcontents;         this.toolbarcontents = new array();         this.settoolbarcontents(this.selectedthumbindex);         this.currentgameurl = this.gamelibrary[this.selectedthumbindex].getlinkurl();         this.currentlinktarget = this.gamelibrary[this.selectedthumbindex].getlinktarget();         this.gamelibrary[this.selectedthumbindex].startselectanimation();         this.gamelibrary[this.selectedthumbindex].showscreenshot();         this.gamelibrary[this.selectedthumbindex].playlargeswf();     }     function slidethumbs()     {         var __reg2 = 0;         (;;)          {             if (__reg2 >= this.toolbarcontents.length)              {                 return;             }             this.toolbarcontents[__reg2].slidethumb(__reg2 * this.thumbwidth);             ++__reg2;         }     }     function restorehiddenthumb()     {         if (this.toolbarinitialized)          {             this.gamelibrary[this.lastselectedthumbindex].thumbfade("in");         }         else          {             this.toolbarinitialized = true;             _global.movieroot.toolbarcontainer._alpha = 100;             this.fadeoutpreloader();         }         trace("lastselectedthumbindex: " + this.lastselectedthumbindex);         trace("selectedthumbindex: " + this.selectedthumbindex);     }     function reporttweencompletion()     {         ++this.tweensfinished;         if (this.tweensfinished == this.toolbarcontents.length + 1)          {             this.restorehiddenthumb();             this.tweensfinished = 0;         }     }     function reportassetload()     {         ++this.assetsloaded;         trace("assetsloaded = " + this.assetsloaded);         _global.movieroot.preloadingscreen.loadingbar._width = math.floor(this.assetsloaded * 150 / this.totalassets);         if (this.assetsloaded == this.totalassets)          {             this.settoolbar(this.selectedthumbindex);         }     }     function enablemouseclick()     {         this.animating = false;     }     function pagethumbs(leftorright)     {         if (this.animating)          {             return;         }         this.animating = true;         var __reg3 = undefined;         var __reg5 = undefined;         var __reg4 = _global.movieroot.toolbarcontainer._x;         if (leftorright == "right")          {             if (this.toolbarcontents.length - this.toolbarposition > 9)              {                 __reg3 = 5;             }             else              {                 __reg3 = this.toolbarcontents.length - this.toolbarposition - 5;             }             __reg5 = __reg4 - __reg3 * this.thumbwidth;             this.toolbarposition = this.toolbarposition + __reg3;             trace("thumbstoslide=" + __reg3);             trace("toolbarposition=" + this.toolbarposition);         }         else          {             if (leftorright == "left")              {                 if (this.toolbarposition > 4)                  {                     __reg3 = 5;                 }                 else                  {                     __reg3 = this.toolbarposition;                 }                 __reg5 = __reg4 + __reg3 * this.thumbwidth;                 this.toolbarposition = this.toolbarposition - __reg3;                 trace("thumbstoslide=" + __reg3);                 trace("toolbarposition=" + this.toolbarposition);             }         }         this.setscrollbuttons();         this.pagetween = new mx.transitions.tween(_global.movieroot.toolbarcontainer, "_x", mx.transitions.easing.regular.easeinout, __reg4, __reg5, 0.75, true);         this.pagetween.onmotionfinished = mx.utils.delegate.create(this, this.pagetweenfinished);     }     function fadeoutpreloader()     {         this.preloadfadetween = new mx.transitions.tween(_global.movieroot.preloadingscreen, "_alpha", mx.transitions.easing.regular.easeout, _global.movieroot.preloadingscreen._alpha, 0, 0.25, true);         this.preloadfadetween.onmotionfinished = mx.utils.delegate.create(this, this.fadeoutpreloaderfinished);     }     function fadeoutpreloaderfinished()     {         _global.movieroot.preloadingscreen.swapdepths(555);         _global.movieroot.preloadingscreen.removemovieclip();         this.enablemouseclick();         delete this.preloadfadetween;     }     function setscrollbuttons()     {         if (this.toolbarposition > 0)          {             _global.movieroot.back_arrow._x = this.leftscrollx;         }         else          {             _global.movieroot.back_arrow._x = -1000;         }         if (this.toolbarposition + 6 > this.toolbarcontents.length)          {             _global.movieroot.next_arrow._x = -1000;             return;         }         _global.movieroot.next_arrow._x = this.rightscrollx;     }     function pagetweenfinished()     {         delete (this.pagetween);         this.enablemouseclick();         trace("paging finished");     }     function loadgamexml(xmlfilelocation)     {         this.gamexml = new xml();         this.gamexml.ignorewhite = true;         this.gamexml.onload = mx.utils.delegate.create(this, this.populategamelibrary);         this.gamexml.load(xmlfilelocation);     }     function settoolbarcontents(selectedthumbindex)     {         var __reg2 = 0;         (;;)          {             if (__reg2 >= this.gamelibrary.length)              {                 return;             }             if (__reg2 != selectedthumbindex)              {                 this.toolbarcontents.push(this.gamelibrary[__reg2]);             }             ++__reg2;         }     }     function populategamelibrary(success)     {         if (success)          {             var __reg4 = mx.xpath.xpathapi.selectnodelist(this.gamexml.firstchild, "/home/game");             var __reg7 = __reg4.length;             this.gamelibrary = new array();             var __reg6 = 0;             while (__reg6 < __reg7)              {                 var __reg3 = new gameprofile(__reg6);                 __reg3.setgametitle(mx.xpath.xpathapi.selectsinglenode(__reg4[__reg6], "game/title").firstchild.nodevalue);                 __reg3.setintrotext(mx.xpath.xpathapi.selectsinglenode(__reg4[__reg6], "game/introtext").firstchild.nodevalue);                 __reg3.setlinkurl(mx.xpath.xpathapi.selectsinglenode(__reg4[__reg6], "game/linkurl").firstchild.nodevalue);                 __reg3.setthumburl(mx.xpath.xpathapi.selectsinglenode(__reg4[__reg6], "game/thumburl").firstchild.nodevalue);                 __reg3.setlargeswfurl(mx.xpath.xpathapi.selectsinglenode(__reg4[__reg6], "game/largeswfurl").firstchild.nodevalue);                 __reg3.setscreenshoturl(mx.xpath.xpathapi.selectsinglenode(__reg4[__reg6], "game/screenshoturl").firstchild.nodevalue);                 var __reg5 = mx.xpath.xpathapi.selectsinglenode(__reg4[__reg6], "game/linktarget").firstchild.nodevalue;                 trace("raw xpath linktarget:" + __reg5);                 if (__reg5 == undefined)                  {                     __reg5 = "_top";                 }                 trace("modified xpath linktarget:" + __reg5);                 __reg3.setlinktarget(__reg5);                 this.gamelibrary.push(__reg3);                 ++__reg6;             }             this.totalassets = this.gamelibrary.length * 3;             __reg6 = 0;             while (__reg6 < this.gamelibrary.length)              {                 this.gamelibrary[__reg6].preloadthumb();                 this.gamelibrary[__reg6].preloadlargeswf();                 this.gamelibrary[__reg6].preloadscreenshot();                 ++__reg6;             }             _global.movieroot.back_arrow._x = -1000;             return;         }         trace("game library xml failed load");     } }  

is code on symbol timeline?




More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support