# Can some help me fix the syntax error?

**URL:** <https://forum.kirupa.com/t/can-some-help-me-fix-the-syntax-error/264140>\
**Category:** Uncategorized\
**Created:** [June 23, 2008, 3:07pm UTC](https://forum.kirupa.com/t/can-some-help-me-fix-the-syntax-error/264140 "2008-06-23T15:07:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wdv](https://avatars.discourse-cdn.com/v4/letter/w/9fc29f/32.png) [@wdv](https://forum.kirupa.com/u/wdv)\
**Post date:** [June 23, 2008, 3:07pm UTC](https://forum.kirupa.com/t/can-some-help-me-fix-the-syntax-error/264140/1 "2008-06-23T15:07:34Z")

</div>

```auto

var thumb_spacing = 40;
// load variables object to handle loading of text
var description_lv = new LoadVars();
description_lv.onData = function(raw_text){
 description_txt.text = raw_text;
}
function GeneratePortfolio(portfolio_xml){
 var portfolioPictures = portfolio_xml.firstChild.childNodes;
 for (var i = 0; i < portfolioPictures.length; i++){
  var currentPicture = portfolioPictures*;
  
  var currentThumb_mc = menu_mc.createEmptyMovieClip("thumbnail_mc"+i,i);
  currentThumb_mc._x = i * thumb_spacing;
  
  currentThumb_mc.createEmptyMovieClip("thumb_container",0);
  currentThumb_mc.thumb_container.loadMovie(currentPicture.attributes.thumb);
  
  currentThumb_mc.title = currentPicture.attributes.title;
  currentThumb_mc.image = currentPicture.attributes.image;
  currentThumb_mc.description = currentPicture.attributes.description;
  
  
  currentThumb_mc.onRollOver = currentThumb_mc.onDragOver = function(){
   info_txt.text = this.title;
  }
  currentThumb_mc.onRollOut = currentThumb_mc.onDragOut = function(){
   info_txt.text = "";
  }
  currentThumb_mc.onRelease = function(){
   image_mc.loadMovie(this.image);
   description_lv.load(this.description);
  }
 }
}
 

//new transition code
function loadTheImage (e):void {
TransitionManager.start(image_mc, {type:Wipe, direction:Transition.IN, duration:3, easing:None.easeNone, startPoint:1});
}
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE,loadTheImage);
 
 
// xml object for xml content (defines sources for selections)
var portfolio_xml = new XML();
portfolio_xml.ignoreWhite = true;
portfolio_xml.onLoad = function(success){
 if (success) GeneratePortfolio(this);
 else trace("Error loading XML file"); // no success? trace error (wont be seen on web)
}
// load
portfolio_xml.load("portfolio.xml");
 

```

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 23, 2008, 3:23pm UTC](https://forum.kirupa.com/t/can-some-help-me-fix-the-syntax-error/264140/2 "2008-06-23T15:23:05Z")

</div>

erm error messages usually tell you where the syntax error is…

if it is not where it says it is, it must be earlier in the code than when it spots it.

also calling things reserved AS names usually causes syntax

---

<div class="post-metadata">

**Author:** ![wdv](https://avatars.discourse-cdn.com/v4/letter/w/9fc29f/32.png) [@wdv](https://forum.kirupa.com/u/wdv)\
**Post date:** [June 23, 2008, 3:36pm UTC](https://forum.kirupa.com/t/can-some-help-me-fix-the-syntax-error/264140/3 "2008-06-23T15:36:40Z")

</div>

hey randomagain, thanks for helping so much, Im new to this stuff, Im looking for someone who can repost my code, fixed, then I can compare the differences so I can learn from it. Im not nearly advanced to start debugging.
