Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Remoting



when i ever i query a database using remoting the result always return :[ object, object]

whats will i do ?

thanks



FlashKit > Flash Help > Flash MX
Posted on: 10-08-2002, 05:08 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Suggest A Good Tutorial For CFMX And Flash Remoting Using Remoting Component Classes?
Does anyone know of a good tutorial that will take me through the v2.0 way of utilizing remoting through the Flash Pro remoting component classes (or the RemotingConnector component - either/or)? It seems like the docs are inconsistent in their variable naming from one section to another so its hard to tell what each object placeholders and properties correlate through out the process in their descriptions and examples.

Im thinking a tutorial is more geared to learning this new style than the docs are at this point . . . .

Unable To Load Remoting Classes After Installing AS2 Remoting Components
hi, I have a problem, after i've installed the AS2 Remoting components, I ran a syntax check on the code below and got these messages =>
**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 16: The class 'mx.remoting.Service' could not be loaded.
service = new Service("http://localhost/gi/gateway.php", null, "user", null, new RelayResponder(this, "onLoginResult", "onLoginFault"));

**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 19: The class 'mx.rpc.ResultEvent' could not be loaded.
function onLoginResult(res:ResultEvent){

**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 22: The class 'mx.rpc.FaultEvent' could not be loaded.
function onLoginFault(fault:FaultEvent){

**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 25: The class 'mx.remoting.Service' could not be loaded.
}

**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 16: There is no method with the name 'Service'.
service = new Service("http://localhost/gi/gateway.php", null, "user", null, new RelayResponder(this, "onLoginResult", "onLoginFault"));

**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 25: The class 'mx.rpc.RelayResponder' could not be loaded.
}

**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 16: There is no method with the name 'RelayResponder'.
service = new Service("http://localhost/gi/gateway.php", null, "user", null, new RelayResponder(this, "onLoginResult", "onLoginFault"));
code:
import mx.remoting.Service;
import mx.rpc.RelayResponder;
import mx.rpc.ResultEvent;
import mx.rpc.FaultEvent;

class cms extends GForm{
private var service;
function cms(){
//start debugger
mx.remoting.debug.NetDebug.initialize();
}
function initUI():Void{
childForms.loginForm.addEventListener("login", this);
}
function login(evtObj:Object){
service = new Service("http://localhost/gi/gateway.php", null, "user", null, new RelayResponder(this, "onLoginResult", "onLoginFault"));
service.verifyUser(evtObj.credentials.UID, evtObj.credentials.Password);
}
function onLoginResult(res:ResultEvent){
trace(res.Name+" "+res.accessLevel);
}
function onLoginFault(fault:FaultEvent){
trace(fault.fault.faultString);
}
}
Basically, I cannot import any of the remoting classes, i looked into the First Run/Classes folder and was unable to locate any of the remoting classes except for the Debug package

The remoting functions work fine with Remoting Version1 but I need to use the forms functionality and I have no idea how to include the version1 remoting scripts into the classes

I've uninstalled the Remoting Components as well as Flash and reinstalled them but the problem persists!!

Flash Remoting Weird Issue / I'm New To Remoting
Hello All, I'm new to remoting and I'm having some issues. I started with the Macromedia Tutorial and called HelloWorld.cfc and everything was great. So I started a project and I've got logging in and creating a new user working great but now i'm trying to save some data and i can't get it to work. Basically, if you log in, you are not able to use the 'addscore' function. No errors get returned, but no results get returned either. If you skip the log in, you can add your score just fine. So my question is, do i have to 'reset' something or why won't one function work after a different one has been called?

I know this may be confusing, so as may questions as you need. I really appreciate any help.

[F8 & Remoting] Simple Question Dealing With Remoting
Ok I'll post my code and explain, this is using flash remoting and amfphp

main.fla / main.swf

Code:
// ==============================
// SETUP
// ==============================
var rootId:Number = 0;
var itemArrayCall:itemsClass = new itemsClass();
trace (itemArrayCall.getItemsList(rootId));
stop();
itemsClass.as

Code:
// ==============================
// IMPORTS
// ==============================
import mx.remoting.*;
import mx.rpc.*;
import mx.utils.Delegate;
import mx.remoting.debug.NetDebug;
// ==============================
// CLASS CONSTRUCTOR
// ==============================
class itemsClass {
// Gateway
private var gatewayUrl:String = "http://xfuzion.local/%7Exfuzion/finalproject/flashservices/amfphp/gateway.php";
// Service
private var service:Service;
// == SETUP FUNCTION
function itemsClass() {
NetDebug.initialize();
this.service = new Service(this.gatewayUrl, null, "itemsClass");
}
// == getItemsList FUNCTION
function getItemsList(rootId) {
var pc:PendingCall = service.getItemsList(rootId);
pc.responder = new RelayResponder(this, "handleGetItemsList", "handleRemotingError");
return "It will return these values but will not initialize the net debugger AT all or anything";
}
// == RESULT HANDLER FUNCTION
function handleGetItemsList(re:ResultEvent) {
return "it worked";
}
// == ERROR HANDLER FUNCTION
function handleRemotingError(fault:FaultEvent):Void {
NetDebug.trace({level:"None", message:"Error: "+fault.fault.faultstring});
}
}
My problem is the fact the class works, everything works inside of it EXCEPT the remoting. It wont even initialize or run the NetDebug and it's bugging me because I have no way to debug this because of it.

Any help on why it isn't transfering or whatever would be very useful.

I get NO output errors at all, so all the MX components are on the stage correctly and amfphp is set up perfectly fine ( this whole thing works fine if I use it inline rather than class ).

Thanks!

No Remoting Template After Installing Remoting
I installed Remoting for Flash yesterday and am a Certified Dummy in this area. I have only had ColdFusion installed for a few days now and in study using Ben Forta & Raymond Camden's Macromedia book "ColdFusion MX7 - Web Application Construction Kit, chapter 26 addresses Flash Remoting using Flash MX 2004. I have Flash 8 (and all of Studio 8). I downloaded and installed Flash Remoting and it showed up on my "Add-Remove Software" as a separate program, successfully installed. The book tells me to start Flash and choose File>New from Template and select Remoting. It is not there and I don't know how to generate it. I am sure this is a simple step for many of you.
Would you please help me? I have made it to chapter 26 in this book and made most of the coldfusion pages work so far, but I can't get past this without Flash Remoting.
Thanks ahead of time,
Mike

Remoting
can make right pls help.. i have a dynmic txt

in my movie :

#include "NetServices.as"
#include "NetDebug.as"
_root.info = "remoting.....";

function Result()
{
//receives data returned from the method
this.onResult = function(result)
{
_root.info = result;
}

this.onStatus = function(error)
{
_root.info ="error";
}
}

NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gateway");
var gw = NetServices.createGatewayConnection();
var server = gw.getService("remoting.run", new Result());
server.sample();



my cfc:

<cfcomponent>
<cffunction name="sample" access="remote">
<cfquery name="cool" datasource="casino">
SELECT cPW FROM casino_users where cUN ="test1"
</cfquery>

<cfreturn cool>
</cffunction>
</cfcomponent>


cant seem to pass variable coming from a remote database.


thanks,
cid

Remoting
remoting
can make right pls help.. i have a dynmic txt

in my movie :

#include "NetServices.as"
#include "NetDebug.as"
_root.info = "remoting.....";

function Result()
{
//receives data returned from the method
this.onResult = function(result)
{
_root.info = result;
}

this.onStatus = function(error)
{
_root.info ="error";
}
}

NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gateway");
var gw = NetServices.createGatewayConnection();
var server = gw.getService("remoting.run", new Result());
server.sample();



my cfc:

<cfcomponent>
<cffunction name="sample" access="remote">
<cfquery name="cool" datasource="casino">
SELECT cPW FROM casino_users where cUN ="test1"
</cfquery>

<cfreturn cool>
</cffunction>
</cfcomponent>


cant seem to pass variable coming from a remote database.


thanks,
cid

Remoting
remoting
can make right pls help.. i have a dynmic txt

in my movie :

#include "NetServices.as"
#include "NetDebug.as"
_root.info = "remoting.....";

function Result()
{
//receives data returned from the method
this.onResult = function(result)
{
_root.info = result;
}

this.onStatus = function(error)
{
_root.info ="error";
}
}

NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gateway");
var gw = NetServices.createGatewayConnection();
var server = gw.getService("remoting.run", new Result());
server.sample();



my cfc:

<cfcomponent>
<cffunction name="sample" access="remote">
<cfquery name="cool" datasource="casino">
SELECT cPW FROM casino_users where cUN ="test1"
</cfquery>

<cfreturn cool>
</cffunction>
</cfcomponent>


cant seem to pass variable coming from a remote database.


thanks,
cid

Xml Remoting
Hello to all,

I am creating a Full Flash eCommerce site (Flash 8 Pro) and I need a few pointers. I have only used XML for simple tasks like Photo Gallery. Here is what I would like to use for the site....

1. PayPal Merchant Account
2. Flash Xml Remoting v3.1 by Shane McCartney
3. Flash Component PPCC 1.2 by ANYRD&D

...BUT i have no idea how to use the Xml Remoting and the documentation confuses me? Ideally I would like to have the product information i.e. (cost, description, image) in the XML file and then have flash import that. Then use the Flash PPCC component for the eCommerce stuff.

I have installed the Flash Xml Remoting Component and Downloaded the SAMPLE File... all that is on the stage is the component with instance of "xmlComm" when i test the movie i get an empty screen... the Flash Output window displays:
typeName
3

Anyone know how to use the Flash Xml Remoting Component v3.1 created by: Shane McCartney??

The Sample XML file looks like this...

<itemsList>
<items>
<label>The Amazing Description</label>
<value>12.15</value>
</items>
<items>
<label>Again an Amazing Title</label>
<value>22.50</value>
</items>
<items>
<label>Finally an Amazing Title</label>
<value>28.50</value>
</items>
</itemsList>

Here is the ActionScript:

var evtObj:Object = new Object();
evtObj.loaded = function(e:Object) {
trace(e.name);
trace(e.data.itemsList.items.length);
};
evtObj.error = function(e:Object) {
};
//
xmlComm.addListener("loaded", evtObj);
xmlComm.addListener("error", evtObj);
xmlComm.call("sample.xml", "typeName");

What am i missing?
ANY HELP would be greatly appreciated.

Remoting In Cs3 With .net
I did a search here on cs3 remoting and read that it is supported with the netconnection object. Unfortunately I've not done remoting before and I can't seem to find any examples that use .net. So, does anyone know how to set this up in both flash and .net? I have my .net classes compiled to a dll, I'm just not sure how to use the netconnection class to call the dll and how to set up the dll in IIS. Thanks!

As3 Remoting From .net?
Hi guys I was wondering if one of you could help me understand how I write the connection to .net functions using as3? I followed a few tutorials but I'm stuck in how to target the page with the function.

The problem is that say my structure is this:

swf file location:http://www.domainname.com/folder1/fo...er2A/flash.swf

service location: http://www.domainname.com/folder1/fo...B/service.aspx

So when i want to call a function from the service how can I write it so that I go out one folder and then go into the other one??


Code:

connection.call("????",responder)
If anyone could help me I would really appreciate it.

Remoting Help
Hello People,
I have been reading in the Forums for some time now, and I find it very helpful, you guys do a great job here!!!
Now, I decided to post some because I need some help with a remoting result...
I have a flash form with an application form and 3 child forms. One of the child forms is called menus and it uses a custom class called "MenuCode".....
here is the "MenuCode" code:

import mx.remoting.Service;
import mx.services.Log;
import mx.remoting.PendingCall;
import mx.rpc.RelayResponder;
import mx.rpc.ResultEvent;
import mx.rpc.FaultEvent;
import mx.remoting.RecordSet;
import mx.screens.Form;
import mx.remoting.debug.NetDebug;

class MenuCode extends mx.screens.Form
{

private var menuItemHolder_mc:MovieClip;
private var menuItemHolder2_mc:MovieClip;
public var buttonNames:Array;
public var buttonNames2:Array;
private var promotionalProd_btn:Object;
private var awards_btn:Object;
private var Category:Object;
//private var myResponder:RelayResponder;
private var categoryService:Service;
private var subCategoryService:Service;


function MenuCode()
{
this.addEventListener("load", this);
mx.remoting.debug.NetDebug.initialize();
}

private function handleEvent(evtObj:Object):Void
{
switch (evtObj.type)
{
case("load"):
formLoad();
break;
}
}

private function formLoad():Void
{
categoryService = new Service("http://localhost:8500/flashservices/gateway", null, "mcaeiro-store.flash.msite.Categories", null, null);
var pc:PendingCall = categoryService.GetPromoCategories();
pc.responder = new RelayResponder(this, "onPromoCategoryData", "onPromoCategoryDataFault");

var nc:PendingCall = categoryService.GetAwardCategories();
nc.responder = new RelayResponder(this, "onAwardCategoryData", "onAwardCategoryDataFault");
}


// handles the results from the GetPromoCategories() call
function onPromoCategoryData (re:ResultEvent):Void
{
_parent.promotionalProd_btn.onPress = function():Void
{
_root.createEmptyMovieClip("menuItemHolder2", 0);
_root.menuItemHolder2._x = 40;
_root.menuItemHolder2._y = 50;
var loTween_x = new mx.transitions.Tween(_root.menuItemHolder2, "_xscale", mx.transitions.easing.Strong.easeOut, 20, 100, .4, true);
var loTween_y = new mx.transitions.Tween(_root.menuItemHolder2, "_yscale", mx.transitions.easing.Strong.easeOut, 20, 100, .4, true);

var rs:RecordSet = RecordSet(re.result);
var promoCategoryArray:Array = new Array();

for (var i=0; i<rs.getLength(); i++)
{
var record = rs.getItemAt(i);
promoCategoryArray.push({name:record.Nombre, Id:record.Id_Categoria});

_root.menuItemHolder2.attachMovie("menuItem_mc", "mcCategory" + i, i);
var mcNewClip = _root.menuItemHolder2["mcCategory" + i];
mcNewClip._x = 0;
mcNewClip._y = i * 17;
mcNewClip._alpha = 70;
mcNewClip.menuItemName_txt.text = /*record.Id_Categoria + " " + */record.Nombre;
mcNewClip.idCategory = record.Id_Categoria;

mcNewClip.onRollOut = function():Void
{
this._alpha = 70;
this._parent._visible = false;
}

mcNewClip.onRollOver = function():Void
{
this.backgroundColor = 0x003399;
this._alpha = 100;
this._parent._visible = true;
}

mcNewClip.onRelease = function():Void
{
trace(this.idCategory);
var catHold = this.idCategory;
subCategoryService = new Service("http://localhost:8500/flashservices/gateway", null, "mcaeiro-store.flash.msite.SubCategories", null, null);
var pc:PendingCall = subCategoryService.getPromoSubCategories({Id_Categ oria:catHold});
pc.responder = new RelayResponder(_root.application.menus, "onPromoSubCategoryData", "onPromoSubCategoryDataFault");

function onPromoSubCategoryData (rp:ResultEvent):Void
{
trace("got it Pal.");
}

function onPromoSubCategoryDataFault (rp:ResultEvent):Void
{
trace("got the fault response for SubCategories.");
}

}
}
}
}

function onPromoCategoryDataFault (re:ResultEvent):Void
{
trace("got the fault response for Categories.");
}

Now.... I am having trouble with the onPromoSubCategoryData function and I have no idea how to fix it now.
I get the result from the getPromoSubCategories Service but my responder function does not do anything, or maybe I am just blind... anyway 4 eyes are better than 2 so if someone has time and feels like going through my code, and happens to find where the flaw is, that is great....

How Remoting REALLY Looks Like... ;)
Hi all,

Thought of giving away a "disassembly-hour" report of mine (i am sure the gurus already did the same discovery on their own long time ago), which have to do with discovering what lies beneath the 'NetServices.as' library and all its offspring, including the newer AS 2.0 Remoting classes like Service etc, and uncovering the true nature of Flash Remoting..

For those of you who wonder what the Remoting is like on the most basic level, a NATIVE-only level of interpreting, a little tutorial:


ActionScript Code:
var gateway_nc:NetConnection = new NetConnection;

gateway_nc.connect("http://localhost/flashservices/gateway.aspx");

var responder = {};

responder.onResult = function(r)
{
    for(var i in r) trace(i + ":" + r[i]);
};

gateway_nc.call("MyService.MyFunction", responder, "someParameter");

What it does is it creates a NetConnection object, which establishes a connection between the client and the Flash Remoting Gateway (essential part of Flash Remoting) be it on a .NET, CFusion or a Java server. You dont have to wait for a successful connection, because, apparently since 'http' is a stateless and non-persistent protocol, the state of the NetConnection object after the 'connect' call allows for immediate calling of service functions. Remember that in case of connecting to a Macromedia Flash Communication Server MX thru the RTMP protocol, which IS persistent keep-alive protocol, you have to actually wait for the connection to be available before doing anything with the NetConnection object. Ok, so back to the script: calling then a service function requires that you specify a responder object which will asynchroniously receive the results of your particular remote function call - so you have to create an object which defines a 'onResult' method - the so-called 'responder' object. Results arrive by the Flash player calling the 'onResult' method with the results returned, be it a single or several parameters, depending on the nature of your remote function. The actual call of the remote function happens by using the NetConnection.prototype.call method (simpler put the 'call' method of your NetConnection object), and here some explanation is required. First, since the connection to the gateway is a general all-purpose multi-service connection, the call of 'call' method needs BOTH the service name and the name of the service function. You do that by supplying a string as the first parameter which identifies the remote function across the whole gateway - service name followed by dot followed by function name (in case for .NET, which I cover here). Second parameter is the 'responder' object which tells where to return the call return values, and starting from the third parameter are the parameters to your actual remote function, which may or may not be present at all (i.e. the 'call' method can have only two parameters - the function string and the responder object). That's it

I know the practical use of doing everything the 'native' way is not so popular, since the Macromedia classes present a more user friendly scripting interface, but in case of small projects or where one simply wants to do Remoting another way, by building his/her own programming interface, this should explain little bit more than the basics.

Comments are welcome, criticism as well

Remoting Help
Any body have simple remoting project with ASP.NET

Explanation:
I just want to enter user id and password in Flash, It will call ASP.NET bussiness logic using flash remoting. then specific user information will be appeared in flash. Anybody can help me.

I am awaiting to your reply.

Regards
Shahzeb

Remoting
I have small doubt in Flash remoting, it is possible to use the Flash 8 As2 remoting component for Action script version 1? I have installed Flash8 As2 components but in my project everthing wrote in action script 1.

any one help me how can i use the flash8 components in Actionscript1?

Im new to flash remoting..i have to convert as1 to as2 for using flash8 components?

thx and regards
thil

Remoting
how does remoting help in multiplayer game.
is it only integrated with cf.
help me with links and tutorials.

Remoting In Cs3 With .net
I did a search on cs3 remoting and read that it is supported with the netconnection object. Unfortunately I've not done remoting before and I can't seem to find any examples that use .net. So, does anyone know how to set this up in both flash and .net? I have my .net classes compiled to a dll, I'm just not sure how to use the netconnection class to call the dll and how to set up the dll in IIS. Thanks!

Remoting In CS3 ?
Well although Remoting in Flash was always easy, it started to get harder in flash8.
Reason: you had to crawl the macromedia website to find the components which were not installed and do the installation manually.

Now, a nice surpirse in Flash CS3: Maybe I am blind, but I just can't find any of the components for AS3.
I did install the components for AS2. But, if I open an old .fla (Flash8) and compile it, it simply doesn't work:
no 'mx.data.types.RecordSet' found in package 'mx.data.types'

Of course, no documentation can be found. So.... should I install flash8 again do edit my projects?
Bad one Adobe...

</marker>

Remoting And CS3
Anyone been able to get a remoting app working (written in AS2, Flash 8) after being compiled with CS3 (Flash 9)? Or has anyone found a working example of a remoting connection written in AS3?
Cheers,
Rob



























Edited: 03/02/2008 at 09:47:36 PM by YukonRob

Remoting From FMS
I've been trying to create a NetService object and use that to call and get the reply of my AMFPHP remoting gateway, but for some reason this isn't working.

I've read all the documentation I've found (not much -- apparently most want to do remoting client side, not server side), but it's not really clear how to debug the process...

Any help is greatly appreciated.

The code on the FMS main.asc file is as follows, and I've verified that the gateway does indeed work from another application (non-flash):

quote:
load("NetServices.asc");

application.onConnect = function(newClient, userKey) {
this.acceptConnection(newClient);

newClient.msgFromClient = function(msg) {
msg = '<b>'+userKey+":</b> "+msg+"<br>";
application.history += msg;
application.users_so.send("msgFromSrv", msg);
};

application.users_so.send("msgFromSrv", "rawr");
gc = NetServices.createGatewayConnection("

FMS Remoting
Hi All,
Can anyone please send me an example of FMS Remoting i.e. how to connect to an App Server from FMS.
Thanks

Php Remoting
i installed the AMFPHP Project from adobes website and i'm kinda stuck right now... i can define a variable in the actions panel and trace it as well as loops and stuff, but i can't execute any mysql. i have i feeling i'm seriously missing something, i just don't know what.

here's some code:

$dbconnect=mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db("awards", $dbconnect);

$selectaward=mysql_query("SELECT * FROM teacher");
while ($r = mysql_fetch_array($selectaward)){
trace($r['award']);
}

knowledge on the subject will be seriously helpful, greatly appreciated, and i'll e-mail you a pizza.

Xml Remoting V3.1
Hello to all,

I am creating a Full Flash eCommerce site (Flash 8 Pro) and I need a few pointers. I have only used XML for simple tasks like Photo Gallery. Here is what I would like to use for the site....

1. PayPal Merchant Account
2. Flash Xml Remoting v3.1 by Shane McCartney
3. Flash Component PPCC 1.2 by ANYRD&D

...BUT i have no idea how to use the Xml Remoting and the documentation confuses me? Ideally I would like to have the product information i.e. (cost, description, image) in the XML file and then have flash import that. Then use the Flash PPCC component for the eCommerce stuff.

I have installed the Flash Xml Remoting Component and Downloaded the SAMPLE File... all that is on the stage is the component with instance of "xmlComm" when i test the movie i get an empty screen... the Flash Output window displays:
typeName
3

Anyone know how to use the Flash Xml Remoting Component v3.1 created by: Shane McCartney??

The Sample XML file looks like this...

<itemsList>
<items>
<label>The Amazing Description</label>
<value>12.15</value>
</items>
<items>
<label>Again an Amazing Title</label>
<value>22.50</value>
</items>
<items>
<label>Finally an Amazing Title</label>
<value>28.50</value>
</items>
</itemsList>

Here is the ActionScript:

var evtObj:Object = new Object();
evtObj.loaded = function(e:Object) {
trace(e.name);
trace(e.data.itemsList.items.length);
};
evtObj.error = function(e:Object) {
};
//
xmlComm.addListener("loaded", evtObj);
xmlComm.addListener("error", evtObj);
xmlComm.call("sample.xml", "typeName");

What am i missing?
ANY HELP would be greatly appreciated.

Flash Remoting
G'Day all,

Everytihing I read tells me that I need Cold Fusion MX to be able to use web services however I'm not convinced. Does anyone have a real life example of Flash Remoting to a web service that does not use Cold Fusion? and if so can they give me a few pointers?

Flash Remoting & Ado.net
Hi, As Im wanted to learn more about using serverside scripting with flash, and found out about the "flash remoting" and dreamweaver mx, I installed dreamweaver mx. So I opend the tute called "Introduction to Flash Remoting for .NET Tutorial > Creating the ADO.NET data binding", and it all looks very simple and practic. But what I dont understand is the database connection thing. As it appears ,I dont see any database files that the "asp.net" saves the data to. My previos and first attempt in serverside scripting was writing and reading to and from an Acces database trou asp and flash. This is the first time I hear about this "asp.net" thing, so I wonder if anyone can make it clear for me about how it works, and what files are included. Does it make flash store and read data to a singel asp file?

Flash Remoting
Must I upgrade my Coldfusion server to MX before I can use flash remoting? I just bought ColdFusion 5 for one or two months only. Can I integrate with coldfusion 5 instead and how do i do it?

Flash Remoting For .net
I have used flash remoting for coldfusion and it is a really cool tool, but I cannot believe they are charging almost a thousand dollers for the .net version??? and you have to install a dll on the server which sucks!,

I wrote an app that will query a database in flash using asp, and it's not that much slower than using flash remoting for .net. in fact I would much rather take a small speed decrease, than have to install a $1000 DLL????

what is everyone elses thoughts on this?

What Is Flash Remoting MX?
Hello Flash Gurus.

I am evaluating Flash Remoting Technology and I am thoroughly confused about what exactly Macromedia is selling in the package "Flash Remoting MX" which costs nearly $1000.

I download the 'free trial' and I get a 6 meg WAR file (after install) with docs, examples, and Flash Player. Can this really be what comes in that giant box for $1000? No Flash MX included? No JRun? How come I can download 'Flash Remoting Components' totally free? How does that differ from 'Flash Remoting MX'???

I am very confused and would appreciate someone clearing the confusion. Thanks!
-E

Flash Remoting ---HELP
Hi,

Where can i download flashgateway.jar? I know macromedia have package this file on their JRUN 4 product but i only need this file to run my j2ee apps deployed in apache server...anyone have this jar file kindly send it to me.

thanks,
mutant

About Flash Remoting
whats the difference between the flash remoting evaluation and flash remoting full version ?

thanks!

Flash Remoting
Hello, im having a few problems when i try to connect to a database by using flash remoting . This is what my NetConnection Debugger says.
Any ideas are gonna be a help.


MethodName: "/1/onStatus"
ResponseURI: (undefined)
Parameters (object #2)
.....code: "SERVER.PROCESSING"
.....description: "Could not find installable ISAM."
.....details: " at FlashGateway.Delegates.LibraryServiceAdapter.Invok eService(ActionContext action)
at FlashGateway.Delegates.ServiceCommander.InvokeAdap ter(ActionContext flashContext)
at FlashGateway.Delegates.ServiceFilter.preInvoke(Act ionContext flashContext)"
.....level: "error"
.....type: "System.Data.OleDb.OleDbException"

Flash Remoting MX
Where can I download The trial version of Flash Remoting MX other than at Macromedia? I'm trying to sign in at the macromedia site,
without succes. (They use Flash remoting for that ironically)

thxs

MX Remoting Problem
I have successfully used remoting in a number of instances but in this instance I am trying to use a function in a cfc for the first time and I am having no success.

I am to return the results of a query to Flash and populate a list box.

The code I am using is as follows:

++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++
FLASH FILE:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++
#include "NetServices.as"
#include "NetDebug.as"

function myService_Result(result) {
listBox.removeAll();
for (var i = 0; i < result.getLength(); i++) {
var record = result.getItemAt(i);
}
listBox.addItem(record.article_title);
}

if (inited == null) {
// do this code only once
inited = true;
// set the default gateway URL (this is used only in authoring)
NetServices.setDefaultGatewayUrl("http://<mypath>/flashservices/gateway");
// connect to the gateway
gateway_conn = NetServices.createGatewayConnection();
// get a reference to a service "News" is the cfc file
updateService = gateway_conn.getService("com.<mypath>.News", this);
updateService.myService();
}

stop();
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++

++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++
Here is the News.cfc
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++
<cfcomponent displayname="News" hint="Handles all news functions for the site.">

<!-- This function gets news regarding er related topics to supply to the site -->
<cffunction name="myService" access="remote">
<cfquery name="getUpdate" datasource="<mydsn>">
SELECT *
FROM db.news
ORDER BY article_id DESC
</cfquery>
<cfreturn getUpdate>
</cffunction>

</cfcomponent>

So far - no success. I have tested by replacing the query in the cfreturn tag with a simple string and it works fine but I can't get beyond that.



Any and all help appreciated - thanks!

MX Remoting Problem
I have successfully used remoting in a number of instances but in this instance I am trying to use a function in a cfc for the first time and I am having no success.

I am to return the results of a query to Flash and populate a list box.

The code I am using is as follows:

++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
FLASH FILE:
++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
#include "NetServices.as"
#include "NetDebug.as"

function myService_Result(result) {
listBox.removeAll();
for (var i = 0; i < result.getLength(); i++) {
var record = result.getItemAt(i);
}
listBox.addItem(record.article_title);
}

if (inited == null) {
// do this code only once
inited = true;
// set the default gateway URL (this is used only in authoring)
NetServices.setDefaultGatewayUrl("http://<mypath>/flashservices/gateway");
// connect to the gateway
gateway_conn = NetServices.createGatewayConnection();
// get a reference to a service "News" is the cfc file
updateService = gateway_conn.getService("com.<mypath>.News", this);
updateService.myService();
}

stop();
++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++

++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++
Here is the News.cfc
++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++
<cfcomponent displayname="News" hint="Handles all news functions for the site.">

<!-- This function gets news regarding er related topics to supply to the site -->
<cffunction name="myService" access="remote">
<cfquery name="getUpdate" datasource="<mydsn>">
SELECT *
FROM db.news
ORDER BY article_id DESC
</cfquery>
<cfreturn getUpdate>
</cffunction>

</cfcomponent>

So far - no success. I have tested by replacing the query in the cfreturn tag with a simple string and it works fine but I can't get beyond that.



Any and all help appreciated - thanks!

Help With Flash Remoting.
Hello,
I'm having trouble with flash remoting. Specifically with integrating flash, php and my SQL. Ok so flash uses php to get data from mysql and it returns the data to flash. Now I can get this to work just fine when all three are called from the same server. But what I want to do is serve the swf document off of my schools website and have it access mysql from my laptop. For the life of me I can't get it to work. I've been trying multible ways and even used different remoting addons. I am able to Run a php page from my school account that access' my laptop but when I add a flash front end to it, no data appears.

Please help

Flash Remoting And .Net
Hi

can anyone tell me about using Flash Remoting with .Net? My boss and I have both been researching Flash Remoting with mind to purchasing a copy, but she seems to think that it is used mainly with .Net (which we haven't upgraded to yet). My impressions from what I've read is that it can be used to integrate flash with a number of web technologies including j2ee, asp and xml based soap services, is the emphasis in integrating it with .Net, or is this a myth?

Also, is it possible to use it to directly intergrate a flash movie with a SQL database using remoting? I read somewhere that this is only possible using the firefly components, is this right?

Thanks

Flash Remoting
I have a website at www.theselfpromoter.com. This website uses coldfusion and flash remoting components. If you go to the contact form and then go to the search database feature (randomizer) data will not be retreived from the database. However if you close the website out then go to the search database feature all the data gets retrieved, but if you send me an e-mail through the contact page I won't recieve it. Any suggestions? By the way, both pages use the #include NetServices.as and #include NetDebugger.as.

Flash Remoting(help)
Hi,

I'm new to Remoting... I've just finished the site where I'm using Flash Remoting for accesing a database. Strange thing that it works on my computer when I run it on my local ColdFusion server and does not work when I publish the site. Here is the code that I think is creating a problem:

#include "NetServices.as"
if (inited == null) {
inited = true;
NetServices.setDefaultGatewayURL("http://www.urbanlc.com/flashservices/gateway");
gateway_conn = NetServices.createGatewayConnection();
myService = gateway_conn.getService("http://www.urbanlc.com/html", this);
}

On my machine it runs just fine and does what it should. However, on my machine the domain name is changed to "UrbanProductions"(the site folder that sits in wwwroot of my server), so the same code looks like this:

#include "NetServices.as"
if (inited == null) {
inited = true;
NetServices.setDefaultGatewayURL("http://localhost:8500/flashservices/gateway");
gateway_conn = NetServices.createGatewayConnection();
myService = gateway_conn.getService("UrbanProductions/html", this);
}

If anyone had the same problem before or knows what I'm doing wrong, please help b/c I'm running out of ideas.

Thanks for your time,
Peter

HELP - Flash Remoting
Ok I am starting the whole java flash remoting thing. I have the remoting components, jrun4, and flashmx04.

So I got flash talking to java but i dont know how to send variables to java? I thought:

flashconnection.javaFunction(var_to_send);

would work, but it doesnt. I am trying to change a variable that is declared in the java class, why wont this work?

Flash Remoting
Hello everyone,

well, i am burned out, tired, and well frustrated to the max.

i have been reading so much on actionscript 2.0 and flash remoting. so far what i have found out is that there are several ways to communicate to a mysql database using flash.

1. flash remoting w/actionscript 1.0
2. flash remoting w/actionscript 2.0
3. flash remoting w/flash components
4. amfphp
5. plenty more

i am so confused, that i no longer know which way is up or down. i have successfully installed XAMPP and tested amfphp's gateway. the Flash debugger says everything is cool.

but, i am still at a lost. what i would like to find is someone who can help me do the following with the very least amount of code and explanation (i am not sure if my brain can handle much more input ).

i have:
1. several flash buttons
2. datagrid component w/dataprovider

i would like to have:
1. my flash button prompt me for a number
2. go to mysql database & retrive a record (one row of information)
3. assign information to my dataprovider
4. display the information in my datagrid

wow, this seems simple, but boy oh boy is there alot of info out there.

thx in advance
Hector

Flash Remoting
Hello all! I am very new to actionscript so I need some desperate help. What i trying to do is this. I want to pull records from a database for which I am doing successfully using flash remting. My problem is this. I want to loop over those records in flash and display one record at a time every 30 seconds. I want the data to fade in, display for 30 seconds and then fade out then so on and so on. Then when all records have been shown...start over again. ANyone who can help with this code would save my butt. Thanks in advance!

Flash Remoting
HEllo,
How can we get data from database using web service and show it in Flash.
I wanted to check conditions and show data accordingly.

Flash Remoting
Hi,

I have recently changed a portion our existing application from sendAndload to flash remoting. Now when the CF server is getting started only a portion of the data to be loaded( data from some of the tables are getting omitted), will get loaded to the flash screen. If I cancel the screen and load again I will get the full data. Can any one help?
Imran Hashmi
www.visionstudio.co.uk
www.seo-professional.co.uk 0044-7969012441

Remoting: Cant Connect Lately.
Hi all,

Im developing a game using flash remoting which connects to my server, but lately the remote client flash has been unable to connect when it is run from within its web page, but WILL connect if the flash .swf is run using the stand alone player.
The stand alone player does need to have the security loosened for it, but I can seem to get the browser based swf to play.

Any ideas??

It seems they have tightened the security measures within flash remoting but at the expense of flash remoting working by default??!?

Remoting Problem
Hello,
I am having trouble implementing the bulletin board in the amfphp tutorial.
http://www.actionscript.org/tutorial...ng/index.shtml

I have created a DB with a 'posts' table as specified in dbconfig.php (with correct pwd, name etc), and have inserted one entry.

If I run NetConnection Debugger, the call BulletinBoard.doRead shows up, but the list of posts remains empty.

Also when I attempt to post, BulletinBoard.doPost is called, but no post is made, and I am stuck in the post mode.

The connection between a php file and MySQL runs fine for a test file.

Netdebug:trace in BulletinBoard.php doesn't seem to give me any new information (or errors for that matter)....maybe I am not able to access the php file?

Thankful for any help or ideas...

How Do I Get Flash Remoting
hey does any one know any way how i can get flash remoting on my server
i'm intrested in using it

thanks

Flash Remoting With ASP.NET
Greetings all.

I am attempting to evaluate Flash Remoting with MX2004 and I am having a problem.

My application works fine as long as the URL for my connection gateway uses LocalHost.

When I put in the computer name I get a NetConnection.Call.Badversion error in the NetConnection Debugger.

Can anyone help me?

Flash MX 2004 Professional
Flash MX 2004 Remoting Components (unlicensed)

Flash Remoting
erhm.. since you guys don't have a Flash Remoting section I couldn't find any better place to fit this Q..

I've been doing some experiments with Flash Remoting today and got into a dead-end..

to shorten the problem as much is possible - I have a php-class with a method "retrieveJPEGInfo" which receives a variable $file from Flash... and that method is supposed to return an array with data such as Author, Title and Comments (the same stuff you can set/read by right-clicking a jpeg). I'm using exif_read_data to retrieve all data found in the jpeg file.. after that I sort the needed data out into variables:

PHP Code:



$exif_data = exif_read_data($file, 0, true); 
$title = $exif_data["IFD0"]["Title"]; 
$author = $exif_data["IDF0"]["Author"]; 
$comment = $exif_data["IFD0"]["Comments"]; 




this *is* working just fine coz when I create another php file in the same directory and echo these variables they show the exact same values as I have in my jpeg.

the problem is coming when I return these variables back to Flash.. I'm only getting the first letter in the variable.. so if my comment in the jpeg is "My dog" I'm only getting "M" as a return-value.. (but it is showing "My dog" when I test it with my debug-php-file)

any ideas what I'm doing wrong?

ty,
Alex

Remoting Ported To AS2
I have a game that consumes about 10 web services. I recently ported to AS2 in order to include the SmartFox multiplayer engine. Now that SF works, my web services are broken. Not completely - those that ran in the main timeline still work but when the game loads, they do nothing. The login for example works off the splash screen but if you pop it up and switch logins during the game, it does nothing. The login dialog is the same object with the same button to activate the web service in both cases.

Tracing shows that the web services routines are being called but they do not generate net traffic or net results once the game clips start running. I've tried every combination of _root., _level0, this, that and more to correctly/directly reference the Service, methods and event handlers. I've also made the entire web services package a class - same result - only the code that runs on the main timeline generates net calls and net results.

I know this is a scoping issue but if I'm triggering the routine in the main timeline (see trace code below), how can it not run? Here's a simple sample:

function login(uid,pwd)
{
trace("Login service called:" + uid + "/" + pwd );
var login_pc:PendingCall = webserv.login(uid, pwd);
login_pc.responder = new RelayResponder(this,"login_Result", "login_Fault");
trace("Login service completed.");
}

I've change 'this' to every possible combination of direct and relative references. When the calls fail, the trace code still runs which tells me I'm getting to the routine. I've also put trace code in to make sure that the Service object, webserv is alive and well (it is). It just refused to make calls outside the main timeline.

All help appreciated. I hate to go back to AS1 (where it all works).

Copyright © 2005-08 www.BigResource.com, All rights reserved