Help In AMFPHP
Hello,
my AMFPHP worked great, not it confuses me. Please open this url:
http://halfprice.habra.com/Mirza/amfTest/browser/
and try to execute the "say" function. I get the error:
Fatal error: Call to undefined function: action() in /home/jhabra
Why do I get this, previously I never had such errors!!!
Please help!
REgards,
Mirza
ActionScript.org Forums > Supporting Technologies > Flash Remoting
Posted on: 01-14-2007, 05:09 PM
View Complete Forum Thread with Replies
Sponsored Links:
Amfphp
Hi,
I am using amfphp. It works fine on my machine. However when I upload my website to a remote server, it does not work.
I changed the paths to match the new server structure and all that, but nothing happening.
I will appreciate it so much if you can help.
Thanks in advance.
E
View Replies !
View Related
Amfphp
Hi,
What are you supposed to change when you upload the amfphp folder to a remote server?
And where do you place the folder? I mean do you place it on the same directory as your swf file?
I really need urgent help and will appreciate it so so much if anybody can help please.
Thanks.
View Replies !
View Related
Using Amfphp
Hi, i'm trying to conect php to flash with amfphp, i'm already fustrated cause um can't get results.
but it gives this error:
Quote:
Status (object #2)
.....code: "AMFPHP_CLASS_NOT_FOUND"
.....description: "The file {people.php} exists and was included correctly but a class by that name could not be found in that file. Perhaps the class is misnamed."
.....details: "I:websamfphpamf-coreappActions.php"
.....level: "User Error"
.....line: 132
how can I resolve this
thanks
my php code
PHP Code:
<?
define('DB_HOST','localhost');
define('DB_USER','root');
define('DB_PASS','');
define('DB_NAME','test');
define('TABLE','people');
class people {
function people(){
$this->methodTable = array(
"read" => array(
"description" => "read all records from the db",
"access" => "remote",
"returntype" => "Array"
));
}
function read(){
if(people::Connect()) {
if(!$result = @mysql_query("select * from ".TABLE)){
return people::Error( mysql_error(), mysql_errno());
}
if(mysql_num_rows($result) == 0 ){
return people::Error( "no entries yet!",'');
}
$flash = people::FlashObject();
while($row = mysql_fetch_assoc($result)){
array_push($flash['result'],$row['people']);
}
$flash['num_rows'] = mysql_num_rows($result);
return $flash;
} else {
return people::Error( mysql_error(), mysql_errno());
}
}
function Connect(){
$conn_id = @mysql_connect(DB_HOST, DB_USER, DB_PASS);
if($conn_id){
if(@mysql_select_db(DB_NAME)){
return $conn_id;
}
}
return false;
}
function Error($message, $level)
{
return array("type"=>"ERROR", "code"=> $level, "description" => $message);
}
function FlashObject()
{
return array("type"=>"RESULT","sessionid"=> session_id(), "result" => array(),"num_rows" => array());
}
}
?>
my as:
ActionScript Code:
import mx.remoting.*;
import mx.rpc.*;
import mx.utils.Delegate;
import mx.remoting.debug.NetDebug;
//Change the gateway URL as needed
var gatewayUrl:String = "http://localhost/amfphp/gateway.php";
NetDebug.initialize();
service = new Service(gatewayUrl, null, "people");
//read all records from the db
function read()
{
var pc:PendingCall = service.read();
pc.responder = new RelayResponder(this, "handleRead", null);
}
function handleRead(re:ResultEvent)
{
result_obj = re.result
switch(result_obj.type){
case 'RESULT':
var RESULT = result_obj.result
for(var i in RESULT){
title = RESULT[i]
trace(title)
}
break;
case 'ERROR':
}
}
read()
View Replies !
View Related
Amfphp Help
okay so I have this service.
Code:
<?php
//
include_once("inc_sql.php");
//
class VecParts
{
//
var $dbhost = HOSTNAME;
var $dbname = DATABASE;
var $dbuser = USERNAME;
var $dbpass = PASSWORD;
var $tbl = TABLE;
//
function VecParts()
{
$this->methodTable = array(
"getVehicles" => array(
"description" => "get list of vehicles",
"access" => "remote"
// "roles" => "admin" // this method will be available only if authenticate method returns "admin"
),
"setVehicles" => array(
"description" => "set vehicle",
"access" => "remote",
"arguments" => array("rs")
// "roles" => "admin" // this method will be available only if authenticate method returns "admin"
)
);
//
$this->conn = mysql_pconnect($this->dbhost, $this->dbuser, $this->dbpass);
mysql_select_db ($this->dbname);
//
}
//..................
function getVehicles(){
$sql = "SELECT * FROM vehicles ORDER by id";
$query = mysql_query($sql);
return $query;
}
function setVehicles($rs){
$error = false;
for($i=0; $i<sizeof($rs); $i++){
$result = mysql_query("replace into vehicles values('".$rs[$i][year]."', '".$rs[$i][make]."', '".$rs[$i][model]."', '".$rs[$i][vin]."', '".$rs[$i][license]."', '".$rs[$i][mileage]."')");
if(!result) $error = true;
}
if(!$error) return "Ok"; else return "Error";
}
//..................
}
?>
the Get method works ... and according to the NetConnection Debugger. the SET method is working, but its not updating the SQL database.
i think my problem is in the actionscript........ but kind of stumped...
heres the AS
Code:
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;
var gatewayURL:String = "http://intranet/flashservices/gateway.php";
NetDebug.initialize();
//
function handleResult(data) {
trace("GOT DATA");
dgVec.dataProvider = data.result;
}
//
function handleStatus(data) {
trace("ERROR");
trace(data.fault.faultstring);
}
var serv:Service = new Service(gatewayURL, null, "ops.VecParts", null, null);
var pc:PendingCall = serv.getVehicles();
pc.responder = new RelayResponder(this, "handleResult", "handleStatus");
this.createClassObject(mx.controls.DataGrid, "dgVec", 10);
dgVec.setSize(560, 100);
dgVec.editable = true;
//
function handleEdit(data) {
trace("GOT DATA from EDIT");
// trace(data.result.mRecordsAvailable);
}
//
function editStatus(data) {
trace("ERROR from EDIT");
trace(data.fault.faultstring);
}
//
function preEdit(xx) {
trace("write to DB");
var de:PendingCall = serv.setVehicles(xxxx);
de.responder = new RelayResponder(this, "handleEdit", "editStatus");
}
//
listenerObject = new Object();
listenerObject.cellEdit = function(evtObj) {
trace("cell edit "+evtObj.itemIndex+" "+evtObj.columnIndex);
trace("data to update "+dgVec.getSelectedItem().id);
preEdit(evtObj);
};
listPress = new Object();
listPress.cellPress = function(evtObj) {
trace("cell pressed "+dgVec.getSelectedItem().id);
};
dgVec.addEventListener("cellEdit", listenerObject);
dgVec.addEventListener("cellPress", listPress);
//
stop();
if you have made it this far in the post.... and are stumped like me... what I'm trying to do is populate a datagrid with amfphp from mysql ... which I got working.... my datagrid is editable, so when a users makes a change to some data in the datagrid, i want the changed to be saved to the database, and the datagrid refreshed........ I now how to refresh, but cant figure out why it wont save the data....... any help would be great.....
View Replies !
View Related
Amfphp 2?
Hi.
I see that Patrick Minault retired from the Flash world a while back - the last release for amfphp I can find is 1.9 beta2 on his blog, although he did say he would get up to version 2 before stopping work on the project.
What has thrown me is that a Google search for amfphp2 is showing up quite a few directories titled "amfphp2" but still I can't find anywhere to download it. Sourceforge also seems a little outdated (the most up-to-date release on one page I saw was only 1.2)
Does anyone know if version 2 was ever released, and if so where I can get it, and also does it look like the future of amfphp is under any doubt? In other words, should I be considering it for future projects?
Cheers.
View Replies !
View Related
Amfphp With Php VO
Hello,
I thought I would switch from weborb to amfphp as its much faster in most cases. The problem is I cant get the VO to work, instead I get this error:
ActionScript Code:
Argument 1 passed to JobBinding::getJob() must be an instance of JobVO, array given
Even though I send the data as a VO object in flash.
My VO class looks like this:
PHP Code:
class JobVO {
public $jobId;
public $jobTitle;
}
and I call the VO like this:
PHP Code:
public function myFunctionName(JobVO $job) {
....
AMFPHP doesnt seem to recognize the object although I can get the info like this:
PHP Code:
public function myFunctionName($job) {
return $job["jobId"]
....
But then its not strong typed variables which I wanted.
I also tried to point the $voPath to the correct folder but it doesn't seem to work either.
Any ideas?
View Replies !
View Related
Amfphp
Hi
Ive just started messing about with amfphp.
I am working localy.
When trying to create a new service
Code:
<?php
/**
* First tutorial class
*/
class HelloWorld {
/**
* first simple method
* @returns a string saying 'Hello World!'
*/
function sayHello()
{
return "Hello World!";
}
}
?>
i get an error in the amfphp browser
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at RawAmfService/readData()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
thanks for your time
View Replies !
View Related
Amfphp
Can anyone tell me if amfphp is available at any web hosts? Or is this simply a set of files that can be upoaded to any host offering PHP?
Thanks, Mark
View Replies !
View Related
Amfphp
Ok, I have moved on from the SerializerClass (like in previous post) and have decided to jump in with AMFPHP, it's all sort of making sense (I'm reading Jesse's tutorial), but I'm not quite getting the hang of it yet, does anyone else know of more basic level tutorials? I have no previous knowledge of flash remoting or the principles behind it (just what i read in Jesse's tute). To be honest my knowledge of PHP is basically nil (I understand what it is and how it works, I'm just not a programmer)
Now I feel that people are likely to say I should go away and start learning php first etc. But I don't have the time to do that, Basically we have PHP guys in our office and I just need to be able to explain the fundamentals and connect their systems into flash.
Thanks guys
View Replies !
View Related
[f8 As2] Amfphp
I am starting to dive into all the info on AMFPHP and have the helloworld working, but i don't know that much php. Can anyone point me in the right direction for a tutorial (or sample php) to send a string of variable and receive a string of variables?
The equivalent of a sendAndLoad in flash like this....
payOut.sendAndLoad("https://secure.domain.com/script.php", payIn, "POST");
if (payIn.response == 1){
response_txt.text = payIn.responsetext;
}
View Replies !
View Related
GET Id With AMFPHP
Hi there,
I have a newssystem. My newssytem will read newsarticles from my MySQL database with AMFPHP.
Now i get 6 newsarticles on my screen. But what if i want to retrieve on single newsarticle and that will be viewed in an other frame.
This is my current AS script:
Code:
function onResultaat(responds:Object):void {
var t:Array = responds.serverInfo.initialData;
for (var i:uint = 0; i < 5; i++) {
var o:Newsitem = new Newsitem();
var maxTekens:Number = 100;
var tekst:String = t[i][4];
var deelTekst:String = tekst.substr(0,tekst.indexOf(' ',maxTekens));
o.x = -280;
o.y = -145 + (70 * i);
o.tekst.wordWrap = true;
o.datum.text = t[i][1];
o.buttonMode = true;
o.titel.htmlText = "<b><a href='?id="+t[i][0]+"'>"+t[i][2]+"</a></b>";
o.tekst.htmlText = deelTekst;
o.titel.addEventListener(MouseEvent.CLICK, onClickTitel);
function onClickTitel(e:MouseEvent):void {
//Get the ID of a single newsarticle
}
}
If i click on a title then i should referer it to an other frame.
I have searched a lot a few days with URLLoader URLVariables sendAndLoad but i can't get it. This someone know something for these things?
Many thanks!
View Replies !
View Related
Amfphp
Anyone have experience with it? I've just pulled it down, and am having a little trouble getting the examples to work, even though I've got everything where it needs to be, I think... I'm not getting any errors in php, the data just doesn't seem to come back to the flash movie. I'm testing it locally using the firepages.au 'php in a box for windows' package.
I'm trying to streamline my data transfers, and am jumping into mx04 trying to get them working together. All the documentation for the data components in flash is still incomplete, so I'm not sure if AMFPHP is even necessary, is it?
I have classes/objects built in php ready to go, and I want to make them available to flash as efficiently as possible. Any words of wisdom are much appreciated.
Thanks!
View Replies !
View Related
XML Vs AMFPHP
Hi guys........
I have a simple question.
We are developing an api for a client, so their customers could login and see some stuff.
The problem is that I'm an XML fan and I resolve almost everything with xml, so, I have the idea to use SeandAndLoadVars to login the user and the PHP-XML to retrive the info of each user.
But one of the developers said that with AMFPHP is quicker and faster.
The data we want to transfer is not Credit Card numbers or passwords.
I want to know if it's better use XML or AMFPHP.
Thanks guys
View Replies !
View Related
AMFPHP
I modified the example "Introduction to AMFPHP 1" in such a way. Whit Ctrl+Enter it functions but when I place in the server (Internet) does not function. Somebody knows because?
Thank you. Claudio
View Replies !
View Related
Amfphp Problem
Hi,
I am using amfphp to load data from mysql database to a datagrid. It works fine on my machine. However when I upload my website to a remote server, it does not work.
I changed the paths to match the new server structure and all that, but nothing happening.
Any suggestions will be very much appreciated.
Thanks in advance.
E
View Replies !
View Related
Amfphp Upload
Hi,
What are you supposed to change when you upload the amfphp folder to a remote server?
And where do you place it? I mean do you place it on the same directory as your swf file?
I really need urgent help and will appreciate it so so much if anybody can help please.
Thanks.
View Replies !
View Related
Amfphp Folder
Hi,
What are you supposed to change when you upload the amfphp folder to a remote server?
And where do you place it? I mean do you place it on the same directory as your swf file?
I really need urgent help and will appreciate it so so much if anybody can help please.
Thanks.
View Replies !
View Related
AMFPHP And Flash...
Hello!
not sure if anyone can help, but im sure if there are people to help here is the place to find them...
I've just started looking into AMF PHP and im trying to convert some flash things i made into AMF PHP as i HATE having to use the send/load var things within flash.
Anyway it was all going well until i wanted to put things into different frames, so 1st frame would initilize everything, 2nd frame would do most actual calls. It didnt like this much unless EVERYTHING was done on the same page.
A good example of this would be a chat system i was messing around with, it has 30 frames, frame 1 is run on the first play, frame 30 loops back to frame 2. It used to use sendloadvar things on frame 2 to update the text box with any new text... great
Now when i try and use the same method unless i put ALL the code in frame 2 it doesnt like it, and i have buttons that i want to make run certain related functions.
I then thought, hey this would be nice in an external actionscript file then i could write a base amfphp wrapper then extend/derive that into a chat manager. However putting amfphp calls within an AS class doesnt seem to be liked...
Anyone have any ideas on the best way to do this, im looking to make some semi major projects with this soon, but before i want to do anything major i want to make sure i can use it how i want...
Also on a side note if any of you have any good tips for using AMFphp, and some good design concepts with it... im all ears
View Replies !
View Related
AMFPHP & Sessions
Ive got my simple chat thing up and running, and it seems to work ok, although if a session is active i want to use the session data, else for testing purposes ive just set it to use a default users details. IT works fine without the session but as soon as a session is involved it just stops working. It wont NetDebug::Trace anything... it says that it nativley supports sessions in the AMFPHP documents so im just wondering if anyone has had any similar problems with using sessions and if there is anythign i can do to test to see what the problem is.
View Replies !
View Related
AMFPHP + Firebird
Hi,
I'm trying to return recordsets to flash using AMFPHP and Firebird as my DB.. Anyone got an example? Not sure if Firebird supports recordsets in the same way MySQL does...
View Replies !
View Related
AMFPHP Error 404
Works fine on XP localhost (apache)
But I'm also having the 404 problem on the remote server (Apache/Linux).
My installation is
serverRoot /flashservices/
Just like most examples
Initial loading of the browser works fine. But when I try to use the services, like the simple Hello World example I keep geting the following error.
==========
Object not found!
Object not found!
The requested URL was not found on this server.
If you entered the URL manually please check your
spelling and try again.
If you think this is a server error, please contact
the webmaster.
Error 404
==============
Desperate for help. I can see there are include statements which some people have modified to solve the problem. Which ones are those. Tried modifying the include statement of config.inc in several files to no avail.
URL : http://www.fontanaroastery.co.za/flashservices/browser/
View Replies !
View Related
AMFPHP Not Responding
Hi,
It's been a couple of months since I've used amf php and I've just tried to install it on my new computer. Apache 2.2, runs fine, PHP 5 works fine. AMFPHP service browser works, but will not let me test as it shows the service functions as remote (bit wierd) and according to the NetConnectionDebugger and Service Capture I'm connecting. I make the call and then nothing. I've tried my classes, other people's classes and the test classes from the AMFPHP site and nothing is working.
I didn't go to bed until 2 last night and I couldn't sleep. I've done this before, is it a setting i've forgotten about in the php.ini? Please help!
Cheers
Tim
View Replies !
View Related
Amfphp Services
Aloha
ok...here it goes...i am trying to get my amfphp to load values from DB. loads single value, but not all values from dataGrid comp. I know it has to do with the array, but i dont know if i need to buid it in AS or php.
I am getting an ulcer from all the red bull.....Has anybody tried to do this before?
AS code
Code:
import mx.managers.PopUpManager;
import mx.containers.Window;
import mx.transitions.Tween;
import mx.transitions.easing.*;
import mx.core.View;
import mx.controls.ProgressBar;
import mx.controls.List;
import mx.utils.Delegate;
import mx.controls.gridclasses.DataGridColumn;
import mx.controls.DataGrid;
import mx.controls.Alert;
//////////////////////////////////////////////////////////////////////////////
import mx.remoting.*;
import mx.remoting.debug.*;
import mx.rpc.*;
class DiveService
{
//Set some styles
//public service instead
static var GATEWAY_URL:String = "http://amfphp.divefiji.com/flashservices/gateway.php"
//static var GATEWAY_URL:String = "http://dive/flashservices/gateway.php"
static var SERVICE_NAME:String = "DiveService"
//The service reference
var service:Service;
function DiveService()
{
_global.style.setStyle ('themeColor', 'haloOrange');
_global.style.setStyle ('fontFamily', 'Verdana');
_global.style.setStyle ('fontSize', 12);
init();
// Start test
//makeTest();
}
///////////////////////////////////////////////////////////////////////////
// Remoting-related methods
///////////////////////////////////////////////////////////////////////////
function init()
{
//Start the NetConnection debugger
NetDebug.initialize();
//Create the service
service = new Service(GATEWAY_URL, null, SERVICE_NAME,null,null);
}
function makeTest() {
loadDives('vitiLevu','novice');
loadDivesByParametres('vitiLevu','novice','-100.1','100.2');
loadServiceProviders('mamanuca','dive_charter_services');
loadServiceProvidersByPrice(100,200,'mamanuca');
loadServiceProvidersByCoordinate(100,200,'-100.1','100.2');
}
function loadDives(island:String,divType:String)
{
var pc:PendingCall = service.loadDives(island, divType);
pc.responder = new RelayResponder(this, 'handleLoadDives', 'error');
}
function loadDivesByParametres(island:String,divType:String,longitude:String,latitude:String)
{
var pc:PendingCall = service.loadDivesByParametres(island,divType,longitude,latitude);
pc.responder = new RelayResponder(_root, 'handleLoadDivesByParametres','error');
}
function loadServiceProviders(island:String,provType:String)
{
var pc:PendingCall = service.loadServiceProviders(island,provType);
pc.responder = new RelayResponder(_root, 'handleLoadServiceProviders','error');
}
function loadServiceProvidersByPrice(lowerprice:Number,upperprice:Number)
{
var pc:PendingCall = service.loadServiceProvidersByPrice(lowerprice,upperprice);
pc.responder = new RelayResponder(_root, 'handleLoadServiceProvidersByPrice','error');
}
function loadServiceProvidersByPrice2(lowerprice:Number,upperprice:Number,island:String)
{
var pc:PendingCall = service.loadServiceProvidersByPrice(lowerprice,upperprice,island);
pc.responder = new RelayResponder(_root, 'handleLoadServiceProvidersByPrice','error');
}
function loadServiceProvidersByCoordinate(lowerprice:Number,upperprice:Number,longitude:String,latitude:String)
{
var pc:PendingCall = service.loadServiceProvidersByCoordinate(lowerprice,upperprice,longitude,latitude);
pc.responder = new RelayResponder(_root, 'handleLoadServiceProvidersByCoordinate','error');
}
function loadServicesByProvider(providerId:Number)
{
var pc:PendingCall = service.loadServicesByProvider(providerId);
pc.responder = new RelayResponder(_root, 'handleLoadServicesByProvider','error');
}
function loadServiceProviderById(id:Number)
{
var pc:PendingCall = service.loadServiceProviderById(id);
pc.responder = new RelayResponder(_root, 'handleLoadServiceProviderById','error');
}
function error(re:ResultEvent) {
trace('error');
}
function handleLoadDives(re:ResultEvent)
{
_root.dgMenu.List.sortItemsBy ("name", "asc");
_root.dgMenu.setStyle ('hGridLines', true);
_root.dgMenu.setStyle ('hGridLineColor', 0xdddddd);
//_root.dgMenu.addColumn("name");
mx.accessibility.DataGridAccImpl.enableAccessibility();
//_root.dgMenu.addItem(1,{name:"me"});
var data:Array = new Array(re.result.length);
for(var i=0; i<re.result.length; i++){
var obj:Object = {info:re.result[i].name, info:re.result[i].depth};
data[i] = {name:obj.info};
_root.dgMenu.dataProvider.addItem(data.name);
var objDive:Object = data.name
//trace(obj.info);
_root.dgMenu.dataProvider = RecordSet (re.result);
_root.dgMenu.selectedIndex = 0;
onDgChange ({target:_root.dgMenu});
}
//_root.dgMenu.dataProvider = data;
//There is no step 2.... Mouhahah!
//Reset the selectedIndex of the datagrid to 0
//_root.dgMenu.selectedIndex = 0;
//Fake as though the datagrid was clicked
function onDgChange (evtObj:Object)
{
var list = evtObj.target;
var data = list.dataProvider.getItemAt (list.selectedIndex);
if (data == null)
{
//root.readMessages.txtMessage.text = "";
//If empty, clear textarea
}
else
{
//information for dives
_root.DiveInfo_mc.Dive_Desc.access_txt.text = data.access;
trace(data.name);
_root.DiveInfo_mc.Dive_Desc.current_txt.text = data.current;
_root.DiveInfo_mc.Dive_Desc.depth_txt.text = data.depth;
_root.DiveInfo_mc.Dive_Desc.surface_txt.text = data.surface;
_root.DiveInfo_mc.Dive_Desc.temp_txt.text = data.temerature;
_root.DiveInfo_mc.Dive_Desc.visability_txt.text = data.visability;
_root.DiveInfo_mc.Dive_Desc.Desciption_Title.text = data.name;
_root.DiveInfo_mc.Dive_Desc.extras_title.text = data.name;
_root.DiveInfo_mc.Dive_Desc.DiveStat_Title.text = data.name;
//information for services
_root.services_mc.contact_title.text =data.name
_root.services_mc.contactInfo_title.text =data.name
_root.services_mc.description_title.text = data.name
_root.services_mc.servicesExtra_title.text = data.name
_root.services_mc.rates_title.text =data.name
_root.services_mc.servicesDescription_txt.text = data.description;
_root.services_mc.serviceAddress.text = data.address;
_root.services_mc.servicePhone.text = data.phone;
_root.services_mc.serviceFax.text = data.fax;
_root.services_mc.serviceEmail.text = data.email
_root.services_mc.serviceCity.text = data.city
_root.services_mc.servicesName.text = data.name
_root.services_mc.serviceURL.text = data.site
_root.services_mc.rateDropDown.
/**need to build function that loads all rates into dropdown
then makes selection from drop down load the data from services DB
just like datagrid component.
*/
_root.services_mc.ratesDescription.text = '<html>' + data.price + '<br>----------------------------------------<br>' + data.description +'</html>';
//_root.LoadImageRate
//////////load banner function////////////////////////
_root.my_mcl.loadClip ("banners/" + data.xmlAd, "_root.Banner_Loader");
//////////load / move map ////////////////////////////
_root.map.setCenter ({lat:data.latitude, lng:data.longitude}, data.zoom);
///////check to see if gallery is loaded..
_root.CheckGallery ();
_root.Img_Gallery.contentXML = data.xmlGallery;
//brng menu out
//////////////add klm layers to map//////////////
_root.showTooltip
}
}
}
//////////////////functions NetDebug///////////////////
function handleLoadDivesByParametres(re:ResultEvent)
{
NetDebug.trace(re.result);
}
function handleLoadServiceProviders(re:ResultEvent)
{
NetDebug.trace(re.result);
}
function handleLoadServiceProvidersByPrice(re:ResultEvent)
{
NetDebug.trace(re.result);
}
function handleLoadServiceProvidersByCoordinate(re:ResultEvent)
{
NetDebug.trace(re.result);
}
function handleLoadServiceProviderById(re:ResultEvent)
{
NetDebug.trace(re.result);
}
////////////////change information in services and dives information on selection from DG/////////////////////////
}
here is php service
http://amfphp.divefiji.com/flashserv...iveService.php
View Replies !
View Related
AMFPHP - Flash CS3
I am building a project on CS3 and wishing that amfphp would be able to be my back-end program. I am new in using AMF, so I tried to search the net for AMFPHP tutorials and i installed it on my localhost(inetpub/wwwroot/amfphp 1.9). Based on the tutorial I should open gateway.php on my browser, so I did. It says I installed amfphp correctly, but each time I open index.html, an error appear. I cant even run AMFPHP and I cant find some resources on the net. can anyone link me to a tutorial in installing AMFPHP 1.9? and I need to know, is flash CS3 compatible with amfphp 1.9??
View Replies !
View Related
Amfphp Does Not Always Work?
I have been developing an app with amfphp and as 2.0. When I try to reach my page often I will get the page but no data arrives? Has anyone had any issues with amfphp like this? Are there some ports used by the server that could be blocked depending where you are trying to access your web app from?
Any help appreciated.
View Replies !
View Related
AMFPHP, Problem
Hi,
I have the problem with amfphp, flash chat app, it works everywhere, on localhost and on several other host except my clients host, configuration details ar correct I have checked, the only difference I have noticed yet is in php.ini, open_basedir value isn't set to "no value", on every other server it is "no value", can this coz the problem? debuggateway.php writes this:
Code:
Notice: Undefined variable: HTTP_RAW_POST_DATA in /home/aussiebi/public_html/ChatRoom/amfphp/debuggateway.php on line 23
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/aussiebi/public_html/ChatRoom/amfphp/browser/client/AMFClient.php on line 119
cURL and the debug gateway are installed correctly. You may now connect to the debug gateway from Flash.
View the amfphp documentation
on the hosts that it works fine debuggateway.php writes only following:
Code:
cURL and the debug gateway are installed correctly. You may now connect to the debug gateway from Flash.
View the amfphp documentation
I am not sure that this can be the problem but, my amfphp is stuck on that server.
thanks in advance
View Replies !
View Related
AMFPHP Vs WebORB
Does any one have experience with either AMF implementation from AMFPHP or WebOrb?
AMFPHP seems more native to PHP, but less support.
WebOrb seems more supported, but is ported from .NET
I have a larger project that requires lots of messaging between the client and server, and am worried that the overhead of XML will kill the response times.
View Replies !
View Related
Amfphp And RelayResponder
I'm using amfphp to get some arrays into my flash app. from the link:
http://livedocs.adobe.com/flashremot...Responder.html
i learned how to connect to a remote service, basicly its something like this:
Code:
custService = new Service("http://localhost:8300/flashservices/gateway", null, "customerData", null, null);
var pc:PendingCall = custService.getCategories(); // get all categories
pc.responder = new RelayResponder(this, "onCategoryData", "onCategoryFault" );
why use a RelayResponder? I saw in another thread here that it works without. My problem with RelayResponder is that the method refered to in the arguments (here: onCategoryData) is executed much later that the code that follows "pc.responder = new RelayResponder..."
Thanks for any hints!
View Replies !
View Related
AMFPHP And Dates
Hi, I am trying to send a date as part of a data packet using AMFPHP to a Flex application. I have tried used the DateWrapper but for some reason AMFPHP isn't converting it to a date object AS can use. My DTOs look like this:
PHP Code:
<?php
class dtoUser {
/**
* AS DTO Class
* @var string
*/
public $_explicitType = 'dto.User';
/**
* User ID Number
* @var integer
*/
public $id;
/**
* User Name
* @var string
*/
public $name;
/**
* Date of Birth
* @var ...
*/
public $dateOfBirth;
}
?>
ActionScript Code:
package com.icm.dto
{
[RemoteClass(alias="dto.User")]
[Bindable]
public class User extends Object {
public var id:int;
public var name:String;
public var dateOfBirth:Date;
public function User(user:Object):void {
this.id = user.id;
this.name = user.name;
this.dateOfBirth = user.dateOfBirth as Date;
}
}
}
I have tried setting the data of birth attribute in PHP using a Unix Timestamp, YYYY-MM-DD formatted date, Unix Timestamp * 1000, AMFPHP DateWrapper object as well as a PHP5 DateTime object. Can you point my in the right direction please?
View Replies !
View Related
AMFPHP - Is It Statless?
I've been digging and have installed and written a few simple AMFPHP examples.
The question I have is three part.
1. Is the flash remoting connection stateless? The tutorial on this site says the connection from the clients end at least is on until it's terminated. It would then stand to reason that the server-side also holds information about the connection. Which leads me to my next question.
2. Is there a way to keep persistent data like a login record on the server. My concern is security. The less I pass sensitive information the happier I'll be. As well as the least work my server has to do retrieving it repeatedly is fine by me.
3. I've read alot of what macromedia has to say about security. And from what I've gathered since the gateway in reached through http, It can also be reached through https. Are there any other known holes in the pipe?
Thanks in advance for your help.
View Replies !
View Related
AMFPHP Problem
Ok this would be great if someone could help me here cos ive had this problem for a couple of days now...
Ive been doing the talkback tute from 'Jesse Stratford'
I cant seem to be able to make a connection to the talkback.php file and get a response...
Ive had this problem with other AMFPHP tutes where I can connect to the gateway but not to the file that contains the classes....
2 points which may hold some relevance...
A - Ive only just uninstalled coldfusion, it still doesnt work
B - When viewing the talkback.php (file with classes) I do not get a blank screen but rather a message asking whether to download or view the file....
Anyway
PLEASE
S
View Replies !
View Related
To Install Amfphp?
Do I need to have access to my server?
right now I am hosting with a hosting company, so I thought my root index would be my html file on my server, where I post all my web stuff.
So do I need to access the root of my server?
Or can I post amfphp in my html folder with my hosting company?
This will clear up a lot of confusion for me.
i know this sounds like a dumb question, considering that this is a server integration forum, but since I can run php and access mysql via phpMyAdmin via my hosting service
I thought I could run amfphp on my server without having access to the server side of things. Sorry for the confusion.
Thanks for the help.
View Replies !
View Related
AMFPHP Or PHPObject ?
Hi
I would like to start to learn server side program , I read document about on AMFPHP and PHPObject (ghostwire.com) but I not have the skill to understand what is the different and what is the best to developper Applications with Flash 2004 .
can someone help me ?
all the best
Ernesto
View Replies !
View Related
Example Of AMFPHP Used In Production?
My company and I are looking into the possibility of using AMFPHP for actual production work. I was wondering if anyone knew of any examples of other companies who have actually used AMFPHP in production. I have been able to prove to the rest of the technology team that I can address their basic functionality needs using AMF, but there is a lot of concern that this is still technically beta technology. Having an example to show everyone of other organizations successfully using AMF would help me tremendously.
Thanks!
- Jarrod
View Replies !
View Related
Installing AMFPHP ...
Can anyone let me know if I need access to the root level of the server (which is a shared hosting server) to install AMFPHP. I need to start learning Flash Remoting. The following message is what I received from my hosting company when I asked them to install it for me:
Code:
I do not know what the program you are asking about is. If you can
install the program within the root of your space on the server which is
the httpdocs folder, then go ahead and install it. If it is something
that has to be installed at the root level of the server, then it can
not be installed as we do not make any changes to the root of the
server. You are on a shared server and the root is setup to function
with all accounts on the server. We do not customize or change the root
as it effects all accounts on the server and the Plesk PSA software that
is compiled by Plesk to run with the PHP version that is on the server.
Your server is running PHP 4.3.4.
Thanks,
Stephen.
View Replies !
View Related
Amfphp Problem
hi!
im new here :P!
im a phpfreak and i saw this thing (amfphp) and i tried it but i never got it working and i know its not my server cause all my other php executes alright.
the thing is my gateway wont be exec it just wants to download. as it does when u try exec a php program on a non-working phpserver... i have followed the tutorial (its excelent by the way) but i couldn't come by the first step.
i tried the simple gateway on the tutorial... anybody know why my amfphp wont work or maybe even have a solution for this problem?
im sorry for my english its not as good as desired. i hope that the Q is understandable.
Its really a great thing that places like this exist I LOVE IT.
/drain
View Replies !
View Related
Help With Security With AMFPHP
I have a flash site working with AMFPHP
If I access the site as WWW.??????.COM it loads data using AMFPHP OK
If access the site as ??????.COM (without the www) it fails to load.
I have tried using security.allowdomain in actionscipt but it makes no difference.
Any help would be most appreciated.
View Replies !
View Related
Look For Several Values In A Db Using Amfphp
hey hi guys... any ideas on how to ask for a record that contains any of the values i want... i supoose i should use an array, almost i forget using mysql with amfphp, something like this:
i want to return to flash every record that contains NY and alabama
Name Contry State
John us NY
Pierre us Washington
Tony us Alabama
the parameters might be different each time, from flash is something like:
myarray:Array=new Array();
myarray[0]="NY";
myarray[1]="Alabama";
amf_con.params=new Array(myarray);
amf_con.trigger();
View Replies !
View Related
AMFPHP Over HTTPS On IE
Hi everyone,
I am running the following:
-Linux Fedora Core 3
-Apache 2.0.54
-PHP 5.0.4
-AMFPHP Milestone 2 or 3 (tested both)
-Flash MX2004
I've created a self signed SSL, everything is good from the firewall aspect (port forwarding). All is working good from secured pages. AMFPHP is functioning good too....
Anyway, a lot of users are stuck on getting AMFPHP to work over SSL with IE. I am able to get AMFPHP to function using Firefox. Everything is set to work with https in the flash files, urls etc. One thing I notice is that firefox is using a different encryption method. (TLSv1 DHE-RSA-AES256-SHA where IE is using SSLv3 RC4-MD5). Of course IE ... cough, sucks ... is not working.
I'm not a 100% up to par on all the details of the encryption protocols and have no success trying to see if I can make IE use a different one for testing. There are some dead links out there claiming that someone has fixed the problem.
Anyone know how? BTW, no encryption works fine on IE. I figure it has to do with this.
Thanks!!
View Replies !
View Related
AMFPHP And Combobox
Hi,
I'm just discovered AMFPHP, and I have a very stupid question. I tried to connect flash with mysql using remoting, and everything works great if I want to display some data in a datagrid. Now, I'm trying to display just one field inside a combobox and I have no clue about how I can accomplish that. If I set the result of the call as teh dataprovider of a cb I get all the values from all the fields inside the cb. So my question is how can restrict the result to just one field and set that as the dataprovider?
View Replies !
View Related
Amfphp And Preloading
hi
i want to use amfphp to get a very long text so i want to be able to show the progress of the download with a preloader but i dont know how to do this,
also i dont know if it is posible to send or get an image or swf using amfphp.
thanks.
View Replies !
View Related
|