Dispaly Object Exclude from Event Flow

Hi!
I m building a little application, im design the graphic in Flash and im using Flash Builder for the Programming Side.
I have 5 MovieClip inside a Sprite (the container), and i want to listen for MOUSE.CLICK.
I add the event listener to the Sprite, instead of one for MovieClip, and its working good like this.
What if inside the Sprite (the container) i have also a TextField and exclude it from the event flow?
Thanks!

Inside flash i have a movieClip, inside this movieClip(the container) i have 5 other movieClip and e text  (look at the picture):
i want to trigger mouse click just on the movie cilip and not on the text.
colorPikerUI.addEventListener(MouseEvent.CLICK,clickPikerListener);
private function clickPikerListener(e:MouseEvent):void{
                for(var i:int=0;i<colorPikerUI.numChildren;i++){
                    colorPikerUI.getChildAt(i).alpha = 1;
                MovieClip(e.target).alpha = .3;
                var indexColor:int = colorPikerUI.getChildIndex(MovieClip(e.target))
               trace (indexColor)
colorPikerUI it's a clip inside the red rectangle!
Thanks!

Similar Messages

  • Flash CS4 - how to create event flow from children to parents?

    In my opinion natural event flow direction is from children
    to its parants.
    E.g. when in dialog box buttons are pressed it is natural to
    inform only
    this dialog box about these actions. When dialog box can't
    handle particular
    event then passes it to its parent and so on .
    Unfortunately this direction is not well supported by Flash.
    To achieve
    support for this event direction it is necessary to call
    parent.dispatchEvent() with bubbling option off. This
    solution is
    inconvenient because sometimes I can't predict what event
    types will be
    triggered inside dialog components. Most likely there is no
    function to
    catch all events which have no defined handlers in dialog in
    order to be
    possible to pass them one level higher.
    Have you got any experience with building communication model
    between
    objects in Flash applications?
    Regards,
    Marek

    XML shema is basically an XML file. So u need to know how to create an XML,
    provided u know how the shema file should be.
    Creating an XML :
    http://forum.java.sun.com/thread.jspa?threadID=5181031&messageID=9705786#9705786

  • Exclude from layout

    Is it possible to Exclude from layout field's when you print a form?
    Thanks

    Hi,
    I think you are looking for the two remaining subforms to take up the space of the one which is excluded from the layout.
    This can be done, but:
    the form must be saved as dynamic;
    The containing subform must be set to flowed (the three internal subforms can be positioned subforms);
    Use hidden instead of invisible, as hidden hides the object but also makes the space available for other objects to take up in a flowed subform.
    Select the subform that you want to exclude and in the prePrint event this javascript should work:
    this.presence = "hidden"; // this will exclude the subform and make the space available for the third subform to take up
    In the postPrint:
    this.presence = "visible";
    You can leave the presence in the Object/Field tab to visible and leave it up to the script to control on prePrint and postPrint.
    Good luck,
    Niall

  • Help regarding event flow/event listening best practices

    Hi, I'm making a flash memory card game to learn more about
    to actionscript.
    I have:
    - a main class that loads on start. This class instantiates
    a:
    - CardLoader class that imports graphical assets and uses
    these to create all my cards:
    - Card class that represents individual card. Can dispatch
    CardEvent when clicked:
    - CardEvent contains info on the Card that dispatched it,
    such as the cards ID number and the ID of it's matching card.
    What I want to do is to have another object to act as a game
    logic handler.
    Example:
    - Card 1 was clicked, dispatches CardEvent that ends up with
    the LogicHandler.
    - Card 2 was clicked and also dispatches event.
    LogicHandler compares these two cards and does the
    appropriate thing depending on they being a match or not.
    Now, the big questions is, how do I get this event to the
    LogicHandler?
    My custom CardEvent has it's bubbles property set to true.
    So, I can manage to get such an event all the way back to my main
    class, in this order: CardEvent > Card > CardLoader >
    Main.
    The problem arises when I want to have my LogicHandler class
    created by Main. When my CardEvent bubbles back, it does not go
    through this LogicHandler since it is not part of the event flow on
    it's way back.
    Questions: How do I, following the best possible programming
    practises, send the event the way I want it to go?
    I can only think of one solution myself, being that inside my
    Main method I set up an eventlistener that listens for this event
    and passes it on downwards, in this case to the LogicHandler. Sure,
    it's only a few lines of code in the main method, but what if you
    have 50 different events in a larger project that needs the same
    treatment?
    Your main method will be a mess by then!
    How would you do it?

    Ok let me see if I get this straight:
    In my example, I would have to pass a reference of the
    LogicHandler to my Card class.
    In my Card class, I have something like:
    logicHandler.addDispatcher(this);
    this being the Card of course.
    Inside LogicHandler class I have the addDispatcher method
    that calls the addEventListener method.
    So far so good?
    The addDispatcher method adds an eventlistener to the Card
    object, from what I can tell. But it does it inside the
    LogicHandler, thus the method that is called by the
    addEventListener can be inside the LogicHandler?
    To put it in other words, what's confusing me is that the
    Listener object adds an EventListener to the dispatching object.
    Logically for me the listener should add a listener to itself?
    The way I first did it in my Card class was:
    testevent = new CardEvent(CardEvent.CLICK);
    dispatchEvent(testevent);
    And then set up the EventListener in the object that I wanted
    to receive the event.
    I'm sorry I don't understand this, despite your obviously
    good explanations (I think I understand a lot more now, just not
    the best approach). I will look into the callback functions, sounds
    a lot interesting as well

  • Call Custom Service from Event Receiver as Current User

    Hello,
    i bang my head on this problem for days now:
    My custom web service hosted in Sharepoint 2013 needs to know the logged on user name. I used to have a self-written impersonation in my service client before, but with switching to claims authentication this should be obsolete.
    So within my service i decode the user from
    IClaimsPrincipal icp = Thread.CurrentPrincipal as IClaimsPrincipal;
    IClaimsIdentity ci = (IClaimsIdentity)icp.Identity;
    String User = ci.ToString();
    This works well when i call the service from a custom aspx page.
    It utterly fails when i call the service from a List Item Event Receiver. The User always is the Application Pool Account.
    This is the Client code to open the Channel:
    private void SetChannelFactory(
    MyServiceApplicationProxy proxy,
    Uri address)
    if (null == proxy)
    throw new ArgumentNullException("proxy");
    if (null == address)
    throw new ArgumentNullException("address");
    // Check for a cached channel factory
    string endpointConfigurationName = GetEndpointConfigurationName(address);// Get the endpoint configuration name
    if ((null == s_ChannelFactory) || (endpointConfigurationName != m_EndpointConfigurationName))
    lock (s_ChannelFactoryLock)
    if ((null == s_ChannelFactory) || (endpointConfigurationName != m_EndpointConfigurationName))
    // Create a channel factory without specifying an endpoint address
    // so it can be cached and used for multiple endpoint addresses
    s_ChannelFactory = new ConfigurationChannelFactory<IMyServiceContract>(
    endpointConfigurationName, proxy.Configuration, null);
    // Configure the channel factory for claims-based authentication
    s_ChannelFactory.ConfigureCredentials(SPServiceAuthenticationMode.Claims);
    foreach (var operation in s_ChannelFactory.Endpoint.Contract.Operations)
    DataContractSerializerOperationBehavior behavior = operation.Behaviors.Find<DataContractSerializerOperationBehavior>() as DataContractSerializerOperationBehavior;
    if (behavior != null)
    behavior.MaxItemsInObjectGraph = 2147483647;
    // Store the current endpoint configuration name.
    m_EndpointConfigurationName = endpointConfigurationName;
    private IMyServiceContract GetChannel(
    MyServiceApplicationProxy proxy,
    Uri address)
    //Create Channelfactory
    SetChannelFactory(proxy, address);
    // Create a channel from the channel factory.
    return s_ChannelFactory.CreateChannelActingAsLoggedOnUser(new EndpointAddress(address));
    All research pointed out that "CreateChannelActingAsLoggedOnUser" would pass the current user (which is correctly identified within the event receiver!) to the service, but it doesn't work for my event receiver...
    Any advice on this would be great!
    With kind regards,
    Joachim

    You should be able to get the current user id from the SPListItemEventProperties object. From here you should be able to create a Claim. For example get the user by using
    user = SPWeb.Users.GetByID(properties.CurrentUserId)
    SPClaim claim = SPClaimProviderManager.CreateUserClaim(user.email, SPOriginalIssuerType.TrustedProvider, issuerIdentifier);
    https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.claims.spclaimprovidermanager.createuserclaim(v=office.14).aspx
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Approval task SP09: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'

    Hi everyone,
    I just installed SP09 and i was testing the solution. And I found a problem with the approvals tasks.
    I configured a simple ROLE approval task for validate add event. And when the runtime executes the task, the dispatcher log shows a error:
    ERROR: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'
    And the notifications configured on approval task does not start either.
    The approval goes to the ToDO tab of the approver, but when approved, also the ROLE stays in "Pending" State.
    I downgraded the Runtime components to SP08 to test, and the approvals tasks works correctly.
    Has anyone passed trough this situation in SP09?
    I think there is an issue with the runtime components delivered with this initial package of SP09.
    Suggestions?

    Hi Kelvin,2016081
    The issue is caused by a program error in the Dispatcher component. A fix will be provided in Identity Management SP9 Patch 2 for the Runtime component. I expect the patch will be delivered within a week or two.
    For more info about the issue and the patch please refer to SAPNote 2016081.
    @Michael Penn - I might be able to assist if you provide the ticket number
    Cheers,
    Kristiyan
    IdM Development

  • SAP HR Org. Structure excluded from integration to SRM

    We have not set up the automatic integration of HR org changes into SRM organization (report RBDMIDOC, message type: HRMD_ABA).
    In SAP HR some new org units with its positions and employees will be assigned.
    We would like to exclude this new part of HR Organization Structure from
    integration to SRM. In the transaction BD64 we can filtrer object type,
    subtype, infotype and relationship but this is not sufficient for us.
    ¿How could we exclude from copying to SRM a whole part of the organizatonal tree, for example excluding a root org. unit (one ID) and all its dependets org. units (evaluation path)?
    Thank you in advance.
    Best regards.

    Hi Malgorzata Kaminska,
    We had similar kind of requirement which we could acheive with
    01)  Write a custom program which calls the standard SAP T-code PFAL or (RHALEINI)
    02)  In the Exit R/3 outbound IDOCs, filter the PERNRs to exclude the list you do not want to.  If the list is static, you can maintain in a custom table one time and in the outbound idoc exit, check an entry exists in the table and exclude the PERNRs.  If the PERNRs are dynamic, then when the PERNR gets created, write another exit to populate in this custom table for PERNRs exclusion.
    03)  The custom program of point 01) will pick all the necessary PERNRs for replication and submit in the PFAL as select single.
    04)  The variant in the PFAL can have an evaluation path as P-S-O and executed under update mode.
    Hope this helps!!!
    DV

  • CREATE OBJECT inside INITIALIZATION event in ABAP

    Hi everyone,
    I have one question, can we create object inside INITIALIZATION event. Why, I am asking this question is, because most of the time I have seen people to create object inside start-of-selection. Please give your thought on this.
    The code I have just coded below is also right or wrong?
    CLASS lcl_build_data DEFINITION.
       PUBLIC SECTION.
         METHODS : constructor,
                            get_all_files,
                             validate_site.
    *-- Private Section declaration
       PRIVATE SECTION.
             METHODS : clear_and_refresh,
                                display_output.
    ENDCLASS.                 
    *** class declaration,  create instance for the class
    DATA: gv_data     TYPE REF TO lcl_build_data.
    INITIALIZATION.
    *** Create class object. Constructor method will be called to Refresh
    *** and Clear all internal tables and Work areas
       CREATE OBJECT gv_data.
    *                    AT SELECTION-SCREEN             *
    AT SELECTION-SCREEN ON s_vkbur.
    *** Sales Office validation
       CALL METHOD gv_data->validate_site.
    *                START-OF-SELECTION                    *
    START-OF-SELECTION.
    *** Get the list of all files from unix dir.
       CALL METHOD gv_data->get_all_files.

    Since you are using the same object for your Selection screen related events, AT SELECTION-SCREEN, you would have to instantiate the object in the INITIALIZATION event. If your object usage is just for the data - In case you use the MVC design pattern, you should push back the object creation in START-OF-SELECTION.
    Regards,
    Naimesh Patel

  • Still searchable after "Excluded from Content Search"

    Hi,
    I have a problem with the content search right. I want to hide the report object but i still grant access to it. I have created a folder to hold it, where the folder with no access right , only the object itself got access right. The user now cannot see the folder nor the object but able to search from content search.
    I tried to put it into exclude from content search and run the indexing program, however it is still searchable. Anything goes wrong or is there any other solution?
    Thanks a lot.
    Charing

    I do not know of a way to exclude a certain search attribute. Hence the name "search attribute".
    Are you using a custom UI or the SES out of the box search? Also, how much data are you indexing?
    Here are a few possible workarounds...
    1. If your indexed data will fit in a VARCHAR2 4000 and you are using a custom UI with a simple FT search, you could create a single SEARCH column and under the covers, perform an attribute-based searc using just this column. Not the cleanest solution but this would work.
    2. Append a certain # of characters before the value. For example, if the "organization" value is "oracle" append some random numeric before it such as "123abcoracle". Then in the UI or XLST, parse off the first 6 chars (or however many chars you choose to prepend) and you have your value. Of course, this assumes the chances of someone searching on "123abcoracle" are infinitesimally small. Again, not that pretty but it should work.
    Hope this helps!

  • Can interfaces be excluded from AVC checking by custom activity type?

    Certain interfaces with specific document types need to be excluded from the availability control checks. Can this be done via the derivation strategy for control object? If so, how?

    Hi,
    You need to use a special BADI for Account Assignment Derivation of AVC Ledger - FMAVC_DERI_AFMA
    The methods of this BAdI are called in function module FMAVC_CALL_DERIVATION_ACO, immediately before or after deriving an availability control object.
    Good luck,
    Elena

  • Entity Object Publish/Subscribe Events Wizard

    Hi,
    I'm interested in knowing how exactly works the Entity Objects Publish/Subscribe Events, anybody could help me? Redirecting me to any doc web page, pdf, .... or maybe telling me a little bit more that I can imagine about how it works.
    Thanks in advanced.

    Repost for a better format, sorry...
    I did a quick test on Departments and Employees tables in HR schema.
    1, Added CommissionChangeEvent as published event for Employees entity. Set the new commission value (Number) as parameter. These are the generated methods:
    * Adds <code>l</code> as an event listener for the event CommissionChangeEvent
    public void addCommissionChangeEventListener(JboEventListener l)
    ((EmployeesDefImpl)getDefinitionObject()).addCommissionChangeEventListener(l);
    * Removes <code>l</code> as an event listener for event CommissionChangeEvent
    public void removeCommissionChangeEventListener(JboEventListener l)
    ((EmployeesDefImpl)getDefinitionObject()).removeCommissionChangeEventListener(l);
    * Publishes the event named CommissionChangeEvent
    public void CommissionChangeEvent()
    ((EmployeesDefImpl)getDefinitionObject()).publishCommissionChangeEventEvent(createCommissionChangeEventEventData());
    * Creates event data method for event CommissionChangeEvent
    public JboEventObject createCommissionChangeEventEventData()
    JboEventObject eo = new JboEventObject(this, "CommissionChangeEvent");
    try
    eo.put(new String("CommissionPct"), getAttribute("CommissionPct"));
    catch(Exception ex)
    ex.printStackTrace();
    return eo;
    2, Change setCommissionPct method as this:
    * Sets <code>value</code> as the attribute value for CommissionPct
    public void setCommissionPct(Number value)
    setAttributeInternal(COMMISSIONPCT, value);
    System.out.println("From EmplyeesImpl.java, Commission Pct is being changed. Firing the event...");
    //fire event
    CommissionChangeEvent();
    System.out.println("Event fired from EmplyeesImpl.java on department ID: " + this.getDepartmentId());
    3, Created a method in DepartmentsImpl.java like this:
    public void eventFired(Number theNewPct)
    System.out.println("In departmentsImpl: event fired with param: " + theNewPct + " on department id: " + this.getDepartmentId());
    4, In Entity editor, set enentFired method as to be invoked on event.
    Here's the output when change commission:
    From EmplyeesImpl.java, Commission Pct is being changed. Firing the event...
    In departmentsImpl: event fired with param: 0.5 on department id: 100
    Event fired from EmplyeesImpl.java on department ID: 100
    Looks like this is a nice inter-entity communication mechanism. It can pass paramter and recognize FK link correctly. Not sure whether it can be used to interact with external message queue, though...
    Charles

  • How to call Controller from a Flow Logic Page

    Hii
        I am trying to call a controller from a flow logic page all in the same application.
    I have done this by calling CREATE_CONTROLLER from the flow logic Event .
    This is working fine,but the flow logic page appears even when the Contoller gets called & the controller view gets loaded.
    I want to Navigate to the Controllers  View .I tried this using NAVIGATE->next_page( ).But this is not working
    Regards
    Ajitabh.

    Hi Ajitabh,
    I don't think that is right to call a controller using the flow-logic programing-model. You have to use the MVC programing-model. There it is possible an right to work with controller.
    In flow-logic you just have to use pages you create in your bsp-application. Then you can navigate with the code:
    CASE event_id.
    WHEN 'button1'. navigate->goto_page( 'page2.htm' ).
    ENDCASE.
    The code in your layout should be like this for a button:
    <input type="submit" name="OnInputProcessing(button1)" value="to-page-2">
    Maybe this can help you

  • Final Cut Pro X folders to exclude from backups?

    I'm trying to get to the list of files/folders created by Final Cut to exclude from offsite backup.  Basically, anything extremely large that can be easilly re-generated.    Especially things that Final Cut should regenerate on its own if it is missing.  The reason for excluding is not space, it's the backup speed.  I'm not shipping physical disks back and forth, I'm transferring bytes over network.  I do want to backup my original files, but things that smell like Final Cut will simply regenerate if missing, I want to exclude if they are huge or temporary in nature.
    So far my list contains:
    Final Cut Events/*/Render Files
    Final Cut Events/*/Transcoded Media
    Final Cut Projects/*/Render Files
    These sound like things that Final Cut might easilly regenerate from orginal media files.  Am I right or wrong?  Anything additional to add to this list?
    The reason for this is that while working with Final Cut, it will generate tons of temporary files.  E.g. I have one project where only "Transcoded Media" is on the order of 200GB.  These take days to be transferred to offsite backup, and it's something that Final Cut should easilly regenerate from original media files (will it is another question).  Some of these can be deleted from disk by Final Cut itself (e.g. by selecting Delete Project/Event Render Files, and docs seem to indicate Final Cut will regenerate these if needed, unless I'm wrong here).

    Events: Analysis Files, Backups, Old Verisons
    Project: Backups, Old Versions, Shared Items

  • Close reference from event data node

    When using an event structure, I often times use
    the Control Reference output in the Event Data Node.  Do I need to
    close these references each time the corresponding event fires?  In
    other words, are the reference created from this node unique each time
    that particular case is called?

    The Event Structure does not create duplicate references to the same object if the event case is called multiple times, so you don't have to worry about having dozens of open references. You can actually verify this by type-casting your control reference to an I32 to see the exact 32 bit value (or just probe the refnum). Firing the event case multiple times produces the same reference.
    You really don't need to worry about closing the reference in this case. In general, LabVIEW will figure out that the control references are no longer valid as soon as the VI goes idle, and it will clean them up. Closing references is good practice if you're going to be opening a large number of references (for instance, getting references to all controls on a large Front Panel), and you don't want them all to stay in memory the whole time.
    Jarrod S.
    National Instruments

  • How do I get an activeX object reference from a LabVIEW ActiveXContainer ref?

    How do I get an activeX object reference from a LabVIEW ActiveXContainer ref?
    I'm trying to control an ActiveX object (a Web Browser) from another VI and need to get the object reference programmatically. I can get the LabVIEW ActiveXContainer reference, but am lost on how to get the reference for the object _inside_ the container.

    Hi Lee,
    The reference to the container is actually also accessing the object inside the container. Use the Property Node and Invoke Node to access properties and launch methods for the object. I've attached a small example that passes the reference to a SubVI and invokes a method inside the SubVI.
    - Philip Courtois, Thinkbot Solutions
    Attachments:
    WebContainer.zip ‏21 KB

Maybe you are looking for

  • '11 MBP Loses WiFi constantly

    I have a 17" 2011 MBP w/ Lion (all up to date) I have 2 other laptops, a cheap PC and a 15" '08 MBP. Problem is, throughout the day, my 2011 will tell me I'm not connected to the internet. The icon still shows full signal strengh. When this happens,

  • Error when attempting to install Windows SDK 7.1

    I have not been able to install Windows SDK 7.1 (the machine runs Win 7 Pro x64). The error message shows up in a message box as: "SDKSetup encountered an error: Input string was not in a correct format." By browsing to my %TEMP% directory, I find lo

  • Design Question For Professionals

    Hello, Please can any professional design artist tell me what is the best software for creating crisp and professional looking flyers/posters/leaflets and publications of that sort? Example, once i used Adobe Fireworks to create a flyer design. I sen

  • I can't open the configuration from the mail.

    I can't use the mail because i can't open de configuration from the e-mail. the other configurations works correct. How do i solf this problem?

  • CS3 Color Issue

    I recently started having this issue and have no idea how to reset it or change it. My color scheme or palette or color settings must have changed somehow because everytime I open up a B&W image, Photoshop CS3 actually shows it to me with like a sepi