# AS3 1084: Syntax error: expecting identifier before leftbracket

**URL:** <https://forum.kirupa.com/t/as3-1084-syntax-error-expecting-identifier-before-leftbracket/319812>\
**Category:** Uncategorized\
**Created:** [March 5, 2011, 4:48am UTC](https://forum.kirupa.com/t/as3-1084-syntax-error-expecting-identifier-before-leftbracket/319812 "2011-03-05T04:48:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WILWILWEL](https://avatars.discourse-cdn.com/v4/letter/w/a88e4f/32.png) [@WILWILWEL](https://forum.kirupa.com/u/WILWILWEL)\
**Post date:** [March 5, 2011, 4:48am UTC](https://forum.kirupa.com/t/as3-1084-syntax-error-expecting-identifier-before-leftbracket/319812/1 "2011-03-05T04:48:51Z")

</div>

I’m working on a script what populates an image gallery with an external Array.

When I’m checking the code i get an 1084: Syntax error: expecting identifier before leftbracket. at line 22 (marked red below)

when i relace the content of amfResults function with:

> trace(result[1].file);  
> it shows the fetched external content.

> 

init();

function init()  
{  
var net:NetConnection = new NetConnection();  
net.connect(“[http://www.sitename.com/amfphp/gateway.php](http://www.sitename.com/amfphp/gateway.php)”);  
net.call(“AlbumService.getAlbum”, new Responder(amfResults));  
}

function amfResults(result:Object):void  
{  
var objectNode:Object = result;  
var image:Object = ;  
var description:Object = ;  
var beschrijf:Object = ;  
var total = result.length;  
for (var i= 0; i\<total; i++) {  
[COLOR=red]\*_image_ = result._.file; \*\*[/COLOR]  
[COLOR=red]\*description = result._.bestelcode; \*_[/COLOR]  
[COLOR=red]beschrijf = result.\*.omschrijf;_[/COLOR]  
}

firstImage();

} else {  
content = “file not loaded!”;  
}  
}
