[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

[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

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

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

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

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

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:

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

2006-08-16 Thread Mike Britton
?php class testClass { function testClass() { $this-methodTable = array( test1 = array( description=I return 'hello world', access=remote,

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

2006-08-16 Thread Jeroen Beckers
Yes, that works... So why won't my class work? //class ?php class Quadri { /* * Constructor */ function Quadri() { include(Quadri.methodTable.php); } /** * This function adds the score name to the database * @access remote */

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

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:

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:

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