PDA

View Full Version : amfphp example fla missing include files


SeanPaul72
12-14-2003, 06:01 PM
Okay, so I'm testing example.fla from the amfphp/examples/basic directory.

When I open the FLA, I notice on the first line of AS there are include files#include "NetServices.as"

#include "NetDebug.as"


But I guess the pound sign in front makes them just comments.

Do I need these files? I can't find them anywhere in my amfphp folder.

Just trying to get the example to work.


here's a link. the fla isn't working
http://www.caillouette.com/amfphp/examples/basic/examples.html


Thanks

CyanBlue
12-14-2003, 06:11 PM
If you have downloaded and installed Flash Remoting Component from the MM site, you should have those files...

I don't know where it is stored in Mac, but I am on W2K and My Flash MX is installed in D:\G\Flash MX and I can find those AS files in D:\G\Flash MX\Configuration\include directory... ;)

SeanPaul72
12-14-2003, 06:21 PM
I found the files in my Flash MX folder.

So I placed copies of the file in the same folder as the example.fla inside the amfphp folder.

Then I uploaded the new files and teseted exampl.swf.

But it still doesn't work.

By the way, why is there a # in front of the include command in the fla .

Does anyone want to look at my fla or gateway.php to make sure I've got my settings correct?

the link is http://www.caillouette.com/example.sit

any help or advice is appreciated

Thanks again

SeanPaul72
12-14-2003, 06:28 PM
I just found a tutorial on AMFPHP in actionscript.org's tutorial section,

So I will be reading that before I post again

Thanks

freddycodes
12-14-2003, 06:39 PM
Yo udon't need to include them in the same folder as your swf. They get added when you compile the swf in flash. The #include is a directive which includes the specified file into the compiled swf.

You didn't include much. What does your file structure look like for the flash services folder?

SeanPaul72
12-14-2003, 07:08 PM
Freddycodes, I'm not sure I understand your question.

okay in my root I have the following flashservices/app/Gateway.php

I also have my example file in the following tree structure

amfphp/example/basic/examples.html

does that sound right?

SeanPaul72
12-14-2003, 09:02 PM
Nevermind, Cyan Blue cleared things up for me