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








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!!




FlashKit > Flash Help > Flash ActionScript
Posted on: 07-18-2004, 08:19 AM


View Complete Forum Thread with Replies

Sponsored Links:

Installing Flash Remoting Components
Help me...

I am trying to install the Flash remoting components on my laptop (running Windows XP Home Edition). Every time I try I get an error saying that to install the components I need to have Flash MX installed on my computer (which I have!!) and the installation ends.

Has anybody got an idea to what the problems can be?

Please help me..

Katrine

Ps. I have tried deleting the Install Shield directory, but that did not help at all...

View Replies !    View Related
Installing Flash Remoting Components - HELP
I'm trying to install the Flash Remoting Components for Flash MX 2004. I went to Macromedia's site downloaded it for both the Mac and for Windows. Once installation is complete I re-open Flash, but I'm not seeing the Remoting templates as Ben Forta's ColdFusion Construction Book states. Neither on the Mac or the PC. I can see the Remoting Libraries. Am I doing something wrong? This has been driving me crazy. Please help. Thanks.

View Replies !    View Related
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 . . . .

View Replies !    View Related
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

View Replies !    View Related
Problems Installing Remoting For .NET
Hi,

I'm trying to install flash remoting for .NET on my company's web server. The installation program created the flashremoting directory as expected in the IIS webroot. I copied the directory into our web folder where we'll be using it.

After installing it I downloaded the flash components for Flash MX Professional 2004 (what we're using) onto the webserver and onto my computer where I'll be developing flash applications.

I think I must've done something wrong in the installation because when I point my browser to flashremoting/samples/asp_vb/Example1.aspx it gives me an error saying, "File or assembly name flashgateway, or one of its dependencies, was not found." I looked in the bin folder and the flashgateway.dll is there.

Could it be something to do with frconfig.txt in the bin folder?
This is what the file contains for me:

# Flash Remoting MX for .NET - Configuration File
# Each configuration property should begin on a new line using a key = value format.
#
SN=
IP=
Log Level=Error
Log File Size=1048576

Should my web server's IP address be in there or is that only for any additional servers?

Any ideas what I did wrong? We're running Windows Server 2003 and IIS version 6.
Thanks in advance.

View Replies !    View Related
Installing / Configuring Flash Remoting
I have been trying to get remoting installed on my local machine for several days now, with mixed luck. I finally got it to the point where I can run the samples that install with remoting running from the browser (and let me tell you, that was no small task). However I cannot seem to get it to work from Flash, no matter what I try, I eiother get a $)$ error or a gateway not found error (even if I just open an FLA of one of the installed smaples that works in the browser, it won't work in Flash).

I'm running Tomcat 5.5.9 / JDK 1_5_0_02 / and Flash remoting on a windows XP pro desktop. I finally gave up and bought the O'Reilly book, Flash Remoting - The Definitive Guide, but it just muddied the waters. I'm sure I'm making a simple mistake that if I was a half way competent server guy I could figure out...but I'm not.

Has anyone found a simple step by step set of instructions for getting this installed. This has to be the most convoluted process I've ever tried to follow. Everything I read (Macromedia.com, Oreilly, etc..) all seem to be talking about different things, as if it wasn't even the same subject...

Any help would be greatly appreciatted.
Thanks,
-Dave

View Replies !    View Related
Installing Flash Remoting Componenets Defaults To IMovie
Hi,

I downloaded the recent Flash Remoting components for Actionscript 2.0 to install on my Mac running Flash 8. I can only click on "Easy Install", and when it does, it defaults installing the Plugins to my iMovie app! I can't seem to change this..What should I do?

View Replies !    View Related
Can't Find New AS2 Remoting Classes
Hi,

I've installed the new AS2 remoting components, and am creating an application using the new Service object. In the documentation, it says to import the classes, and create the Service object as follows:


Code:
import mx.remoting.Service;
import mx.remoting.PendingCall;
import mx.rpc.RelayResponder;
import mx.rpc.ResultEvent;
import mx.rpc.FaultEvent;

var dates:Service = new Service("http://localhost/flashservices/gateway", null, "myfile", null, null);
var pc:PendingCall = dates.getMonthEvents(9, 2004);
pc.responder = new RelayResponder(this, "getMonthEvents_Result", "getMonthEvents_Fault" );

function getMonthEvents_Result(rs) {
trace(rs);
}
function getMonthEvents_Fault(rs) {
trace(rs);
}
I've done it exactly as the documentation says, but everytime I try to compile it says it can't find the classes. I've also looked in the mx.remoting folder, and there is no files there, just the debug package.

Is there something that I'm missing here? I've done apps before with AS1 components, but this update is turning out to be not entirely straight forward.

thanks,
Marcus.

View Replies !    View Related
Remoting Components
I had them before (2-3 years ago) if i remember correctly, but never undestood the point.
Now, i can clearly see the point and im running into problems
I was to Adobe.com and dowloaded
flashremoting_components_flash8.msi

and when i run the file i get this error:

1: The InstallScript engine is missing from the machine.
If available, please run ISScript.msi, or contact you support personell for further assistance.

To point out im running CS3 and what ive read, it is possible to use Remoting in CS3.
I also found a tutorial about isscript.msi. Thing is i need to confirm this msi files version and it isnt where it should be.

What to do ? *desperate*

View Replies !    View Related
Trouble Loading AS 20 Remoting Classes
I am having trouble loading the remoting classes in Flash MX Pro 2004. This is the code i am using

[code]
import mx.remoting.Service;
import mx.remoting.PendingCall;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;

var dataService:Service = new Service("http://localhost/ZenGarden/gateway.aspx", null, "FlashRemoting.ZenGarden", null, null );

var pendingCall:PendingCall = dataService.Test();

pendingCall.responder = RelayResponder(this, "onString" "onFault");

function onString(resultEvent:ResultEvent):Void
{
trace(resultEvent.result);
}

function onFault()
{
}[/cod

heres the errors i get:

**Error** Screen=form1, layer=Layer 1, frame=1:Line 7: The class 'mx.remoting.Service' could not be loaded.
var dataService:Service = new Service("http://localhost/ZenGarden/gateway.aspx", null, "FlashRemoting.ZenGarden", null, null );

**Error** Screen=form1, layer=Layer 1, frame=1:Line 9: The class 'mx.remoting.PendingCall' could not be loaded.
var pendingCall:PendingCall = dataService.Test();

**Error** Screen=form1, layer=Layer 1, frame=1:Line 11: The class 'mx.rpc.RelayResponder' could not be loaded.
pendingCall.responder = RelayResponder(this, "onString" "onFault");


Flash remoting is installed right, but it seems as though the classes are not being found. TIA for any help you can offer.

View Replies !    View Related
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.

View Replies !    View Related
[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!

View Replies !    View Related
Flash Remoting Components For CS3.
Hey,

I was trying to use AMFPHP with CS3 and AS2 and it wouldn't work because the remoting components wouldn't install to CS3.

Anyway, if anyone else has had this problem, I put together this zip of the files and a little readme to show you where to put them. Once these files are in place, CS3 will work just like Flash 8 as far as AMFPHP goes.


http://seesaw2.net/CS3/CS3 Remoting Components.zip

If this wasn't a problem for anyone else but me, then I'm just an idiot and ignore this.

View Replies !    View Related
Possible To Have V1 And V2 Remoting Components Installed?
I was wondering whether its possible to have both versions of Flash Remoting installed on the same machine without having any version conflicts.

Mebbe someone could enlighten me on this?

View Replies !    View Related
Why Do I Need Flash Remoting MX Components
hello;

it has been 2 years since I have worked with remoting, specifically on the Communication Server; then I only needed the NetConnection.call();

but now I am being told that I need Flash Remoting MX Components which have to be downloaded and installed like a plugin; does NetConnection NOT offer the same access??

any thoughts or opinions please;

thanks
Shannon Burnett
Chicago

View Replies !    View Related
Flash Remoting Updater And Components
I have Flash MX Pro 2004. I downloaded the new remoting components but it also mentions an updater.http://www.macromedia.com/software/f...ds/components/ Do I need this or does Flash MX 2004 include this? I tried the updater and it said I needed Flash MX.

View Replies !    View Related
Flash MX 2004 Remoting Components
I downloaded the flash remoting components and installed them on my machine. I included this code on the flash movie to include some of the class files. I'm trying to get amfPHP to connect my flash movies to mySQL.

//Needed classes
#include "NetServices.as"
//just for debugging purposes
#include "NetDebug.as"
//Create the gateway and connect to the server
NetServices.setDefaultGatewayURL("http://localhost/Hello/gateway.php");
conn = NetServices.createGatewayConnection();

When I publish the movie I get the errors that netservices.as and netdebug.as are not found. I've installed from macromedia the remoting components correctly. Does anyone know why these files are not being found when I publish? Macromedia website is useless so far. How in the world can I be downloading a 16 megabyte file and it doesn't even contain the vital NetServices.as class to get remoting working?

What am I doing wrong here?

Thanks.

View Replies !    View Related
[fllash 2004 Pro Components][remoting]
Hello
when loading my data from the server i released that some animations in my server were been stopped ..
flash continued playing my simple animation after the data loading was finished..
is this normal..
personnaly i don't believe that because in the case we can't make a preloader anim
FYI , the data loaded type is a list.. the amount of data is not very big..
(150 records)..
thank you..

View Replies !    View Related
How Can I Install The Old MX Remoting Components In A PC That Only Has Flash 8?
I only have Flash 8.
I have to edit a project that was written in Flash MX.
The Remoting Components the project refers to are the AS1 files from MX.

None of the flash installers from the macromedia website will allow me to install the old components - They give errors like...
"This application requires Macromedia Flash MX 2004. This install will exit."
...or...
"This application requires Macromedia Flash MX. This install will exit."
I can install the new AS2 remoting components, no problem, but that doesnt help.

If I can find the files then I can probably just copy them into a directory, but I cant find them anywhere on the internet.
Does anyone have them?
Does anyone know a workaround to get the MX installers to put them on my PC which is running Flash 8?


The files I need are the MX ActionScript 1.0 Remoting components, named...

DataGlue.as
NetDebug.as
NetServices.as

...and possibly also...

NetDebugConfig.as
NetDebugEvents.as
NetDebugHelpers.as
NetDebugImpl.as
NetDebugLocalConnection.as
NetDebugNetConnection.as
RecordSet.as
RSDataProviderClass.as


If anyone has these (AS1 versions) and can email them to me? or knows where I can get them or install them on a machine with only Flash 8, then please let me know!

Thanks,
Dean

View Replies !    View Related
Location Flash Remoting Components
Hi everyone.

I've been looking at Jesse's tutorial on AMFPHP and following along.

I've installed the Flash Remoting Components etc but wonderred where the NetServices.as and NetDebug.as files end up once installed.

The actionscript includes these files with a #include call but no path is given - #include "NetServices.as". It looks from this as though the NetServices.as file should reside in the same directory as the fla or swf for it to be accessable. Is this corect?

Can anyone explain this?

Jim

View Replies !    View Related
Can't Find Flash Remoting Components
I just stumbled across flash remoting last week and must say I could of used it already in a ton of different applications I've been working on.
But My problem is that I can't find the Components anywhere. I went to http://www.macromedia.com/software/f...ds/components/ and there links have been broken since then.

What I'm trying to do is run Flash and PHP with amfphp I know my server is set up correctly with php but when I try to run a sample flash I get errors saying that it can't find my included files. NetDebug.as and NetServices.as
If anyone can help me with this It would be greatly appreciated As I really want to start utilizing the incredible potential of flash remoting with php .
Thanks.
Mike

View Replies !    View Related
Flash Remoting Calling CF Components
hi.

i've got a flash application that uses remoting to make calls to a cf component (which then flushes data to a database). everything works great. the database returns a value of "1" which means that data is being flushed to it.

i use an xml file to build the path to my cf component a la:

Code:
<server type="tracking" address="www.mydomain.com" port="80" appname="flashservices/gateway" service="components.analytics.tracker" />
but as soon as i want to switch it to another server, it breaks, ie:

Code:
<server type="tracking" address="www.mydomain.com" port="8500" appname="flashservices/gateway" service="components.analytics.tracker" />
notice that i now use port 8500 instead of 80. this is because the server is CF on my local machine.

anyone know where i could start debugging this?

thanks. fumeng.

View Replies !    View Related
Flash Remoting Components Update
I know we can all use the mx components and that flash remoting works with AS3 and uses AMF3 format... but... why on earth would we want to rebuild the whole recordset funtionality that was built into the components of prior?

somebody please tell me i'm wrong in that there is no more recordset functionality with teh new CS3 version?

somebody please tell me that adobe didn't take a very usable functionality system out of the newest version?

somebody (even possibly from adobe) tell me that all past projects that use recordset functionality don't have to be rewritten to work with CS3 and the AS3 format?

View Replies !    View Related
Flash Remoting Components Upgrade
Does anyone know if there is someone who has ported the AS2 remoting classes of the recordset() to the AS3 format? Or is it possible to simply reuse the AS2 functions in AS3 by including them in the classpath?

View Replies !    View Related
Flash 8 Remoting Components Work On Mac But Not Pc
hello all,

i've come unstuck recently trying to use amfphp with flash 8.

Basically a coder i work with used flash 8 and amfphp to build a dynamic flash module. All his traces work fine and all good.

I want to work on it and went to adobe.com and installed the "Macromedia Flash Remoting Components for Flash 8 ActionScript 2.0".

before i installed i got a runtime error for the mx. classpaths - no surprise.

But now it's installed i get an error saying the flash can't find the gateway url


Code:
Error opening URL "http://newemcosite.hostingfriends.co.uk/assets/amfphp/gateway.php"
i knwo the gateway is working fine as all of our apple macs return the recordsets. I have tried this on 2 pcs both with the remoting components installed.


deos anybody know what's going on? i would really appreciate any help.

the as code snippet is:


PHP Code:



//_root.myId = 1;
//id_name.text = myName

import mx.remoting.Service;
import mx.remoting.PendingCall;
import mx.rpc.RelayResponder;
import mx.remoting.debug.NetDebug;

//NetDebug initialize();
var myResponder:RelayResponder= new RelayResponder(this,"success", "failure");
var project:Service = new Service("http://newemcosite.hostingfriends.co.uk/assets/amfphp/gateway.php", null, "Project", null, myResponder);
var serviceCall:PendingCall = project.getHomepageProject();

// An array to store the returned service call (returns 4 arrays containing recordsets)
var myData = new Array;

// setup news and press arrays to loop through the returend recordsets
var newsLinks = new Array;
var pressLinks = new Array;

function success(re){} 




thanks,
Kam

View Replies !    View Related
Question: Looking For Components/flash Remoting/asbooks
Hi

i want to go shopping for some book and considering if u guys could help me out with opinions

i've search the net and found these :

OOP with Actionscript from NewReaders author : branden hall & Samuel Wan

http://www.amazon.com/exec/obidos/tg...glance&s=books

Action Script Guide from Colin Moock http://moock.org

Advanced PHP for Flash http://www.friendsofed.com

What Is a Flash MX Component? Colin Moock

what do u guys think about those ?

thanks

View Replies !    View Related
InstallShield Error When Trying To Install Flash Remoting Components
Hello all,

I am relatively new to Flash development. I am writing a RIA for the University of Florida and I am looking to use Flex with remoting. The problem I am currently having is obtaining the Flash remoting components. I have download the components package in an MSI file listed under the title "Macromedia Flash Remoting Components for Flash 8 ActionScript 2.0." The URL for the file is:

http://download.macromedia.com/pub/f...nts_flash8.msi

When I try and install the MSI file, InstallShield fail with the following error:

1: The InstallScript engine is missing from this machine. If available, please run ISScript.msi, or contact you support personnel for further assistance.

I have reproduced the error on three different machines, all Windows XP. I have downloaded the file multiple times and it gives the same error each time. Plenty of other MSI package have been installed in recent days on my desktop computer, so the InstallShield engine is not missing. I have tried every version of InstallShield I could find, but all of them gave the same error. Has anyone else had this problem? Is the MSI file corrupt, or is it working fine for everyone else?

I even tried to work around the problem by manually opening the MSI file using the open source package WiX (wix.sourceforget.net). This program succeeded in extracting the files from the apparently corrupt MSI file, and I had to manually rename all of the eight character DOS-compatible file names with the correct file names (that was a pain). All of the text files came out OK, but when I try and load RemotingConnector.swc in Flex Builder 3 it generates an error saying "unable to load SWC RemotingConnector.swc." Not that it can't locate the SWC, it can't load it, perhaps because it is also corrupt. Is anyone else having this problem, or is it just me? Even the German version of the installer has the same problem -- it just gives me the error in German, which is nice for a change .

Thanks for you advice,
-Shane Claggett-

View Replies !    View Related
InstallShield Error When Trying To Install Flash Remoting Components
Hello all,

I am relatively new to Flash development. I am writing a RIA for the University of Florida and I am looking to use Flex with remoting. The problem I am currently having is obtaining the Flash remoting components. I have download the components package in an MSI file listed under the title "Macromedia Flash Remoting Components for Flash 8 ActionScript 2.0." The URL for the file is:

http://download.macromedia.com/pub/flashremoting/flash8/flashremoting_components_flash8.msi

When I try and install the MSI file, InstallShield fail with the following error:

1: The InstallScript engine is missing from this machine. If available, please run ISScript.msi, or contact you support personnel for further assistance.

I have reproduced the error on three different machines, all Windows XP. I have install plenty of other MSI packages on my desktop, so the InstallShield engine is not missing. I have tried every version of InstallShield I could find, but all of them gave the same error. Has anyone else had this problem? Is the MSI file corrupt, or is it working fine for everyone else?

I have attempted to work around this problem by manually opening the MSI file using the open source package WiX (wix.sourceforget.net). This program succeeded in extracting the files from the apparently corrupt MSI file, and I had to manually rename all of the eight character DOS-compatible file names with the correct file names (that was a pain). All of the text files came out OK, but when I try and load RemotingConnector.swc in Flex Builder 3 it generates an error saying "unable to load SWC RemotingConnector.swc." Not that it can't locate the SWC, it can't load it, perhaps because it is also corrupt. Is anyone else having this problem, or is it just me? Even the German version of the installer has the same problem -- it just gives me the error in German, which is nice for a change :).

Thanks for you advice,
-Shane Claggett-

View Replies !    View Related
Flash MX Dynamic Content... Generator, ASPTurbine, Remoting Components
I have been working with dynamic content in Flash 5 for some time now. The server side Flash generation tool I had been using was and is Blue-Pac's ASPTurbine over Macromedias Generator due to price and ease of use.

With Macromedias new release of Flash MX and its omission of SWT (Generator Templates) there seemed to be no tool directly equivalent to that of ASPTurbine or Generator for the creation of dynamic content in flash. However Macromedia released a beta tool used in conjuction with Flash MX called Salsa which now seems to be called Flash Remoting Components. Although this new tool does not seem to generate dynamic SWF it does connect Flash with dynamic content using Microsofts new .NET infrastructure and others such as Java and ColdFusion.

So now here is my question:

What tool replaces ASPTurbine and Generator in Flash MX?

jhnsbtn
jhnsbtn@hotmail.com

View Replies !    View Related
Load Html(dynamic) With Remoting..?
Hi,

I m looking for the best way to load html text with remoting..
using php and mysql.. no .txt files..
can anyone show me the right direction?

thnx

View Replies !    View Related
Flash 8, Remoting Components, "NetServices.as: File Not Found."
Ok, this problem is a little convoluted so please bare with me.

We recently had a developer leave who was one-deep on all our flash development (our fault I realize). We have a header on our internal intranet that uses flash remoting. On his way out the door I got a tiny bit of info on how he was doing this, but I'm still having problems. (Also, I am a flash newbie, I am just trying to grab the reins of this now while there is no emergency so I don't get screwed over when there is one)

He said I had to have Flash 8 to get it working, so I installed that. Then I installed the flash remoting components, (from here http://www.adobe.com/products/flashr...ds/components/)

However, when I try export my file to .swf, I am getting the following error:


here's the code that is running it, just in case it helps

Code:
stop();
#include "NetServices.as"
#include "NetDebug.as"
remotingServer = "https://"+server+"/flashservices/gateway";
NetServices.setDefaultGatewayUrl(remotingServer);
var gw = NetServices.createGatewayConnection();
var myService = gw.getService("includes.components.headerTitles", this);
myService.getHeader(subSiteID);
function getHeader_Result(results) {
org.text = results.items[0].organization.toUpperCase();
sub.text = results.items[0].subSiteName.toUpperCase();
orgUrl = results.items[0].orgURL;
}
also, i did try using "import mx.remoting.*;" and "import mx.remoting.NetServices;", but I get the same error as before.

If anyone could help me out I would appreciate it a ton, thanks.

View Replies !    View Related
Flash Remoting Components In Flash 8
hello everybody.
Can anyone guide me, whether the remoting components of flash mx 2004 will still work in flash 8.I mean can i go ahead and install flash mx 2004 remoting componetns in flash 8 and start working on it.Or there is a newer version of flash remoting components too.

View Replies !    View Related
Load Order Of Custom Components/Classes
Hello All ---

Is there a way in AS2 to determine the order that classes will load/initialize? I have 2 Custom Components on the stage and need Component B to load before Component A. I have found that if I put them on different layers, that sovles the problem, however, that is really not an ideal fix.

Thanks for any and all replies.

View Replies !    View Related
Installing UI Components?
I downloaded some new "UI components" and i dont know how to install them.

They are in .mxp format.
I have flash mx

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
Remoting
when i ever i query a database using remoting the result always return :[ object, object]

whats will i do ?

thanks

View Replies !    View Related
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.

View Replies !    View Related
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!

View Replies !    View Related
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.

View Replies !    View Related
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....

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

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

View Replies !    View Related
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!

View Replies !    View Related
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>

View Replies !    View Related
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

View Replies !    View Related
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("

View Replies !    View Related
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

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved