Flash remoting problem

Hi all,
I want to use flash remoting in my web project. So I
downloaded the test version of flash remoting for .Net and was
testing it. The code i was testing was basic. I was sending some
string from my c# class library to flash and displaying it in a
text box(flash textbox). It used to work fine before but when i try
to access the same today, i get an error "Service not found". I was
wondering what might be the reason.
I dont think that this is becoz the test version is expired
becoz it should generate some other message.
My c# class library
using System;
using System.Collections.Generic;
using System.Text;
using FlashGateway.IO;
namespace FlashRemoting.FlashTest1
public class TestClass1
public string TestFunc1()
return "hi ";
Flash file:
import mx.remoting.*;
if (inited == null)
inited = true;
NetServices.setDefaultGatewayUrl("
http://xx.x.../flashremoting/gateway.aspx");
serviceConnection = NetServices.createGatewayConnection();
serviceObject =
serviceConnection.getService("FlashTest1.TestClass1", this);
button1.addEventListener("click",button_Clicked);
function button_Clicked()
//service function call to the remote service
serviceObject.TestFunc1();
//if the service function is successful, the _Result function
of the same name
//executes
function TestFunc1_Result(result)
messageDisplay.text = result;
//if the service function is unsucessful, the _Status
function of the same name
//executes
function TestFunc1_Status(result)
messageDisplay.text = error.description;
messageDisplay.text+=result.description;
Error I got:
undefinedNo Such Service
Any ideas?

Did you get a resolution to this? I'm having the same
issue.

Similar Messages

  • URGENT: Flash Remoting problem in onStatus event with Flash Player 8

    I'm having a problem that only occurs in Flash Player 8 and
    above.
    When I publish to Player 8, my Connection.onStatus fires
    to function correctly. The problem is that the status
    information is undefined!
    Any idea?
    Thanks in advance,
    Rui Pereira

    convert all mouse events to touchevents
    Adobe Flash Platform * Touch, multitouch and gesture input

  • HELP: Problem using AS3 and CF-Flash Remoting CFC

    I am trying to use CF flash remoting from an AS3 Class using
    the NetConnection class. The approach I am using is directly from
    "ActionScript 3.0 Cookbook" by Joey Lott et. al.
    I am using a totally standard default install of CF, Flex and
    SQL server on Windows 2003 R2.
    When I do a CF Flash remoting call using,
    _netConnection = new NetConnection();
    _netConnection.connect('
    http://pordev2.wcrt.xeroxlabs.com:8500/flashservices/gateway/');
    _netResponder = new Responder(onGotData, onGotError);
    _netConnection.call("porTechDB.PorComponents.ProjValuationRemote.getProjValuationData",
    _netResponder, 1, strtest);
    all seems OK. The CFC returns the integer and string just
    fine.
    HOWEVER, when I also add an associative array, "aa", to the
    string of arguments, I get an error...
    _netConnection.call("porTechDB.PorComponents.ProjValuationRemote.getProjValuationData",
    _netResponder, 1, strtest, aa);
    returns the error: "Unknown object type tag (17)"
    The same error is also returned if "aa" is an XML variable
    instead of an associative array.
    So:
    a) Is this a bug?
    b) Is there an AS3 specific gateway I should have referenced?
    c) Is Flash Remoting not yet supported in AS3?
    Thanks you for your time,
    Ned
    =================================================================
    Here is my test code:
    <cfcomponent displayname="ProjValuationRemote"
    hint="Returns an array of Project Header, Valuation and supporting
    data recordsets">
    <cffunction access="remote" name="getProjValuationData"
    output="false" returntype="String">
    <cfargument name="test1" type="numeric" required="no"
    default=1>
    <cfargument name="test2" type="string" required="no"
    default = "a default string">
    <cfargument name="AA" type="Struct" required="no">
    <cfset testReturn = #test2# & ": TESTING -- This is
    the return integer: " & #test1#>
    <cfreturn testReturn>
    </cffunction>
    </cfcomponent>
    public function requestVRD():void {
    var strtest:String = "Simple test string";
    var aa:Object = new Object();
    aa.curDataSet = 86;
    aa.curYear = 2007;
    _netConnection = new NetConnection();
    _netConnection.connect('
    http://pordev2.wcrt.xeroxlabs.com:8500/flashservices/gateway/');
    _netResponder = new Responder(onGotData, onGotError);
    _netConnection.call("porTechDB.PorComponents.ProjValuationRemote.getProjValuationData",
    _netResponder, 1, strtest);
    private function onGotData(re:String):void {
    // arVRD = re;
    trace(re);
    returnString = re;
    trace("got remote data response");
    private function onGotError(error:Object):void {
    trace("Executing the gotProjectData_Fault: " +
    error.description);
    trace("Executing the gotProjectData_Fault -- no detail");
    // setErrorAlert();
    This works as expected producing the following trace:
    Simple test string: TESTING -- This is the return integer: 1
    Replacing the remote with the following, which adds an array
    to the parameter list...
    _netConnection.call("porTechDB.PorComponents.ProjValuationRemote.getProjValuationData",
    _netResponder, 1, strtest, aa);
    Produces the following error:
    Executing the gotProjectData_Fault: Unknown object type tag
    (17)

    I didn't think so,
    We are putting together ads with alot of images with that 40k limit
    so the images don't look great.
    I was trying to find the best way to work with the images, while keeping it as simple as possible.
    Oh.... your right I was hoping to slowly introduce my associates into AS3, I thought If this could be done
    It woud be a great tool to introduce them to, but no
    Thank you for your time and feedback

  • 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
    Joel

    I 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?
    thanks

    Sounds 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

  • 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

  • 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,
    Barry

    Hi,
    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 :(

  • Flash Remoting

    can i use flash remoting to create reatime chats/ realtime
    games.. using the amf-php service ? if not then what is exactly the
    features to be expected from flash remoting

    Yes I did... but in the wrong folder.
    Got it now.
    Thanks
    Johnny
    "DMennenoh **AdobeCommunityExpert**"
    <[email protected]> wrote in
    message news:g1i0kn$5f3$[email protected]..
    >I do this:
    >
    > import mx.remoting.*;
    > import mx.rpc.*;
    >
    > and have no problems in CS3. But did you install the
    remoting components
    > in CS3?
    >
    >
    http://www.adobe.com/products/flashremoting/downloads/components/
    >
    >
    >
    > --
    > Dave -
    > www.offroadfire.com
    > Head Developer
    >
    http://www.blurredistinction.com
    > Adobe Community Expert
    >
    http://www.adobe.com/communities/experts/
    >

  • Is This a CS4 Flash Remoting Bug?

    I think I have discovered a bug, but am looking for others to comment and maybe somebody knows of somebody else that has experience with this issue.
    I have a very large flash app I am working on for a multi-user RPG game, it relies heavily on flash remoting via AMFPHP so that flash clients logged into the game may communicate with each other and the main game server which handles database storage, the game heartbeat functions,etc.
    I have been developing the app on Flash CS4 for Windows and never have had any trouble, it works fine in the IDE environment when testing the movie and the published version works fine as well.
    Now I have a Mac version of CS4 and I am getting some crazy problems running the app in Test Movie mode in the IDE.
    After I start the app in Test Movie mode and run it for a few seconds all flash remoting stops working, the game continues to run and no error messages are generated but all of the NetConnection calls do no do anything, they do not connect, they generate no errors. Ok, thats strange enough but now, if I kill the Test Movie and rerun it via Test Movie no NetConnection calls are made and the initial .connect call does not go through, I have watched the server logs on the other end and no attempts to reach the gateway.php are made. This continues until I unload all of the .fla and .as files associated with the project and then reload them, and then it starts again, works the first time for 5 seconds or so and then all NetConnections stop completely.
    So to summarize what I think is a bug specifically for the Mac platform of Flash CS4 Professional:
    1. Projects works fine in Flash CS4 for Windows
    2. In Flash CS4 for Mac, the project runs for about 5 seconds in Test Movie Mode and then all NetConnection activity stops
    3. No errors are generated for the NetConnection
    4. Continues to fail even restarting the project until I close the files and re-open them in the IDE
    Sounds like a bug, does anybody know of others with this problem, or does anyone have anything I can try?
    Thanks,
    Andy

    The application doesn't hang but the TextBlock ends up on top the Button when you set its Text property. That's why you cannot click on the Button.
    If you set the Text property of the TextBlock in the XAML markup you won't be able to click the Button when you run the app because of the same reason:
    <TextBlock x:Name="OutputMsg" Text="sample text"
    Margin="0,200,0,0"
    HorizontalAlignment="Center"
    FontSize="18" />
    The solution is, like you have already discovered, to put the TextBlock in the StackPanel so it ends up
    below the Button and not on top of it in the same Grid.
    Please remember to mark helpful posts as answer to close your threads and then start a new thread if you have a new question.

  • Flash Remoting Works Locally But Not On The Server

    Hello,
    I have a flash file that connects to an asp.net page. The
    aspx page queries a databse and returns a set of records to flash.
    Flash reads in those records and processes those records. Locally,
    this works fine. However, on the server, nothing happends. I spoke
    with tech support at hosting company and they tell me everything is
    installed for Flash Remoting.
    Here is the code thats on the server:
    import mx.remoting.NetServices;
    import mx.remoting.NetDebug;
    mx.remoting.debug.NetDebug.initialize();
    //CONSTRUCTOR
    var inited:Boolean = false;
    if(!inited){
    inited = true;
    NetServices.setDefaultGatewayUrl("
    http://63.134.251.243/gateway.aspx");
    var gatewayConn
    bject = NetServices.createGatewayConnection();
    gatewayConn.setDebugID( "Gateway Connection" );
    var SQLQueryToolService
    bject = gatewayConn.getService("matthewlemke", this
    function SQLQueryToolAction(){
    SQLQueryToolService.test("SELECT * FROM flashImages");
    function test_Result(result){
    trace(result);
    _root.abc.text = result.toString();
    SQLQueryToolAction();
    Here is the code locally:
    import mx.remoting.NetServices;
    import mx.remoting.NetDebug;
    mx.remoting.debug.NetDebug.initialize();
    //CONSTRUCTOR
    var inited:Boolean = false;
    if(!inited){
    inited = true;
    NetServices.setDefaultGatewayUrl("
    http://localhost/matt/gateway.aspx");
    var gatewayConn
    bject = NetServices.createGatewayConnection();
    gatewayConn.setDebugID( "Gateway Connection" );
    var SQLQueryToolService
    bject = gatewayConn.getService("matt", this );
    function SQLQueryToolAction(){
    SQLQueryToolService.test("SELECT * FROM flashImages");
    function test_Result(result){
    trace(result);
    _root.abc.text = result.toString();
    SQLQueryToolAction();
    Any help is greatly appreciated.
    Thanks,
    Vic

    I am having the exact same problem. My remoting application
    works fine on my laptop as long
    as the url for the gateway reads
    http://localhost/remotingData/gateway.aspx,
    but if I change
    it to the name of my machine and attempt to run the swf I
    keep getting a NetConnection.call.badversion error in the
    netconnection debugger. If I attempt to connect through IE it just
    sits with no reply.
    Is there some kind of permission thing going on here?
    Flash MX2004 Professional
    Flash Remoting Components MX2004 (unlicensed)
    IIS 6.0
    IE 6.0

  • Flash Remoting on WebLogic App Server

    Hi!
    Ok, I have an application on my location machine that works
    great; no problems. I created a .WAR file of this application and
    installed it on a BEA WebLogic server. Everything works BUT the
    flash remoting. I tried numerous things, including uncommenting the
    servlet tags in my web.xml file, but nothing has worked. According
    to CF Administrator that is running on the WB server, Flash
    Remoting is enabled. The problem is the page will load but when you
    click the "Search" button, nothing is returned; the little clock
    just spins and spins.
    I tested the flash remoting with a simple app that I found
    referenced on these forums, that code is attached. This worked well
    on my local machine but not on the WebLogic server.
    Any advice you could offer would be greatly appreciated.
    Thank you,
    Jennifer

    Hi!
    Ok, I have an application on my location machine that works
    great; no problems. I created a .WAR file of this application and
    installed it on a BEA WebLogic server. Everything works BUT the
    flash remoting. I tried numerous things, including uncommenting the
    servlet tags in my web.xml file, but nothing has worked. According
    to CF Administrator that is running on the WB server, Flash
    Remoting is enabled. The problem is the page will load but when you
    click the "Search" button, nothing is returned; the little clock
    just spins and spins.
    I tested the flash remoting with a simple app that I found
    referenced on these forums, that code is attached. This worked well
    on my local machine but not on the WebLogic server.
    Any advice you could offer would be greatly appreciated.
    Thank you,
    Jennifer

  • Flash Remoting not working with CFERROR tags

    I need help and can't find out what's going on. I developed
    an app with CF7 and Flash Remoting and everything works fine, but
    as soon as I add an error-handling<CFERROR> tag to my
    Application.cfc file, Flash Remoting no longer works. It's almost
    like it can't connect to the gateway anymore or something is
    blocking it. When I remove the <CFERROR> tag in the
    Application.cfc file, everything works fine again. I really need to
    find a solution to this, any ideas???
    (CFMX7/SQL Server2000/Window 2003 Server)
    Here's my Application.cfc code:

    I have attached the actionscript for the data connection. The
    odd thing about this issue is some of the data is being displayed
    from the webservice call and then some is not. The drop down list
    is not being populated but I am getting some text in a textarea
    that is on the form. My datasource is a SQL Server database and in
    ColdFusion administrator, I used the actual machine name to point
    to the datasource because it is directly linked to my web server.
    This configuration is the one giving me problems. If I change the
    datasource to my test SQL Server (server.somewhere.com) it works
    fine. Does this help any?

  • Error connecting - flash remoting

    Hi, wonder if the wisdom of crowds can help us
    We have an issue with people connecting to our FMS app.
    What we’re using:
    - Flash Remoting via an http gateway service
    On client’s internal networks, the connection to the
    Flash Remoting gateway service on our server is not able to be
    established and times out.
    Possible problems:
    - Port being blocked
    - Firewall preventing 2-way communication
    - Windows firewall preventing communications
    - Automatic routing for port 80 preventing the server
    response from reaching our app
    Has anyone else run into this problem, any fixes or work
    arounds.
    Thanks for your time and energy ;)

    I've extended an ArrayCollection as my AS client side object
    and am declaring a property "source" in my CFC. It works well when
    I retrieve data from the server but doesn't allow my to "post" it
    back. I'll give Charles a try and see if I can find anything more
    useful. Thanks for your feedback, it is greatly appreciated!

  • Help w/speed of Flash application - Use load vars, flash remoting or other....

    I'm looking for a little help with a dynamic Flash
    application I am building with ColdFusion integrated. I need the
    Flash to load and interact with a SQL Server database as quickly as
    possible as the user interacts with the Flash application. I have
    done research and thought that Flash Remoting was the way to go
    especially when using ColdFusion with Flash, but I am experiencing
    a lot of lag time when a user tries to load more data.
    So I'm looking for some advice on what is the fastest/best
    way to pass data back and forth between Flash and ColdFusion.
    Currently I am using Flash Remoting via ColdFusion web services
    (first time using this), but again with the lag time I am receiving
    I am thinking maybe my old way of using LoadVars would be faster? I
    am also open to any other means to pass data from ColdFusion/SQL
    database to Flash that exist. I am just looking for the quickest
    way for my customers to interact with the Flash piece.
    Thanks for all your help!

    Also would like to note that internet explorer does not have this problem, I would prefer to figure out why this is happening and resolve it as I hate IE.

  • Flash Remoting Connector

    hi there...
    how to made some Flash Remoting Connector? because i'd like
    to made some application with flash, when the SWF cannot connect to
    server, they will be execute error MovieClip like
    http://www.terminator3.com/
    thanks!

    I have attached the actionscript for the data connection. The
    odd thing about this issue is some of the data is being displayed
    from the webservice call and then some is not. The drop down list
    is not being populated but I am getting some text in a textarea
    that is on the form. My datasource is a SQL Server database and in
    ColdFusion administrator, I used the actual machine name to point
    to the datasource because it is directly linked to my web server.
    This configuration is the one giving me problems. If I change the
    datasource to my test SQL Server (server.somewhere.com) it works
    fine. Does this help any?

Maybe you are looking for

  • How do i unlink a phone number from my mac?

    I share an apple id with my family and i want to one phone number so that i can link a different one. Any help wold be appreciated. Thanks!!!

  • Family Apple IDs

    I have had iPads since they first came out and we have several iPads in the family used by both adults and dids. Through the years we have acquired dozens, if not hundreds of apps, especially Kids' games. With the new family sharing I set up Apple ID

  • Error while loading shared libraries: libdl.so.2: cannot open shared object

    I got the error when I run the Identity server "./start_ois_server" Using Linux Threading Library. /opt/netpoint/identity/oblix/apps/common/bin/ois_server: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such

  • Adobe Reader 9.0 Help/F1 NOT working

    I have Adobe Reader 9.0 installed to a server. Client machines access and run it from the server, e.g. \\ \...\reader\acrord32.exe %1.  With version 9 this setup works fine except when I hit F1 or menu "Help;Adobe Reader 9 Help".  Any tips/suggestion

  • GAME: best way to MOVE objects: tweenlite them or increment their x any values

    As the title says, need best way to move objects in game. Always used x and y increments. Read about tweenlite and use it, very easy. So which do I use taking into account that these games can be ported to mobiles ie: which is more optimized. It's a