ActionScript 3.0 :: How To Flash Remoting Component
Jan 4, 2009Do we need to install flash remoting component for AS3 likewe need to have in AS 2.0
View 2 RepliesDo we need to install flash remoting component for AS3 likewe need to have in AS 2.0
View 2 RepliesI am looking to subclass RemoteObject. Instead of:
<mx:RemoteObject ... >
<mx:method ... />
<mx:method ... />
[code].....
I'm looking for examples (code) of applications that uses Flash (NOT Flex) and Remoting classes for ActionScript 3 (NetConnection). Once there was ARP, a repository of code of this kind, but it seems there is not anymore. I'm trying to figure out how to build an applications that makes heavy use of calls to WebORB and responders. I need an architect point of view, NOT a sample of communication between parts, but a real world scenario.
View 1 RepliesI am trying to add the remoting scripts in flash CS5
However, the actionscript is fine, the problem is i cant find the flash remoting component in any of the components panels.
Where do I find to download flash cs3 remoting and how do i install it.
View 0 RepliesI want to be able to upload files to a mysql database via flash remoting and using php as the server side script. is this possible and how would you do it?
View 4 Repliesurl...can anyone see the works? or can't get past the initialising stage? i test on both my mac and pc and it's working, i ask some of my friends to test also... some can view, a few others cannot get pass the initializing stage somehow, it just seems that after the init() and getService it doesn't return the results for those comps which can't get pass the initialising stage.
View 2 RepliesI've built a application that communicates with Coldfusion cfc functions via Remoting. I've noticed that the NetConnection object disconnects after each call, is this expected behaviour? For some reason I was expecting the NetConnection object to stay connected until I closed it myself (I'm making about 1 request per second and had planned for it to stay open).
View 1 Repliesin xxxx.mxml (from flex) i have called the remote remote method (of java) the method return type is float
in the xxxx.mxml's remote objects result handler i need get the float values as Numeric String..i tried with string...i did Alert.show to see the value some times i get exact value for eg, 0.5 is the value returning from java methid but here it will show 0.50000454. how get the exact value?
I'm building an application that is going to use Flash Remoting very heavily. I'm wondering how I should structure my Service connections. Should I put them in each(several) loaded movies or in the root timeline where any loaded move can access them. The latter would cause issues when trying to test each movie individually. But by putting the Service connections in each movie would require imports needed for FR at the top affecting load time. Also, I'm new to using the moviecliploader. I have a few functioning properly, however, is it wise to try and create a "smart" loader? Meaning use one loader having code to zip when the zip.swf is loaded and zag with zag.swf. Or should I just accept, and get in the habit of using a zip loader and a zag loader separately, meaning each loader simply serve a specific function.
View 3 RepliesI am trying to load data using flash remoting from a mysql database via php using amfphp, i have an event listener that waits for a combobox to be used and changed, once it does, the data in there should be sent to the backend part of the system via flash remoting using PendingCall and once done should retrieve the data and place it into a second combobox. but it doesn't work.
var sectionListener:Object = new Object();
sectionListener.change = function(){
trace("1");
[code]....
There is a client - server basic application. The client uses a simple remoting to comunicate with the server side. The server side could be powered on WebORB, BlazeDS or any other product. The client side is using the FLEX framework. That is it about a technologies stack. Now, let's forget about the server side and just have a look on the following client side
[Code]...
I'm finding little info out there on using Flash and remoting services. Currently I'm starting out using AMFPHP which works pretty well for sending back simple sets of data but I'd like to send back complex query types which translate to RecordSets. I have two problems:
1) Is this the way it's currently done? PHP backend with AMFPHP for webservices so my Flash program can access it? Or should I be using a different setup?
2) How do I add the mx.remoting services in CS5? The only docs I find say to add it under Other Panels but I don't have the next area under that in CS5.
I am very interested in using Remoting in order to connect to a Drupal AMFPHP service module.On the client side this is easily done and I have had limited success on the Server side.
View 1 RepliesI am very new to remoting in flex. I am using flex 4.5 and talking to a web application built by someone else on the team using AMF. They have used Zend_AMF to serialize and unserialize the data.One of the main issues I am facing at the moment is that I will need to talk to a lot of services (about 60 or so).From examples on remoting I have seen online and from adobe, it seems that I need to define a remoting object for EACH service:
<mx:RemoteObject id="testservice" fault="testservice_faultHandler(event)" showBusyCursor="true" destination="account"/>
With so many services, I think I might have to define about 60 of those, which I don't think is very elegant.At the same time, I have been playing with Pinta to test out the AMF endpoint. Pinta seems to be able to allow one to define an arbitary amount of services, methods and parameters without any of these limitations. Digging through the source, I find that they have actually drilled down deep into the remoting and are handling a lot of low level stuff.
Is it possible to deserialize the AmfPhp messages while remoting? They are in binary, and assuming that amfphp understands what they are I should be able to decode what it s.
View 1 RepliesIs it possible (and if so recommended) to use Flex remoting (mx.rpc)classes in an actionscript only project?
I'm creating an application with login and registration to a php back end using AMFphp.
As an option I was wondering if it made sense to take advantage of the mx.rpc flex classes.
Is there a way to monitor the loading progress (percent progress bar style) when using Flex remoting?I'm trying out Flash Builder 4 with it's new data services features, but I can't find any pgrogress event stuff somewhere. This article by Robert Taylor URL... indicates that it might not be possible...
View 1 RepliesMy current coding for remote object declaration is messed up I wanna separate the remote object and the interface
Current Code :
<s:RemoteObject id="ro"
destination="customerService"
[code].....
Can anyone explain me the difference of all and also an another question does Zend AMF support all these.
View 1 Repliesthe difference of all and also an another question does Zend AMF support all these.
View 2 RepliesShould i keep Remoting Methods outside a class in a seperate AS file or is it possible to call Remoting inside a class.
View 1 RepliesIs the same possible in ColdFusion? Currently I am using .Net/Fluorine to return objects to the client. Whilst in testing I like to pass strings representing the select statement and the custom object I wish to have returned from my service. Fluorine has a class ASObject to which you can set the var 'typeName'; which works great.
I am hoping that this is possible in Coldfusion. Does anyone know whether you can set the type of the returned object in a similar way. This is especially helpful with large collections as the flash player will convert them to a local object of the same name thus saving interating over the collection to convert the objects to a particular custom object.
[Code]...
Code:
var nc:NetConnection=new NetConnection();
nc.connect("http://localhost/amfphp/gateway.php");
var res:Responder=new Responder(onResult,onError);
[Code]....
The code is working good and brings back the info from mysql via amfphp, but I would like the "goBtn" to bring the info when pressed.
I have an Application consisting of a Java Server part and a Flash/Flex client, both communicate via BlazeDS. In order to have the same typed Objects on both sites, I use the GAS3 code generator (used by flex-mojos).But now I am facing the problem of handling nullable Integers. The problem is that I have an Object (A) which contains a foreign key ID which is reference an optional Object B. - But I only send the ID to the flex client.On the Java site it is easy:
class A {
private Integer bFk;
getter/setter
}
But on the flex client side, bFk is of type int. And a Flash int can not be null. So the remoting mechanism converts the Java null Integer to 0. After sending it back to the server, the Java bFk becomes 0 even on the Java side. - That is not acceptable, because I need to separate 0 and nullMy first workround is using not a Integer on the Java side, but an new Class NullAbleID, which works a bit like a wrapper/adapter, that wrap an internal int where -1 represent null (I can use -1 for null, because real id will be negative). But when I would using this it means I have to replace all Java Integer ids, by this NullAbleID class.
In my attempt to learn flex remoting I came across thisflexService.getRules.addEventListener(ResultEvent.RESULT, loadRules);here flexService is a remote java object . me that when esultEvent.RESULT will occur. On studying about ResultEvent in AS document it states as The event that indicates an RPC operation has successfully returned a resultSo keeping that in mind my guess is ResultEvent will be fired when flexService.getRules method will successfully return a list of object,where flexService is object of remote class FlexService having getRules function which returns list of object, Can any one please tell how exactly it works
View 2 RepliesI am looking the way to batch several remote calls from flex-based application to java-based server, so that they would be processed within a single transaction on the server-side.My idea is to build several services on server-side with setter/getter like operations:
interface MyService1 {
void setField1(long myEntity1Id, int field1Value);
void setField2(long myEntity1Id, int field2Value);
[code]......
I was wondering if there was a way to get the sound from a FLVPlayback component and manipulate it with using a custom volume slider? Within my Actionscript I currently have this code which enables me to control the volume of a MP3:
import fl.events.SliderEvent;
var mysong = new music();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
myChannel = mysong.play(0,10);
[Code]...
But Instead of using the MP3 for sound, is there a way to use an FLV's sound instead?
I am trying to create my first real world Flex application. I will have a lot of different data entry / data view screens so I thought I would create many different components to deal with each different type of data that was being returned. I have a MXML application called Layout, and have component called "Navigator" which controls the menu, as well as a ViewStack called "MainContent".
I want the Navigator component to change the ViewStack on the Layout application to that of another Component (each Component is embedded within the Canvas of each ViewStack). I have a click handler on my Navigator which looks like this: Layout.ContentFrame.selectedChild=event.itemRenderer.data.clickValue; However it shows the error "Access of possibly undefined property ContentFrame through a reference with a static type Class." Is my approach a good way of doing it? I have attempted referencing it using FlexGlobals.Layout and topLevelApplication.Layout... neither of which work?[URL]
I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:
[Code].....
so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?