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
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
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
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
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
$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
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:
?php
class testClass
{
function testClass() {
$this-methodTable = array(
test1 = array(
description=I return 'hello world',
access=remote,
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
*/
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
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:
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:
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
13 matches
Mail list logo