AS 3.0 how to set event target?

Hi,
I am trying to execute an event on a specific target and I am
not successful in doing this in AS 3.0 since event.target is read
only. Here is the scenario:
- I have a button and the path to this button is:
DataEntry0._UpdateDeleteProd1.Form10.FormItem102.HBox103.Button104
I know this because I did install a listener to and when I
clicked I recorded the path.
- I would like to execute a click programmatically on that
path by just creating an event and setting the target to that
button
(DataEntry0._UpdateDeleteProd1.Form10.FormItem102.HBox103.Button104)
however I don’t know how to set the target. Can anybody help
or point me to the right direction so I can do this.
Thanks…

zoran,
Sorry,I didn't explain what to do very clearly :).
Básically, the event.taget parameter is set when you use the
dispatchEvent function, so if you want an event to be dispatched
from a Object you must call the dispatchEvent from this function.
The line I gave you wont work by itself since I don't know
how you reference
DataEntry0._UpdateDeleteProd1.Form10.FormItem102.HBox103.Button104
in your application.
But what you need to do is call the dispatchEvent function in
the Button104 object with the specific event you want to trigger.

Similar Messages

  • How to set event trace in 10g

    Hi,
    How to set event in oracle 10g, its 11i apps.
    Support says that we have to set
    To help confirm the analysis if related to\bug can you put in an errorstack forever
    on 1426 and 6502.
    eg: event="1426 trace name errorstack forever, level 3"
    event="6502 trace name errorstack forever, level 3"
    Also immediately after the error see if you can run below statement:"
    Do i need set this event parameters in init.SID.ora, Please let me know

    Danny,
    It depends on the level of trace you want to enable. Also, please note you can set the same at the session level, so it depends on what issue you have. If this is a database generic issue, then set it in the init.ora file and bounce the database. If it is a client/session issue, set it at the session level -- See Note: 218105.1
    Since the support suggested something specific, then just follow their suggestion.
    Regards,
    Hussein

  • How to get event.target/event.currentTarget for HTML-5 canvas for click handler

    Hi,
    I hope everyone is doing great.
    I belong to Actionscript background and just started on Flash CC HTML-5 canvas.
    How to get event.target or event.currentTarget in Flash CC for HTML-5 canvas for click event.
    Like we used to do it in AS 3.0
    btn.addEventListener(MouseEvent.CLICK , go);
    function go(evt:MouseEvent){
       trace(" evt - "+evt.currentTarget); // It will let us know the clicked target
    For  HTML-5
    btn.addEventListener('click' , go.bind(this));
    function go(evt){
       console.log(" evt - "+evt.????t); // what is the correct syntax here?
    Thanks,

    Hey guys found the answer from stackoverflow
    it is - evt.target

  • How to set the target directory from source filename using adaptor module.

    Hi,
    How im using a logical bypass scenario.I have to set the target directory using the sorce filename.There is no chance of using a Java UDF as my scenario does not have a Mapping(as it is a Bypass Scenario).The only option that i got is to use a Adaptor module.Can anyone help  me this.
    Thanks,
    Bhargav

    Hi,
    See this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/61e1407e858031e10000000a1550b0/content.htm
    hope it helps.
    Regards,
    Akshay Jamgaonkar.
    Reward points if find useful.

  • How to check event.target type in "if" statement

    Hi, i have "roll over" event listener and i would like to that works only with MovieClips (without textfields etc.). I would like to write something like that:
    if(event.target == MovieClip){ do something }
    else { do something else}
    This doesn`t work properly.
    How to check type of event.target in "if" statement?
    Thanks for any help.


    if(getQualifiedClassName(event.target) == "flash.display::MovieClip"){ do something }
    else { do something else}
     .

  • How to set event 44410?

    Hello,
    Acording to Metalink Note 4277241.8:
    xmlagg() with a GROUP BY can fail with ORA-22813 if the result is too large.
    This is normal and expected as there is a hard coded limit on the result
    size BUT this fix allows event 44410 to be set which uses a different method
    to evaluate the XMLAGG(). The event is disabled by default.
    But it doesn't say how to set that event.
    I was trying with ALTER SESSION SET EVENTS '44410 ...' but I'm not sure if this is the right way (and what are other parameters).
    Thanks,
    Hrvoje.

    alter session set events '44410 trace name context forever, level 8'
    Trace levels
    0 - no statistics
    1 - basic statistics CURSOR, PARSE, EXEC, FETCH ERROR, SORT UMAP, ERROR, UMAP, STATS and XCTEND. This is the same as setting sql_trace=true.
    2 - same as level 1, do not know why they have this one.
    4 - same as level 1 except adds BIND section
    8 - same as level 1 except with wait events.
    12 - combines all levels 4 and 8.

  • How to set the target property of hyperlink through formula

    Hi guyz,
    I have a problem in setting the target property of hyperlink field. I'm using CR XI R2 with asp.net.
    I want to set the target property of hyperlink as one of the frame on my webform. how can i do it through formula in crystal report.
    I want to set it through CR because i don't have any way to identify the link fields uniquely. these link fields are generated dynamically from data base. I have some other links on my webform. If i try to get all links through javascript and change the target property it may effect some other functionalities, so i'm avoiding using javascript to set the target property of hyperlinks.
    your help will be highly appreciated.
    Thanks in advance
    Deepak

    You may want to look at the HyperlinkTarget property of the CrystalReportViewer.  If you want all hyperlinks in the report to go to that frame, it should work for you.

  • How to set a target for iView?

    Hi,
    I am facing a critical situation. I have created a page with narrow:wide layout and in the left hand side panel and displaying a JSP page which is with the URL links(<a href=...>..</a>). My requirement is when i click the link in the left hand side panel the page should be displayed in the right hand side panel iView. Now I am doing this by setting the target attribute of the <a> tag, but this is not recommended as i have to change code when ever i change the target. So i am looking for an option where i can set the target option for the iView.PLease help me.
    Thanks in advance.
    Ashok Chava

    Hi Ashok,
    I think you can use EPCF in you case.
    Refer the following link
    http://help.sap.com/saphelp_erp2004/helpdata/en/ce/3e98408d953154e10000000a1550b0/frameset.htm
    Do revert if you have any more doubts.
    Regards
    Rajeev.
    Do award points for helpful answers in SDN

  • How to set event handler in af:inputText  adf faces component.

    Hi,
    I am using ADF Faces components for my application.
    I want to capture the onchange event of a text box on the server side.For this what should I do. How do I register an event handler for this.
    In the documentation of the CoreTags of the ADF for onFocus it is stated as below.Will this help me in any manner ?
    onfocus String the event handler for when the element receives focus.
    Please help me.
    Regards
    Uma

    Uma,
    - set autosubmit to true
    - set a value change listener in the managed bean
    Frank

  • How to set event handler dynamically?

    Hi all,
    Usually, we add event listener like this:
    myCanvas.addEventListener("click", onClick)
    How can I set the second parameter so that I can add click handler dynamically?
    For example, I have functions clickHandler1, clickHandler2, ...
    And another variable fname: String will contains value1, value2, ...
    Thanks and regards,

    You could do something like this:
    public function firstFunction():void
         trace("First Function");
    public function secondFunction():void
         trace("Second Function");
    public function callFunctionByName(name:String):void
         this[name]();
    public function addEventHandlerByName(handlerName:String):void
         this.addEventListener(Event.ENTER_FRAME, this[handlerName]);
    this.callFunctionByName("firstFunction"); //traces 'First Function'
    this.callFunctionByName("secondFunction"); //traces 'Second Function'
    Let me know if that works for you.

  • How to set the target frame of a JSTree node ?

    Having a populated JSTree Webbean on my page, it uses a _self target for the opens and closes of the tree.
    But how do I point out to the control that a viewobject.jsp has to appear in the main window ?
    Thanks in advance for your help !
    Andreas
    null

    I have created a subclass of DefaultMutableTreeNode, I just have one question with my Default Constructor, is it correct? Suppose to be it should be super(Object userObject ,boolean allowChildren)?
    But when I do that it does not compile.
    Please correct me if I am wrong. I suspect my contructor inside code super() is not enough the parameters got lost. (btw) i will give you the dukes, please just verify my code.
    Thanks.
    class MyDefaultMutableTreeNode extends DefaultMutableTreeNode{
    public String caption="";
    public MyDefaultMutableTreeNode(Object userObject ,boolean allowChildren){
    super();
    public void setCaptionString(String str){
    caption = str;
    public String toString(){
    return caption;
    }

  • How to set event name with a apple script

    I use a script to import my photos in iphoto. It's a action folder script.
    This script automatically create albums with the folder's names.
    With the latest version of iphoto and ranking per event, I can not initialize the name events with the names of albums.

    The device has to be set up with the same Wi-Fi network that the iOS device is connected to. The printer cannot be physically connected to the computer. Then select something to print in the iOS device and it will look for a printer and should select yours. See this support document for more help. http://www.apple.com/support/iphone/assistant/airprint/

  • How to get event target?

    I've registered the following Hide event: 
    app.notifiers.add("Hd  ", ...file path);
    Now, how can get object that triggered the event?  [app.active document.activeLayer]  only give me the 'selected' layer.  This obviously does not work in a scenario where the user hides a layer that is not selected.
    I would appreciate any help!

    Action Manager does not have direct access to objects in the Object Model. It has it's own classes and object. Sometimes there can be a more direct access than by name. If the event descriptor had the layer index or ID you could use that instead of the name.
    Sorry, when I threw this together for you I only tested hidding layers that were not the activeLayer. I don't think the reason the alert is empty is because the top layer was hidden. I think it's because the activeLayer was hidden so the actionReference is different.
    Try this( seems to work for me with both )
    try {
        if (arguments.length >= 2) {
        var desc = arguments[0];
        var event = arguments[1];
        // make sure it's the hide event
        if (event == charIDToTypeID('Hd  ')) {
            // get the list of what was hidden
            var list = desc.getList(charIDToTypeID('null'));
            // get the actionReferences from the list
            var ref = list.getReference(0);
            var psClass = ref.getDesiredClass();
            // make sure it was a layer that was hidded
            if(psClass == charIDToTypeID('Lyr ')){
                // check to see what is in the reference
                var dataEnum = ref.getForm();
                // should either be an enum if activeLayer
                if(dataEnum == ReferenceFormType.ENUMERATED) {
                        alert(app.activeDocument.activeLayer.name);
                }else{// or the layer name
                    alert(ref.getName());
    } catch (e) {
      alert( "Error: " + e + ":" + e.line );

  • How to set the target of af:commandLink in Oracle ADF faces ( af:menuTabs )

    I try to use tabbedpane component from Oracle ADF...As I found, they stated that only <af:commandLink> can be child of <af:menuTabs>
    I want to press the tab then the result can be show at the bottom of that tab...as same as the jsf demo from SUN.
    <af:menuTabs binding="#{editor.component}">
    <af:commandLink text="Quick-Info" action="#{action.qinfo_page}"
    selected="true" />
    <af:commandLink text="Vertrieb" action="#{action.vertrieb_page}"/>
    <af:commandLink text="Wichtig" action="#{action.wichtig_page}"/>
    <af:commandLink text="Kontakt" action="#{action.kontakt_page}"/>
    <af:commandLink text="Notizen" action="#{action.notizen_page}"/>
    </af:menuTabs>
    Now when i press to each tab, it will redirect to new page as i define (such as the code in welcome.jsf...then it redirect to qinfo.jsf when i press at Quick-Info tab).
    Pleas help me to solve this problem...I need to show the result at that page (area below the tab). Thank you in advance.

    We're sorry, but this isn't supported. One rationale is that it's not generally sufficient to simply reload the target page; you also have to reload the tab control itself to show the new selection. We generally recommend not using frames in this circumstance, instead putting the menuTabs and the content on one page.
    (BTW, "target" isn't really supported on <h:commandLink> either)
    -- Adam Winer (JSF EG member and ADF Faces architect)

  • How can I check and change the system set events trace level?

    Dear all:
    How can I check the system set events trace level? I don't want the alert_log so big.
    Regards
    Terry

    Hi Terry;
    Please check :
    How to determine which system events are currently being set? [ID 845043.1]
    How To List All The Named Events Set For A Database [ID 436036.1]
    How to set EVENTS in the SPFILE [ID 160178.1]
    Also check:
    http://www.dba-oracle.com/t_grid_rac_events_in_Oracle.htm
    http://www.akadia.com/services/ora_events.html
    Hope it helps
    Regard
    Helios

Maybe you are looking for