Please help for Registration point to a movieclip/sprite

I am new to AS3 and have a doubt on Registration point for
Movie clip / Sprite. Please help me the sample code for this
I simply draw a line using AS3 in flash environment. but i
used graphics.moveTo for center. but if i run this it is simply
taking x,y axis 0,0 and move around the stage. I want to move this
from center of the stage. please help.
below is my code
var line:Sprite = new Sprite()
addChild(line);
var cx:Number = stage.stageWidth/2;
var cy:Number = stage.stageHeight/2;
var radius:Number = 1;
var increase:Number = 0;
line.graphics.lineStyle(1, 0xff00ff);
line.addEventListener(Event.ENTER_FRAME, onEnter);
function onEnter(event:Event):void
increase += radius;
//trace(increase);
//line.graphics.moveTo(cx, cy);
line.graphics.lineTo(cx + increase, cy + increase);
line.rotation += 0.1;

to appear to control the registration point of line, make it
a child or an empty display object and offset it by -x,-y where x,y
is your choice for the apparent registration point. you can then
control the parent object and it will behave like your line with
changed registration point.

Similar Messages

  • Urgent please help will reward points

    How do i join two trans table with indexes.
    please help will reward points.

    Hi,
    Just copy paste this code, activate and test.
    INNER JOIN.
    TYPES: BEGIN OF  t_vbak,
                 vbeln TYPE vbeln,
                 END OF t_vbak.
    TYPES: BEGIN OF t_vbap ,
           vbeln TYPE vbeln_va,
           posnr TYPE posnr_va,
           END OF t_vbap.
    DATA: it_vbak TYPE STANDARD TABLE OF t_vbak.
    DATA: wa_vbak TYPE t_vbak.
    DATA: it_vbap TYPE STANDARD TABLE OF t_vbap.
    DATA: wa_vbap TYPE t_vbap.
    select-options:  s_vbeln for wa_vbak-vbeln.
    SELECT avbeln bposnr INTO table it_vbap FROM vbak AS a
                                INNER JOIN vbap AS b ON
                                avbeln = bvbeln WHERE a~vbeln in s_vbeln.
    loop at it_vbap into wa_vbap.
    WRITE:/ wa_vbap-vbeln, wa_vbap-posnr.
    endloop.
    LEFT OUTER JOINT.
    SELECT avbeln bposnr INTO table it_vbap FROM vbak AS a
                                 left outer join vbap AS b ON
                                 avbeln = bvbeln WHERE a~vbeln in s_vbeln.
    loop at it_vbap into wa_vbap.
    WRITE:/ wa_vbap-vbeln, wa_vbap-posnr.
    endloop.
    DIFFERENCE BETWEEN INNER AND LEFT OUTER JOIN.
    With respect to above example,
    INNER JOIN will fetch all those datas with reference to VBAK in VBAP.
    LEFT OUTER JOIN will also fetch all those datas with reference to VBAK in VBAP. But it will also fetch those data which are in VBAK, But not in VBAP.
    hope this helps.

  • Please help for my iphone 4 unlock

    please help for my iphone 4 unlock

    Apple store said my iPhone 4 had an LCD issue and that is why slide to unlock is frozen.  My warranty ran out so it would cost approx. $150 to repair it he said.  Time for a new phone but not sure I want another iPhone now.

  • Please Help for the Query

    Please Help for the Query
    Hi frds please help me for the below query.What I want to do is to pull out the data from below table :-
    date ticker indicator
    03/13/2008 3IINFOTECH -8
    03/18/2008 3IINFOTECH -4
    03/25/2008 3IINFOTECH -5
    03/27/2008 3IINFOTECH -3
    as such :-
    date ticker indicator
    03/13/2008 3IINFOTECH -8
    03/25/2008 3IINFOTECH -5
    03/27/2008 3IINFOTECH -3
    Here I want to find the Trend i.e either asc or desc order from the lowest indicator.
    In the above sample data -8, -4, -5, -3 out of which I want the asc order data -8, -5, -3 and exclude -4 data.Because the asc order -8, -5, -3 will not follow.
    So I want the data
    date ticker indicator
    03/13/2008 3IINFOTECH -8
    03/25/2008 3IINFOTECH -5
    03/27/2008 3IINFOTECH -3

    SQL> CREATE TABLE BORRAME(FECHA DATE, INDICA VARCHAR2(100));
    Tabla creada.
    SQL> INSERT INTO BORRAME VALUES(TO_DATE('03/13/2008','MM/DD/YYYY'), '3IINFOTECH -8');
    1 fila creada.
    SQL> INSERT INTO BORRAME VALUES(TO_DATE('03/18/2008','MM/DD/YYYY'), '3IINFOTECH -4');
    1 fila creada.
    SQL> INSERT INTO BORRAME VALUES(TO_DATE('03/25/2008','MM/DD/YYYY'), '3IINFOTECH -5');
    1 fila creada.
    SQL> INSERT INTO BORRAME VALUES(TO_DATE('03/27/2008','MM/DD/YYYY'), '3IINFOTECH -3');
    1 fila creada.
    SQL> COMMIT;
    Validación terminada.
    SQL>
    SQL> SELECT FECHA, INDICA
      2  FROM BORRAME
      3  WHERE SUBSTR(INDICA,INSTR(INDICA,'-',1)+1,LENGTH(INDICA)) <> '4'
      4  ORDER BY SUBSTR(INDICA,INSTR(INDICA,'-',1)+1,LENGTH(INDICA)) DESC;
    FECHA                                                                
    INDICA                                                               
    13/03/08                                                             
    3IINFOTECH -8                                                        
    25/03/08                                                             
    3IINFOTECH -5                                                        
    27/03/08                                                             
    3IINFOTECH -3                                                        
                    

  • Search help  for Uploading Point in shopping cart

    Hi all,
    My search help for uploading point in SC, which is created in DDIC, is not visiable in SC on html.
    Could someone tell me how to make F4 visiable on html?
    Thank you the most.
    Regards,
    Danijela

    Hi,
    I think there is a single template for F4 help on SRM for all standards Search Helps.
    Danijela,
    Concerning your Search Help problem, first try to launch the SC transaction in SAPGUI, in order to check that the SE works fine.
    If you have a external ITS, you are also able to launch the transaction from ITS in debug mode.
    The problem may come from the Search Help template, and the ITS functions, but I don't have a system here, so....
    Regards.
    Vadim

  • Hello. Please help. for unknow reasons, I am not getting any of my mail on anything, nothing on my iphone, my outlook or even when I log into icloud online ???   any one else having troble??   please help   I need my mail

    Hello. Please help. for unknow reasons, I am not getting any of my mail on anything, nothing on my iphone, my outlook or even when I log into icloud online>???
    any one else having troble??
    please help
    I need my mail

    Hello, DragonStudios. 
    Thank you for visiting Apple Support Communities.
    Here are a couple troubleshooting resources I would recommend when experiencing issues with iCloud Mail.
    iCloud: Troubleshooting iCloud Mail
    http://support.apple.com/kb/TS4002
    iCloud: Account troubleshooting
    http://support.apple.com/kb/TS3988
    Cheers,
    Jason H.

  • Please help on the Loader.content to movieclip

    Hello there,
    I have been search around and got some mixed solutions,
    summarized as follow:
    If I need to load external swf into the main swf file, I need
    to Loader with appropriate URLRequest for this purpose.
    After loaded, you can listen to the complete event and
    addChild the loader.content to the main swf.
    Because I have a stop on the loaded swf first frame, I need
    to start the swf with a button. Some solutions on the net pointed
    that to make this happened, you need to cast the loader.content to
    MovieClip and have to through a tricky way to accomplish it like
    var movie:*=loader.content ;
    var clip:MovieClip=movie;
    clip.gotoAndPlay(4);
    I tried this method and still got Type Coercion failed
    ::cannot convert flash.display to MovieClip
    Please help, don't know why some experts said it is working
    while I can not get it to work. Thanks in advance

    Thanks WL, you are very close. I have a flash8 movie (purely
    animation)
    and I actually opened it in CS3 and saved as CS3. after
    publishing that's the movie I am tring to load.
    I recreate the whole animation in CS3 and everything start to
    run as supposed to. By trace the loader.content I find out one is
    [object AVM1Movie] for sudo as2 movie and [object MainTimeline] for
    the pure as3 movie. Thanks again.

  • Please help for User defined extension functions

    the tutorial given for extension functions doesn't work as well as our new functions
    even though i follow all the given steps and see the functions in my user defined extension functions tab in xslt map.
    all the target nodes that use the extension function disappear in the resulted target xml.
    please help.

    have you compiled your java file and uploaded the jar file(containg the .class file and the Manifest.MF file) in the <OC4J_HOME>\j2ee\home\applib directory and then restarted the server??

  • Please help for using perform in SAP script

    As subject.
    My sap script code as below:
    /: PERFORM GET_CHAMT_DATE IN PROGRAM ZRAP004
    /:USING    &SPELL-WORD&
    /:CHANGING &SPELL-WORD&
    /:ENDPERFORM
    My program ZRAP004 code as below:
    FORM get_chamt_date USING u_iword TYPE spell-word
                       CHANGING u_oword TYPE spell-word.
    CONCATENATE u_iword '&#20803;&#25972;'(t01) INTO u_oword.
    endform.
    This form is for check printing.
    It's by standard function 'F110' to excute check printing.
    But when i finished this transaction. System return error message as below:
    <b>This routine contains 2 formal parameters, but the current call
    contains 4 actual parameters.</b>
    Please help. Thanks a lot!!

    Hiii
    PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
    /:USING &EKKO-EBELN&
    /:CHANGING &CDECENT&
    /:ENDPERFORM
    The report :
    REPORT zkrpmm_perform_z1medruck .
    DATA : BEGIN OF it_input_table OCCURS 10.
           INCLUDE STRUCTURE itcsy.
    DATA : END OF it_input_table.
    déclaration de la table output_table contenant les
    variables exportées
    DATA : BEGIN OF it_output_table OCCURS 0.
           INCLUDE STRUCTURE itcsy.
    DATA : END OF it_output_table.
    DATA : w_ebeln LIKE ekko-ebeln,
          w_vbeln LIKE vbak-vbeln,
          w_zcdffa LIKE vbak-zcdffa.
    FORM CDE_CENT
    FORM cde_cent TABLES input output.
    it_input_table[] = input[].
    it_output_table[] = output[].
    READ TABLE it_input_table INDEX 1.
    MOVE it_input_table-value TO w_ebeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
               input  = w_ebeln
          IMPORTING
               output = w_ebeln.
    SELECT SINGLE zcdffa FROM ekko
    INTO w_zcdffa
    WHERE ebeln = w_ebeln.
    it_output_table-name = 'CDECENT'.
    MOVE w_zcdffa TO it_output_table-value.
    MODIFY it_output_table INDEX 1.
    output[] = it_output_table[].
    ENDFORM.

  • Please Help for this scenario

    Hello,
    Suppose i have a input xml:
    <Name>XYZ</Name>
    <Roll>12</Roll>
    <Class>3</Class>
    Now I want output as:
    <Header>XYZ</Header>
    <Body><![CDATA[<Name>XYZ</Name>
               <Roll>12</Roll>
               <Class>3</Class>]]>      
    </Body>
    Please help how will I do that......whole payload is going in Body also some value in above payload is mapping.
    Can anyone give me UDF to send whole payload in one node
    Thanks and Regards
    Hemant

    this can be achieved easily by aXSLT mapping....also can be achieved by using grahical mapping
    For XSLT coding:
    creation of CDATA with message mapping
    For graphical + XSLT: /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    Regards,
    Abhishek.

  • Kind Attn:OTN Customer Team PLEASE HELP FOR LOGIN

    I have seen lot of members are facing login problem with old username/password.
    I am facing the same.I am unable to login with old username/password "dmewani/*******" .Please reset my account.
    even after coping "username/password" from email received from "orcle", problem is same.
    Please Help.

    Hello,
    Thanks for your help. Yes this could help but as I already has the licencees, I just need someone at Adobe's who could generate the keys ,... but after hours between Adobe and my reseller ; each one says to contact the other I'm getting crazy ...
    Aynwas, thanks very much for your help

  • Please help for my unexpected shutdown W510!!!

    Since I used my W510 ( 43192NU with Windows 7 32bit ) from April 2010, I did experienced with unexpected shutdown. First, I thought it was my improperly use. But now, it shutdown unexpectedly even 3 times a week. Did anyone got the same experienced? Please help me...

    I have the same exact problem!!!
    And it drives me crazy.
    It happens only when my battery is charging (that is, it's not at 100%).
    If the battery is fully charged, and I'm on AC power as well, all works o.k., but as soon as the battery is low (say 50%) and I plug it in, and put some load on the system (using VMware a lot) it runs for a while then dies instantaneously. No gradual shut-down - just shuts off.
    It just happened again a few minutes ago, and I lost an important VMware file.
    I called Lenovo support a few months ago, and they wanted me to send the laptop in for a week to make sure there is really a problem.
    Any other input/comments would be appreciated.
    BTW, I purchased the W510 in February 2010.

  • Please help for ORA-02049 - Timeout error

    Hi All,
    we have got a reporting DB and 14+ Application DBs, the data is extracted from all the application databases (DBs) and dumped into the common tables of reporting database. While inserting and updating the common reporting tables the other jobs gets timeout error and fails. We daily face this failure problem (error: ORA-02049 - Timeout error distributed transaction waiting for lock) for almost 10-15 times.
    Can you please help me out in resolving and getting the permanent solution for this problem.
    Thanks in advance.

    Thanks Kamal,
    as mentioned above, I have got Oracle,Java,Unix environment. Autosys jobs are scheduled through out the day.
    Mechanism : Autosys job triggers the action at specified time, Unix code calls oracle packaged procedure, extracts data and puts into the common reporting table from this data java code formats the report output.
    There are separate reporting jobs for all instances though the report is same but for different locations(14 DB instances).
    and all these reporting jobs dump data into common reporting table, data can be differentiated on the hub or location.
    But if one job is running for first instance then second job waits for the lock and fails after 2 mins.
    I have to avoid this situation, I hold I am able to explain the situation.

  • Please Help for RME fireface400 with Logic Studio 8

    Please I do ask help for configuration of audio interface RME fireface400 with iMac OS 15.5.5, I have problem in output 7/8 monitor phones(no sound or crack sound) and look Fireface Mixer in to the desktop monitor. Where is the problem? I have drive 2.62a.
    Thanks for answer, also in Italiano
    Graz

    Have you tried the RME userforum?
    http://rme-audio.de/forum/index.php
    Maybe you problem is running OS 15.5.5 - must be a beta version

  • Please help for some reason i cannot slide to unlock my ipod

    please help i cannot get my ipos to slide to unlock

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar 

Maybe you are looking for

  • Changing the default location PowerPoint uses for templates

    I do not want to use the default location MS Office initially configures for templates that is buried in some obscure folder on a local machine in that only Office know about.  Instead want to keep my templates in the same location on a company serve

  • How to find the user entered value is Integer or not?

    hi, i want to find, whether the user entered value is Integer or not. If it is Integer, i wanna continue the program. otherwise send an error message. i tried to find for function in API. But i couldn't. can somebody help me with sample code. very ur

  • Problem creating webservice from existing code in sjse8

    I have a java class with three methods in an enterprise app (no ejbs) that I want to expose with webservice. In sudio5 I had no problem with webservice creation but in studio8 when I chose "From scratch, Use existing code", it gives me the opting to

  • Plotting Category Graph in DIADEM

    Hello All            I have a basic question in DIADEM 10.2 since I am new to this software. I want to plot a category vs value graph in DIADEM. In more clarity, data type of X axis should be in Text and Y axis should be in Numeric data type. Is it 

  • Windows to Mac Lightroom

    Can Lighroom 5 for Windows be used on Mac? The serial number i used on my PC to install isnt working on my mac