RE: [Flashcoders] amfphp

2010-02-01 Thread David Hunter

Glen has given you a wealth of links (that i'm going to look at too!) but i 
used two video tutorials on gotoandlearn.com which were a great introduction.
http://www.gotoandlearn.com/play?id=78http://www.gotoandlearn.com/play?id=79
i started making my own CMS off the back of these, but haven't got round to 
finishing it and doubt i will, no inclination to try and reinvent the wheel. it 
will be great to try amfphp for a client though when the right project comes 
along.i definitely had an issue with installing it. i think i had to manually 
drag the files on to the server or something. whatever the problem it was a 
quick fix and the video was a great help.
hope that helps,
david

> Date: Mon, 1 Feb 2010 22:20:47 +
> From: postmas...@glenpike.co.uk
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] amfphp
> 
> Hi,
> 
> Sephiroth had some nice stuff about working with AMFPHP, I remember his 
> setup tutorial was quite useful, but later releases of AMFPHP got better 
> at this - just unzip, change your gateway.php to point at the right 
> place, then look in some of the folders under there for the service 
> browser etc:
> 
> http://www.sephiroth.it/tutorials.php
> 
> Getting the Flash AS2 side was a bit of fun - you need the extra 
> remoting classes - outlined in Sephiroth's tutorials installed, which 
> can be fun to setup I believe...
> http://blog.vixiom.com/2007/04/17/actionscript-20-flash-remoting-with-flash-cs3/
> 
> The datagrid example I mentioned is here:
> 
> http://flash-creations.com/notes/servercomm_remoting_amfphp.php
> 
> I also know the Flash-DB site has some tutorials for AS2 & AS3 that look 
> powerful:
> 
> http://www.flash-db.com/Tutorials/hello/flashamfphp.php
> 
> To be honest, I played around with the server side code quite a lot 
> myself to learn - you can write examples to handle all the helloworld 
> and echo test in Flash, then play with some of the ideas above... The 
> "ServiceBrowser" is an invaluable tool for helping you setup your PHP 
> stuff server side - it will soon tell you if there are errors in your 
> PHP code that you might spend hours looking for in Flash. I also used to 
> write very simple PHP scripts to test my server side methods and check 
> the code was working okay. Also invaluable is using NetDebug::trace() 
> which passes debug information back to Flash along the remoting 
> connection - sprinkle liberally throughout your code and use the 
> Remoting Debugger or some kind of http-proxy like Charles, etc. to see 
> what gets spewed out. I have not done this for a while now, so not the 
> best person to ask maybe :)
> 
> Once you get the hang of writing services, it gets easier. There also 
> used to be a nice code generator when Aral did the AMFPHP + ARP demo 
> stuff which would generate AS stub code for your Flash client side, but 
> to be honest that got in the way of learning a bit and I shied away from 
> using it much after sussing out the stuff produced...
> 
> If you are looking at integrating with a back-end system, the Drupal 
> AMFPHP module lets you expose your Services via AMFPHP, which can be 
> configured in the Drupal Admin area. This kind of gets you away from 
> getting your hands dirty server-side, so is not ideal.
> 
> http://groups.drupal.org/node/2768
> 
> If you are a fan of other frameworks, or systems, they generally have 
> some tutorials for getting things going. I remember trying to setup with 
> CakePHP - that was a pain.
> 
> Some of the code is a bit old for the Flash side of things now, but the 
> PHP stuff is generally still quite relevant, although most of the 
> Services tend to be written in quite a non-modular way.
> 
> A lot of the Flex stuff works out of the box with Remoting now - look at 
> some of the examples, quite easy to setup a remoting connection and 
> define your result handling. It's what you do with the data that's 
> important.
> 
> I also just found this ready-rolled framework for AS3 remoting on 
> OSFlash - http://osflash.org/as3lrf The example sets out your "standard" 
> pattern for handling a remote method call to a server method which can 
> help you build. I have not spent any time messing with PureMVC, etc. but 
> thinking they may provide stuff to handle your "service" bit, or maybe 
> some examples (I would hope so...)
> 
> HTH a bit
> 
> Get the AMFPHP code, unzip to your LAMP server, visit the gateway.php 
> page to see the message then follow the link to the service browser...
> 
> Glen
> 
> Gustavo Duenas wrote:
> > Hi guys, I've pick this curiosity about amfphp since I'd like to use 
> > it on my websites, Does anyone of you kn

Re: [Flashcoders] amfphp

2010-02-01 Thread Glen Pike

Hi,

Sephiroth had some nice stuff about working with AMFPHP, I remember his 
setup tutorial was quite useful, but later releases of AMFPHP got better 
at this - just unzip, change your gateway.php to point at the right 
place, then look in some of the folders under there for the service 
browser etc:


http://www.sephiroth.it/tutorials.php

Getting the Flash AS2 side was a bit of fun - you need the extra 
remoting classes - outlined in Sephiroth's tutorials installed, which 
can be fun to setup I believe...

http://blog.vixiom.com/2007/04/17/actionscript-20-flash-remoting-with-flash-cs3/

The datagrid example I mentioned is here:

http://flash-creations.com/notes/servercomm_remoting_amfphp.php

I also know the Flash-DB site has some tutorials for AS2 & AS3 that look 
powerful:


http://www.flash-db.com/Tutorials/hello/flashamfphp.php

To be honest, I played around with the server side code quite a lot 
myself to learn - you can write examples to handle all the helloworld 
and echo test in Flash, then play with some of the ideas above... The 
"ServiceBrowser" is an invaluable tool for helping you setup your PHP 
stuff server side - it will soon tell you if there are errors in your 
PHP code that you might spend hours looking for in Flash. I also used to 
write very simple PHP scripts to test my server side methods and check 
the code was working okay. Also invaluable is using NetDebug::trace() 
which passes debug information back to Flash along the remoting 
connection - sprinkle liberally throughout your code and use the 
Remoting Debugger or some kind of http-proxy like Charles, etc. to see 
what gets spewed out. I have not done this for a while now, so not the 
best person to ask maybe :)


Once you get the hang of writing services, it gets easier. There also 
used to be a nice code generator when Aral did the AMFPHP + ARP demo 
stuff which would generate AS stub code for your Flash client side, but 
to be honest that got in the way of learning a bit and I shied away from 
using it much after sussing out the stuff produced...


If you are looking at integrating with a back-end system, the Drupal 
AMFPHP module lets you expose your Services via AMFPHP, which can be 
configured in the Drupal Admin area. This kind of gets you away from 
getting your hands dirty server-side, so is not ideal.


http://groups.drupal.org/node/2768

If you are a fan of other frameworks, or systems, they generally have 
some tutorials for getting things going. I remember trying to setup with 
CakePHP - that was a pain.


Some of the code is a bit old for the Flash side of things now, but the 
PHP stuff is generally still quite relevant, although most of the 
Services tend to be written in quite a non-modular way.


A lot of the Flex stuff works out of the box with Remoting now - look at 
some of the examples, quite easy to setup a remoting connection and 
define your result handling. It's what you do with the data that's 
important.


I also just found this ready-rolled framework for AS3 remoting on 
OSFlash - http://osflash.org/as3lrf The example sets out your "standard" 
pattern for handling a remote method call to a server method which can 
help you build. I have not spent any time messing with PureMVC, etc. but 
thinking they may provide stuff to handle your "service" bit, or maybe 
some examples (I would hope so...)


HTH a bit

Get the AMFPHP code, unzip to your LAMP server, visit the gateway.php 
page to see the message then follow the link to the service browser...


Glen

Gustavo Duenas wrote:
Hi guys, I've pick this curiosity about amfphp since I'd like to use 
it on my websites, Does anyone of you knows a good tutorial of it, 
rather than the one in the amfphp website? that tutorial seems for me 
not easy to understand or follow, is so simple, maybe some example 
about how to make a repeater in as3 or reading info from a mysql 
database on a URLLoader in flash as3, any help would be appreciated on 
this end.


Regards,

Gus
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--

Glen Pike
01326 218440
www.glenpike.co.uk 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] amfphp

2010-02-01 Thread Gustavo Duenas
Hi guys, I've pick this curiosity about amfphp since I'd like to use  
it on my websites, Does anyone of you knows a good tutorial of it,  
rather than the one in the amfphp website? that tutorial seems for me  
not easy to understand or follow, is so simple, maybe some example  
about how to make a repeater in as3 or reading info from a mysql  
database on a URLLoader in flash as3, any help would be appreciated on  
this end.


Regards,

Gus
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] amfphp AS3 - results as named arrays?

2009-08-15 Thread Mick G
I have a project that I built in AS2/amfphp that I am converting to AS3 and
from what I can tell, in AS3 there is no way to access the results of an
amfphp query as named arrays - is this correct?

In AS2 after a resmoting response I could do this:
getDraw_Result = function (Results:Array) {
var title = Results.items[0].title;
var user = Results.items[0].username;
}

But in AS3, I do this:
function onResult(Results:Array):void {
var items:Array = Results.serverInfo.initialData;
var title = items[0][0];
var user = items[0][1];
}

but I want to be able to access the arrays via their array name in as3. E.g.
var title = items[0].title;

Anyone know how to achieve this?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AMFPHP classes AS3

2008-05-14 Thread Muzak

http://www.google.com/search?hl=en&q=amfphp+tutorial&meta=
http://www.sephiroth.it/amfphp.php

- Original Message - 
From: "Vayu Robins" <[EMAIL PROTECTED]>

To: "Flash Coders List" 
Sent: Thursday, May 15, 2008 1:01 AM
Subject: [Flashcoders] AMFPHP classes AS3



Hi.

I was wondering if anyone here has som advice on running flash content from
a database with the help of AMFPHP 1.9?  Maybe someone has a brilliant class
for this or good tutorial.

I have searched the net, but am not finding much out there.

I need to make several queries, for instance for menu, content and news
ticker.

Thanks
Vayu




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AMFPHP classes AS3

2008-05-14 Thread Vayu Robins
Hi.

I was wondering if anyone here has som advice on running flash content from
a database with the help of AMFPHP 1.9?  Maybe someone has a brilliant class
for this or good tutorial.

I have searched the net, but am not finding much out there.

I need to make several queries, for instance for menu, content and news
ticker.

Thanks
Vayu


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] amfphp 1.9 issue

2008-04-27 Thread chas warn
I made some progress on this.

When I opened carlosinla.com/amfphp/gateway.phpin Internet Explorer
I got a 500 error.  Googled  "500 error amfphp" and somebody recommended
disabling .htaccess  and so I did.

Now when I load the above url - it says that it is installed correctly.  Go
figure.

Thanks for your assistance now I'll push forward.

Carlos




On Sun, Apr 27, 2008 at 1:33 AM, Cédric Tabin <[EMAIL PROTECTED]>
wrote:

> Hello,
>
> Check that your server use's PHP 5.2.5 ! It's written into the
> documentation
> that amfphp won't work if a lower version is used...
>
> Regards,
> Cedric
>
> On Sat, Apr 26, 2008 at 10:24 PM, chas warn <[EMAIL PROTECTED]>
> wrote:
>
> > Hello ... I'd appreciate any help on this issue.Carlos
> >
> > 1. I can get amfphp1.9 working local but not on my remote webserver.
> (I'm
> > using the HelloWorld sample)
> > 2. have no problems with amfphp 1.2 on remote server
> > 3. I'm using flash 8 with php 5.2.
> > 4. copied over amfphp directory less the fla files in the samples
> > directory.
> >
> > 4. Maybe there is something in the gateway.php that needs modification.
> > (???)
> >
> >
> >
> >
> > *** Below is located in www\amfphp\services directory.
> >
> >  > class HelloWorld
> > {
> >function sayHello()
> >{
> >return "Hello World!";
> >}
> > }
> > ?>
> >
> >
> >
> > *  Below is my fla file located in root directory
> >
> > var gatewayUrl:String = "http://carlosinla.com/amfphp/gateway.php";;
> > import mx.remoting.*;
> > import mx.rpc.*;
> > import mx.remoting.debug.NetDebug;
> >
> > NetDebug.initialize();
> > var oPosts:Object;
> >
> > var _service:Service = new Service(gatewayUrl, null, "HelloWorld", null,
> > null);
> > var pc:PendingCall = _service.sayHello();
> >
> > pc.responder = new RelayResponder(this, "handleResult", "handleError");
> >
> > function handleResult(re:ResultEvent) {
> >oPosts = re.result;
> > trace (oPosts.length);
> > test_txt.text=oPosts.length; //initial text changes to '12'   locally -
> but
> > no change on web server.
> > }
> >
> >
> > *  Below is cross-domain  file in root directory
> > 
> >  >  SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
> > 
> >  
> >  
> > 
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] amfphp 1.9 issue

2008-04-27 Thread Cédric Tabin
Hello,

Check that your server use's PHP 5.2.5 ! It's written into the documentation
that amfphp won't work if a lower version is used...

Regards,
Cedric

On Sat, Apr 26, 2008 at 10:24 PM, chas warn <[EMAIL PROTECTED]>
wrote:

> Hello ... I'd appreciate any help on this issue.Carlos
>
> 1. I can get amfphp1.9 working local but not on my remote webserver. (I'm
> using the HelloWorld sample)
> 2. have no problems with amfphp 1.2 on remote server
> 3. I'm using flash 8 with php 5.2.
> 4. copied over amfphp directory less the fla files in the samples
> directory.
>
> 4. Maybe there is something in the gateway.php that needs modification.
> (???)
>
>
>
>
> *** Below is located in www\amfphp\services directory.
>
>  class HelloWorld
> {
>function sayHello()
>{
>return "Hello World!";
>}
> }
> ?>
>
>
>
> *  Below is my fla file located in root directory
>
> var gatewayUrl:String = "http://carlosinla.com/amfphp/gateway.php";;
> import mx.remoting.*;
> import mx.rpc.*;
> import mx.remoting.debug.NetDebug;
>
> NetDebug.initialize();
> var oPosts:Object;
>
> var _service:Service = new Service(gatewayUrl, null, "HelloWorld", null,
> null);
> var pc:PendingCall = _service.sayHello();
>
> pc.responder = new RelayResponder(this, "handleResult", "handleError");
>
> function handleResult(re:ResultEvent) {
>oPosts = re.result;
> trace (oPosts.length);
> test_txt.text=oPosts.length; //initial text changes to '12'   locally - but
> no change on web server.
> }
>
>
> *  Below is cross-domain  file in root directory
> 
>   SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
> 
>  
>  
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] amfphp 1.9 issue

2008-04-27 Thread chas warn
Hello...

When I type in carlosinla.com/amfphp/gateway.php  I get a blank screen.

This is my .htaccess file

RewriteEngine On
RewriteCond %{HTTP_HOST} ^carlosinla.com
RewriteRule (.*) http://www.carlosinla.com/$1 [R=301,L]


... gateway.php file


setBaseClassPath("services/");


$gateway->setLooseMode(true);


$gateway->setCharsetHandler( "none", "ISO-8859-1", "ISO-8859-1" );


$gateway->setErrorHandling(E_ALL ^ E_NOTICE);


$gateway->setWebServiceHandler('php5');


$gateway->setAmf3RecordSetFormat("ArrayCollection");


if(PRODUCTION_SERVER)
{

$gateway->disableTrace();


$gateway->disableDebug();


$gateway->disableServiceDescription();
}



if (!isset($HTTP_RAW_POST_DATA)){
$HTTP_RAW_POST_DATA = file_get_contents('php://input');
}




include_once('advancedsettings.php');

include_once("adaptersettings.php");


$gateway->service();

?>






On Sun, Apr 27, 2008 at 12:09 AM, Bernard Visscher <[EMAIL PROTECTED]> wrote:

> I think it's a wrong .htaccess :)
>
> -Oorspronkelijk bericht-
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Namens Cor
> Verzonden: zondag 27 april 2008 8:42
> Aan: 'Flash Coders List'
> Onderwerp: RE: [Flashcoders] amfphp 1.9 issue
>
> Your gateway isn't there ?
>
> -Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Namens chas warn
> Verzonden: zaterdag 26 april 2008 22:24
> Aan: Flashcoders@chattyfig.figleaf.com
> Onderwerp: [Flashcoders] amfphp 1.9 issue
>
> Hello ... I'd appreciate any help on this issue.Carlos
>
> 1. I can get amfphp1.9 working local but not on my remote webserver. (I'm
> using the HelloWorld sample) 2. have no problems with amfphp 1.2 on remote
> server 3. I'm using flash 8 with php 5.2.
> 4. copied over amfphp directory less the fla files in the samples
> directory.
>
> 4. Maybe there is something in the gateway.php that needs modification.
> (???)
>
>
>
>
> *** Below is located in www\amfphp\services directory.
>
>  class HelloWorld
> {
>function sayHello()
>{
>return "Hello World!";
>}
> }
> ?>
>
>
>
> *  Below is my fla file located in root directory
>
> var gatewayUrl:String = "http://carlosinla.com/amfphp/gateway.php";;
> import mx.remoting.*;
> import mx.rpc.*;
> import mx.remoting.debug.NetDebug;
>
> NetDebug.initialize();
> var oPosts:Object;
>
> var _service:Service = new Service(gatewayUrl, null, "HelloWorld", null,
> null); var pc:PendingCall = _service.sayHello();
>
> pc.responder = new RelayResponder(this, "handleResult", "handleError");
>
> function handleResult(re:ResultEvent) {
>oPosts = re.result;
> trace (oPosts.length);
> test_txt.text=oPosts.length; //initial text changes to '12'   locally -
> but
> no change on web server.
> }
>
>
> *  Below is cross-domain  file in root directory 
>   SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
> 
>  
>   
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
> --
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.5/1399 - Release Date: 26-4-2008
> 14:17
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.5/1399 - Release Date: 26-4-2008
> 14:17
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.5/1399 - Release Date: 26-4-2008
> 14:17
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] amfphp 1.9 issue

2008-04-27 Thread Bernard Visscher
I think it's a wrong .htaccess :)

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Cor
Verzonden: zondag 27 april 2008 8:42
Aan: 'Flash Coders List'
Onderwerp: RE: [Flashcoders] amfphp 1.9 issue

Your gateway isn't there ?

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens chas warn
Verzonden: zaterdag 26 april 2008 22:24
Aan: Flashcoders@chattyfig.figleaf.com
Onderwerp: [Flashcoders] amfphp 1.9 issue

Hello ... I'd appreciate any help on this issue.Carlos

1. I can get amfphp1.9 working local but not on my remote webserver. (I'm
using the HelloWorld sample) 2. have no problems with amfphp 1.2 on remote
server 3. I'm using flash 8 with php 5.2.
4. copied over amfphp directory less the fla files in the samples directory.

4. Maybe there is something in the gateway.php that needs modification.
(???)




*** Below is located in www\amfphp\services directory.





*  Below is my fla file located in root directory

var gatewayUrl:String = "http://carlosinla.com/amfphp/gateway.php";;
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;

NetDebug.initialize();
var oPosts:Object;

var _service:Service = new Service(gatewayUrl, null, "HelloWorld", null,
null); var pc:PendingCall = _service.sayHello();

pc.responder = new RelayResponder(this, "handleResult", "handleError");

function handleResult(re:ResultEvent) {
oPosts = re.result;
trace (oPosts.length);
test_txt.text=oPosts.length; //initial text changes to '12'   locally - but
no change on web server.
}


*  Below is cross-domain  file in root directory 
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>

  
   
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


--
No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.5/1399 - Release Date: 26-4-2008
14:17

No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.5/1399 - Release Date: 26-4-2008
14:17
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.5/1399 - Release Date: 26-4-2008
14:17
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] amfphp 1.9 issue

2008-04-26 Thread Cor
Your gateway isn't there ?

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens chas warn
Verzonden: zaterdag 26 april 2008 22:24
Aan: Flashcoders@chattyfig.figleaf.com
Onderwerp: [Flashcoders] amfphp 1.9 issue

Hello ... I'd appreciate any help on this issue.Carlos

1. I can get amfphp1.9 working local but not on my remote webserver. (I'm
using the HelloWorld sample) 2. have no problems with amfphp 1.2 on remote
server 3. I'm using flash 8 with php 5.2.
4. copied over amfphp directory less the fla files in the samples directory.

4. Maybe there is something in the gateway.php that needs modification.
(???)




*** Below is located in www\amfphp\services directory.





*  Below is my fla file located in root directory

var gatewayUrl:String = "http://carlosinla.com/amfphp/gateway.php";;
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;

NetDebug.initialize();
var oPosts:Object;

var _service:Service = new Service(gatewayUrl, null, "HelloWorld", null,
null); var pc:PendingCall = _service.sayHello();

pc.responder = new RelayResponder(this, "handleResult", "handleError");

function handleResult(re:ResultEvent) {
oPosts = re.result;
trace (oPosts.length);
test_txt.text=oPosts.length; //initial text changes to '12'   locally - but
no change on web server.
}


*  Below is cross-domain  file in root directory 
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>

  
   
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


--
No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.5/1399 - Release Date: 26-4-2008
14:17

No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.5/1399 - Release Date: 26-4-2008
14:17
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.5/1399 - Release Date: 26-4-2008
14:17
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] amfphp 1.9 issue

2008-04-26 Thread chas warn
Hello ... I'd appreciate any help on this issue.Carlos

1. I can get amfphp1.9 working local but not on my remote webserver. (I'm
using the HelloWorld sample)
2. have no problems with amfphp 1.2 on remote server
3. I'm using flash 8 with php 5.2.
4. copied over amfphp directory less the fla files in the samples directory.

4. Maybe there is something in the gateway.php that needs modification.
(???)




*** Below is located in www\amfphp\services directory.





*  Below is my fla file located in root directory

var gatewayUrl:String = "http://carlosinla.com/amfphp/gateway.php";;
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;

NetDebug.initialize();
var oPosts:Object;

var _service:Service = new Service(gatewayUrl, null, "HelloWorld", null,
null);
var pc:PendingCall = _service.sayHello();

pc.responder = new RelayResponder(this, "handleResult", "handleError");

function handleResult(re:ResultEvent) {
oPosts = re.result;
trace (oPosts.length);
test_txt.text=oPosts.length; //initial text changes to '12'   locally - but
no change on web server.
}


*  Below is cross-domain  file in root directory

http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>

  
  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] amfphp 1.9 not working on web host

2008-04-22 Thread chas warn
Cool!  Thanks for responding Ashvin.   My little restaurant project is
working with amfphp1.2 on the remote server but I can only get version 1.9
to work locally.   There is no error message - it's just not connecting to
the database on the remote server.  I uploaded the 1.9 directory and I kept
the same crossdomain.xml  in the root directory but I just can't get it to
kick in.  In the morning, I'll check again for dumb mistakes.

You can see how I'm using amfphp on my website...
http://www.carlosinla.com/go/page5/page5.php

When I hooked this up to amfphp 1.9. it doesn't connect to the database. It
doesn't light up.

This thing will run smooth with 1.9.   My other pages on my site are using
1.2  until I get this figured out.  It's 2:40 a.m. - so I better go to bed.

Salute

Charley










On Mon, Apr 21, 2008 at 9:44 PM, Ashvin Savani <[EMAIL PROTECTED]> wrote:

> What exact error you are getting?
>
> Regards,
>
> Ashvin Savani
> CEO & Chief Architect,
> FlashBrain - Division of Avinashi
>
> We never give up!
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of chas
> warn
> Sent: 22 April 2008 6:39 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] amfphp 1.9 not working on web host
>
> Please help me on this issue.
>
> I just moved from amfphp 1.2 to 1.9.  I can get 1.9 working locally but
> not
> on the remote web host.  I think this maybe a a cross domain issue.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] amfphp 1.9 not working on web host

2008-04-21 Thread Ashvin Savani
What exact error you are getting?

Regards,

Ashvin Savani
CEO & Chief Architect,
FlashBrain - Division of Avinashi

We never give up!


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of chas
warn
Sent: 22 April 2008 6:39 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] amfphp 1.9 not working on web host

Please help me on this issue.

I just moved from amfphp 1.2 to 1.9.  I can get 1.9 working locally but
not
on the remote web host.  I think this maybe a a cross domain issue.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] amfphp 1.9 not working on web host

2008-04-21 Thread chas warn
Please help me on this issue.

I just moved from amfphp 1.2 to 1.9.  I can get 1.9 working locally but not
on the remote web host.  I think this maybe a a cross domain issue.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AMFPHP vs RubyAMF

2008-03-27 Thread Steven Sacks
AMFPHP has been around a long time.  It's been optimized and optimized 
and optimized.  RubyAMF is (relatively) new.  However, I have not used 
it, so I don't know how it performs, but I'm going to take an educated 
guess that AMFPHP is faster, more stable and more flexible only because 
of its age and widespread use.


artur wrote:
is there a major difference in terms of performance, stability,  and 
flexibility?


im about to built an RIA using Flex & MySQL..
but havent decided on the middleware yet.

whats the verdict?

also whats the learning curve on it for devs who have experience with 
Java, JSP, ASP, PHP





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AMFPHP vs RubyAMF

2008-03-27 Thread artur
is there a major difference in terms of performance, stability,  and 
flexibility?


im about to built an RIA using Flex & MySQL..
but havent decided on the middleware yet.

whats the verdict?

also whats the learning curve on it for devs who have experience with 
Java, JSP, ASP, PHP



--

*artur :.*

- *www.artur.com*
- [EMAIL PROTECTED]
- *ph:646.797.3320*

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AMFPHP and sessions

2007-03-12 Thread Patrick Lemiuex

Hello:

I did some digging looking at how to append sessions in AMFPHP... I  
understand I have to load the sessionID into a flashvars inside my  
flash.  After that, what's next, how do I append my session from my  
current one without starting a new one.


I'm starting my session outside AMFPHP that's all.

Thanks,
Patrick
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] amfphp and postgres

2007-01-03 Thread Janis Radins

Hey ppl!

I know this is a little of offtopic but still my problem is connected with
Flash and AS.
I'm trying to connect flash to data from postgres with amfphp and somehow it
just doesnt work.
Amfphp is returning results as expected but as soon as I try to pass data
from postgres it just dies silently. Everything works fine from browser and
I think I've checked everything and no luck.
Anyone had this problem before?

Jānis
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

[Flashcoders] AMFPHP - gateway.php

2006-10-05 Thread iestyn lloyd

Hi List,

A quick question for any AMFPHP users:
Within Gateway.php, I need to detect which function is being called.
Does anyone know if this is possible with some PHP?
I need to make a nasty hack..

any advice appreciated..!

Cheers

iestyn
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP 1.2 Class Mapping & VO's incomming from PHP5 - It works but...

2006-08-30 Thread Julius Turnmire
I couldn't agree more :)  We can always hope for such improvements in
the near future.  

On Wed, 2006-08-30 at 11:18 +0200, Martin Wood wrote:
> > Just knowing that
> > the object is populated before the constructor is called and that those
> > properties take precedence over my class explains a lot.  Now I'm much
> > better prepared to handle what remoting throws at me :)
> 
> Accidentally hit the wrong key combo and sent the previous mail before i was 
> finishedhere it is again..in all its glory..
> 
> great...
> 
> I think thats one part of remoting where they could have done something 
> slightly
> more clever. Even if they added some configuration possibilities to the player
> like a flag for Remoting.callConstructorFirst if you want you objects created 
> in 
> a 'normal' way, maybe at the expense of performance and Remoting.useAccessors 
> which could use both types of accessor. (get x and getX)
> 
> They could be set to default to what they are now, but at least you would 
> have 
> options to turn the remoting deserialization (and local shared objects) into 
> something that behaves like normal code rather than magic. :)
> 
> 
> martin.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP 1.2 Class Mapping & VO's incomming from PHP5 - It works but...

2006-08-30 Thread Martin Wood

Just knowing that
the object is populated before the constructor is called and that those
properties take precedence over my class explains a lot.  Now I'm much
better prepared to handle what remoting throws at me :)


Accidentally hit the wrong key combo and sent the previous mail before i was 
finishedhere it is again..in all its glory..


great...

I think thats one part of remoting where they could have done something slightly
more clever. Even if they added some configuration possibilities to the player
like a flag for Remoting.callConstructorFirst if you want you objects created in 
a 'normal' way, maybe at the expense of performance and Remoting.useAccessors 
which could use both types of accessor. (get x and getX)


They could be set to default to what they are now, but at least you would have 
options to turn the remoting deserialization (and local shared objects) into 
something that behaves like normal code rather than magic. :)



martin.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP 1.2 Class Mapping & VO's incomming from PHP5 - It works but...

2006-08-30 Thread Martin Wood

Just knowing that
the object is populated before the constructor is called and that those
properties take precedence over my class explains a lot.  Now I'm much
better prepared to handle what remoting throws at me :)


great...

I think thats one part of remoting where they could have done something slightly 
more clever. Even if they added some configuration possibilities to the player 
like a flag for


Remoting.callConstructorFirst

and

Remoting.useAccessors

which could use both types of accessor but I prefer to have options.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP 1.2 Class Mapping & VO's incomming from PHP5 - It works but...

2006-08-29 Thread Julius Turnmire
Very interesting!  Thanks :)  

On Wed, 2006-08-30 at 01:12 +0200, eka wrote:
> Hello :)
> 
> class mapping it's very cool ... but i prefere use EDEN
> serialisation/deseiialization :)
> 
> More information : http://live.burrrn.com/wiki/eden
> 
> you can use this tool in Javascript, AS1, AS2, AS3, ASP, .NET etc... and if
> you can't use remoting you can continue to keep your datas in .txt or other
> db files.
> 
> You can find Eden sources in the buRRRn repository located here
> svn://live.buRRRn.com (port 3690) with your SVN client :)
> 
> I use AMFPhp and EDEN in my works with Flex, Flash and FMS.
> 
> 
> EKA+ :)
> 
> 
> 2006/8/30, Julius Turnmire <[EMAIL PROTECTED]>:
> >
> > On Tue, 2006-08-29 at 18:17 +0200, Martin Wood wrote:
> > > Unfortunately the player wont do data type conversion when deserializing
> > the
> > > contents of an object returned via remoting.
> > Bummer :(
> >
> > >
> > > You have to make sure your types are right on the server so that when
> > the
> > > remoting gateway constructs the amf data to send to flash it has the
> > correct
> > > types already inside.
> > >
> > Yes, when they are correct on the server first, they do come in
> > properly.
> >
> > > Obviously this is more of a pain from something like PHP than say Java
> > as PHP
> > > has a much looser type system.
> > >
> > 
> >
> > > For me the beauty of remoting is that you *do* get the datatypes that
> > you create
> > > on the server sent to you in flash.
> > >
> > Yes, I have had much success with remoting.  But I have some old code
> > that I'm working with that leaves a lot of things in strings.  I was
> > hoping that VO's and class mapping might help here, but apparently not.
> >
> >
> > > I think the other issue you are running into is that when the player
> > creates the
> > > actionscript objects from the remoting data it populates the object
> > *before* it
> > > runs the constructor.
> > That is very good to know, I'll have to look into it more.  I also had a
> > brief look at eka's article and I'll need to do some more looking into
> > this.
> >
> > >
> > > This means that it doesnt care about any getters / setters and you have
> > to be
> > > extra careful if you do anything in the constructor or are expecting
> > parameters
> > > to your constructor.
> > Yes again, I'll need to experiment to see exactly what's happening. If
> > it is populating the object before the constructor is run, then perhaps
> > I can use the constructor to do the type conversion if I do decide to do
> > the conversion in Flash and not on the server.
> >
> > Thank you very much for your insight!
> >
> >
> >
> > >
> > >
> > > Julius Turnmire wrote:
> > > > Ok, I've got it working as advertised.  I'm using VO's and my returned
> > > > values are being mapped to my VO classes.  But the problem is how
> > > > they're mapped.
> > > ___
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > Brought to you by Fig Leaf Software
> > > Premier Authorized Adobe Consulting and Training
> > > http://www.figleaf.com
> > > http://training.figleaf.com
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP 1.2 Class Mapping & VO's incomming from PHP5 - It works but...

2006-08-29 Thread Julius Turnmire
Yes!  That's exactly what's happening!  So now I can do this in my VO
class:

class ExampleVO
{
result:Object; // datatype will depend on what server returns!

aString:String;
aNumber:Number;

function ExampleVO()
{
processResult();
}

private function processResult()
{
aString = String(result.aString);
aNumber = parseInt(result.aNumber);
}
}

Or something along these lines if I choose to do datatype conversion in
Flash.  Most of what I do is preprocessed into an object in php, and
with this pattern I can use my old code and the objects it returns and
deal with them in Flash instead of spending much time with it on the
server.  Although it would be best to just make it right on the server
in the first place. Again, thanks for this insight!  Just knowing that
the object is populated before the constructor is called and that those
properties take precedence over my class explains a lot.  Now I'm much
better prepared to handle what remoting throws at me :)


On Tue, 2006-08-29 at 18:17 +0200, Martin Wood wrote:
> Unfortunately the player wont do data type conversion when deserializing the 
> contents of an object returned via remoting.
> 
> You have to make sure your types are right on the server so that when the 
> remoting gateway constructs the amf data to send to flash it has the correct 
> types already inside.
> 
> Obviously this is more of a pain from something like PHP than say Java as PHP 
> has a much looser type system.
> 
> For me the beauty of remoting is that you *do* get the datatypes that you 
> create 
> on the server sent to you in flash.
> 
> I think the other issue you are running into is that when the player creates 
> the 
> actionscript objects from the remoting data it populates the object *before* 
> it 
> runs the constructor.
> 
> This means that it doesnt care about any getters / setters and you have to be 
> extra careful if you do anything in the constructor or are expecting 
> parameters 
> to your constructor.
> 
> 
> Julius Turnmire wrote:
> > Ok, I've got it working as advertised.  I'm using VO's and my returned
> > values are being mapped to my VO classes.  But the problem is how
> > they're mapped.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP 1.2 Class Mapping & VO's incomming from PHP5 - It works but...

2006-08-29 Thread eka

Hello :)

class mapping it's very cool ... but i prefere use EDEN
serialisation/deseiialization :)

More information : http://live.burrrn.com/wiki/eden

you can use this tool in Javascript, AS1, AS2, AS3, ASP, .NET etc... and if
you can't use remoting you can continue to keep your datas in .txt or other
db files.

You can find Eden sources in the buRRRn repository located here
svn://live.buRRRn.com (port 3690) with your SVN client :)

I use AMFPhp and EDEN in my works with Flex, Flash and FMS.


EKA+ :)


2006/8/30, Julius Turnmire <[EMAIL PROTECTED]>:


On Tue, 2006-08-29 at 18:17 +0200, Martin Wood wrote:
> Unfortunately the player wont do data type conversion when deserializing
the
> contents of an object returned via remoting.
Bummer :(

>
> You have to make sure your types are right on the server so that when
the
> remoting gateway constructs the amf data to send to flash it has the
correct
> types already inside.
>
Yes, when they are correct on the server first, they do come in
properly.

> Obviously this is more of a pain from something like PHP than say Java
as PHP
> has a much looser type system.
>


> For me the beauty of remoting is that you *do* get the datatypes that
you create
> on the server sent to you in flash.
>
Yes, I have had much success with remoting.  But I have some old code
that I'm working with that leaves a lot of things in strings.  I was
hoping that VO's and class mapping might help here, but apparently not.


> I think the other issue you are running into is that when the player
creates the
> actionscript objects from the remoting data it populates the object
*before* it
> runs the constructor.
That is very good to know, I'll have to look into it more.  I also had a
brief look at eka's article and I'll need to do some more looking into
this.

>
> This means that it doesnt care about any getters / setters and you have
to be
> extra careful if you do anything in the constructor or are expecting
parameters
> to your constructor.
Yes again, I'll need to experiment to see exactly what's happening. If
it is populating the object before the constructor is run, then perhaps
I can use the constructor to do the type conversion if I do decide to do
the conversion in Flash and not on the server.

Thank you very much for your insight!



>
>
> Julius Turnmire wrote:
> > Ok, I've got it working as advertised.  I'm using VO's and my returned
> > values are being mapped to my VO classes.  But the problem is how
> > they're mapped.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP 1.2 Class Mapping & VO's incomming from PHP5 - It works but...

2006-08-29 Thread Julius Turnmire
On Tue, 2006-08-29 at 18:17 +0200, Martin Wood wrote:
> Unfortunately the player wont do data type conversion when deserializing the 
> contents of an object returned via remoting.
Bummer :(

> 
> You have to make sure your types are right on the server so that when the 
> remoting gateway constructs the amf data to send to flash it has the correct 
> types already inside.
> 
Yes, when they are correct on the server first, they do come in
properly.

> Obviously this is more of a pain from something like PHP than say Java as PHP 
> has a much looser type system.
> 
  

> For me the beauty of remoting is that you *do* get the datatypes that you 
> create 
> on the server sent to you in flash.
> 
Yes, I have had much success with remoting.  But I have some old code
that I'm working with that leaves a lot of things in strings.  I was
hoping that VO's and class mapping might help here, but apparently not.


> I think the other issue you are running into is that when the player creates 
> the 
> actionscript objects from the remoting data it populates the object *before* 
> it 
> runs the constructor.
That is very good to know, I'll have to look into it more.  I also had a
brief look at eka's article and I'll need to do some more looking into
this.

> 
> This means that it doesnt care about any getters / setters and you have to be 
> extra careful if you do anything in the constructor or are expecting 
> parameters 
> to your constructor.
Yes again, I'll need to experiment to see exactly what's happening. If
it is populating the object before the constructor is run, then perhaps
I can use the constructor to do the type conversion if I do decide to do
the conversion in Flash and not on the server.

Thank you very much for your insight!
 


> 
> 
> Julius Turnmire wrote:
> > Ok, I've got it working as advertised.  I'm using VO's and my returned
> > values are being mapped to my VO classes.  But the problem is how
> > they're mapped.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP 1.2 Class Mapping & VO's incomming from PHP5 - It works but...

2006-08-29 Thread Julius Turnmire
Yup, I do do registerClass.  Wouldn't work without ;)  I'll check out
your article, but as far as I can tell everything is working it's just
overwritting the variables in my class..

On Tue, 2006-08-29 at 18:07 +0200, eka wrote:
> Hello :)
> 
> do you use Object.registerClass method to register your VO  classes in
> ActionScript ?
> 
> You can read in french my article about Class Mapping (AS2 and AS3) and
> fixing bug in AS3 in my blog :
> 
> http://www.ekameleon.net/blog/index.php?2006/08/28/48--amf-class-mapping-difficile-en-as3
> 
> Sorry, the article is write in French ! but the ActionScript and PHP codes
> are easy ;)
> 
> EKA+ :)
> 
> 
> 
> You can use Google translator or babelFish
> 
> 2006/8/28, Julius Turnmire <[EMAIL PROTECTED]>:
> >
> > Ok, I've got it working as advertised.  I'm using VO's and my returned
> > values are being mapped to my VO classes.  But the problem is how
> > they're mapped.
> >
> > I decided to work on getting VO's to work in my project in the hopes
> > that all the string values I get from MySQL would be mapped to their
> > proper datatypes.  But it didn't quite work the way I had hoped. The
> > returned values do not get put into the VO class as the datatypes that
> > are assigned in the class, they get put in as the datatypes that are
> > returned from PHP.
> >
> > For instance..
> >
> > PHP service class:
> >
> >  >
> > class SimpleService
> > {
> >
> > function SimpleService()
> > {
> > $this->methodTable = array(
> > "tester" => array(
> > "description" => "tester() :: returns examples",
> > "arguments" => array(),
> > "access" => "remote",
> > "returns" => "TesterVO"
> > )
> >  );
> > }
> >
> > function tester()
> > {
> > $TesterVO = array('aString' => 12345, 'aNumber' => '12345');
> > return $TesterVO;
> > }
> > }
> >
> > ?>
> >
> >
> > Flash VO class:
> >
> > class TesterVO
> > {
> >
> > aString:String;
> > aNumber:Number;
> >
> > function TesterVO()
> > {
> > }
> >
> > }
> >
> > In this example aString doesn't get mapped to a String, and aNumber
> > doesn't get mapped to a Number.  aString becomes a Number and aNumber
> > becomes a string.  Well, I wouldn't normally return types like this, but
> > I was really hoping to avoid converting strings to numbers, and also the
> > "1" string that you get when MySql returns a TRUE.
> >
> > So, I figure that it's all ok..  I'll use getters/setters.  So I set up
> > those methods in my class, for instance:
> >
> > ...
> > __aNumber:Number;
> >
> > function set aNumber(newNum):Void
> > {
> > __aNumber = parseInt(newNum);  //ie  parseInt("12345");
> > }
> >
> > function get aNumber():Number
> > {
> > return __aNumber;
> > }
> > ...
> >
> >
> > Guess what happens... my setter basically gets overwritten with
> > aNumber:String = "12345"..  And my getter returns undefined because the
> > setter never set __aNumber!  I was under the assumption that the whole
> > purpose of VO's was so that datatypes get typed properly..  But the way
> > Flash works, it just overwrites the properties with what's returned.
> >
> > Now I know I can work around all this, but doesn't it really defeat the
> > purpose of all of it all?  Aren't Value Object's properties supposed to
> > use the datatypes that they define?  Am I missing something?  All does
> > work fine when the returning types correspond.  When array('aNumber' =>
> > 123, 'aString' => "123JustaString", 'aBoolean' => true) is returned I do
> > get those datatypes.  There's no need to even set the datatypes as it
> > really wont matter when flash gets a hold of it.
> >
> > Another thing, but it's minor, is that in this case:
> >
> > function onResult(myResult:ResultEvent)
> > {
> > var theResult:TesterVO = myResult.result;
> > }
> >
> > Flash will error on compile.  It really thinks that myResult.result will
> > be of the datatype Object.  Shouldn't they have left that untyped?
> >
> > Now before you think that my VO's really aren't getting mapped, they
> > are.  I've made sure of that, any methods I put in that class are
> > accessible upon receiving data from the server..
> >
> > Any thoughts?  Am I missing something?  I've been very happy with
> > remoting, and have been using it with great success for some time now.
> > But, I was really hoping that spending the time to get VO's working
> > would be worth it.  Boy was I disappointed.  It just seems to be more
> > work then what it's worth.
> >
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> __

Re: [Flashcoders] AMFPHP 1.2 Class Mapping & VO's incomming from PHP5 - It works but...

2006-08-29 Thread Martin Wood
Unfortunately the player wont do data type conversion when deserializing the 
contents of an object returned via remoting.


You have to make sure your types are right on the server so that when the 
remoting gateway constructs the amf data to send to flash it has the correct 
types already inside.


Obviously this is more of a pain from something like PHP than say Java as PHP 
has a much looser type system.


For me the beauty of remoting is that you *do* get the datatypes that you create 
on the server sent to you in flash.


I think the other issue you are running into is that when the player creates the 
actionscript objects from the remoting data it populates the object *before* it 
runs the constructor.


This means that it doesnt care about any getters / setters and you have to be 
extra careful if you do anything in the constructor or are expecting parameters 
to your constructor.



Julius Turnmire wrote:

Ok, I've got it working as advertised.  I'm using VO's and my returned
values are being mapped to my VO classes.  But the problem is how
they're mapped.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP 1.2 Class Mapping & VO's incomming from PHP5 - It works but...

2006-08-29 Thread eka

Hello :)

do you use Object.registerClass method to register your VO  classes in
ActionScript ?

You can read in french my article about Class Mapping (AS2 and AS3) and
fixing bug in AS3 in my blog :

http://www.ekameleon.net/blog/index.php?2006/08/28/48--amf-class-mapping-difficile-en-as3

Sorry, the article is write in French ! but the ActionScript and PHP codes
are easy ;)

EKA+ :)



You can use Google translator or babelFish

2006/8/28, Julius Turnmire <[EMAIL PROTECTED]>:


Ok, I've got it working as advertised.  I'm using VO's and my returned
values are being mapped to my VO classes.  But the problem is how
they're mapped.

I decided to work on getting VO's to work in my project in the hopes
that all the string values I get from MySQL would be mapped to their
proper datatypes.  But it didn't quite work the way I had hoped. The
returned values do not get put into the VO class as the datatypes that
are assigned in the class, they get put in as the datatypes that are
returned from PHP.

For instance..

PHP service class:

methodTable = array(
"tester" => array(
"description" => "tester() :: returns examples",
"arguments" => array(),
"access" => "remote",
"returns" => "TesterVO"
)
 );
}

function tester()
{
$TesterVO = array('aString' => 12345, 'aNumber' => '12345');
return $TesterVO;
}
}

?>


Flash VO class:

class TesterVO
{

aString:String;
aNumber:Number;

function TesterVO()
{
}

}

In this example aString doesn't get mapped to a String, and aNumber
doesn't get mapped to a Number.  aString becomes a Number and aNumber
becomes a string.  Well, I wouldn't normally return types like this, but
I was really hoping to avoid converting strings to numbers, and also the
"1" string that you get when MySql returns a TRUE.

So, I figure that it's all ok..  I'll use getters/setters.  So I set up
those methods in my class, for instance:

...
__aNumber:Number;

function set aNumber(newNum):Void
{
__aNumber = parseInt(newNum);  //ie  parseInt("12345");
}

function get aNumber():Number
{
return __aNumber;
}
...


Guess what happens... my setter basically gets overwritten with
aNumber:String = "12345"..  And my getter returns undefined because the
setter never set __aNumber!  I was under the assumption that the whole
purpose of VO's was so that datatypes get typed properly..  But the way
Flash works, it just overwrites the properties with what's returned.

Now I know I can work around all this, but doesn't it really defeat the
purpose of all of it all?  Aren't Value Object's properties supposed to
use the datatypes that they define?  Am I missing something?  All does
work fine when the returning types correspond.  When array('aNumber' =>
123, 'aString' => "123JustaString", 'aBoolean' => true) is returned I do
get those datatypes.  There's no need to even set the datatypes as it
really wont matter when flash gets a hold of it.

Another thing, but it's minor, is that in this case:

function onResult(myResult:ResultEvent)
{
var theResult:TesterVO = myResult.result;
}

Flash will error on compile.  It really thinks that myResult.result will
be of the datatype Object.  Shouldn't they have left that untyped?

Now before you think that my VO's really aren't getting mapped, they
are.  I've made sure of that, any methods I put in that class are
accessible upon receiving data from the server..

Any thoughts?  Am I missing something?  I've been very happy with
remoting, and have been using it with great success for some time now.
But, I was really hoping that spending the time to get VO's working
would be worth it.  Boy was I disappointed.  It just seems to be more
work then what it's worth.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] AMFPHP 1.2 Class Mapping & VO's incomming from PHP5 - It works but...

2006-08-29 Thread Julius Turnmire
Ok, I've got it working as advertised.  I'm using VO's and my returned
values are being mapped to my VO classes.  But the problem is how
they're mapped.

I decided to work on getting VO's to work in my project in the hopes
that all the string values I get from MySQL would be mapped to their
proper datatypes.  But it didn't quite work the way I had hoped. The
returned values do not get put into the VO class as the datatypes that
are assigned in the class, they get put in as the datatypes that are
returned from PHP.

For instance..

PHP service class:

methodTable = array(
"tester" => array(
"description" => "tester() :: returns examples",
"arguments" => array(),
"access" => "remote",
"returns" => "TesterVO"
)
 );
}

function tester()
{
$TesterVO = array('aString' => 12345, 'aNumber' => '12345');
return $TesterVO;
}
}

?>


Flash VO class:

class TesterVO
{

aString:String;
aNumber:Number;

function TesterVO()
{
}

}

In this example aString doesn't get mapped to a String, and aNumber
doesn't get mapped to a Number.  aString becomes a Number and aNumber
becomes a string.  Well, I wouldn't normally return types like this, but
I was really hoping to avoid converting strings to numbers, and also the
"1" string that you get when MySql returns a TRUE.

So, I figure that it's all ok..  I'll use getters/setters.  So I set up
those methods in my class, for instance:

...
__aNumber:Number;

function set aNumber(newNum):Void
{
__aNumber = parseInt(newNum);  //ie  parseInt("12345");
}

function get aNumber():Number
{
return __aNumber;
}
...


Guess what happens... my setter basically gets overwritten with
aNumber:String = "12345"..  And my getter returns undefined because the
setter never set __aNumber!  I was under the assumption that the whole
purpose of VO's was so that datatypes get typed properly..  But the way
Flash works, it just overwrites the properties with what's returned.

Now I know I can work around all this, but doesn't it really defeat the
purpose of all of it all?  Aren't Value Object's properties supposed to
use the datatypes that they define?  Am I missing something?  All does
work fine when the returning types correspond.  When array('aNumber' =>
123, 'aString' => "123JustaString", 'aBoolean' => true) is returned I do
get those datatypes.  There's no need to even set the datatypes as it
really wont matter when flash gets a hold of it.

Another thing, but it's minor, is that in this case:

function onResult(myResult:ResultEvent)
{
var theResult:TesterVO = myResult.result;
}

Flash will error on compile.  It really thinks that myResult.result will
be of the datatype Object.  Shouldn't they have left that untyped?

Now before you think that my VO's really aren't getting mapped, they
are.  I've made sure of that, any methods I put in that class are
accessible upon receiving data from the server..

Any thoughts?  Am I missing something?  I've been very happy with
remoting, and have been using it with great success for some time now.
But, I was really hoping that spending the time to get VO's working
would be worth it.  Boy was I disappointed.  It just seems to be more
work then what it's worth.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Jeroen Beckers
It's really handy if you include it. In the service browser, you can
select [mt] and 'save to XXX.methodtable.php' . Every time you edit your
class, you just press the save to method table button and it's
automaticly updated.

And uhm... The problem is solved... I kept calling the wrong function
:#. I'm really embarrassed of this... I was a little confused as to how
the service browser works... (I'm new to AMFPHP). Thanks for everyones
time! :)

Mike Britton wrote:
> I always put my methodTable in the constructor, not include it.  This
> could be the source of the problem.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Mike Britton

I always put my methodTable in the constructor, not include it.  This
could be the source of the problem.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Jeroen Beckers
I did that :).

Mike Britton wrote:
> You need to create a methodTable array in the constructor of every
> class you're using with AMFPHP.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Mike Britton

You need to create a methodTable array in the constructor of every
class you're using with AMFPHP.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Jeroen Beckers
Yes, that works... So why won't my class work?

//class
insertIntoDatabase("test", "test");
   
return "HelloWorld!";

   
   
}
   
   
}

?>

//method table
methodTable = array(
"insertIntoDatabase" => array(
"description" => "This function adds the score & name to the
database",
"arguments" => array("p_score", "p_name"),
"access" => "remote"
),
"addScore" => array(
"description" => "/\n This function checks and decrypts the
given code from flash",
"arguments" => array("p_score", "p_name"),
"access" => "remote"
)
);
?>





Mike Britton wrote:
> 
> class testClass
> {
> function testClass() {
> $this->methodTable = array(
> "test1" => array(
> "description"=>"I return 'hello world'",
> "access"=>"remote",
> "arguments"=>array(),
> "returntype"=>"string"),
>
> "test2" => array(
> "description"=>"I return 'hello'",
> "access"=>"remote",
> "arguments"=>array(),
> "returntype"=>"string")
> );
> }
>
> function test1() {
> return $this->test2()." world";
> }
>
> function test2() {
> return "hello";
> }
> }
>
> ?>
>
> 
> 
> 
> 
> include('testClass.php');
>
> $myTest = new testClass();
> $message  = $myTest->test1();
> echo $message;
>
>
>
> ?>
> 
> 
>
>
>
>
> Mike
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Mike Britton

methodTable = array(
"test1" => array(
"description"=>"I return 'hello world'",
"access"=>"remote",
"arguments"=>array(),
"returntype"=>"string"),

"test2" => array(
"description"=>"I return 'hello'",
"access"=>"remote",
"arguments"=>array(),
"returntype"=>"string")
);
}

function test1() {
return $this->test2()." world";
}

function test2() {
return "hello";
}
}

?>




test1();
echo $message;



?>






Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Jeroen Beckers
Sorry, forgot that while copying...

But it doesn't work either...

Mike Britton wrote:
> $this->test2();
>
> hth,
>
> Mike
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Mike Britton

$this->test2();

hth,

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Jeroen Beckers
Hi Fokert :D

That gives back "World" too... I really don't understand it :S

Greets,
Jeroen

Ps: I'm "Dauntless"

Folkert Hielema wrote:
> how about:
>
> function test1()
> {
> return "Hello ".test2();
> }
> in you setting the returned world makes no sence since it's not
> printed or put in a variable or anything (amasing that is does not
> give an error that way.
>
> hth,
>
> Folkert
> Jeroen Beckers wrote:
>> Hi,
>>
>> This is the situation:
>>
>> Flash uses AMFPHP to call a php function 'test1()' .
>>
>> In my php file, the function is defined as followed:
>>
>> function test1()
>> {
>> test2();
>> return "Hello";
>> }
>>
>> function test2()
>> {
>> return "World";
>> }
>>
>> Now, AMFPHP returns "World" (when I call test1() ), but I would expect
>> him to return "Hello" (like flash would do).
>>
>> Is this a feature or a bug? (Or maybe just a hole in my PHP knowledge ?)
>>
>> Greets,
>> Jeroen
>>
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Folkert Hielema

how about:

function test1()
{
return "Hello ".test2();
}
in you setting the returned world makes no sence since it's not printed 
or put in a variable or anything (amasing that is does not give an error 
that way.


hth,

Folkert
Jeroen Beckers wrote:

Hi,

This is the situation:

Flash uses AMFPHP to call a php function 'test1()' .

In my php file, the function is defined as followed:

function test1()
{
test2();
return "Hello";
}

function test2()
{
return "World";
}

Now, AMFPHP returns "World" (when I call test1() ), but I would expect
him to return "Hello" (like flash would do).

Is this a feature or a bug? (Or maybe just a hole in my PHP knowledge ?)

Greets,
Jeroen

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AMFPHP] return; -> feature / bug ?

2006-08-16 Thread Michael Stuhr

Jeroen Beckers schrieb:

Hi,

This is the situation:

Flash uses AMFPHP to call a php function 'test1()' .

In my php file, the function is defined as followed:

function test1()
{
test2();
return "Hello";
}

function test2()
{
return "World";
}

Now, AMFPHP returns "World" (when I call test1() ), but I would expect
him to return "Hello" (like flash would do).

Is this a feature or a bug? (Or maybe just a hole in my PHP knowledge ?)


seems like php returns mean to 'break' this. i'd suggest to put the retrurn of test2() into 
a local var.

it just doesn't make sense anyway, even if it would return just 'Hello', right ?

micha
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Jeroen Beckers
Hi,

This is the situation:

Flash uses AMFPHP to call a php function 'test1()' .

In my php file, the function is defined as followed:

function test1()
{
test2();
return "Hello";
}

function test2()
{
return "World";
}

Now, AMFPHP returns "World" (when I call test1() ), but I would expect
him to return "Hello" (like flash would do).

Is this a feature or a bug? (Or maybe just a hole in my PHP knowledge ?)

Greets,
Jeroen

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] [AMFPHP] return; -> feature / bug ?

2006-08-16 Thread Jeroen Beckers
Hi,

This is the situation:

Flash uses AMFPHP to call a php function 'test1()' .

In my php file, the function is defined as followed:

function test1()
{
test2();
return "Hello";
}

function test2()
{
return "World";
}

Now, AMFPHP returns "World" (when I call test1() ), but I would expect
him to return "Hello" (like flash would do).

Is this a feature or a bug? (Or maybe just a hole in my PHP knowledge ?)

Greets,
Jeroen

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] amfphp, identify each calling

2006-08-05 Thread Martin Weiser

Thanks, i eventually sachieved that by modifing relayresponder,
each call is based on service.method() and its responder, so new 
RelayResponder2 got every time unique creation
here is my new simple relayResponder2 (just added static __num, copyed to 
each insrance as unique __id:


//
//Copyright (C) 2004 Macromedia, Inc. All Rights Reserved.
//The following is Sample Code and is subject to all restrictions on
//such code as contained in the End User License Agreement accompanying
//this product.
//
import mx.rpc.Responder;
/**
This is a responder object that relays result and fault calls to a 
corresponding

function on the specified object.

@tiptext Dispatches results from a method invocation to user defined methods
@helpid 4491
*/
class mx.rpc.RelayResponder2 extends Object implements Responder {
/**
  Constructs an instance of the relay that will call the specified methods
  for result or fault on a given object.

  @param resp Object Object that will handle the fault or result calls
  @param resultFunc String String containing the name of the function to 
call, when result is recieved.
  @param faultFunc String containing the name of the function to call, when 
a fault is recieved.

  @tiptext Creates a new RelayResponder
  @helpid 4492
*/
function RelayResponder2(resp:Object, resultFunc:String, faultFunc:String) 
{

 super();
 __obj = resp;
 __onFault = faultFunc;
 __onResult = resultFunc;
 __id = ++__num;
}
/*
   When a fault in recieved, Fault Handler is called. onFault dispatches 
the fault message.
   @param fault Object  contains information of the fault recieved. This 
includes specified code, message, and details

*/
function onFault(fault:mx.rpc.FaultEvent):Void {
 __obj[__onFault](fault);
}
/*
  Result Handler is called when a result is recieved. onResult dispatches 
the result message


  @param result reference to the result after successfult method invocation
*/
function onResult(result:mx.rpc.ResultEvent):Void {
 __obj[__onResult](result, __id);
}
private var __obj:Object;
private var __onFault:String;
private var __onResult:String;
private var __id:Number;
public static var __num:Number = 0;
}




..end

Martin
- Original Message - 
From: "Martin Wood" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Saturday, August 05, 2006 10:11 AM
Subject: Re: [Flashcoders] amfphp, identify each calling





[EMAIL PROTECTED] wrote:

Yes, I think this library is what you're looking for...

http://www.5etdemi.com/blog/archives/2006/03/cinqetdemiremoting-a-tiny-but-useful-remoting-library/ 
steve




nice..id never noticed that...

very useful


martin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] amfphp, identify each calling

2006-08-05 Thread Martin Wood



[EMAIL PROTECTED] wrote:

Yes, I think this library is what you're looking for...

http://www.5etdemi.com/blog/archives/2006/03/cinqetdemiremoting-a-tiny-but-useful-remoting-library/ 



steve



nice..id never noticed that...

very useful


martin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] amfphp, identify each calling

2006-08-05 Thread Martin Wood
as far as i know its not possible with any built-in mechanisms, you would have 
to code something yourself..


where and how depends on what you really need to achieve..

martin.

Martin Weiser wrote:

Hello,

is it possible to mark the calling by some identifier, number or string,

so that callings of hte same method with the same responder could be 
distinguished?


thanks in advance

Martin

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] amfphp, identify each calling

2006-08-04 Thread sysco

Yes, I think this library is what you're looking for...

http://www.5etdemi.com/blog/archives/2006/03/cinqetdemiremoting-a- 
tiny-but-useful-remoting-library/


steve





Message: 20
Date: Thu, 3 Aug 2006 14:20:56 +0200
From: "Martin Weiser" <[EMAIL PROTECTED]>
Subject: [Flashcoders] amfphp, identify each calling
To: "Flashcoders mailing list" 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=response

Hello,

is it possible to mark the calling by some identifier, number or  
string,


so that callings of hte same method with the same responder could be
distinguished?

thanks in advance

Martin



--


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] amfphp, identify each calling

2006-08-04 Thread Martin Weiser

Hello,

is it possible to mark the calling by some identifier, number or string,

so that callings of hte same method with the same responder could be 
distinguished?


thanks in advance

Martin 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] amfphp, many calls at once

2006-08-02 Thread Martin Weiser

hello,

this is classical scheme of amf php"
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;

var gatewayUrl:String = "http://localhost/flashservices/gateway.php";

NetDebug.initialize();
var _service:Service = new Service(gatewayUrl, null, 'HelloWorld', null , 
null);

var pc:PendingCall = _service.say("Hello world!");
pc.responder = new RelayResponder(this, "handleResult", "handleError");
How do i ensure calls are not lost, when one method calls is repeated 
before the previous call (the same method), is the result from forst call 
lost?I thought that is the work of pendingCallis it?Martin 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP: CrossDomain

2006-07-17 Thread Mike Britton

To skirt this issue, I use AMFPHP proxy classes on my swf's host
server to talk to other servers or snap up RSS files.  Not sure about
filesystem stuff though.  It seems like that would be a security issue
on the backend as well as the front!

Feel free to mail me offlist if you want to check out one of the PHP
proxy classes.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP: CrossDomain

2006-07-17 Thread Count Schemula

crossdomain.xml goes in the webserver root of the server with the flash file.

I had problems with it recently as well, it was not easy to
troubleshoot, so, I can offer no other hints.

On 7/17/06, Ashwan Wadhwa <[EMAIL PROTECTED]> wrote:

Hello,

I am working on a project where the data is read/written to another web
server for which AMFPHP is being deployed, everything works perfectly
when running off the local machine. However when I host this on a
separate server I keep getting Macromedia Flash Security Sandbox
warning. I did go in and the line
System.security.allowDomain(name_of_domain). That still did not work. I
finally used the wild card allowDomain("*").  This also did not solve
the security problem. Is there something I am missing here. If I use the
security.allowDomain function, do I still need to deploy a
crossdomain.xml file in the webserver root. And where does this is
crossdomain policy go? In the webserver hosting the flash files or the
one hosting the amfphp gateway.php file??

Thanks
Ashwan.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] AMFPHP: CrossDomain

2006-07-17 Thread Ashwan Wadhwa
Hello,

I am working on a project where the data is read/written to another web
server for which AMFPHP is being deployed, everything works perfectly
when running off the local machine. However when I host this on a
separate server I keep getting Macromedia Flash Security Sandbox
warning. I did go in and the line
System.security.allowDomain(name_of_domain). That still did not work. I
finally used the wild card allowDomain("*").  This also did not solve
the security problem. Is there something I am missing here. If I use the
security.allowDomain function, do I still need to deploy a
crossdomain.xml file in the webserver root. And where does this is
crossdomain policy go? In the webserver hosting the flash files or the
one hosting the amfphp gateway.php file??
 
Thanks
Ashwan.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] amfphp does not work on my local network

2006-07-12 Thread Count Schemula

I have a laptop running IIS, PHP, mySQL, amfphp

I have a simple amfphp application that works from the webserver laptop.

It works if I play just the .swf file, it works if I call the .html
file from the file:///C/Inetpub/wwwroot/ folder and it works if I call
it its IP address, 192.168.0.50/folder/file.html

It does not work from my development desktop computer on the same
wired ethernet network.

The webserver and network can be called from the desktop computer to
the webserver laptop, so that part works fine.The amfphp app does not
work.

I thought it might be a port issue, so I turned the SP2 firewall off
on the laptop, and that was not the fix.

I have a crossdomain.xml file in my webroot that allows localhost and
the webserver IP (192.168.0.50) and that did not fix it.

I've messed around with the flash player security thing on the web. Nothing.

I'm kind of at a loss.

I know this is really simple, but, it has me up a tree.

Thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] amfphp NetConnection.Connect.Failed

2006-06-07 Thread Sam

I surely can't be the only one experiencing this, could I?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] amfphp NetConnection.Connect.Failed

2006-06-07 Thread Sam

I don't know what does that mean? Could you elaborate?
I have the same problem when testing the same exact service on  
localhost also



Could it be security sandbox thingy?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] amfphp NetConnection.Connect.Failed

2006-06-07 Thread Abdul Qabiz

Could it be security sandbox thingy?

On 6/7/06, Sam <[EMAIL PROTECTED]> wrote:



Yeah, it is odd. This has been driving me nuts.

Here is example code Im using connecting to a sample service.

var service = new talkback();
service.returnString("This is a sample string");


SERVICE CLASS

import com.LuminicBox.Log.*;
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;

class com.three60.app.talkback
{
   private var gatewayUrl:String = "http://www.5etdemi.com/amfphp/
gateway.php";
   private var service:Service;
   private var logger;

   function talkback(model)
   {
   this.logger = new Logger();
   this.logger.addPublisher(new ConsolePublisher());
   NetDebug.initialize();
   this.service = new Service(this.gatewayUrl, null,
"SampleService");
   log("SampleService Constructor Called.");
   }

   function log(msg){
   this.logger.log(msg);
   NetDebug.trace(msg);
   }

   function debug(obj){
   this.logger.debug(obj);
   }

   function returnString(msg)
   {
   var pc:PendingCall = this.service.returnString(msg);
   pc.responder = new RelayResponder(this,
"handleReturnString",
"handleRemotingError");

   log("returnString Called.");
   debug(pc);
   }

   function handleReturnString(re:ResultEvent)
   {
   log("handleReturnString() Called.");
   debug(re);
   debug(re.result);
   }

   function handleRemotingError( fault:FaultEvent ):Void
   {
   log("handleRemotingError() Called.");
   NetDebug.trace({level:"None", message:"Error: " +
fault.fault.faultstring });
   }
}


On Jun 6, 2006, at 2:26 PM, Mike Boutin wrote:

> Hmm odd.  Can you post an example of your connection script?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] amfphp NetConnection.Connect.Failed

2006-06-07 Thread Sam


Yeah, it is odd. This has been driving me nuts.

Here is example code Im using connecting to a sample service.

var service = new talkback();
service.returnString("This is a sample string");


SERVICE CLASS

import com.LuminicBox.Log.*;
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;

class com.three60.app.talkback
{
	private var gatewayUrl:String = "http://www.5etdemi.com/amfphp/ 
gateway.php";

private var service:Service;
private var logger;

function talkback(model)
{
this.logger = new Logger();
this.logger.addPublisher(new ConsolePublisher());
NetDebug.initialize();
this.service = new Service(this.gatewayUrl, null, 
"SampleService");
log("SampleService Constructor Called.");
}

function log(msg){
this.logger.log(msg);
NetDebug.trace(msg);
}

function debug(obj){
this.logger.debug(obj);
}

function returnString(msg)
{
var pc:PendingCall = this.service.returnString(msg);
		pc.responder = new RelayResponder(this, "handleReturnString",  
"handleRemotingError");


log("returnString Called.");
debug(pc);
}

function handleReturnString(re:ResultEvent)
{
log("handleReturnString() Called.");
debug(re);
debug(re.result);
}

function handleRemotingError( fault:FaultEvent ):Void
{
log("handleRemotingError() Called.");
		NetDebug.trace({level:"None", message:"Error: " +  
fault.fault.faultstring });

}
}


On Jun 6, 2006, at 2:26 PM, Mike Boutin wrote:


Hmm odd.  Can you post an example of your connection script?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] amfphp NetConnection.Connect.Failed

2006-06-06 Thread Mike Boutin

Hmm odd.  Can you post an example of your connection script?


Mike

Sam wrote:

Hi,
Yes the service works fine in the Service Browser.
Opening the swf in SAFlashPlayer 7 the service connects SAFlashPlayer 8 
I get a connection failure


On Jun 6, 2006, at 12:01 PM, Mike Boutin wrote:

Does your service class load properly with no errors in the amfphp 
Service Browser? can you post some code?




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] amfphp NetConnection.Connect.Failed

2006-06-06 Thread Sam

Hi,
Yes the service works fine in the Service Browser.
Opening the swf in SAFlashPlayer 7 the service connects SAFlashPlayer  
8 I get a connection failure


On Jun 6, 2006, at 12:01 PM, Mike Boutin wrote:

Does your service class load properly with no errors in the amfphp  
Service Browser? can you post some code?




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] amfphp NetConnection.Connect.Failed

2006-06-06 Thread Mike Boutin
Does your service class load properly with no errors in the amfphp 
Service Browser? can you post some code?



Mike

Sam wrote:

Hi,
Are there issues between flash player 7 & 8, When I try to connect using 
player 7 it works, when trying connect with p[layer 8 it fails.

Any Ideas why this would be?

Thanks.

Sam


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] amfphp NetConnection.Connect.Failed

2006-06-06 Thread Sam

Hi,
Are there issues between flash player 7 & 8, When I try to connect  
using player 7 it works, when trying connect with p[layer 8 it fails.

Any Ideas why this would be?

Thanks.

Sam


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-18 Thread Manuel Saint-Victor
I had forgotten about that.  Really easy to overlook and burn an hour or two
of frustration.

On 4/14/06, elr <[EMAIL PROTECTED]> wrote:
>
> Hi  Manuel,
>
> I finally got an answer to my problem.
> That was not an empty space but a kind of...
> In fact, my Sepy editor was set to add a UTF BOM code that
> "corrupted" my PHP file once I modified it.
>
> Pretty vicious trap  ;-)
>
> Thanks.
>
> Eric
>
>
> At 2006-04-12   20:31, you wrote:
> >Try making sure that there are absolutely no spaces at the start or end
> of
> >the HelloWorld.php and the gateway.php.
> >
> >I'm not sure if you downloaded or cut and pasted the code but sometimes
> when
> >cut and pasting if you inadvertently add a space you'll get that error.
> >
> >Mani
> >
> >
> >On 4/12/06, elr <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Unfortunately, that`s hard to see where exactly video author (P.
> > > Minault) is clicking as he uses Captivate that is absolutely not
> synchro.
> > > But in the amfphp browser windows, I get the following error message
> > > when I test HelloWorld sample service
> > >
> > > Warning: Cannot modify header information - headers already sent by
> > > (output started at .../amfphp/gateway.php:1) in
> > > .../amfphp/amf-core/exception/php4Exception.php on line 42
> > > /1/onStatusnull?codeAMFPHP_RUNTIME_ERRORdescription?session_start():
> > > Cannot send session cache limiter - headers already sent (output
> > >
> > > I'm not able to understand where trouble comes from
> > >
> > > Eric
> > >
> > > At 2006-04-12   12:39, you wrote:
> > > >No, Kevin,I missed this area. I`m giving a look right now .Thx !!!
> > > >
> > > >
> > > >At 2006-04-12   11:16, you wrote:
> > > >
> > > >>Did you try watching the video tutorials?  The ones for installing
> > > >>and testing were extremely helpful.
> > > >>
> > > >>>From: elr <[EMAIL PROTECTED]>
> > > >>>Reply-To: Flashcoders mailing list <
> flashcoders@chattyfig.figleaf.com>
> > > >>>To: flashcoders@chattyfig.figleaf.com
> > > >>>Subject: [Flashcoders] AMFPHP tutorial - no Result on NetConnection
> > > Debugger
> > > >>>Date: Wed, 12 Apr 2006 10:50:59 -0400
> > > >>>
> > > >>>Hi all,
> > > >>>
> > > >>>I try to setup installed AMFPHP rel 1.2.3 on Flash 8 following
> > > >>>amfphp.org tutorial (http://www.amfphp.org/docs/testingamfphp.html)
> > > >>>Gateway.php properly reacts and everything seems ok excepted that,
> > > >>>running the HelloWorld sample, myNetConnection Debugger doesn`t
> > > >>>report any Result event (while I get Connect and Call ones..)
> > > >>>
> > > >>>Any idea ?
> > > >>>
> > > >>>Eric
> > > >>>
> > > >>>___
> > > >>>Flashcoders@chattyfig.figleaf.com
> > > >>>To change your subscription options or search the archive:
> > > >>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >>>
> > > >>>Brought to you by Fig Leaf Software
> > > >>>Premier Authorized Adobe Consulting and Training
> > > >>>http://www.figleaf.com
> > > >>>http://training.figleaf.com
> > > >>
> > > >>
> > > >>___
> > > >>Flashcoders@chattyfig.figleaf.com
> > > >>To change your subscription options or search the archive:
> > > >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >>
> > > >>Brought to you by Fig Leaf Software
> > > >>Premier Authorized Adobe Consulting and Training
> > > >>http://www.figleaf.com
> > > >>http://training.figleaf.com
> > > >
> > > >___
> > > >Flashcoders@chattyfig.figleaf.com
> > > >To change your subscription options or search the archive:
> > > >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >
> > > >Brought to you by Fig Leaf Software
> > > >Premier Authorized Adobe Consulting and 

Re: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-14 Thread elr

Hi  Manuel,

I finally got an answer to my problem.
That was not an empty space but a kind of...
In fact, my Sepy editor was set to add a UTF BOM code that 
"corrupted" my PHP file once I modified it.


Pretty vicious trap  ;-)

Thanks.

Eric


At 2006-04-12   20:31, you wrote:

Try making sure that there are absolutely no spaces at the start or end of
the HelloWorld.php and the gateway.php.

I'm not sure if you downloaded or cut and pasted the code but sometimes when
cut and pasting if you inadvertently add a space you'll get that error.

Mani


On 4/12/06, elr <[EMAIL PROTECTED]> wrote:
>
>
> Unfortunately, that`s hard to see where exactly video author (P.
> Minault) is clicking as he uses Captivate that is absolutely not synchro.
> But in the amfphp browser windows, I get the following error message
> when I test HelloWorld sample service
>
> Warning: Cannot modify header information - headers already sent by
> (output started at .../amfphp/gateway.php:1) in
> .../amfphp/amf-core/exception/php4Exception.php on line 42
> /1/onStatusnull?codeAMFPHP_RUNTIME_ERRORdescription?session_start():
> Cannot send session cache limiter - headers already sent (output
>
> I'm not able to understand where trouble comes from
>
> Eric
>
> At 2006-04-12   12:39, you wrote:
> >No, Kevin,I missed this area. I`m giving a look right now .Thx !!!
> >
> >
> >At 2006-04-12   11:16, you wrote:
> >
> >>Did you try watching the video tutorials?  The ones for installing
> >>and testing were extremely helpful.
> >>
> >>>From: elr <[EMAIL PROTECTED]>
> >>>Reply-To: Flashcoders mailing list 
> >>>To: flashcoders@chattyfig.figleaf.com
> >>>Subject: [Flashcoders] AMFPHP tutorial - no Result on NetConnection
> Debugger
> >>>Date: Wed, 12 Apr 2006 10:50:59 -0400
> >>>
> >>>Hi all,
> >>>
> >>>I try to setup installed AMFPHP rel 1.2.3 on Flash 8 following
> >>>amfphp.org tutorial (http://www.amfphp.org/docs/testingamfphp.html)
> >>>Gateway.php properly reacts and everything seems ok excepted that,
> >>>running the HelloWorld sample, myNetConnection Debugger doesn`t
> >>>report any Result event (while I get Connect and Call ones..)
> >>>
> >>>Any idea ?
> >>>
> >>>Eric
> >>>
> >>>___
> >>>Flashcoders@chattyfig.figleaf.com
> >>>To change your subscription options or search the archive:
> >>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>>
> >>>Brought to you by Fig Leaf Software
> >>>Premier Authorized Adobe Consulting and Training
> >>>http://www.figleaf.com
> >>>http://training.figleaf.com
> >>
> >>
> >>___
> >>Flashcoders@chattyfig.figleaf.com
> >>To change your subscription options or search the archive:
> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >>Brought to you by Fig Leaf Software
> >>Premier Authorized Adobe Consulting and Training
> >>http://www.figleaf.com
> >>http://training.figleaf.com
> >
> >___
> >Flashcoders@chattyfig.figleaf.com
> >To change your subscription options or search the archive:
> >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >Brought to you by Fig Leaf Software
> >Premier Authorized Adobe Consulting and Training
> >http://www.figleaf.com
> >http://training.figleaf.com
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-12 Thread Manuel Saint-Victor
Try making sure that there are absolutely no spaces at the start or end of
the HelloWorld.php and the gateway.php.

I'm not sure if you downloaded or cut and pasted the code but sometimes when
cut and pasting if you inadvertently add a space you'll get that error.

Mani


On 4/12/06, elr <[EMAIL PROTECTED]> wrote:
>
>
> Unfortunately, that`s hard to see where exactly video author (P.
> Minault) is clicking as he uses Captivate that is absolutely not synchro.
> But in the amfphp browser windows, I get the following error message
> when I test HelloWorld sample service
>
> Warning: Cannot modify header information - headers already sent by
> (output started at .../amfphp/gateway.php:1) in
> .../amfphp/amf-core/exception/php4Exception.php on line 42
> /1/onStatusnull?codeAMFPHP_RUNTIME_ERRORdescription?session_start():
> Cannot send session cache limiter - headers already sent (output
>
> I'm not able to understand where trouble comes from
>
> Eric
>
> At 2006-04-12   12:39, you wrote:
> >No, Kevin,I missed this area. I`m giving a look right now .Thx !!!
> >
> >
> >At 2006-04-12   11:16, you wrote:
> >
> >>Did you try watching the video tutorials?  The ones for installing
> >>and testing were extremely helpful.
> >>
> >>>From: elr <[EMAIL PROTECTED]>
> >>>Reply-To: Flashcoders mailing list 
> >>>To: flashcoders@chattyfig.figleaf.com
> >>>Subject: [Flashcoders] AMFPHP tutorial - no Result on NetConnection
> Debugger
> >>>Date: Wed, 12 Apr 2006 10:50:59 -0400
> >>>
> >>>Hi all,
> >>>
> >>>I try to setup installed AMFPHP rel 1.2.3 on Flash 8 following
> >>>amfphp.org tutorial (http://www.amfphp.org/docs/testingamfphp.html)
> >>>Gateway.php properly reacts and everything seems ok excepted that,
> >>>running the HelloWorld sample, myNetConnection Debugger doesn`t
> >>>report any Result event (while I get Connect and Call ones..)
> >>>
> >>>Any idea ?
> >>>
> >>>Eric
> >>>
> >>>___
> >>>Flashcoders@chattyfig.figleaf.com
> >>>To change your subscription options or search the archive:
> >>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>>
> >>>Brought to you by Fig Leaf Software
> >>>Premier Authorized Adobe Consulting and Training
> >>>http://www.figleaf.com
> >>>http://training.figleaf.com
> >>
> >>
> >>___
> >>Flashcoders@chattyfig.figleaf.com
> >>To change your subscription options or search the archive:
> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >>Brought to you by Fig Leaf Software
> >>Premier Authorized Adobe Consulting and Training
> >>http://www.figleaf.com
> >>http://training.figleaf.com
> >
> >___
> >Flashcoders@chattyfig.figleaf.com
> >To change your subscription options or search the archive:
> >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >Brought to you by Fig Leaf Software
> >Premier Authorized Adobe Consulting and Training
> >http://www.figleaf.com
> >http://training.figleaf.com
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-12 Thread elr


Unfortunately, that`s hard to see where exactly video author (P. 
Minault) is clicking as he uses Captivate that is absolutely not synchro.
But in the amfphp browser windows, I get the following error message 
when I test HelloWorld sample service


Warning: Cannot modify header information - headers already sent by 
(output started at .../amfphp/gateway.php:1) in 
.../amfphp/amf-core/exception/php4Exception.php on line 42
/1/onStatusnull?codeAMFPHP_RUNTIME_ERRORdescription?session_start(): 
Cannot send session cache limiter - headers already sent (output


I'm not able to understand where trouble comes from

Eric

At 2006-04-12   12:39, you wrote:

No, Kevin,I missed this area. I`m giving a look right now .Thx !!!


At 2006-04-12   11:16, you wrote:

Did you try watching the video tutorials?  The ones for installing 
and testing were extremely helpful.



From: elr <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger
Date: Wed, 12 Apr 2006 10:50:59 -0400

Hi all,

I try to setup installed AMFPHP rel 1.2.3 on Flash 8 following 
amfphp.org tutorial (http://www.amfphp.org/docs/testingamfphp.html)
Gateway.php properly reacts and everything seems ok excepted that, 
running the HelloWorld sample, myNetConnection Debugger doesn`t 
report any Result event (while I get Connect and Call ones..)


Any idea ?

Eric

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-12 Thread elr

No, Kevin,I missed this area. I`m giving a look right now .Thx !!!


At 2006-04-12   11:16, you wrote:

Did you try watching the video tutorials?  The ones for installing 
and testing were extremely helpful.



From: elr <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger
Date: Wed, 12 Apr 2006 10:50:59 -0400

Hi all,

I try to setup installed AMFPHP rel 1.2.3 on Flash 8 following 
amfphp.org tutorial (http://www.amfphp.org/docs/testingamfphp.html)
Gateway.php properly reacts and everything seems ok excepted that, 
running the HelloWorld sample, myNetConnection Debugger doesn`t 
report any Result event (while I get Connect and Call ones..)


Any idea ?

Eric

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-12 Thread Kevin Matzdorf


Did you try watching the video tutorials?  The ones for installing and 
testing were extremely helpful.



From: elr <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] AMFPHP tutorial - no Result on NetConnection 
Debugger

Date: Wed, 12 Apr 2006 10:50:59 -0400

Hi all,

I try to setup installed AMFPHP rel 1.2.3 on Flash 8 following amfphp.org 
tutorial (http://www.amfphp.org/docs/testingamfphp.html)
Gateway.php properly reacts and everything seems ok excepted that, running 
the HelloWorld sample, myNetConnection Debugger doesn`t report any Result 
event (while I get Connect and Call ones..)


Any idea ?

Eric

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-12 Thread elr

Hi all,

I try to setup installed AMFPHP rel 1.2.3 on Flash 8 following 
amfphp.org tutorial (http://www.amfphp.org/docs/testingamfphp.html)
Gateway.php properly reacts and everything seems ok excepted that, 
running the HelloWorld sample, myNetConnection Debugger doesn`t 
report any Result event (while I get Connect and Call ones..)


Any idea ?

Eric 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] AMFPHP for commercial projects

2006-01-28 Thread Anthony Pace
The protocol outputs data in open text.  If they wanted the protocol to be
proprietary it would have to be encoded or ciphered in a way that could not
be decompiled or read by the end user.  It is also based on an open
standard; therefore, absolutely legal to utilize.

AMF is essentially a lightweight binary version of SOAP.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of GregoryN
Sent: January 26, 2006 1:21 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] AMFPHP for commercial projects


Thanks a lot to all of you for answering.

I'm quite happy with AMFPHP too, it's good, reliable and nice to use.
The only thing I was not sure is legal issues and/or Adobe plans on
it. However, now I'm almost ready to recommend AMFPHP to clients :-).

Maybe some Adobe guys can say a word in this thread?
  

-- 
Best regards,
 GregoryN

http://GOusable.com
Flash components development.
Usability services.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.23/243 - Release Date: 27/01/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.23/243 - Release Date: 27/01/2006
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] AMFPHP for commercial projects

2006-01-26 Thread Ettwein, Josh
I've been using it for over 4 years on large-scale production projects for
clients like Sunkist, Shea Homes, The Irvine Company etc... a lot of
high-traffic sites with a lot of concurrent users. No problems, ever. And
like Mike mentioned, the PHP code itself is really quite simple, if you
don't like anything about it, just change it - I have on several occasions.
I would highly recommend it.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Britton
Sent: Thursday, January 26, 2006 12:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] AMFPHP for commercial projects

AMFPHP is really straightforward code -- any PHP programmer worth his salt
could go in and fix if needed.  It also keeps the option of moving to CF or
Java open, since your AS2 will be the same.

The project has picked up again and has been out of beta for some time.

Mike
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AMFPHP for commercial projects

2006-01-26 Thread Mike Britton
AMFPHP is really straightforward code -- any PHP programmer worth his
salt could go in and fix if needed.  It also keeps the option of
moving to CF or Java open, since your AS2 will be the same.

The project has picked up again and has been out of beta for some time.

Mike
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AMFPHP for commercial projects

2006-01-26 Thread John Grden
Ryan hit it right on the head.

On 1/26/06, ryanm <[EMAIL PROTECTED]> wrote:
>
> > Question:
> > What's your opinion and/or practice of using AMFPHP for client's
> > project?
> >
> So far, I haven't felt comfortable recommending it to clients, but I
> admit I haven't even looked at it as an option in more than a year, so I
> don't know what has been improved.
>
> If John felt comfortable recommending it to his clients, then I would
> hazard to say that I might be able to recommend it as well. It's really
> going to end up being more about how comfortable your client is with OSS
> software and how comfortable you are supporting it if it breaks.
>
> ryanm
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--
John Grden - Blitz
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AMFPHP for commercial projects

2006-01-26 Thread ryanm

Question:
What's your opinion and/or practice of using AMFPHP for client's
project?

   So far, I haven't felt comfortable recommending it to clients, but I 
admit I haven't even looked at it as an option in more than a year, so I 
don't know what has been improved.


   If John felt comfortable recommending it to his clients, then I would 
hazard to say that I might be able to recommend it as well. It's really 
going to end up being more about how comfortable your client is with OSS 
software and how comfortable you are supporting it if it breaks.


ryanm 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AMFPHP for commercial projects

2006-01-26 Thread GregoryN

Thanks a lot to all of you for answering.

I'm quite happy with AMFPHP too, it's good, reliable and nice to use.
The only thing I was not sure is legal issues and/or Adobe plans on
it. However, now I'm almost ready to recommend AMFPHP to clients :-).

Maybe some Adobe guys can say a word in this thread?
  

-- 
Best regards,
 GregoryN

http://GOusable.com
Flash components development.
Usability services.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AMFPHP for commercial projects

2006-01-26 Thread John Grden
If it makes them feel any better, we just used it on the new Hilton site (
www.hiltonjourneys.com) and they didn't even blink.  Used in sending the
"Create your own memory" email.  It sends the drawing and details.

Works beautifully.

John

On 1/26/06, GregoryN <[EMAIL PROTECTED]> wrote:
>
> Hello Flashcoders,
>
> When talking with client about using Flash Remoting, I usually
> recommend to avoid AMFPHP in favor of ColdFusion or ASP.NET.
> But I love working with PHP (and AMFPHP in dev. projects).
>
> Question:
> What's your opinion and/or practice of using AMFPHP for client's
> project?
>
> Here's a source of my doubts:
> "We do not recommend (at all) using AMFPHP in commercial applications
> at this time. Just don't."
>   http://www.flash-db.com/Tutorials/amfphpdoc/amfphpdoc.php
>
>   Thanks in advance.
>
> --
> Best regards,
> GregoryN
> 
> http://GOusable.com
> Flash components development.
> Usability services.
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--
John Grden - Blitz
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AMFPHP for commercial projects

2006-01-26 Thread Miles Thompson


I don't think there is a usability problem, the authors of that piece 
appear more concerned about some legality they do not name.


Miles


At 07:15 AM 1/26/2006, GregoryN wrote:


Hello Flashcoders,

When talking with client about using Flash Remoting, I usually
recommend to avoid AMFPHP in favor of ColdFusion or ASP.NET.
But I love working with PHP (and AMFPHP in dev. projects).

Question:
What's your opinion and/or practice of using AMFPHP for client's
project?

Here's a source of my doubts:
"We do not recommend (at all) using AMFPHP in commercial applications
at this time. Just don't."
  http://www.flash-db.com/Tutorials/amfphpdoc/amfphpdoc.php

  Thanks in advance.

--
Best regards,
 GregoryN

http://GOusable.com
Flash components development.
Usability services.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.23/240 - Release Date: 1/25/2006


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AMFPHP for commercial projects

2006-01-26 Thread GregoryN
Hello Flashcoders,

When talking with client about using Flash Remoting, I usually
recommend to avoid AMFPHP in favor of ColdFusion or ASP.NET.
But I love working with PHP (and AMFPHP in dev. projects).

Question:
What's your opinion and/or practice of using AMFPHP for client's
project?

Here's a source of my doubts:
"We do not recommend (at all) using AMFPHP in commercial applications
at this time. Just don't."
  http://www.flash-db.com/Tutorials/amfphpdoc/amfphpdoc.php

  Thanks in advance.

-- 
Best regards,
 GregoryN

http://GOusable.com
Flash components development.
Usability services.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] amfphp, flash 8 and netdebug

2006-01-19 Thread erixtekila
Hey, we just finished a gig with amfphp and Xray did a great job in 
helping

us debug the live data.  We were able to trace out the remoting objects
after creating them to make sure they were instantiated correctly as 
well as

look at them through the treeview at runtime.  When data returned, we
through it through Xray's trace and it just spit out the entire object 
for

us.

when you consider all we have to do to use Xray is put it on stage and
publish with our main swf, I think that's a bit easier than NetDebug ;)


Amazing tool !
Kudos to you.

---
erixtekila
http://blog.v-i-a.net/

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] amfphp, flash 8 and netdebug

2006-01-19 Thread John Grden
Hey, we just finished a gig with amfphp and Xray did a great job in helping
us debug the live data.  We were able to trace out the remoting objects
after creating them to make sure they were instantiated correctly as well as
look at them through the treeview at runtime.  When data returned, we
through it through Xray's trace and it just spit out the entire object for
us.

when you consider all we have to do to use Xray is put it on stage and
publish with our main swf, I think that's a bit easier than NetDebug ;)

public static function getData(id:Number):Void
{
remotingObj = new Service("
http://www.clientproductionserver.com/remoting/gateway.php",null,"serviceName";,
null, null);

_global.tt("create service?", remotingObj);

pc = remotingObj.getCYMData(id);
pc.responder = new RelayResponder(CardData, "onGetDataSuccess",
"onGetDataFailure");
}

// traced in Xray:
(1071) create service?:
  __responder = null
  __serviceName = serviceName
  _allowRes = true
  __conn = [object Object]
  contentType = application/x-fcs

  log = null

public static function onGetDataSuccess(p_return:Object):Void
{
_global.tt("onSubmitDataSuccess", p_return);
}

// traced in Xray:
(1316) onSubmitDataSuccess:
  __result = [object Object]
  serviceName = undefined
  drawing =
space~142|166,143|166~144|164|1.42,145|164~146|162|1.47,147|160~149|158|1.46,154|154~156|150|3.03,165|139~170|133|5.02,174|127~183|114|7,189|107~190|106|7.45,191|105~192|105|6.33,193|107~196|111|4.94,198|117~202|127|6.8,207|140~213|150|8.91,226|174~232|181|9.03,244|188~248|188|9.41,252|186~260|182|7.69,268|175~274|171|7.86,277|165~289|148|8.15,301|131~316.95|117|10.4295,
327.95|111~332.95|110|8.5195,333.95|110~334.95|111|7.3995,
335.95|113~336.95|117|6.0795,338.95|121~341.95|125|4.5795,
342.95|131~345.95|137|6.2195,351.95|145~353.95|146|6.6595,
354.95|147~356.95|147|5.4795,360.95|144~362.95|143|4.0695,
365.95|140~367.95|136|4.0595,374.95|131~380.95|127|5.9395
  27 = 374.95|131~380.95|127|5.9395
  26 = 365.95|140~367.95|136|4.0595
  25 = 360.95|144~362.95|143|4.0695
  24 = 354.95|147~356.95|147|5.4795
  23 = 351.95|145~353.95|146|6.6595
  22 = 342.95|131~345.95|137|6.2195
  21 = 338.95|121~341.95|125|4.5795
  20 = 335.95|113~336.95|117|6.0795
  19 = 333.95|110~334.95|111|7.3995
  18 = 327.95|111~332.95|110|8.5195
  17 = 301|131~316.95|117|10.4295
  16 = 277|165~289|148|8.15
  15 = 268|175~274|171|7.86
  14 = 252|186~260|182|7.69
  13 = 244|188~248|188|9.41
  12 = 226|174~232|181|9.03
  11 = 207|140~213|150|8.91
  10 = 198|117~202|127|6.8
  9 = 193|107~196|111|4.94
  8 = 191|105~192|105|6.33
  7 = 189|107~190|106|7.45
  6 = 174|127~183|114|7
  5 = 165|139~170|133|5.02
  4 = 154|154~156|150|3.03
  3 = 147|160~149|158|1.46
  2 = 145|164~146|162|1.47
  1 = 143|166~144|164|1.42
  0 = space~142|166

  caption = testing the caption
  musicChoice = Jason Mraz – Life is Wonderful|wonderful
  personalMessage = TEST
  friendsEmail = [EMAIL PROTECTED]
  friendsName = JP
  yourEmail = [EMAIL PROTECTED]
  yourName = John Grden

public static function onGetDataFailure(obj:Object):Void
{
_global.tt("onSubmitDataFailure", remotingObj, obj);
}

www.osflash.org/xray

hth,

John

On 1/19/06, Gavin Lilley <[EMAIL PROTECTED]> wrote:
>
> Did anyone solve this problem?
>
> I ask as I have the same problem following an upgrade to Flash 8. :-(
>
> I seem to have 3 isntances of classes installed at various locations on my
> hard drive, but nothing is repsonding and the ncd is vital to
> troubleshooting - but how do I trouble shoot the ncd?!?
>
> cheers,
>
> --
> Gavin Lilley
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] amfphp, flash 8 and netdebug

2006-01-19 Thread Gavin Lilley
Did anyone solve this problem?

I ask as I have the same problem following an upgrade to Flash 8. :-(

I seem to have 3 isntances of classes installed at various locations on my
hard drive, but nothing is repsonding and the ncd is vital to
troubleshooting - but how do I trouble shoot the ncd?!?

cheers,

--
Gavin Lilley



On 12/2/05, Alfonso Florio <[EMAIL PROTECTED]> wrote:
>
> hi to all
>
> i'm trying to use the remoting with amfphp in flash 8
> i'm trying to use also the netdebug with the netconnection debugger...
>
> here's the syntax I use to import the classes
>
> import mx.remoting.NetServices
> import mx.remoting.debug.NetDebug;
> NetDebug.initialize();
>
> if I just import Netservices remoting works with two errors...
> no way to see the events into the netconnection debugger
>
> if I open a pre-compiled swf in flash 8 i can see events in netconnection
> debugger!!
>
> here's all my code and the errors I get
>
> any help would be appreciated!!!
>
> import mx.remoting.NetServices;
> import mx.remoting.debug.NetDebug;
> NetDebug.initialize();
> listDir_Result = function (message) {
> for (i=0; i trace(i+" "+message.nomefile[i]);
> }
> };
> listDir_Status = function (message) {
> trace("STATUS");
> };
> var conn =
> NetServices.createGatewayConnection("http://xxx/aulavirtuale/gateway.php";)
> ;
> var myService = conn.getService("formToText", this);
> myService.listDir("./");
>
>
> **Error** C:\Documents and Settings\fonzie admin\Local
> Settings\Application
> Data\Macromedia\Flash
> 8\en\Configuration\Classes\mx\remoting\NetServiceProxy.as: Line 62: Type
> mismatch.
> arguments.unshift(new
> NetServiceProxyResponder(this, methodName));
>
> **Error** C:\Documents and Settings\fonzie admin\Local
> Settings\Application
> Data\Macromedia\Flash
> 8\en\Configuration\Classes\mx\remoting\NetServiceProxy.as: Line 67: Type
> mismatch.
> arguments.unshift(new
> NetServiceProxyResponder(this, methodName));
>
> Total ActionScript Errors: 2 Reported Errors: 2
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] amfphp 1.0 slow?

2006-01-09 Thread Janis Radins
Hey ppl!


I just lounched first project which runs on amfphp 1.0 and I've encountered
a problem - when flash app is accessed on web it is getting extremely slow
on data transfers.
Simple call for few kb data takes 5-10 seconds.
Otherwise everything is allright, and its very fast when lounched from ide.
Anyone expierienced that?

tnx in advance
Janis
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] amfphp database editing question

2005-12-21 Thread JesterXL
Yup!

- Original Message - 
From: "Helen Triolo" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, December 21, 2005 2:26 PM
Subject: Re: [Flashcoders] amfphp database editing question


Thanks for the reply! As I was typing in more explanation, I realized
what was wrong. This

delete_btn.addEventListener("click", deleteRecord);

should be

delete_btn.addEventListener("click", Delegate.create(this,
deleteRecord)); to make the scope right to find onDeleteScore.

Made the change and it works. So in general, it's correct to create a
single Service instance and then use a different PendingCall instance
for each operation?

Helen

JesterXL wrote:

>This is correct:
>
>var pc:PendingCall  = _service.deleteScore(scores_dg.selectedItem.id);
>pc.responder = new RelayResponder(this, "onDeleteScore", "onDbError");
>
>However, not sure why your result/fault functions aren't getting called,
>even weirder is your seeing the NCD saying it did.  Your code that you've
>posted looks good.  Are those functions defined in the same place, you just
>didn't post 'em?
>
>- Original Message - 
>From: "Helen Triolo" <[EMAIL PROTECTED]>
>To: "Flashcoders Mailing List" 
>Sent: Wednesday, December 21, 2005 2:01 PM
>Subject: [Flashcoders] amfphp database editing question
>
>
>I'm trying to get amfphp to work for simple database editing.  It
>selects and displays records in a datagrid fine, and when I select one
>and click a Delete button, it gets deleted from the database, but my
>onDeleteScore function is not called (even though the NC debugger shows
>Result: (boolean) true).  I'm not sure how to set up the service and
>pending call variables when multiple operations are done -- do you
>create one service object and one pendingCall object and then assign
>different relayResponder objects to the pc.responder each time a new
>operation is done?  Or should a new pendingCall object be created for
>each operation?  (or a new service object altogether?)  I tried a
>variety of different ways and never can get my onDeleteScore function to
>be called.   Code for the delete part:
>
>// this is never called
>function onDeleteScore(re:ResultEvent) {
>trace('result='+re.result);
>scores_dg.removeItemAt(deleteIndex);
>msg_ta.text = "Record was deleted";
>}
>
>function deleteRecord() {
>// remember which element of the array is to be deleted
>deleteIndex = scores_dg.selectedIndex;
>// get the id of the record to delete, to pass it to deleterecord.php
>var id:Number = scores_dg.selectedItem.record;
>
>// (tried new pc and same pc used for select operation -- neither
>worked)
>var pc:PendingCall  = _service.deleteScore(scores_dg.selectedItem.id);
>pc.responder = new RelayResponder(this, "onDeleteScore", "onDbError");
>}
>
>delete_btn.addEventListener("click", deleteRecord);
>
>thanks for any suggestions/advice,
>Helen
>
>
>
>___
>Flashcoders mailing list
>Flashcoders@chattyfig.figleaf.com
>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>___
>Flashcoders mailing list
>Flashcoders@chattyfig.figleaf.com
>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
>


-- 
Helen Triolo
Flash Programmer/Instructor, Web Developer
http://flash-creations.com • http://i-technica.com
ph: 301.424.6037 • email: [EMAIL PROTECTED]





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] amfphp database editing question

2005-12-21 Thread Helen Triolo
Thanks for the reply! As I was typing in more explanation, I realized 
what was wrong. This


delete_btn.addEventListener("click", deleteRecord);

should be

delete_btn.addEventListener("click", Delegate.create(this, 
deleteRecord)); to make the scope right to find onDeleteScore.


Made the change and it works. So in general, it's correct to create a 
single Service instance and then use a different PendingCall instance 
for each operation?


Helen

JesterXL wrote:


This is correct:

var pc:PendingCall  = _service.deleteScore(scores_dg.selectedItem.id);
pc.responder = new RelayResponder(this, "onDeleteScore", "onDbError");

However, not sure why your result/fault functions aren't getting called, 
even weirder is your seeing the NCD saying it did.  Your code that you've 
posted looks good.  Are those functions defined in the same place, you just 
didn't post 'em?


- Original Message - 
From: "Helen Triolo" <[EMAIL PROTECTED]>

To: "Flashcoders Mailing List" 
Sent: Wednesday, December 21, 2005 2:01 PM
Subject: [Flashcoders] amfphp database editing question


I'm trying to get amfphp to work for simple database editing.  It
selects and displays records in a datagrid fine, and when I select one
and click a Delete button, it gets deleted from the database, but my
onDeleteScore function is not called (even though the NC debugger shows
Result: (boolean) true).  I'm not sure how to set up the service and
pending call variables when multiple operations are done -- do you
create one service object and one pendingCall object and then assign
different relayResponder objects to the pc.responder each time a new
operation is done?  Or should a new pendingCall object be created for
each operation?  (or a new service object altogether?)  I tried a
variety of different ways and never can get my onDeleteScore function to
be called.   Code for the delete part:

// this is never called
function onDeleteScore(re:ResultEvent) {
   trace('result='+re.result);
   scores_dg.removeItemAt(deleteIndex);
   msg_ta.text = "Record was deleted";
}

function deleteRecord() {
   // remember which element of the array is to be deleted
   deleteIndex = scores_dg.selectedIndex;
   // get the id of the record to delete, to pass it to deleterecord.php
   var id:Number = scores_dg.selectedItem.record;

   // (tried new pc and same pc used for select operation -- neither
worked)
   var pc:PendingCall  = _service.deleteScore(scores_dg.selectedItem.id);
   pc.responder = new RelayResponder(this, "onDeleteScore", "onDbError");
}

delete_btn.addEventListener("click", deleteRecord);

thanks for any suggestions/advice,
Helen



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 




--
Helen Triolo
Flash Programmer/Instructor, Web Developer
http://flash-creations.com • http://i-technica.com
ph: 301.424.6037 • email: [EMAIL PROTECTED]





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] amfphp database editing question

2005-12-21 Thread JesterXL
This is correct:

var pc:PendingCall  = _service.deleteScore(scores_dg.selectedItem.id);
pc.responder = new RelayResponder(this, "onDeleteScore", "onDbError");

However, not sure why your result/fault functions aren't getting called, 
even weirder is your seeing the NCD saying it did.  Your code that you've 
posted looks good.  Are those functions defined in the same place, you just 
didn't post 'em?

- Original Message - 
From: "Helen Triolo" <[EMAIL PROTECTED]>
To: "Flashcoders Mailing List" 
Sent: Wednesday, December 21, 2005 2:01 PM
Subject: [Flashcoders] amfphp database editing question


I'm trying to get amfphp to work for simple database editing.  It
selects and displays records in a datagrid fine, and when I select one
and click a Delete button, it gets deleted from the database, but my
onDeleteScore function is not called (even though the NC debugger shows
Result: (boolean) true).  I'm not sure how to set up the service and
pending call variables when multiple operations are done -- do you
create one service object and one pendingCall object and then assign
different relayResponder objects to the pc.responder each time a new
operation is done?  Or should a new pendingCall object be created for
each operation?  (or a new service object altogether?)  I tried a
variety of different ways and never can get my onDeleteScore function to
be called.   Code for the delete part:

// this is never called
function onDeleteScore(re:ResultEvent) {
trace('result='+re.result);
scores_dg.removeItemAt(deleteIndex);
msg_ta.text = "Record was deleted";
}

function deleteRecord() {
// remember which element of the array is to be deleted
deleteIndex = scores_dg.selectedIndex;
// get the id of the record to delete, to pass it to deleterecord.php
var id:Number = scores_dg.selectedItem.record;

// (tried new pc and same pc used for select operation -- neither
worked)
var pc:PendingCall  = _service.deleteScore(scores_dg.selectedItem.id);
pc.responder = new RelayResponder(this, "onDeleteScore", "onDbError");
}

delete_btn.addEventListener("click", deleteRecord);

thanks for any suggestions/advice,
Helen



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] amfphp database editing question

2005-12-21 Thread Helen Triolo
I'm trying to get amfphp to work for simple database editing.  It 
selects and displays records in a datagrid fine, and when I select one 
and click a Delete button, it gets deleted from the database, but my 
onDeleteScore function is not called (even though the NC debugger shows 
Result: (boolean) true).  I'm not sure how to set up the service and 
pending call variables when multiple operations are done -- do you 
create one service object and one pendingCall object and then assign 
different relayResponder objects to the pc.responder each time a new 
operation is done?  Or should a new pendingCall object be created for 
each operation?  (or a new service object altogether?)  I tried a 
variety of different ways and never can get my onDeleteScore function to 
be called.   Code for the delete part:


// this is never called
function onDeleteScore(re:ResultEvent) {
   trace('result='+re.result);
   scores_dg.removeItemAt(deleteIndex);
   msg_ta.text = "Record was deleted";
}

function deleteRecord() {
   // remember which element of the array is to be deleted
   deleteIndex = scores_dg.selectedIndex;
   // get the id of the record to delete, to pass it to deleterecord.php
   var id:Number = scores_dg.selectedItem.record;
  
   // (tried new pc and same pc used for select operation -- neither 
worked)

   var pc:PendingCall  = _service.deleteScore(scores_dg.selectedItem.id);
   pc.responder = new RelayResponder(this, "onDeleteScore", "onDbError");
}

delete_btn.addEventListener("click", deleteRecord);

thanks for any suggestions/advice,
Helen



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] amfphp, flash 8 and netdebug

2005-12-01 Thread Alfonso Florio

hi to all

i'm trying to use the remoting with amfphp in flash 8
i'm trying to use also the netdebug with the netconnection debugger...

here's the syntax I use to import the classes

import mx.remoting.NetServices
import mx.remoting.debug.NetDebug;
NetDebug.initialize();

if I just import Netservices remoting works with two errors...
no way to see the events into the netconnection debugger

if I open a pre-compiled swf in flash 8 i can see events in netconnection 
debugger!!


here's all my code and the errors I get

any help would be appreciated!!!

import mx.remoting.NetServices;
import mx.remoting.debug.NetDebug;
NetDebug.initialize();
listDir_Result = function (message) {
for (i=0; ivar conn = 
NetServices.createGatewayConnection("http://xxx/aulavirtuale/gateway.php";);

var myService = conn.getService("formToText", this);
myService.listDir("./");


**Error** C:\Documents and Settings\fonzie admin\Local Settings\Application 
Data\Macromedia\Flash 
8\en\Configuration\Classes\mx\remoting\NetServiceProxy.as: Line 62: Type 
mismatch.

arguments.unshift(new 
NetServiceProxyResponder(this, methodName));

**Error** C:\Documents and Settings\fonzie admin\Local Settings\Application 
Data\Macromedia\Flash 
8\en\Configuration\Classes\mx\remoting\NetServiceProxy.as: Line 67: Type 
mismatch.

arguments.unshift(new 
NetServiceProxyResponder(this, methodName));

Total ActionScript Errors: 2 Reported Errors: 2

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders