PDA

View Full Version : Syntax error during import (amfphp)


Innova
04-24-2007, 05:08 AM
I have amfphp working fine in a couple flash documents. I am trying to add it to another one, and it doesn't work:

**Error** Symbol=pages, layer=GalleryScript, frame=4:Line 1: Syntax error.
import mx.remoting.debug.NetDebug;

**Error** Symbol=pages, layer=GalleryScript, frame=4:Line 2: Syntax error.
import mx.remoting.*;

**Error** Symbol=pages, layer=GalleryScript, frame=4:Line 3: Syntax error.
import mx.rpc.*;

Total ActionScript Errors: 3 Reported Errors: 3



To make things simple I am just trying to get the hello world example on amfphp's site working. It works fine if I paste the code into a new document, but I get the above error when pasting into my existing document. I have dragged the Libraries to the stage in both cases.

What else could be the problem?

mooska
04-24-2007, 08:42 AM
publish settings -> action script 2
Probably youve got as1 setted in there, or some older player version.

//I didnt see its fp6 forum, then you need to include correct clasess, not import.

Innova
04-24-2007, 12:43 PM
Man, I spent two hours trying to debug that one. Glad it was a simple solution.

Thanks!