Credentials on Flash Remoting
Hi again,
I have an app which uses Flash Remoting to communicate with
server. It's on Flex 2b2
RemotingConnection.as
package{
import flash.net.NetConnection;
import flash.net.ObjectEncoding;
public class RemotingConnection extends NetConnection{
public function RemotingConnection( sURL:String ){
objectEncoding = ObjectEncoding.AMF0;
if (sURL) connect( sURL );
public function AppendToGatewayUrl( s : String ) : void{
gateway = new RemotingConnection( myGtwURL );
gateway.call( "MyService.getIdiomas", new
Responder(onResultGetIdiomas, onFault));
Now I want to use autenticated services. On Flash it was done
with
myService.credentials(user, pass);
How to do it in flex?
Hi again,
I have an app which uses Flash Remoting to communicate with
server. It's on Flex 2b2
RemotingConnection.as
package{
import flash.net.NetConnection;
import flash.net.ObjectEncoding;
public class RemotingConnection extends NetConnection{
public function RemotingConnection( sURL:String ){
objectEncoding = ObjectEncoding.AMF0;
if (sURL) connect( sURL );
public function AppendToGatewayUrl( s : String ) : void{
gateway = new RemotingConnection( myGtwURL );
gateway.call( "MyService.getIdiomas", new
Responder(onResultGetIdiomas, onFault));
Now I want to use autenticated services. On Flash it was done
with
myService.credentials(user, pass);
How to do it in flex?
Similar Messages
-
Converting Flash Remoting AS2 to AS3
Hello
I was wondering if someone could direct me to some tutorials
on Flash Remoting for AS3.
I would like to convert my old AS2 code over but I can't find
any information on that.
Does this functionality still exist for AS3?
AdamSee
http://ssr.riaforge.org/ -
Yesterday, my Flash CS3 AS2 remote debugging stopped working
after I installed a number of Adobe updates and on Mac OS X (Intel)
update. Before I installed the updates, I was able to debug any SWF
loaded in my browser window with the CS3 debug interface and output
window. After I rebooted, all of my browsers stopped sending my the
prompt to connect to a local host or enter an IP. Also, "debug" is
no longer an option in the drop down menu when I right click on the
swf in the browser window. Flash remote debugging is marked
properly in the FLA publish settings and a new SWD is being
published every time I test. But the player doesn't attempt to
connect at all! I don't know if the loss of this functionality is
related to the updates but it does seem that way.
Any help, please?!
Thanks,
StevenProblem solved. After the update, I needed to get the newest
version of the Adobe Debug Player for Intel Macs.
see what players you have here:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1
get the player specific to your OS here:
http://www.adobe.com/shockwave/download/alternates/#fp -
Flash Remoting not working in CF 10
We've been using Flash Remoting for years and now, while testing CF 10 on a development server, find that it no longer works.
In particular, I get a 404 error when trying to access https://{ip address}/flashservices/gateway.
I've already confirmed that remoting is enabled in the Administrator and followed the steps given in the documentation (http://help.adobe.com/en_US/ColdFusion/10.0/Installing/WSc3ff6d0ea77859461172e0811cdec1896 9-7ffa.html).
Any advice?If you don't want to change your as-files:
JkMountFile
"[Path to CF-Installation]/config/wsconfig/1/uriworkermap.properties"
change
/flashservices/gateway/* = cfusion
to
/flashservices/gateway = cfusion
restart CF -
How to debug flash remoting?
Hi I am using - flashremoting.jar 1.0.52502 on tomcat.
I have a 3 year old application that is running on 1 server, it works fine there, the flash client can connect to the java tomcat server and call methods and all is well.
We are trying to stand this application up on another server, and I cant get the flash remoting to work, the server side java methods never get called (I added logging to them).
In the adobe troubleshooting it says to go to /gateway and you should get a blank page.
The weird thing is on both the server that works and the server that doesnt work, if I go there in a browser I get:
HTTP Status 404 - /flashservices/index.html
This is the same for both servers. So im not sure what to try next. Im not an expert in flash my flash guy says the client gets: "Error opening URL"
The url in the flashvars looks good, the flashgateway.jar file is in the web-inf/lib folder , the frconfig.txt is in web-inf/classes
my web.xml has this:
<servlet>
<servlet-name>FlashGatewayServlet</servlet-name>
<display-name>Flash Remoting Servlet</display-name>
<description>
Servlet-based plugin to Flash Remoting
</description>
<servlet-class>
flashgateway.controller.GatewayServlet
</servlet-class>
<load-on-startup>10</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FlashGatewayServlet</servlet-name>
<url-pattern>/gateway</url-pattern>
</servlet-mapping>
what can I check next, how can I troubleshoot this and figure out if its a client problem or a server problem, or somewhere in the middle?
thanks
JoelI got on line with tech support to get them to show me how to use it. The guy hardly knew anything about it himself. From the coldfusion group and was the guy who was supposed to know. I screen shared with him and every time we tried debugging from flex it would just stop. Seems that if something goes wrong in a coldfusion library, the debugger just stops and so it is something upsteam of your break point. Of course there is nothing to show you that, but it became clear. The guy didn't have any better idea than I did what was going on. I figured that out.
If you check the docs about CF and flex, their recommendation is write it all as a CF app. debug it and then hook flex to it. Pure garbage. Anybody hear of DRY. I have dumped ever using CF on the back end. It is not an oop language. It is a tag based language for markup pages with quasi script and its ORM is so inflexible its a joke.
Went back to ruby on rails and rubyamf for my backend to flex apps (with Mate as MVC framework) and I could not be happier. Never had such an unpleasant develpment experience than working with Coldfusion as the backend to a flex app. Good luck. -
Secure Flash Remoting from main.asc not returning a result
Hi, Iv got a problem here that could be Flash Remoting or
Flash Media Server related
I have created an application that uses flash media server
and flash remoting.
For authentication in my app I used Kevin Towes suggested
method "Secure Authentication with Flash Communication Server:
Using Tickets and Flash Remoting MX." His article is here
Download
PDF Here
Now to the problem...
My application has no problem connecting to coldfusion using
flash remoting with the defaultGateway url set to
"https://www.mysite.com" (ie over SSL)
However In main.asc, on the Flash Media Server
When Flash Media server attempts to validate the login by
connecting to CFMX using flash remoting it gets no response when
using a secure gateway url. If I set the default gateway url to
just
http://www.mysite.com it works
great.
Why do I not get any response when using https as my gateway
url from Flash Media Server?
thanksSounds like you need to enable mappings for your remoting
gateway. I'm not sure if it's the same as Flex, but here's what you
might need to do, or something similar...
In c:\cfusion8\wwwroot\WEB-INF\flex\remoting-config.xml (or
wherever CF is installed) look for the <use-mappings> node
and set the value to true. You will need to restart CF -
Hello, can someone please tell me if this is possible:
I want to use flash remoting (AS2) to enable coldfusion
database connectivity that will dynamically populate my .swf with
images.
If it is possible, can someone please direct me to where I
can learn how to do this.
thanks kindly for any info.To answer the first question, yes it is possible.
Second, search sephiroth.it's web tutorials on remoting.
Good luck! -
Where is flash remoting in actionscript 3.0\flash cs5
hello everybody,
i have been looking throught all the available tutorials on this site including flash cs5 help, actionscript 3.0 developer's guide, learning actionscript 3.0 and i can't seem to find anything relating to flash remoting (i.e how to retrieve and send data to and from a server like coldfusion). has it been removed?
i have solutions that were built with flash and actionscript 2.0 that uses data retrieved from coldfusion server for it's operation, i was thinking of migrating them to actionscript 3.0, but it keeps saying that the classes, packages or interfaces like mx.remoting, mx.rpc can not be found. even when i create a new flash document specifying 2.0 as the docuent type, it is still not compiling,. does this mean i have to revert to flash 8\actionscript 2.0 because that is what i built the programs with. please any information or guidiance will be highly appreciated.
thanks to you all.To do it in AS2 you need just install the remoting classes again. You can either copy them fro your old install or get them:
http://drupal.org/node/258605
Scroll down a bit and you'll see a link to the as2 remoting classes: Remoting_FlashCS3.zip
In AS3 there are a few ways. Some people have made classes for it, or you can use the built in methods of NetConnection. Here's a couple examples of that:
http://www.oscartrelles.com/archives/as3_flash_remoting_example
http://www.flash-db.com/Tutorials/helloAS3/ -
FLEX 2... Or Flash Remoting
Hi, could someone please help me make a decision with which
architecture to use to build a flash application?
I want a flash front end, i dont care about users who dont
have a flash player; this is for a commercial enterprise for a
specific user base. My application is for property, the management
and maintenance of, so the property is the main object and all data
relating to its financial budgets, leaseholders who live in the
block, maintenance records, health and safety and cleaning records;
etc. The users all need to be directed by and communicate through
this central organisation and management tool.
I can use Flash pretty well but have never used flash
remoting or ever learned to connect flash to database query
results.
So do i build using the Flex 2, Adobe Air, or Flash Remoting
MX
I have been learning Coldfusion and have a back end being
developed as we speak in fusebox methodology and microsoft sql
database.Hi,
If you must make application more flexible for you,
you must get Flex. it's an ide.
If you want to custom componant or animation you must take
flash.
Olivier
Stu@Seashores a écrit :
> Hi, could someone please help me make a decision with
which architecture to use
> to build a flash application?
> I want a flash front end, i dont care about users who
dont have a flash
> player; this is for a commercial enterprise for a
specific user base. My
> application is for property, the management and
maintenance of, so the property
> is the main object and all data relating to its
financial budgets, leaseholders
> who live in the block, maintenance records, health and
safety and cleaning
> records; etc. The users all need to be directed by and
communicate through this
> central organisation and management tool.
>
> I can use Flash pretty well but have never used flash
remoting or ever learned
> to connect flash to database query results.
>
> So do i build using the Flex 2, Adobe Air, or Flash
Remoting MX
> I have been learning Coldfusion and have a back end
being developed as we
> speak in fusebox methodology and microsoft sql database.
>
>
>
> -
Beg- Flash Remoting vs ???
I own Studio 8 (MX 2004 I believe), and have not used Flash
before, though I am a good C programmer, ok in Javascript. I have
written a few mashup style apps in the browser with XMLHTTPRec. I
want to make a very simple Flash 'widget' for people to put on
their own web sites.
The 'widget' will be only a line of input text, and a few
lines of "dynamic text" (I just looked that up in Flash docs), and
a button. The user enters a line of text (an address), clicks the
button, and a the dynamic lines are completed. Do I need another
product for this, eg Flash Remoting? the $999 price makes me think
not. So, where do I look to get started on this Very Simple Flash
project. thanks in advance -Brianso... with a lot of book work, I have gotten somewhere with
this project... I still have no results yet, though.
I have a small 1 frame movie, with a
TextInput,<addrInput>
Button,<doItButton>
DynamicText,<addrResult_fld>
XMLConnector,<dataConn>
in the button, I have the following Action:
onClipEvent(mouseDown) {
trace("doTrigger()");
dataConn.trigger();
In the base Frame (?) I have
xmlListener.result = function( evt:Object ) {
trace( "results:" );
trace( evt.target.results );
trace( "" );
xmlListener.status function( evt:Object ) {
trace( "status::"+evt.code );
The XMLConnector params are:
url: a localhost cgi that works
direction: receive
ignoreWhite: ttrue
mult: false
suppressInvalidCalls: false
I see the trigger happen in the trace(), but nothing else...
Hints Please!!
thanks
-Brian -
Web Host can't get Flash Remoting to work
Please help this non-technical client get my website up,
please!
I have had an application developed and my programmers have
utilized FlashRemoting.
I have seen the application working on one web host's testing
server, but we had to move it because of tech support issues.
This new host has told me that they've installed Flash
Remoting, but my programmers say it is not installed properly.
(The say it must be installed, not copied into wwwroot)
One very confusing issue is this:
1. A testing link using my domain name pointing to a
flashremoting sample does NOT work
http://www.investlogos.com/flashremoting/samples/asp/default.htm
2. The very same link only using my IP Address instead of my
domain name DOES work.
http://69.90.47.4/flashremoting/samples/asp/default.htm
The programmers have opened a trouble ticket asking for the
.Net environment to be installed where the domain is hosted and to
resolve the address, but no response as of yet from tech support.
Both sides are saying it isn't thier fault and I am stuck in
the middle with a website 2 months past deadline.
Does anyone have any ideas about what is going on, or at
least what 'side' I should harp on to get his fixed?
(...or as a last resort, can anyone tell me a REALLY good
host that supports Remoting? I'd hate to move again, but spinning
my wheels is getting me nowhere!)
Thanks to anyone who has any input.Hi,
Since you have talked about .NET I assume that you are using
.NET as
application layer.
If yes then yes you need get .NET framework installed before
you
attempt to install the Flash Remoting.
If your sample work from IP then I can say Remoting is
installed
properly if your IP is the same where the site domain points
to.
So if the IP and the Domain are the same box then problem is
not with
the installation rather I should be with Remoting licensing
issue you
got to buy the Remoting license to use that and I guess the
demo or
Developer license is being installed there.
You can mail me if you want to discuss this to find the
solution at
[email protected]
Remove all the numeric from the email id to get the correct
one.
Good Luck
Hemendra Singh -
We're getting the "duplicate session" error using Flash Remoting from Air 3.4 Mobile Apps ( IOS and Android ) with Coldfusion 10 Standard.
faultCode:Server.Processing.DuplicateSessionDetected faultString:'Detected duplicate HTTP-based FlexSessions,
generally due to the remote host disabling session cookies.
Session cookies must be enabled to manage the client connection correctly.' faultDetail:'null'
Have read most of the docs about this error -all to do with LCDS
Notes:
Not using LCDS,
No Remote Calls from loaded Sub-Apps,
No Errors from the Flex Web App which is pretty much identical and calls the same cfcs.
The error does not happen all the time and is hard to reproduce - say 5% of app sessions at a guess.
Could it be a two first time remote calls hitting the server together before a session is set up?
Our remoteObjects are in two places 1) Main Application.mxml and within a class compiled into the main app - can't see how this would be an issue.
I enabled session management for the CFCs in Application.cfc but still occurs. Is this neccessary - it's not in any docs?
Could this be something to do with the app not being shut down - as is typical with mobile users? When they resume use after a day or two surely a new session will be created?
Please advise thank you.For our profect I think this issue was caused as follows:
Believing that remoting was full asynchronous we fired a 2 or 3 remote calls to the server at the same time ( within the same function ) - usually when the users goes to a new section of the app.
This seemed to trigger the duplicate http session error since according to http://blogs.adobe.com/lin/2011/05/duplication-session-error.html two remote calls arriving before a session is created will cause 2 sessions to be created.
Our current solution ( too early to say it works ) is to daisy chain the multiple calls together .
Also there seemed to be an issue where mobile apps that never quit ( thanks Apple! ) caused the error when activated after a few hours.
I guess the session expires on the server and the error above occurs on activation.
So the mobile apps now ping the server with a remote call when activated after sleeping for more than one hour.
All duplicate http errors are silently caught and reported.
Fingers crossed we won't get any more! -
Flash Remoting for Video?
We currently have our own proprietary media pipeline for
video. This pipeline is written in C++ and we would like to display
the video from the pipeline without a Flash/AIR application. I
researched Alchemy and various SWF2EXE solutions for being able to
hook into our existing c++ pipeline. I'm going down this road
because maybe remoting is a possible solution.
If anyone has suggestions on a path to solve this problem, I
would appreciate it. If remoting can accomplish this, then maybe
some pointers.
Thanks,
BarryHi,
You need to have just ASP.NET hosting,
I you use Flash or HTML for the provider is the same.
You search asp server or Gateway for remoting access
ps : you can use Fluorine Gateway!
Olivier
danisilveiro a écrit :
> hello.
> i am in desperate need of a hosting provider that offers
Flash Remoting for .NET applications hosting.
> anyone ?
> ps. not viux or webserve :( -
Can someone please give me a real world example of where it
is far better to use Flash remoting rather than URLLoader or
HTTPService.
I am just trying to understand clearly what projects would be
better implementing remoting.
Thanks.Hi,
What I do is to fire a button with logout url like:
navigateToURL( new URLRequest( 'index.cfm?logout=1'), '_self' )
How do you check in your app the 30 minutes idle?
Thanks
Johnny -
How to test flash remoting?
I am using cf 7.0.2.I want to use coldfusion remoting.
Please let me know if I need install other software and how
to make it work.
I also need to know how to test the function.Thanks
Markmark416 wrote:
> I am using cf 7.0.2.I want to use coldfusion remoting.
>
> Please let me know if I need install other software and
how to make it work.
>
> I also need to know how to test the function.Thanks
>
> Mark
flash remoting is built-in in CF7, and unless you need to
enable
integration of webs services, you do not need to change
anything
to test if fr is enabled, just go to
http://localhost/flashservices/gateway
- if you see a blank page in
response you are good to go
you will obviously need MM/Adobe Flash to make flash movies
that
get/post data with remoting... keep in mind, though, that
flash
remoting components were included with Flash only up to ver 8
(Flash CS3
does not have them at all, since it uses a different approach
altogether; though you can still make it work with components
for
previous flash versions, it is a bit of a PIA...)
i am sure others will add a lot to this (i am just a casual
flash
remoting coder/user - it is not my sharpest knife...)
a few websites that helped me get going were:
http://www.asfusion.com/blog/entry/remoting-for-coldfusion-flash-forms
(and a lot of other pages in that blog + read comments too!)
http://articles.techrepublic.com.com/5100-22-1050210.html#
http://blog.vixiom.com/2007/04/17/actionscript-20-flash-remoting-with-flash-cs3/
http://www.builderau.com.au/program/web/soa/Consuming-Web-services-in-Flash-MX/0,339024632 ,320282917,00.htm
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
Maybe you are looking for
-
Can I upgrade my processor on dv6835nr laptop
my laptop is 5 years old and I love it! Last July, the hard drive crashed; I replaced it, and reinstalled Vista OS. Later upgraded to Windows 7..now I find it takes longer to "open" anything. How can I tell if I need to update or upgrade any other c
-
My phone wont let me txt :(
my phone wont let me txt anymore everytime i try and txt it comes back saying requested facility not implemented
-
How do i rotate a picture in Pages
holding down the command key in the corner of the picture doesn't work
-
Updating flash player...please help?
I have windows 8 and I am trying to play farkle on facebook and it doesnt matter whether i am in desktop mode or modern mode it still tells me to update flash player. well everytime i try to update a screen pops up about flash player issues. It tells
-
Flex 4 - rendering many rows + cache
Hi all, Currently I am working on a long list, that contains many (custom) rows. Since rendering a long list takes a lot of resources, we're using a custom build ItemRenderer technique (it needs to be said that this is not the default ItemRenderer te