Event dispatch between two objects not received

Hi,
In my application there are two objects: one is
myAc:ArrayCollection and the second is a mySprite:Sprite. myAC
stores coordinates and other custom fields of the mySprite objects.
I would like the sprite object to dispatch an event to the
array so that when changes are made to the mySprite object the myAC
can update itself.
In the mySprite object I have added the following code to
dispatch the event.
var e:Event = new Event("spriteMove", true);
dispatchEvent(e);
trace("dispatched");
In the myAC object I have set the following listener
this.addEventListener("spriteMove", spriteMoveHandler, true);
private function spriteMoveHandler( event:Event ):void
trace("recd event");
var sp:Object = event.target;
trace(sp.x);
I do not receive the event in the myAC object.
However, when I set a similar thing between the mySprite
object and one of its subobjects viz. myPoint I am able to receive
the event.
Thanks for the help,
Raju

Please do not duplicate your posts. It can be very confusing when two different persons answer the post in different ways.

Similar Messages

  • Additional data on relationship between two objects

    Hi
    We have a requirement to capture additional data on a relationship between two objects.  The data to be captured are custom fields that are unique to the relationship between the objects and not specific to either of the objects.
    We created a new object type and related it to the position (S)and the job (C) object.  In the customising (Personnel Management/Personnel Development/Basic Settings/Maintain Relationships there is an option to set up Additional Data.  There are however several restrictions (e.g. the substructure has to be in T77AD).  When you set up an existing substructure (e.g. PAD22) and screen (e.g. 3000), it works really well, however we have not been able to get this to read our own substructure and screen (since there is no customer include on HRP1001 and the 'Additional data' button seems to go to MP100100 to find the screen).
    My question is two fold:
    a) Is this an allowed customisation (e.g. can we create our own substructure, screen and Query string)? And if so, how does the data get into T77AD (since SAP recommends that data should not be added to this table)? and
    b) Is there any documentation on this (thus far I have only received info on how to enhance infotypes which I don't think is relevant???)?
    If this can not be maintained is there any other suggestions on how to deal with this scenario?
    Any assistance will be appreciated.
    Regards
    Liezl

    Hi everyone
    Thanks for everyone who tried to assist us with this.  I am happy to report that our in-house guru's have found the answer.  So, for anyone who is interested:
    In programme MP100100 you have a screen 6000 which is a customer enhancements screen.  We set up two in-house function modules for the PBO and PAI with its own screen and added an append structure to PAD31 to add the fields required.  In the configuration, we then specified PAD31 as the substructure with screen 6000 and then also specified our own PBO and PAI function modules.  The parameters required for screen 6000 is set up within our own customer screens.
    Hope this will be helpful to someone - it certainly seemed to open up some doors for us!
    Regards
    Liezl

  • More space between two objects (using twitter bootstrap 3)

    I have two specific objects on my website and they are to close together. I would like to know if there is a way to push the a bit farther apart from eachother. They are in the same row. I was told to increase container width but i am not sure how to do this. The two objects are the image slider and the picture. Also, how would i push that row down. It's to close to the navbar.
    My code:
    <div class="container">
            <div class="row">
                    <div class="col-xs-9">
                            <ul class="bxslider">
                                    <li><img src="img/Day1.jpg" width="980" height="280"/></li>
      <li><img src="img/Day1.jpg" width="980" height="280"/></li>
      <li><img src="img/Day1.jpg" width="980" height="280"/></li>
      <li><img src="img/Day1.jpg" width="980" height="280"/></li>
                            </ul>
                    </div>
                    <div class="col-xs-3">
                            <div class="imagess"> <img src="http://rootforsite.azurewebsites.net/img/pic.jpg" class="img-responsive center-block"  /> </div>
                    </div>
            </div>
      <iframe width="640" height="360" src="http://www.youtube.com/embed/mb6SNytt5YI" frameborder="0" allowfullscreen></iframe>
    </div>
    My Website : http://rootforsite.azurewebsites.net/
    -Thanks

    Please do not duplicate your posts. It can be very confusing when two different persons answer the post in different ways.

  • Distance between two objects

    Hi folks,
    Who knows how I can discover the distance between two selected objects without using neither guides nor grids?
    Thanks.

    How do imagine this would working without using guides or grids? The way I normally do it is:
    1. Drag out a guide to point A
    2. Drag out a guide to point B
    3. Hold shift and put the mouse cursoe between the two -- it shows you the distance
    You could also use the measuring tool (click and hold the rectangle tool in the tool pallette.)
    Or even just draw a rectangle and look at the width in the property panel. That's a fast and easy method I use sometimes.
    Aaron Beall
    http://fireworks.abeall.com

  • Angle between two objects approximated as lines

    Hi there,
    I have NI Vision and have been wondering the best way to get the angle of two objects that has been approximated by a line (say using edge detection). I have attached one frame of the avi file for your perusal. The scene is changing from frame to frame where the objects are constantly being shifted and rotated. I can track either the small object or the big object in isolation using pattern matching algorithms but the issue lies in moving the edge detection rake from frame to frame for two objects in a single trial. Please advise.
    Cheers, B.
    Attachments:
    example.jpg ‏20 KB

    Hi,
    You can do this in several ways. The straight forward way would be to use the trigonometric funtions. If you filter the image you are acquiring to get the co-ordinates of the edges of the stick and also the refence to ground, as shown in the image attached, you can use the known values to calculate the angle the stick is aligned to ground.
    Here, treat the picture as a 2D image, get the x,y co-ordinates of the point of interception (C) and the co-ordinates of a point in your stick (A). The difference in value of y between A and ground is your "p" and the difference in value of x between C and x value of the point (A) is your "b". Use the supplied equation to work out the angle as shown in image.
    This should get you started and hope it helps.
    Regards,
    CLA | LabVIEW 7.1... 2013
    www.renishaw.com
    Attachments:
    triangle1.JPG ‏12 KB

  • ___How do I calculate scale between two objects (without ArtDirector Toolkit)?

    Normally I'd use ArtDirector Toolkit, but I can't install it or oter software right now (too long to explain why).
    Anyway I have several elements to scale, and I'm trying to find a formula/calculation to determine scale.
    Example - 1 object is 3.7486" and I want to make it 5.3231" - how do I calculate the scale percentage to enlarge it?
    I know you smart forum folk can help!
    Thanks!

    142.00234754308275 %
    Hugh Betcha wrote: Normally I'd use ArtDirector Toolkit, but I can't install it or oter software right now (too long to explain why).
    Alternatively, you could Google "scale percentage between two numbers" - yields plenty of free info/calculators

  • Using event for communicating two object ?

    hi,
    i have two kinds of object, an producer and a consummator, i want to make them communicating with event.
    when the producer have information to send, it wrapped within an event an send it to the consummator, do you have some documentation how to do
    that, or samples
    thanks for your help

    If you are using your own event types you ould use the listener pattern. make an interface class that defines the listener type:
    public interface MyEventListener {
    public void handleEvent(MyEventType evt);
    then make the receiving class implement this inteface.
    now make the send class have methods for adding listeners:
    public class Sender {
    public void addListener(MyEventListener l) {
    //add to listener list
    public void sendEvent(MyEvent evt) {
    //loop thought listener list calling handleEvent(evt);
    }

  • Can I switch my phone number between two lines(not just between phones)?

    I have 4 months left on my current plan. I would like to take advantage of current holiday sales to get the droid razr for cheap. I am considering adding an additional line to my plan to get the upgrade. The problem with this is that I either have to use the new number and let my other contract end or continue on with my current number and pay for 2 lines for the next 2 years. I noticed that verizon lets you switch the phone number that is associated with your line. Would I be able to add an additional line to my plan and then switch the numbers between these two lines? Essential line A has number A and ends in 4 months, line B has number B and ends in 20 months, and I want to make it so that line B has number A and then only pay for line A for the next 4 months. Is this possible?

    Verizon does not allow you to switch numbers since they are tied to your contact. However, there's a work around, because Verizon does allow you to port a number from another carrier to overwrite the existing number without changing your contract. So here's what you need to do:
    1. Get the Razr cheap like you wanted on a secondary line;
    2. Wait for 4 months so your main line contract is up;
    3. Port out your main line number to another carrier, for example, Pageplus;
    4. Wait till your bill cycle is passed and port that number from Pageplus to Verizon, overwrite the number on secondary line.
    After step 4 you will have your main number back on the line with the Razr.

  • Drag and drop between two object oriented grid ALV

    Hello,
    I am using two alv to display two different reports in the same screen. I need to drag and drop a field from one ALV to another in order to do some processing.
    Thanks in advance for your help

    just define the cl_dragdrop objects as attributes for both grid controls, a container for the data to be dragged and the handlers for ongetflavor and ondrag event. set the flavor_select, drag, drop, drop_complete handlers.
    Regards,
    Clemens

  • Outer join between two Contexts not working

    Hi,
    I have two contexts. A Context and B Context. To define hierachy or to show the both contexts data in single table/report in Web-I, i joined main tables of both contexts with a join. In those main two tables i want to show the table1 data irrespective of corresponding data exist in second table.
    To solve that i tried LEFT/RIGHT outer joins but nothing solved my prob. Because of those were in different context, I suppose. But it's not the same case when i work within a context (Single).
    Hope you got my prob now...!! Please help me out...
    Thank You!!

    Thanks Rohit for your reply.
    Nope, i can't cpntinue without having that join between those two tables. It must be there to get the exact results.
    It's not the prob of using Merged Dimensions... those are useful for another purpose. In my case those two Dimensions have different sets of data and have relation between those two.
    Like:
    Tab-1------Tab2
    Prod1------Cat1
    Prod1------Cat2
    Prod2------Cat3
    Prod3------Cat4
    Prod4------(NULL)
    As per requirement i should show the row for empty, in my ex it's in Prod4.
    If i use two SQL's prob:
    I can't relate those two and which have relation more over interdependent. Shows data as two separate tables in report.
    If i use multiple dataproviders:
    Prob Tab2 is has other joins with other tables to complete the project hierarchy.
    Hope you got it...
    Thank You!!

  • Most elegant way to get difference between two tables - not minus!!!

    Hi,
    Simplified example of what I am trying to achieve - I have two tables ORIGINAL and REVISED.
    My desired result is to compare the two, such that; -
    Where data exists in both tables I get the difference between the Budget column, and if there is no difference then I want no rows.
    Where data exists in ORIGINAL but not in revised I want the inverse of the current value of the Budget column.
    Where data exists in REVISED I want the value from REVISED.
    I can see how I can do this, cf below, but is there a more elegant solution??
    Data for table ORIGINAL
    select '801040' entity, '2186' expense_type, 234000 budget
    from dual
    union all
    select '801040' entity, '3001' expense_type, 1000 budget
    from dual
    union all
    select '801040' entity, 'P132' expense_type, 34000 budget
    from dual
    union all
    select '801040' entity, 'P135' expense_type, 43000 budget
    from dualData for table REVISED
    select '801040' entity, '2186' expense_type, 235000 budget
    from dual
    union all
    select '801040' entity, 'P132' expense_type, 34000 budget
    from dual
    union all
    select '801040' entity, 'P139' expense_type, 56000 budget
    from dualDesired output
    ENTITY EXPENSE_TYPE DIFFERENCE
    801040 2186 1000
    801040 3001 -1000
    801040 P135 -43000
    801040 P139 56000
    5 rows selected.
    Current code to achieve this, is there a better way??
    select original.entity
    ,      original.expense_type
    ,       (nvl(revised.budget,0) - original.budget) as difference
    from   original
    ,      revised
    where  original.entity = revised.entity(+)
    and    original.expense_type = revised.expense_type(+)
    and   (nvl(revised.budget,0) - original.budget) != 0
    union all
    select  revised.entity
    ,       revised.expense_type
    ,       revised.budget as difference
    from   revised
    where  not exists
    (select 'x'
    from   original
    where  original.entity = revised.entity
    and    original.expense_type = revised.expense_type)
    and    revised.budget != 0Many thanks for your input,
    Robert.
    Edited by: Robert Angel on 17-Jan-2012 03:31 to change not equals to != - thanks for heads up

    Use full outer join:
    with original as (
                      select '801040' entity, '2186' expense_type, 234000 budget from dual union all
                      select '801040' entity, '3001' expense_type, 1000 budget from dual union all
                      select '801040' entity, 'P132' expense_type, 34000 budget from dual union all
                      select '801040' entity, 'P135' expense_type, 43000 budget from dual
          revised as (
                      select '801040' entity, '2186' expense_type, 235000 budget from dual union all
                      select '801040' entity, 'P132' expense_type, 34000 budget from dual union all
                      select '801040' entity, 'P139' expense_type, 56000 budget from dual
    select  nvl(o.entity,r.entity) entity,
            nvl(o.expense_type,r.expense_type) expense_type,
            nvl(r.budget,0) - nvl(o.budget,0) budget
      from      original o
            full join
                revised r
              on (
                      r.entity = o.entity
                  and
                      r.expense_type = o.expense_type
      where nvl(r.budget,0) - nvl(o.budget,0) != 0
    ENTITY     EXPE         BUDGET
    801040     2186           1000
    801040     3001          -1000
    801040     P135         -43000
    801040     P139          56000
    SQL> SY.

  • How to get the distance between two object!!!

    I have two GEOM object and want to know the distance between them, may u give me some solution to find the distance between them.

    Hi!,
    SDO_GEOM.SDO_DISTANCE
    see: http://www.oracle.com/technology/documentation/spatial.html
    regards, Andreas

  • Swap colors between two objects

    Hello , How do I swap colors between these two in Photoshop Elements 12
    Thank you very Much
    [email protected]

    wasserluft wrote:
    Hello , How do I swap colors between these two in Photoshop Elements 12
    Thank you very Much
    [email protected]
    Open picture file
    Duplicated background layer
    With eyedropper tool, sample the color of the dark gear. This will be the foreground color
    Shut off visibility of the background layer by clicking on its eye icon
    Working on the background copy layer, use the magic wand tool to delete the white background. Tolerance 32, with "contiguous" checked worked well for me. You should see the 2 gears surrounded by transparency.
    Duplicate the layer from step #5
    On this layer, use the eraser tool to get rid of the small gear. You will be left with the large gear. Press CTRL+left click the layer thumbnail of this layer (not the name). You should see "marching ants" surrounding the large gear. Go to Edit>fill selection>use foreground color
    Go back to the background layer, and with the eyedropper tool sample the original color of the large gear
    Repeat this process on the middle layer to fill the small gear with the foreground color.

  • Share itunes library between two comp. not on a network

    I have a mac and a large itunes library, but I spend a lot of time at my boyfriend's place and he has a windows with XP. So I was wondering is there anyway to share my library over the internet to his computer. He has dsl and I am on broadband, so I thought I could dial into his network, but he doesn't have a fixed IP address. Any ideas?

    If he doesnt have a fized IP adress, then you cant, but here are some other solutions
    If you have an iPod, then I can easily instruct you on how you can transfer the files.
    If not, then...
    For more inexpensive solution (recommended), burn up to 750 MB of files onto each blank CD (which you can buy cheap at any computer/ electronic store) saving the files on the CD's as a data disk at prompt. Use as many CD's as needed.
    For expensive solution. Buy an external Hard Drive (price varies based on HD sized) and connect it to your Mac via firewire/ USB (whatever type of chord that comes with your external HD). Then transfer all the files you want to transfer into the HD. Then bring the HD to his XP and connect again. Then upload the files onto his XP.
    PS: An external HD can be useful later if you want back up all your files on both of the computers in the event of a crash...
    Comment Back

  • Maintain distance between two objects

    hi evryone,
    i am trying to develop a simple car game, and to do that i have to maintain the distance between the two wheels.
    for the collision detection i have used coreyoneil class, which i think is excellent. i cant get the distances to go smoothly. and basically i am finding it hard to get the physics to work. if anyone has an idea what i should do, or has a good example it would be greatly appreaciated.
    i have attached the swf and fla for you to see.
    thanks.

    Basically you can put them together in a sprite, or you might even thing of using box2d or quickbox2d.
    if that doesn't work with your setup then you might have  a look in here:
    http://www.gotoandplay.it/_articles/2004/12/inverseKinematics.php

Maybe you are looking for

  • My mac and internet explorer

    Hi. I am a new mac user and I have this one problem than I am hoping someone might have an answer for. I need to do some training online for work but the website I need to use only supports internet explorer. Now my mac I safari, but I also have fire

  • How to send pages brochure as an email

    I made a really nice Pages brochure and now I want to send it to clients in an email.  I'd rather not have it there as a file... I'd rather they get the email and see the beautiful brochure, right there in the email.  Is there a way to do this?  I tr

  • Can't start a project

    I can't start a new project, in fact there's not much i can do upon opening it, becasue almost everything is in grey. I can't even import movies. I tried to do the steps to delete: com.apple.iMovieApp.plist, but that's not in my library folder. ANY s

  • HT5567 download ios 5 to my ipad 2.......

    I have a ipad 2 with 4.3.3and want to go to ios 5.............  how

  • Batch sequence from 2 folders

    Hello, I would like to create a code, where I have a sequence of files in a Left folder and a sequence of files in a Right folder. The goal is to open the left image (L_001) and place the right image (R_001) on top, by creating a new layer. Bottom la