Get the length of the line

Hello

I have to be able to draw lines dynamically between several sets of 2 points dragged / dropped on stage.

If I draw a line dynamically between a set of 2 points (LineA), using the graphics class, moveTo (point1.x, point1.y), lineTo (point2.x, Point2.y) and I want to then get length of LineA (length of the newly drawn line), LineA.x, LineA.y, should I just use LineA.width, LineA.x, LineA.y?

I don't know how else to do this?

Any suggestion is appreciated.

saratogacoach

If you want the distance between centers, use the function in my last message and let reg points points in their centers.

Tags: Adobe Animate

Similar Questions

  • Get the lines containing only numbers and English characters

    ΗΙ,

    Assume that there are the following lines:

    Select 'RE89203' Union double all the

    Select 'cd89203' Union double all the

    Select 'cD89203' Union double all the

    Select 'CZC4255463' Union double all the

    Select '597CD83843KL' Union double all the

    Select CD 90832 83843FE 597' a Union double all the

    Select 597 CD 90832 ~ 83843FE' a Union double all the

    Select 'CD9083283843FΔ' Union double all the

    Select 'CD9083283843FΑ' of the double

    In the list above, I want to get the lines containing at least a figure and English at least one character (in capital), but with the exception of these, any other character is not acceptable (and the line as well).

    I tried the following, but the result set is not the direction you want:

    with sample_data as

    (

    Select 'RE89203' Union double all the

    Select 'cd89203' Union double all the

    Select 'cD89203' Union double all the

    Select 'CZC4255463' Union double all the

    Select '597CD83843KL' Union double all the

    Select CD 90832 83843FE 597' a Union double all the

    Select 597 CD 90832 ~ 83843FE' a Union double all the

    Select 'CD9083283843FΔ' Union double all the

    Select 'CD9083283843FΑ' of the double

    )

    Select one

    of sample_data

    where regexp_like (, ' [A - Z] [[: digit:]] ',' it)

    Explanations:

    The value "cD89203" is not acceptable because it contains the character 'c' (in lowercase).

    597 90832 83843FE record value CD' is not acceptable because there is a space.

    597 90832 record value CD ~ 83843FE' is not acceptable because there is a character "~".

    The value "CD9083283843FΔ" is not acceptable because there is a non-English (character 'Δ') character.

    The value of the last record "CD9083283843FΑ" is not acceptable because there is a non-English (character 'Α') character.

    Note:

    I'm using OraDB 11 g v2

    with sample_data as
    (
    select 'RE89203' a from dual union all
    select 'cd89203' a from dual union all
    select 'cD89203' a from dual union all
    select 'CZC4255463' a from dual union all
    select '597CD83843KL' a from dual union all
    select '597CD90832 83843FE' a from dual union all
    select '597CD90832~83843FE' a from dual union all
    select 'CD9083283843F?' a from dual union all
    select 'CD9083283843F?' a from dual union all
    select 'ABCDEF' a from dual union all
    select '1234' a from dual
    )
    select a
    from sample_data
    where replace(translate(translate(a, '~', '#'), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'), '~', null) is null
    and regexp_like(a, '[A-Z]')
    and regexp_like(a, '[0-9]')
    /
    

    Edit: See post of Chris Hunt for a more efficient version of the line 17.

  • How can I get the lines for the date between 2 different days

    Hi all,

    How can I get the lines for the date between 2 different days.

    Sample data:
    Table name: Articles
    Title start_date end_date
    Heading1 08-22-2011 2011-09-11
    2011-08-01-2011-09-01 Title2
    Title 3 2011-08-21 08-21-2011
    title4 2011-08-28 2011-09-11

    Result will be:
    Title start_date end_date
    Heading1 08-22-2011 2011-09-11
    2011-08-01-2011-09-01 Title2
    title4 2011-08-28 2011-09-11

    This is my example query:
    SELECT * FROM items WHERE trunc (es.date_start) > = TO_DATE('2011-08-22', 'YYYY-MM-DD') AND trunc (es.date_end) < = TO_DATE ('2011-08-28', 'YYYY-MM-DD')

    but I can not get the expected results. Any help would be much appreciated.

    Thanks in advance

    not read your question properly before...

    Please try this

    Select * FROM items
    WHERE (TO_DATE ('2011-08-22', 'YYYY-MM-DD') between TRUNC (es.date_start))
    AND TRUNC (es.date_end)) OR
    (TO_DATE ('2011-08-28', 'YYYY-MM-DD') between TRUNC (es.date_start))
    AND TRUNC (es.date_end))

  • How to get the line object table View

    Hello

    I use Jdev 11.1.1.7

    My requirement is, there are two ways I can get lines in my logic, you're based getFilteredRows (RowQualifier) and vo.executeQuery () - on a specific condition or I should consider first or later...

    getFilteredRows() returns the line [], I need to find a way to make [Row] of the View object properly after ececuteQuery() on the VO... When I use vo.getAllRowsInRange () which returns only a single line, but what iterate the VO even, I see that there is more than one line... How can he get all the range of the VO table?

    Thank you

    You can set the size of the field-1?

    ViewObjectImpl (Oracle ADF model and Business 10.1.2 API components reference)before calling getAllrowsinRange?

  • Get the line selected in inputListOfValues returnPopupListener in JDev 12 c (12.1.3)

    Hi experts,

    We strive to migrate our 11.1.1.7 project in 12.1.3, but we are experiencing a problem with our generic returnPopupListener. It essentially uses the code from https://blogs.oracle.com/jdevotnharvest/entry/getting_selected_row_in_inputlistofvalues Frank Nimphius blogpost.


    public void returnListener(ReturnPopupEvent returnPopupEvent) {  
      //access UI component instance from return event
      RichInputListOfValues lovField = 
           (RichInputListOfValues)returnPopupEvent.getSource();
      
      //The LOVModel gives us access to the Collection Model and 
      //ADF tree binding used to populate the lookup table
      ListOfValuesModel lovModel =  lovField.getModel();
      CollectionModel collectionModel =
             lovModel.getTableModel().getCollectionModel();  
      
      //The collection model wraps an instance of the ADF 
      //FacesCtrlHierBinding, which is casted to JUCtrlHierBinding
      JUCtrlHierBinding treeBinding =  
             (JUCtrlHierBinding) collectionModel.getWrappedData();
      
      //the selected rows are defined in a RowKeySet.As the LOV table only
      //supports single selections, there is only one entry in the rks
      RowKeySet rks = (RowKeySet) returnPopupEvent.getReturnValue();
      
      //the ADF Faces table row key is a list. The list contains the 
      //oracle.jbo.Key
      List tableRowKey = (List) rks.iterator().next();
      
      //get the iterator binding for the LOV lookup table binding  
      DCIteratorBinding dciter = treeBinding.getDCIteratorBinding();
      
      //get the selected row by its JBO key  
      Key key = (Key) tableRowKey.get(0);
      Row rw =  dciter.findRowByKeyString(key.toStringFormat(true));
    
      //work with the row
      // ...
    
    }
    


    We found that this no longer the selected line returns, it returns "null". The DCIteratorBinding contains lines of 0, so the findRowByKeyString won't find any line.


    Has anyone got this piece of code works in 12 c? More precisely in 12.1.3?

    We found that this no longer the selected line returns, it returns "null". The DCIteratorBinding contains 0 rows, so that the findRowByKeyString won't find any line.

    Has anyone got this piece of code works in 12 c? More precisely in 12.1.3?

    It may be a bug.

    Have you tried: dciter.getViewObject () .findByKey (key, 1) [0];     instead of: dciter.findRowByKeyString (key.toStringFormat (true));   ?

    Dario

  • Get the line current viewObject in valueChangeListener

    Hello

    I had an editable table, based on a vo. In some of the entries in the table, I've defined a valueChangeListener. I would like to know how to get the current line in this method?

    For example, an editable table based on a vo that is based on the EMPLOYEES (eo) table. FA: input of FirstName, I declared a valueChangeListener, pointing to a bean method. In this method, I would get the value of the Email from this same line.

    Thank you for helping.

    Try adding

    
    inside the af:inputText
    

    and then at the bean to support:

    public void onChange(ValueChangeEvent valueChangeEvent) {
      Object email= valueChangeEvent.getComponent().getAttributes().get("email");
    }
    

    In addition, if you need to get all the details of the line, you can pass the pk as attribute and then find the line like this:

            DCIteratorBinding it = getBindings().findIteratorBinding("ViewIterator");
            it.setCurrentRowWithKeyValue(String.valueOf(rowPK));
    
  • Need syntax to get the lines of error in Sql Plus

    Hello

    Could you let me know the command for below.
    After you type SHOW of ERRORS in sql like I get the list of errors as below.
    How can I get the error lines, I want to look at the lines of 1520 to 1525.



    1523/9 PL/SQL: statement ignored
    1693/12 PL/SQL: ORA-00984: column not allowed here
    1776/11 PL/SQL: statement ignored

    Thank you

    Hello
    In SQLPLUS, you can select view ALL_SOURCE to see the source code for the package.

    VIEW all_source
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     OWNER                                              VARCHAR2(30)
     NAME                                               VARCHAR2(30)
     TYPE                                               VARCHAR2(12)
     LINE                                               NUMBER
     TEXT                                               VARCHAR2(4000)      
    

    However, you can also use SQL developer or another IDE that make life a little simpler.
    VR,
    Sudhakar B.

  • Get the lines between colors in Illustrator

    Hello

    I have a problem and I'm looking for some advice. I dropped a raster image in Illustrator (AI) and with the trace function, has turned into a vector image which looks great on my monitor. However, when I load the vector file in PDF format and then open the PDF file, I see a small, light, grey hairlines between colors.

    I do a product for a customer label. He wants a photo (JPEG) for the background. Printing wants vector images to CMYK.

    I am fairly new to HAVE and probably not using 'approved methods' although I took what I thought, is a logical step to achieve my goal.

    I took the JPEG RGB, converted into a .tiff to CMYK. I also tried to convert the JPEG in .bmp and .esp - all in CMYK mode, before moving to HAVE. I also tried putting the JPEG directly in I.

    I dropped these images in Illustrator separately and Live tracks on each. At this point, each attempt gave me excellent vector images in CMYK mode, but went wobbly when I transfer to PDF.

    Curiously, when I make a hard copy of this PDF on a Hi ground digital printer (2400 dpi), the lines do not appear. However, I am still very concerned about these lines, because I send a power off to work on offset printing. I'm sure that the printer will panic if he sees these lines and I am even more worried that these lines may appear in the print process four colors.

    A local graphics person I spoke with that suggested I'd find my solution to scout, but I fiddled a little this feature and could not solve the problem. Although I still wonder if maybe it's where I could find the solution, because when I hit Expand the blue path lines seem to match with the troublesome gray lines.

    Someone else told me to hit Expand and then turn off the Stroke. I think that I did it correctly, but there is no difference. I also didn't see any difference when I applied to the maximum value for the race. Other attempts to find a cure included deselected Resample, then re - sample with a resolution of 300.

    This is driving me crazy and I hope I can find help.

    Matt

    Here's a quick and easy way to get rid of these lines.  Place the image raster in illustrator.  Then click on copy.  Then direct route on the image use, using the preset of 8 colors.  This will give you a very simple version of the photo.  Click on expand.  Then click on paste in front to put a new copy of the raster on the top of the first image.  Use the tracing once again, but this time with a screening of high resolution.  Click on expand.  This should solve the problem.

    You see, these lines are only tiny spaces between the vector objects.  By creating two vector images in the same frame, the bottom a slightly simpler from the top edge, you can get rid of these lines.

    I hope this helps!

  • Get the line number of the selected text

    Hi all

    Please tell me how to get the row number of the selected text in a page.

    for example

    Look, here's the page with text, I want to get the number of the line of the selected one (marked in red) text

    |-------------------------|

    | XXXXXXXXXXXXXX.

    | XXXXXXXXXX |
    | XXXXXXXXXXXXXX.

    | xxxxxxxxxxxxxx |

    | XXXXXXXXXX |

    | XXXXXXXXXXXXXX.

    | XXXXXXXXXXXXXX.

    ---------------------------

    Thanks in advance

    Shiv

    Hi Shiv,

    This thread of extraction. This will give you an idea.

    Always search the forum first before creating a new.

    Shonky

  • need to get the lines created 30 days ago

    Hi all!

    I had a table with a column 'creationDate' (type Date).

    what I need is to find all the lines that have been created 30 days ago.

    I tried somwthing like sysdate - column, but I'm not the answer...

    a big thanks to everyone! ;)
    Select *from  where trunc(create_date) < trunc(sysdate) - 30
    
  • Get the line item id and the value dinamilly with AJAX in tabular form

    Hello

    I have a table with a Popup Lov presentation, when I select something in the Popup of some elements (in the form of table) must be filled with the value returned from a query that uses the ID of Popup Lov (return value) as a parameter.

    How can I get this value and use only for this line?

    Thank you
    Alan

    Hello

    OK - that message sounds ok to me. You would like to check the javascript code after this line to see what he does - some alert() messages can help.

    To add a blank line to a tabular presentation, you can try:

    SELECT NULL Field1name,
    NULL Fieldsname
    FROM DUAL
    UNION ALL
    SELECT Field1name,
    Field2name
    FROM Tablename
    

    or, if you use 4 Apex, you can add a few::AddRow(); in the parameter "execute when Page Loads ' the page attributes

    Andy

    Published by: ATD February 8, 2011 17:57

  • Can't get the lines updated in IFL type3?

    Hello

    I'm implementing the CPC type3.

    To do this, I used the updated incremental sql ikm & oracle ckm.

    I opened ikm & duplicate the command update of existing lines. I changed the query.  and

    target also source mapping to the table, I changed the keys ud. I HAV eupdated smith Sani 800 to 30000 after execution, I had the current value of sal & I have no previous data salary.

    Thanks to this link, I'm impleneting IFL 3

    http://www.odigurus.com/2012/01/SCD-type-3.html

    SCD Type3 in team ODIDW

    again, I have no previous data.

    Please help me.

    Thanks in advance,

    a.Kavya

    err9.jpg

    err10.jpg

    err5.jpg

    err6.jpg

    err7.jpg

    err8.jpg

    You can simulate the code (if you have this option in the 11g version) OR run the task and the operator to control and check what is the INSERT/UPDATE request, it generates at run time?

    Run the query even in your DB to check the issue...

  • How to get the line blank if the condition does not match

    Hello..

    I have 2 tables
    create table chk1 (no , nm )
    as select 1,'abc' from dual union all
    select 2,'bcd' from dual union all
    select 3,'cde' from dual
    
    
    create table chk2 (no , nm )
    as select 1,'abc' from dual union all
    select 1,'bca' from dual union all
    select 2,'cde' from dual union all
    select 2,'dce' from dual union all
    select 3,'cde' from dual
    There are 2 rows of chk2 table for each record in the table of chk1.
    Off 2 rows if a line is missing any rank must be printed as a blank line

    I wrote the following query but of no use...
    could you help me in this
    select * from chk1 c1,chk2 c2
    where c1.no=c2.no(+)
    Thank you

    Hello

    You can do this:

    SELECT *
    FROM   chk1 c1,
           (SELECT NO,
                   nm
            FROM   chk2
            UNION ALL
            SELECT   NO,
                     NULL
            FROM     chk2
            GROUP BY NO
            HAVING   COUNT(*) < 2) c2
    WHERE  c1.NO = c2.NO(+)
    
    NO     NM     NO_1     NM_1
    1     abc     1     abc
    1     abc     1     bca
    2     bcd     2     cde
    2     bcd     2     dce
    3     cde     3     cde
    3     cde     3     
    
  • Getting the line without the use of hierarchical query values

    Hi all


    I want to know the hierarchical values without using a hierarchical query. I have two tables EMP, DEPT

    EMP table is to have two columns (empid, mgrid)
    DEPT table is to have two columns (deptid, empid)

    Data of the EMP

    1,
    2, 1
    3, 2
    4, 3

    Data DEPT

    10, 1

    Each time, I gave deptid = 10, I need to know the this deptid empid then who is this empid (child levels as well). In this case, the output should be
    1
    2
    3
    4

    I don't want to use hierarchical query.

    Thanks in advance.


    Thank you
    PAL

    You can use the RECURSIVE subquery, if you are 11 GR 2, like this

    SQL> with EMP (empid,mgrid) as
      2  (
      3  select 1,null from dual union all
      4  select 2, 1 from dual union all
      5  select 3, 2 from dual union all
      6  select 4, 3 from dual
      7  ),
      8  dept(deptid,empid) as
      9  (
     10  select 10, 1  from dual
     11  ),
     12  t(empid,mgrid) as
     13  (
     14  select empid,mgrid
     15  from emp e
     16  where empid in (
     17      select d.empid
     18      from dept d
     19      where deptid = 10
     20                  )
     21  union all
     22  select e.empid,e.mgrid
     23  from emp e, t
     24  where e.mgrid = t.empid
     25  )
     26  select *
     27  from t;
    
         EMPID      MGRID
    ---------- ----------
             1
             2          1
             3          2
             4          3
    

    Yet, the question is valid - why can't use you a hierarchical query?

    Published by: JAC on May 29, 2013 12:37

  • How to get the line number in the line itself in the Sql query?

    Hello
    I pick up some lines of a sql query. Is it possible to get line number in each line while all lines are read?

    Like this:

    RowNum data1 data2
    1 abc era
    2 NBH ioi

    Yes.

    ROWNUM

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/pseudocolumns009.htm#SQLRF00255

    select rownum, data1, data2
    from yourtable;
    
  • How to get the number of line of a multi-line string

    It seems that this Panel of string does not provide the tool to get the chain line number,

    Does anyone have the same experience?

    so...

    How to get the line number of a variable string?

    Number of lines

Maybe you are looking for

  • Satellite Pro A200-1MA - does not start after disassembly

    This is one for my laptop was overheating strongly and I decided to clean the radiator and the parts around it. I disassembled the computer laptop to the point where I can take off the cooler, cleaned and then I put everything back. The problem is no

  • Microsoft Windows XP Media Center: monitor goes to sleep

    Having got my computer repair, where it was running with their instructor, I have connected my computer and when the Tower running and then turned on the monitor the monitor doesn't say _ no monitor input VGA signal go to sleep.  Then why she would w

  • Satellite P300D - cannot read CD or DVD

    I had a problem. "TSSTcorp CDDVDW TS-L633A ATA Device" driver get lost, so I can not read the CD or DVD and do not respond I hope that this community gives me the link to this driver * please *. PS: Sorry for my bad English MY laptop: Toshiba Satelli

  • Updates Windows 7 put Windows does not initialize

    After that installation of current update (14/01/2011) my Windows 7 Pro is not initialized. I had to remove the updates in safe mode. No idea what's going on. Is this an update of buggy? Thank you

  • How to install or recover the menus and tool boxes

    After IE crashed my email, I had to have my comuter all recovered now toolbars are no longer visible and the zoom function is passed the lower plate.  Can it be reinstalled by me, or I have to go back to the repair shop?