Calculating X and Y of a child

When i add a child with ActionScript to a Canvas, HBox, or
VBox the X and Y coordinates of the created child relative to it's
parent always returns 0. How can I get the X and Y coordinates
??

Since you are using a Canvas, you must place its children.
Canvas is just an open container allowing you the freedom to place
your components anywhere you like. So when you create the Button,
you have to give it x, y, width, height or else they will all
default to zero.
Your statement: enfant.mouseX has no meaning at this point in
the code because the mouse isn't involved there and the button has
not be realized (drawn on the screen).
Using the updateComplete event is a good idea, though. When
you get that event the button will have been drawn and placed so
its Y coordinate will be valid.
If you do not want to position the children yourself, then
use another container, not Canvas. Use VBox or HBox or Tile.

Similar Messages

  • How to monitor progress of web-service calculation?  And abort it?

    Hello. We're thinking of converting an existing Java radar calculation program into a web-service, so that it can be used by various interested parties. However, calculations can take some time (several minutes) and so we would like the client to be able to both show calculation progress and allow the user to abort the calculation if necessary. It is not obvious to us how to do this with a web-service. Are there any standard approaches to this problem? What's the best way of a client asking the web-service how a calculation is progressing? What's the best way for a client to abort a calculation? Any advice most welcomed.
    Kind regards
    Paul Howland
    NATO C3 Agency
    The Hague

    You can't estimate the duration withour running the gather_database_stats. You can monitor it while it is running. (e.g. count the tables that have got updated statistics based on DBA_TABLES)
    And if you run gather_database_stats, the default behaviour might well be to exclude tables which aren't "stale" while in the imported database the expectation is to gather stats on all tables.
    (Similarly, the behaviour to gather column histograms (method_opt) may differ in an existing database from a newly imported database)
    Hemant K Chitale
    Edited by: Hemant K Chitale on May 14, 2013 10:13 AM

  • Function module for calculating planned and actual cost of production order

    Hi ,
    Do we have any standard function module for calculating planned and actual cost for production order?
    i need to implement this in a Z-report.
    Thanks
    Srini

    Hi,
    try below function module
    CRMCO_GET_PLAN_ACTUAL_COSTS
    CO_IH_GET_PLANNED_COSTS_TOTAL
    Regards,
    Sankaran

  • Calculating opening and closing stocks at a plant (on specific dates)

    Hi,
    I am to develop an ABAP-report. On the selection screen, I'll have plant, material, and a date range (date_1 and date_2). The report should show opening stock on date_1, closing stock on date_2, and then there is more segregation based on movement types (along with both stock-quantity and stock-value). I am stuck at how-to's around calculating opening (and closing) stock on a particular date.
    Secondly, transaction MB5B has 3 options : batch stock, valuated stock, special stock ... One of these options uses table MBEW and other uses table MARD ... Which (all) tables will I need to use so as to get both stock-quantities and stock-values ?
    Please advise. Thank you.
    Regards,

    Hi
    for second question answer is
    you need to consider all batch stock, valuated stock, special stock ... One of these options uses table MBEW and other uses table MARD to get both stock-quantities and stock-values
    hope it helps
    Edited by: ppkk on Dec 10, 2008 10:58 AM

  • How do I delete an LDAP entry and all of its child entries via PL/SQL

    I need to be able to delete (via PL/SQL) an entry and all of its child entries on my OID LDAP Server. None of the the procedures in the provided DBMS_LDAP package seem to bable to do this. For example, the delete_s procedure can only delete entries that are leaf nodes (no children). This will not work for me.
    I realize that I can execute the bulk delete shell script to do this, but this is via the command line, not PL/SQL.
    While I think I could write some PL/SQL code to parse through each entry using the "search_s" procedure and delete them one by one using the "delete_s" procedure, this doesn't seem very efficient. It seems like this should be a fairly common request and Oracle should have already addressed it.

    Sorry, to be clear, it's form fields on a web page that bring up all previously entered information.... I want to deleted some of these individually, but not all

  • Get the  value and pass it to child jsp page

    Hi All,
    I want to get the attribute value from the adf table in my parent jsp page and again send it to the child jsp page.I'm very new to adf.Please any body give me a example for this.Please help me.
    Thanks in advance!

    Sorry......
    I'm using Jdeveloper 11.1.1.5 version.In my adf application i have two jsp pages.One is parent.jspx and another one is child.jspx.In my parent.jspx page i have adf table.Now i want to get the attribute value from adf table which is in parent.jspx page and i want to send that values to the child.jspx page.How can i do this.Please give me the example.
    Thanks!

  • I Can't lock an entity that has "OK" calculation status and "Published" review level

    The problem into the HFM aplication is that I have to lock the actual period but one entity has "OK" calculation status and "Published" review level; when I clic "lock" on the entity, the system send a message "The process Unit cannot be locked if it needs to be calculated, translated, or consolidated"
    Thank you

    Check the Other Value dimensions.  Locks are value specific(So locking Entity Currency doesn't necessarily lock Parent Currency).  Make sure all the value dimensions are at OK status.

  • Alternative calculation type and alternative condition base value

    In pricing procedure what is the difference between alternative calculation type and alternative condition base value?Kindly help

    Hi,
    Please check the forum before you post your questions as this question was answered a number of times earlier.
    Please check the below link which discusses in detail regarding the same.
    [Alt Cal Type and Cond Base Value|Alternative calculation type and alterantive condition base value in pricin;
    Regards,
    Phani Prasad

  • Requirement type, alternative calculation type and alternative base value?

    Hi guys pls can any body experts in pricing
    Can u pls explain requirement type, alternative calculation type and alternative base value?
    Not theory Any of Ur real time experience………

    <b>Requirement:</b>
    It is a routine that is written by an ABAP consultant according to the business requirement.
    By defining Requirement in condition technique we can restrict the access of condition type.
    To understand the concept, we will take the example of the Rebates. Rebates are to be included during the billing document processing and not in the sales document processing. As rebates are given on the delivered quantity and not on the ordered quantity (in case of cut-off period for rebates).
    For rebates we use the condition types BO01 to BO05, and in the Requirement column we give the value 24 which is "Only in Billing Document".
    This Requirement will ensure that these condition types will appear only during the billing document processing.
    If new Requirements are to be defined we follow the procedure given below.
    Go to T.Code: VOFM. - Maintain Requirements & Formulas
    Click on the "Requirements" in the top menu and then click on "pricing".
    We have a list of requirements, we can ask ABAP consultant to create new requirement based on the client requests.
    And we assign the application type like V - Sales/Distribution etc.
    <b>AltCty - Condition formula for alternative calculation type:</b>
    It is again a Routine that is written by ABAP Consultant.
    It is an alternative formula for the condition type that can be used instead of standard formulas.
    For example, let us take the Profit Margin which can be both + / - , so here this routine will help us in generating the value which can be either + or -. Profit margin is not a condition type so it cannot be classified as +ve or -ve in the V/06.
    Ex.: 950 0 Profit Margin 11.
    So we assign 11 - Profit Margin.
    If new routines are to be defined we follow the procedure given below.
    Go to T.Code: VOFM. - Maintain Requirements & Formulas
    Click on the "Formulas" and then on the "Condition Values".
    We have a list of routines, we can ask ABAP consultant to create new routines based on the client requests.
    And we assign the application type.
    <b>AltCBV - Alternative formula for condition base value:</b>
    Formula for determining the condition basis as an alternative to the standard.
    It is again a Routine that is written by ABAP Consultant.
    It is used as a basis to calculate value of the condition type instead of using it from the "FROM" column.
    Ex.: Freight - KF00.
    Freight is calculated based on weight, volume etc. and not on the base price. In pricing there is no entry of weight from which the value can be referred like we do for discounts using base price. We have to get the value from the Material master.
    In this column we can mention the value as 12 - Gross Weight or 13 - Net Weight.
    During pricing, the system will consider the value that is mentioned in this column and determine the freight based on this value.
    Suppose we have Net weight: 100 kgs and Gross Weight: 150 kgs. And if we mention 13 in this column then the Freight condition KF00 will be calculated using the weight as 100 kgs.
    Regards
    AK

  • Alternate calculation type and alternate base value

    hi all,
    please guide me the concept of alternate calculation type and alternate base value

    Hi,
    ALTERNATE CALCULATION TYPE:  
          This  function allows you use a formula as an alternative in finding the value of the  condition type,
    instead of standard condition technique. this can be used to  calculate complex tax structures. 
    ALTERNATE CONDITION BASE VALUE:
          The  alternative condition base value is a formula assigned to a condition type in  order to promote an alternative base value for the calculation of a  value.
    And Refer this link.
    http://sapsdforum.com/2007/09/05/pricing-alternate-calculation-type-alt-condition-base-value-and-requirements/
    Hope it helps you,
    Regards,
    Ravindra.

  • Is there a mobile device for just text and games for a child?

    is there a mobile device for just text and games for a child?

    iPod touch?  That's the only "iPod" that can play games (run apps).  It connects to the Internet over WiFi (not mobile carrier).  It's basically an iPhone without the phone parts.  If you get a used one, earlier models cannot run all the software available to the latest model (include the latest version of iOS).  That may be perfectly OK for a child, but you should look into and understand the imitations of older models, before getting one used or refurbished.  Apple-certified refurb iPod touch is available here
    http://store.apple.com/us/browse/home/specialdeals/ipod
    (The current version of iPod touch is 5th gen.)

  • When we use calculation script and when we use business rule

    when we use calculation script and when we use business rule can anyone please tell me

    Re the OP's question, here is an excellent introduction to Calculation Manager and business rules. It was the first hit when I googled "calculation manager hyperion".
    http://ranzal.wordpress.com/2010/06/11/oracle-hyperion-calc-manager-%E2%80%93-part-1/
    You can also go to odtug.com -- the Tech Resources section has a series of presentations on Calculation Manager, from beginner to intermediate.
    The added benefit with business rules are that you can use variables and runtime prompts. You can also link planning with business rules and pass information from a web form into a business rules.^^^Only with Planning. There are no runtime prompts with Essbase in 11.1.2.2 but I hear it is coming back in 11.1.2.3
    We can use Business Rule for all applications and it is GUI.^^^Doesn't have to be GUI-based. You can (depending on version) flip back and forth between GUI and script. I have not tried writing (nor can I actually think why you would want to do this) a Calc Mgr rule for multiple apps. Maybe you are thinking of a script object that can be called multiple times?
    To check whether a calc script is executed or not you have to use the Essbase application database log file (Plan1.LOG)^^^As business rules are, sooner or later, translated to BSO (and hey, ASO too and HFM and Fusion and HPCM and they can differ, a lot, so this is not always true) calc script language, you can always check in the application log to see what is run if Planning or BSO Essbase.
    Regards,
    Cameron Lackpour

  • Time Machine calculating changes and never stops

    I have a 27" iMac and I have an intermittent problem with Time Machine.
    It will work great and then it will get hung on calculating changes and the only thing I can do is turn off the external drive to make it stop
    I have fixed the permissions on the c:\ drive and run repair disk on the external drive
    I am a Mac newbie so I don't know what else to do.  Any ideas on how to proceed to solve this problem?
    TIA
    Mark

    Error writing to backup log.  NSFileHandleOperationException:***
    -[NSConcreteFileHandle writeData:]: No space left on device
    Check with airport utility.. is there any space left on the TC. if not it cannot work.
    You will need to delete something or erase the drive after an archive..
    The former TM should do itself.. but it is better IMHO to take action yourself.. not to delete files but to archive and start again. Still that is my opinion only.
    Are you plugged in by ethernet? If not it will either take forever or not work.

  • Difference Between Calculated Member and Embedded summary

    Hi,
    Can anyone explain me the difference between the Calculated Member and Embedded summary.  Please also clarify when to use which one.
    The issue I am having a crosstab report displaying sales revenue for product over the years.
    I have my years in columns, product in rows and sales revenue in summarized field.  There are 10 products in my report. Its static as of today.
    I have to group the first 4 products and display the sub total over the  years.  Similarly I have to group the last 6 products and display the sub total over the years in the cross tab.
    I have to display a column next to the sales revenue having the percentage contribution by the product to that group that I have created earlier.
    How to achieve the same.
    Thanks and Regards,
    Subbu S

    Please re-post if this is still an issue to the Crystal Report Design Forum or purchase a case and have a dedicated support engineer work with you directly

  • Difference between alternative calculation type and alternative condition b

    What is the difference between alternative calculation type and alternative condition base value?

    Hi Nitin
    Alternative calculation type:
    Suppose my gross price (PB) is Rs.100 for some metal per kg and I want to calculate surcharge based on todays RBI index of commodity rather than simply giving some 2%. I want to account todays RBI index in determinig Condition value.
    It is possible to do that by little alteration of regular routine.
    Alternate Condition base value:
    I am procuring 5 different variety of pens at different quantities at varying rates from 0 to 25 in a sing le PO. And I get the total header value of 1000. I will get a discount of 10% if the PO value reaches 1000. I have to subsequently pass on the discount of Rs.100 now to all the 5 line items. In general SAP calculates it based on the values of each line item and proportionately distributes. However If i want this discount to be distributed according to the quantity of each pen. You can acheive this with little alteration of Routine.
    Hope this clarifies your doubt.
    If found helpful, Pls reward.
    Regards
    edwin

Maybe you are looking for

  • SWF in SWF sound problem

    Hi, I made a preloader, witch is a SWF file with a progress bar and a container, in this container will be loaded the page SWF witch is a flash presentation, my problem is that the page SWF has sounds for buttons over state, and if I run the SWF it w

  • HT3209 sound and picture not in sync

    when i play a downloaded movie, the sound is not in sync with the scene. why is this happening and how do i fix it? i have tried shutting down and restarting my computer but that doesnt help

  • Change to change user email from long format to short format

    Hi, folks: I created a new administrator (Preference) and type in an email address. However, there is no place to specify long or short format. I browse the MGMT_NOTIFY_DEVICES table and the TYPE is 1. Right now, I manually changed it to 5 in the tab

  • Fix labview variable to control input

    Hi, I am using the Simulation Interface Toolkit to send variables to Simulink. What I would like to have is a control that is coupled to the value of a text file. In other words the value of the text file will be the control input to Simulink sent vi

  • Any user complaints re: OS X Mavericks. Why change from OS X 10.8.5?

    See many user complaints re: OS X Mavericks. Why change from OS X 10.8.5?