# Code from MX tutorial in CS3

**URL:** <https://forum.kirupa.com/t/code-from-mx-tutorial-in-cs3/245690>\
**Category:** flash\
**Created:** [December 3, 2007, 3:05am UTC](https://forum.kirupa.com/t/code-from-mx-tutorial-in-cs3/245690 "2007-12-03T03:05:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![R216](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@R216](https://forum.kirupa.com/u/R216)\
**Post date:** [December 3, 2007, 3:05am UTC](https://forum.kirupa.com/t/code-from-mx-tutorial-in-cs3/245690/1 "2007-12-03T03:05:04Z")

</div>

I just completed this tutorial on Kirupa:

[http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)

I am getting 2 error messages pertaining to the code that was given to me to place on the actions frame:

**Error** Scene=Scene 1, layer=action, frame=1, Line 79: Statement block must be terminated by ‘}’  
function picture\_num() {

**Error** Scene=Scene 1, layer=action, frame=1, Line 81: Syntax error.  
pos\_txt.text = current\_pos+" / "+total;

Total ActionScript Errors: 2, Reported Errors: 2

I just copied this from the tutorial, so could this be a CS3 compatibility issue? File attached.
