Bubbling remote object

Hello

I have a component that is to have a remote object.

Is it possible to the ResultEvent or result generated by the remote object of bubble. ? Can I do something that is mentioned below?

COMP1. MXML

<? XML version = "1.0" encoding = "utf-8"? >
"< mx:VBox xmlns:mx ="http://www.adobe.com/2006/mxml">".
< mx:RemoteObject id = "rem" destination = 'TestService' result = "onComplete (event); "showBusyCursor ="true"/ >

< mx:VBox >


MainComp.mxml

<? XML version = "1.0" encoding = "utf-8"? >
"< mx:Application xmlns:mx ="http://www.adobe.com/2006/mxml"layout ="absolute"creationComplete =" init () ">"
< mx:Script >
<! [CDATA]
Import mx.controls.Alert;
Import mx.rpc.events.FaultEvent;
private function init (): void {}
COMP1.addEventListener (GenericEvent.FAULT_EVENT, faultEvent);
}

private void faultEvent(event:FaultEvent):void {}
Alert.Show ("Ersdasdfsdfrrror");
}
[]] >
< / mx:Script >
< ns2:Comp1 id = "comp1" x = "72" y = "55" >
< / ns2:Comp1 >

< / mx:Application >

Concerning

mxvx

Hello

Propagation of events occur through the display list, that is to say a component (DisplayObject) sending an event and another component (DisplayObject) listen.

However, you may have;

COMP1. MXML

private function onComplete(event:FaultEvent):void
{
     dispatchEvent(event);
}

The above would then go the event to your MainComp.mxml

Mike

Tags: Flex

Similar Questions

  • ORA-04052: error occurred while the remote object by raising

    Please help I m this error

    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-04052: error occurred while the remote object by raising
    ORA-01017: name of user and password invalid.
    connection refused ORA-02063: preceding the line of LINK DB

    Tom wrote:
    Please help I m this error
    ORA-01017: name of user and password invalid.
    connection refused ORA-02063: preceding the line of LINK DB

    Well, what part of the name of user and password invalid needs to explain?

    SY.

  • Error with the remote object

    Hello

    I have this error when I try to connect using remote object with ColdFusion.

    Unknown AMF type "15".null

    Any ideas?

    Thank you!

    Sorry, I was the bad parameter

    It's time to go to sleep.

    Best,

  • Remote object with mobile apps

    Hi all

    I want to know that is it possible to apply a moblie (TLE say for android) using the adobe AIR software, which can work with

    the remote object? If so then someone can say that it will be possible to implement as amfphp, blazeds, flurinefx or web - orb etc.?

    Thanks in advance,

    Wallerand

    iPad, Android, Blackberry Playbook.

  • How to get the remote object mode protect?

    Hi all

    I have a question for a remote object mode protect in drive x. need your help, thank you very much ~

    Background: I have a plugin running on drive x protect mode. Without a strong name, plug-in will load my DLL (manufactured by c#). Then, in this DLL, it will use

    _3rdProxy p (_3rdProxy) Activator.GetObject = (typeof (_3rdProxy), url); for a remote object of the 3rd application (made by c# also). Then I can make communication between my app plug-in and 3rd.

    But I got an error "Access denied", said. Anyone know how to get the remote object in this case? Thank you very much ~

    Since you have a reader integration key, you are advised to use our methods of support for the official Developer.

  • remote object

    < mx:RemoteObject id = "myService" destination = "{currentReport}" >
    < name mx:method = "getDateFromServer" result = "resultHandler (event)" / >
    < / mx:RemoteObject >

    How can I set the method of the remote object in as3?

    I think that's what you ask for

    var getDateFromServer_remote:AbstractOperation = remoteObject.getOperation ("getDateFromServer");
               
    getDateFromServer_remote.addEventListener (ResultEvent.RESULT, onResult);
    getDateFromServer_remote.addEventListener (FaultEvent.FAULT, onFault);
               
    getDateFromServer_remote.send ();

  • Create 2 dataproviders to a remote object

    Hello
    I created a remote object that populates an arrayCollection collection to be used as a dataprovider for a menu item drop-down. In one case, I want to add data to the dataProvider to show an additional element in the list and in the other dataProvider I want just the data returned by the remote call. The problem is that when I add the article to the list it is also reflected in the second collection of arrayCollection. How can I use a remote call complete 2 separate arraycollections and do not have changes to the one reflected in the other collections?

    Try this.

    private void handleResult(e:ResultEvent):void {}

    copy the result returned by using the ObjectUtil object. This will create a copy of which has been returned
    Array1 = ObjectUtil.copy (e.ResultEvent) as ArrayCollection collection;
    Array1.addItemAt ("Show All", 0);

    Use what was returned unmodified as the second collection
    Array2 = e.ResultEvent as ArrayCollection collection;
    }

  • Remote objects do not support Java integers

    Another a - cha with the help of flex... it becomes bad enough... :(

    Integers do not cross over Java in ActionScript3, the use of remote objects. Strings of working on a large, all the rest are not. Where can I report this bug?

    After further research, it turns out that flex 3 is still in ALPHA and is not ready for the general public. You simply can not get reproducible results when you use Flex / Java / JBoss / BlazeDS under any form without code change.

    Flex leaves just, no errors, no nothing. 10%, there is no work (return of remote objects), the rest of the time, it isn't, it returns empty objects.

    Would be great if this was tested prior to release.

  • ORA-04052: error occurred when searching to the top of the remote object REPADMIN. SYS@CEL2. W

    Hello
    on 10 gr 2 on WIN 2003 server:
    C:\>sqlplus repadmin/***@CEL2.WORLD
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Jun 22 09:54:18 2010
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    And then:
    CONNECT repadmin/******@CEL1.WORLD
    
    BEGIN
       DBMS_REPCAT.ADD_MASTER_DATABASE (
          gname => 'REPG',
          master => 'CEL2.WORLD',
          use_existing_objects => TRUE,
          copy_rows => FALSE,
          propagation_mode => 'ASYNCHRONOUS');
    END;
    / 
    
    BEGIN
    *
    ERROR at line 1:
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 2
    ORA-12545: Connect failed because target host or object does not exist
    ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 4271
    ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2156
    ORA-06512: at "SYS.DBMS_REPCAT", line 146
    ORA-06512: at line 2
    Thanks for the help.

    connect to the remote database as sys and

    SQL > grant execute on sys. DBMS_REPCAT repadmin;

  • Remote object shared my kicks butt

    After 4 days, I'm still stuck with what should be a simple learning exercise. I'm not a developer starting with all means, which should not be beyond me. After a few weeks of reading, I now try to do some exercises of bite size for the ramp on the Communication (using Flex as the primary server) server. I'm missing something in my understanding and could use a good quick quick kick in the pants get me.

    All I want to do is created a remote object on the side server, then when a client connects, send and add a simple string to the remote object. While the customer gets the update and display the information in a text box. Here is the code I try to use, cleaned up a bit (so their could be a typo or two). He seized the idea of what I'm trying to do.

    I'm not sure what I'm doing wrong. The idea is to send a test string to the server to connect, and only the server to add to the object shared side server. In theory, I think, it will trigger the client onsync event to send the change to the customer. Fires of onsync but I see not the information contained in the customer... just get an "undefined"... What Miss me? Save me a week of pulling on my hair, if you can, please!

    Thank you!

    ==================server asc================================
    application.onAppStart = function()
    {
    trace ("onAppStart");
    Create the shared object on the side Server
    test_so = SharedObject.get ("myTestSharedObject");
    }
    application.onConnect = function (client, someTextForDisplaying)
    {
    test_so. SetProperty (myProperty, someTextForDisplaying);
    Returns true;
    }

    ==================client ================================
    var my_so: SharedObject;
    var nc:NetConnection;

    It is triggered by a click of a button in the user interface
    function createConnection (): void
    {
    to connect to the server
    NC = new NetConnection();
    nc.addEventListener (NetStatusEvent.NET_STATUS, netStatusHandler);
    nc.objectEncoding = ObjectEncoding.AMF0;
    //
    NC. Connect ("rtmp: / testApplication", "test string");

    }

    connected now connect the client to the remote object on the side Server
    function netStatusHandler (event: NetStatusEvent): void
    {
    Switch (event.info.code) {}
    case "NetConnection.Connect.Success":
    The connection was successful now create components
    User simple shared object and event management
    SharedObject.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;

    my_so = SharedObject.getRemote ("myTestSharedObject", nc.uri, false);
    my_so.addEventListener (SyncEvent.SYNC, usersSyncHandler);
    my_so. Connect (nc);
    break;
    case "NetConnection.Connect.Rejected":
    Alert.Show ("connection rejected.',"something went wrong");
    break;

    }
    }

    It's the event triggered when the remote shared object changes
    function usersSyncHandler (event: SyncEvent): void
    {
    display the information returned in the user interface
    txtDisplay = event.target.data.myProperty;
    or
    txtDisplay = txtDisplay + my_so.data.myProperty;
    }

    Solved it... don't know what the problem was, but it finally works...

  • Graphics using remote object


    ======================== Original Post =========================

    I've looked everywhere for a single example of a person who uses a remote object with Flex charts. Each example and tutorial I've found so far use a static arrayCollection collection. I use CF and MS SQL so if anyone has an example of basic work that I could learn from I would be grateful.

    I was surprised that 4 books I (training from the Source of programming Flex 2, Professional Flex 2 and Flex 2 with AS3) as well as the tutorials of Lynda.com and Total Training videos or anything I could find on the net so far nobody seems to have addressed this issue.

    My company wants to build a system of dashboard with all cards and whistle so if anyone can point me to a tutorial or a juicy source code would be great.

    Thank you

    James

    Firstly, my apologies - my post was done half ass! I forgot to give you a lot of code. First of all the call to the Office receiver in the "creationcomplete" of the application method, so I re-posted the code below (and this time I ran it first out bugs!)

    OK, so, if nothing happens still, then I'd be puzzled. Something that could go wrong would be "unable to connect" inside CF remote server, but you should get an error when this happens, and it should be a pretty obvious mistake. If you've never done CF remoting, look at the example on the Flex dev center, it does not work with complex data, but it's a good start.

    If you debug the application, you should put a breakpoint in the function 'handleTop3ActivitiesResult' and that the variable 'slicedtop3ActivitiesAC' is is filled.

    Try the code below and tell me if you still have problems, and what these problems are.

    See you soon,.

    David


    http://www.Adobe.com/2006/mxml"layout ="vertical ".
    creationComplete = "reportManager.getTop3Activities (); » >

    Import mx.utils.NameUtil;
    Import mx.utils.DisplayUtil;
    Import mx.collections.ArrayCollection;
    Mx.charts import. *;
    Mx.charts.series import. *;
    Mx.charts.series.items import. *;
    Import mx.charts.chartClasses.ChartLabel;
    Import mx.charts.effects.SeriesInterpolate;
    Mx.rpc.events import. *;
    Import mx.controls.Alert;
    Import mx.formatters.NumberFormatter;

    [Bindable] public var top3ActivitiesArray:Array;
    [Bindable] public var slicedtop3ActivitiesAC:ArrayCollection = new ArrayCollection();
    public void handleTop3ActivitiesResult(event:ResultEvent):void {}
    top3ActivitiesArray = Event.Result.List.source in the table;
    slicedtop3ActivitiesAC.source = top3ActivitiesArray;
    }

    private void displayTop3ActivityChartTip(data:Object,_field:String,_index:Number,_percentValue:Number):String {}
    var nfmt:NumberFormatter = new NumberFormatter();
    NFMT. Precision = 0;
    return data. ActivityName + ":"+ nfmt.format (data.time) + "\n" «Minutes»;»
    }

    ]]>



    "Fault =" Alert.Show (Event.Fault.message) "result =" handleTop3ActivitiesResult (event) "/ >



    width = "50%" height = "50%" showDataTips = "true" >


    labelFunction = "displayTop3ActivityChartTip" showDataEffect = "{interpolate}" / >


  • Remote object (Java) - intercomm Data Service (Java)

    Hello

    I was wondering how to make my remote Java application communication (message exchange) object to my implementation of Java data service.

    The scenario is this: my Flex client application must connect to a 3rd person resource, which requires authentication. I was thinking of using a destination of the remote object that will perform the authentication of the user. It will store a session object valid (Java) to be used later to perform various reportoire to this 3rd party resource.

    At one point, during the same session of Flex browser, a data destination Service needs be accessible, which will link to the 3rd party resource. Well, for this operation, I don't want the user to authenticate again on the resource party 3rd, as a valid session exists and stored by the implementation of the remote Java object.

    The question is: how my class of Java Data Service will be able to speak with the class remote Java object, to get that 3rd party session to oppose (which is also a very complex Java object) and use it to connect to the 3rd party resource?

    Thank you.

    Had... it's by the attributes of the session... Robert

  • Disaggregation of data in a remote object

    Currently I have a graph that gets its data by using a connection to the remote object. The graph currently shows a month value of data. Now, I need to get these weekly monthly data. The client prefers to have distributed data acroos four cards weekly instead of a single monthly chart. The customer would then simply click a button "Next" or "Previous" to scroll through the cards.

    I know that I just changed the (CFC) function that calls for the data to return only a weeks worth of data, but I don't want to make a call to separate data, whenever the user clicks 'Next' or 'previous '.

    Is there a way to enter all data of all month and then divide into sets of weekly data within the app?

    I found this one. If I add an hSlider with thumbs I put the inches with just a couple of functions. Basically when the user clicks on buttons, a function is called that transmits a predetermined how many ticks value to move.

    The HSlider has a property called 'values' which is all thumbs. With the help of a few simple functions that they can easily be manipulated.

    Setting the visible property of the slider to 'false' will keep focused on all navigation buttons.

  • Error in levant remote object

    I created an application that needs to refer to several synonyms that exist in a different schema on another server.
    When I compile my package in SQL Developer, that I'll meet with the error message:

    ORA-04045: errors during recompilation/revalidation of GILLNET_TAG. GILLNET_TAG
    ORA-04052: error occurred when searching to the top of the remote object PERMITS. VPS_FISHERY_NER@DER1_PERMIT
    ORA-00604: an error has occurred at the SQL level recursive 2

    Note that the error referred to only 1 of 4 thesaurus - VPS_FISHERY_NER
    The others seem fine.

    I created this synonym like this:
    CREATE a PUBLIC SYNONYM vps_fishery_ner FOR permit.vps_fishery_ner@der1_permit;

    Note that this is a synonym that refers to a synonym, as are the other 3.
    Any ideas as to why this error occurs?
    The DBMS is 10g.
    Thank you.

    You can search for 'ORA-04052' in Metalink, it brings several bugs that may be related. We had similar problems when the database that were in different versions like 9i-> 10 g-> 9i. The solution, you can try is to delete the % type definition and use a locally defined type that corresponds to the same remote type definition.

  • serializing remote objects: where to go from here?

    Hello world.
    I have a client that connects to a server via RMI gets objects that represent the records in the remote database.
    Now, I want to "persist" these items locally.
    I am to estimate the different approaches to this problem.
    Thanks in advance
    Agostino

    Well, it's your first Java Object Serialization option. Then probably is Java Beans Long term persistence.

Maybe you are looking for