Line with a arrow

Hi All,
     I want to draw multiple line with a arrow.  Please guide me how can i do it by code dynamically. exactly as below.
Regards,
Kameshwaran A.

create an empty symbol
put this code in it.
//***** Set some opening parameters
onClipEvent (load) {
//Make original line invisible
_root.line._visible = 0;
//Initiate some variables
number_lines = 0;
line_active = 0;
//***** Every time the mouse button is released...
onClipEvent (mouseUp) {
//Get the position of the mouse
origin_x = _xmouse;
origin_y = _ymouse; 
//Increase the number of lines by one 
number_lines++; 
//Generate a new line name 
name = "line"+number_lines; 
//Duplicate a new line 
_root.line.duplicateMovieClip(name, number_lines); 
//Position the line's end point at mouse position 
_root[name]._x = origin_x; 
_root[name]._y = origin_y; 
//Update line length / orientation 
_root[name]._xscale = _root._xmouse-origin_x; 
_root[name]._yscale = _root._ymouse-origin_y; 
//If this is the start of a new shape 
if (!line_active) 
//Set the line tracking variable 
line_active = 1; 
//Set the start point of the new shape 
start_x = origin_x; 
start_y = origin_y; 
//***** Every time the mouse is moved 
onClipEvent (mouseMove) { 
//If there's a line currently being drawn... 
if (line_active) 
//Update line length / orientation 
_root[name]._xscale = _root._xmouse-origin_x; 
_root[name]._yscale = _root._ymouse-origin_y; 
updateAfterEvent(); 
//***** When a key is pressed 
onClipEvent (enterFrame) { 
//If it's the Enter key 
if (Key.isDown(Key.ENTER)) 
//Join the end point of this line... 
//...to the start point of the first line in this shape 
_root[name]._xscale = ""; 
_root[name]._yscale = ""; 
//Reset line-tracking variable 
line_active = 0; 
draw a line convert it to a symbol and give it an instance name of line.
and there you can draw lines.
detach the lines by pressing enter.
and thats it.
your welcome in advance (:
INPORTANT to leave all your symbols in the scene not in the libery are it will not work
Message was edited by: xFARRELLx

Similar Messages

  • The top space to type in the web address disappeared. also, i lost the line with the arrow to go back to the previous page

    there is no place to type in a web address. also, the arrows for go back to previous page disappeared.

    * Make sure that the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    * If items are missing then open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    * If a missing item is in the toolbar palette then drag it back from the Customize window on the toolbar
    * If you do not see that item then click the "Restore Default Set" button to restore the default toolbar set up
    See also:
    * http://kb.mozillazine.org/Toolbar_customization

  • How to make a line with arrow curve around a circle?

    I've got CS6 and Windows 7. Trying to make a line with an arrow on one end curve around a circle. Actually want it to have a 3D look like it was curving around the back side of a globe. How do you do this? Thanks.

    Perhaps you mean something more like this
    similar technique you create the arrow as a straight stroke path with an arrowhead and make it a symbol
    You then make it a symbol
    you than make a vertical rectangle and use the 3D Revolve Effect to make a cylinder
    then you go to map art
    then you choose in the map art to make the geomtery invisible
    then you ma the arrow symbol and adjust the placement and then adjust the rotation of the cylinder to your likeing.
    If you need a video to follow I'll do one later.

  • A new symbol appeared on my ipad. It has a lock in the middle of nearly complete circle whose line ends with an arrow. Any ideas what this symbol is?

    A new symbol has appeared on my ipad 2.  It resides to the left of the battery level indicator in the upper right corner.  It is a locked lock symbol with an arrow that forms an incomplete circle around the lock.

    If you see a lock icon in the upper right corner of the screen - then the screen orientation is locked.
    Try the side switch above the volume rocker first and see if that unlocks the screen. If that doesn't do it, double tap the home button and swipe to the right and look for the lock icon all the way to the left.

  • In iTunes 10, I could type "Sinatra" in the search file, and would get a list of all tracks with "Sinatra" in any field.   In iTunes 11 I get these clever little windows, with nice arrows, but no lists to view.   What am I missing?

    In iTunes 10, I could type "Sinatra" in the search file, and would get a list of all tracks with "Sinatra" in any field.   In iTunes 11 I get these clever little windows, with nice arrows, but no lists to view.   What am I missing?

    Thanks for chipping in.   I discovered something after trying what you suggested.   I have quite a few collections of hits by year from Time Life and Billboard.  I've eliminated duplicate tracks that appear in both collections (or other CDs for that matter), but cross-reference the CD where I deleted the track and placed in in the comments section of the CD track I retained.   If I "search" by song name, only the remaining track appears.   But if I want to hear for example Classic Rock 1964, only those tracks remaining would be there when I pull up that CD.   So, I type "Classic Rock 1964,"  in the search field.  First the boxes on the right of the screen open up showing album icons.  Showing four tracks by album with a button to view 10 more, then four songs with an option to vies 18 more.   I finally noticed that at the top of the boxes is a blue band that reads, :Show Classic Rock 1964 in Music.  When I double click on this blue band, all 24 tracks from the original CD appear in the song list format even though I had deleted two of them because they appeard in a Beach Boys CD.   On those tracks, I had referenced Classic Rock 1964 in the comments field.    So, bottom line, Search will also look in the comments field if you click "filter by all" in the magnifying glass to the left of the search field.   And you can move all tracks that if finds into a song list by double clicking on the blue band.

  • Automatically update AP invoice GL lines with header

    Hi
    Do you know of anyway of updating the GL date within the lines of the AP invoice in one go rather than line by line, I updated the header of the invoice but the GL date on the AP invoice lines did not update
    Thanks
    Carol

    Hi Carol,
    You don't other choice than updating the GL Date. Instead of using mouse to use the Key board functions to navigate and update. This might be quick. Follow these shortcut keys,
    1. Navigate to the AP invoice lines form, and place the cursor on GL DATE. Change the GL Date to JAN-2011.
    2. Use DOWN ARROW button on key board to navigate between lines. This will navigate you to the same field but next line.
    3. Try using - SHIFT + F5 to copy the field above. This will copy the value from above record.
    4. Repeat 2 and 3.
    You will be able to update all the lines withing 10 min at max. Try this. Hope this helps!
    Regards,
    Kiran

  • I am using pages designing a flow chart, question "I seem to have an issue with the arrows that you can add text to, it appears I can not move the point of the arrows up or down they only switch from left to right.

    I am using pages designing a flow chart, question "I seem to have an issue with the arrows that you can add text to, it appears I can not move the point of the arrows up or down they only switch from left to right.

    Last point...who archives? On my regular email page I now have the Archive icon to the left of my Delete icon which I would prefer was to the left, first in the line as this is the icon I use mostly. With Folders, my Sent and Trash lists, who needs to archive?
    I can help you only with the placement of the icon placement -- if you right-mouse click on the toolbar, then select Customize Toolbar, you can move an icon to where you want it to be.

  • Line with red blob

    What is the line with a red marker on its left-hand end, in iCal's weekly view????

    Hey Andy,
    That is a time-of-day marker, I believe.

  • HT201210 i updated my 4s yesterday, but my phone will not work at all now, and will not turn off. It has a itunes image on the screen with an arrow undernieth and what looks like the charger lead. i've had it on charge! is there anything else i can do?

    i updated my 4s yesterday, but my phone will not work at all now, and will not turn off. It has a itunes image on the screen with an arrow underneath and what looks like the charger lead. i've had it on charge! is there anything else i can do?

    Cconnect it to your computer with the latest version of iTunes installed.

  • If for some reason u have the icon in your task bar (the one with 2 arrows pointing in a circle) just go into mobile me pref...click sync...and uncheck box show status in menu bar.  My question is, I do not have this option. How do I get the sync to stop

    "if for some reason u have the icon in your task bar (the one with 2 arrows pointing in a circle) just go into mobile me pref...click sync...and uncheck box show status in menu bar."
    I do not have the option box to "show status in menu bar"
    I tried the free for a little while Mobile me, and didn't use it, so cancled. I cannot get the sync status roundabout arrows out of my status bar. AND, they keep trying to sync.
    Another issue related with this is that during the time that I tried out Mobile me, I had my ical alarm set to go off every 2 hours. NOW my computer has an ical  pop-up every 2 hours. I cannot find how to stop it.
    Another issue, Yahoo is trying to sync with my computer and I have no idea why or where that one came from.
    Can anyone out there help me please. 

    "if for some reason u have the icon in your task bar (the one with 2 arrows pointing in a circle) just go into mobile me pref...click sync...and uncheck box show status in menu bar."
    I do not have the option box to "show status in menu bar"
    I tried the free for a little while Mobile me, and didn't use it, so cancled. I cannot get the sync status roundabout arrows out of my status bar. AND, they keep trying to sync.
    Another issue related with this is that during the time that I tried out Mobile me, I had my ical alarm set to go off every 2 hours. NOW my computer has an ical  pop-up every 2 hours. I cannot find how to stop it.
    Another issue, Yahoo is trying to sync with my computer and I have no idea why or where that one came from.
    Can anyone out there help me please. 

  • My ipod touch has a usb cable picture with an arrow pointingto the itunes logo. the ipod will not connect to a computer and is unable to be turned off as there is no red power slider when the powerbutton is pressed. what can i do to fix this?

    my ipod touch has a usb cable picture with an arrow pointing to the itunes logo. the ipod will not connect to a computer and is unable to be turned off as there is no red power slider when the power button is pressed. what can i do to fix this?

    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 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       

  • Open item account line with flow type has to contain a partner

    Hi,
    I am getting the following error while doing periodic posting in flexible real estate management.
    " Open item account line with flow type Z240 has to contain a partner"
    " Open item account line with flow type Z820 has to contain a partner"
    Message no. RERACA005
    I have found a similar message in this forum.
    This error is not coming for other flow type Z120 in the contract.
    The accrual type for accruals is set  as ANRVCN and Accrual type for deferrals is set as TRRVCN in the definition of flow type with S Debit posting.
    For ANRVCN , posting supported is " Only periodic"  and for TRRVCN " All"
    Please guide as to where I need to check and correct.
    Regards,
    T Saravanan

    Hi Saravanan.
    I have the same problem, could you help me to solve it?
    thanks in advance!
    Lucas

  • Schedule Lines with Firm

    Hi Gurus,
    I have an Issue in Schedule lines. Delivery schedules lying with in the firm zone has firm indicator 1(Firm zone) in ME33l. The same schedule line shows in MD04 with * Symbol as firmed. In some of the cases Delivery schedules push out from the Firm Zone does not have a Firm Indicator in ME33l but it is firmed in MD04 with * symbol.In which table & field I can Identify the Firmed schedule lines with * symbol in MD04.Please Help me.
    Regards,
    Senthil.K

    Delivery schedules lines are populated when MRP is Run.
    symbol indicates that you have done manual intervention in the purchase order mentioned.
    In MDO4 you can see * symbol
    Ganesh kumar

  • My Iphone 3s is stuck and will not open, I have an image of a USB cord with an arrow pointing up to the Itune music Icon and my phone won't open or be recognized by itunes or my computer.

    My Iphone 3s is stuck and will not open, I have an image of a USB cord with an arrow pointing up to the Itune music Icon and my phone won't open or be recognized by itunes or my computer. What do I do now?

    Try restoring it using Recovery Mode.

  • How do you get a line with MULTIPLE fields to WRAP ?

    How do you get a line with MULTIPLE fields to WRAP ?
    Good afternoon everyone...
    THE PROBLEM: Why doesn’t a line with multiple fields WRAP?
    HYPOTHETICAL EXAMPLE/WHAT I”D LIKE TO SEE
    If I have 2 fields on a line (this is now a hypothetical example and nothing to do with my actual report)….let’s call them field A and field B. And if field A has values of all ‘X’ and field B has values of all ‘Y’…then….the normal case would be (ignore dots – only for spacing):
    A……………………… B
    XXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYY
    But what if A is too long? I would want to see B wrap onto the next line like this:
    A……………………………………………………B
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX YYYYYY
    YYYYYYYYYYYYY
    And similarly….if B is extra long, can the line print as:
    A………………………. B
    XXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    I don’t want the case where B is long and I get:
    A………………… …B…
    XXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYY
    ………………………..YYYYYYYYYYYYYYYYYYYYY
    I can see how you can wrap an individual field like that…but how can you WRAP a line of[b] fields within the frame so it wraps to the BEGINNING of the frame on next line?
    My SPECIFIC CASE
    I have a report that I have stripped down to a simple structure for the purposes of this explanation.
    My DATA MODEL has the main QUERY (for plant family and species data). The columns of the query are divided into 2 groups. The 1st GROUP contains the family data. Below that is the rest of the species data in a 2nd GROUP.
    Linking from the 2nd species group (above) is a new QUERY to extract REGION data based on the common key field. Under this 2nd query is another group with all the REGION columns.
    The LAYOUT MODEL has a group frame (the main , base one)
    On top of this is a repeating frame based on the 1st group (family data).
    On top of this is another repeating frame for the 2nd group (species data).
    On top of this is 2 Frames on the same line line. The 1st frame contains columns from the species group .
    The 2nd frame on this line is a repeating frame. The PRINT DIRECTION for this frame is ACROSS/DOWN. It repeats details of the REGION where the species is found. These columns come from this group come from the REGION QUERY and GROUP.
    All fields on the report line have variable horizontal elasticity.
    The problem is that when there is too much data on the line, it does NOT WRAP to the 2nd line.. It TRUNCATES.
    Can the line be made to WRAP????..
    In my current report, 1 of 2 things is happening:
    1) All fields print on the line until it hits the page boundary and then it just stops. Truncated!
    2) All fields print on the current line, then Oracle Reports throws a new page to print the REMAINDER of the long, input line
    But I would like a LONG line to continue printing onto the following line of the same page.
    I have tried all combinations of the elasticity fields and the ‘ADVANCED LAYOUT’ properties.
    I have been focussing my attention with this problem on the frames .
    We are using REPORT BUILDER V 6.0.8.26.0
    Thankyou to anyone who may offer assistance.
    Tony Calabrese.

    Steve,
    you gain 1 thing, but you lose something else!
    This thing is SO frustrating!
    Hey Steve! Good afternoon.
    I've done as you suggested....I have a long text boilerplate item - the only 1 on the line...and it has all the column in it.
    So it looks like:
    &col1 &col2 &col3 &col4 &col5 etc etc etc
    And the line expands nicely to each field's requirements.
    And when it gets to the right page boundary...it WRAPS to the next line! Beautiful!!!
    The only thing is that...when I had individual fields across the line I was able to create format triggers for those fields. And in doing so I was able to reduce the font and change the justification. I had to do that because some of the fields had to appear superscripted.
    So I wanted something like (ignore the dots):
    ...................................ppppp
    AAAA BBBB CCCCC DDDD EEEE FFFFFF
    So the field of 'ppppp' appeared slightly higher on the line than the other fields...
    I can't see how I can do this with a single TEXT field containing all the &COL values.
    Have you ever come across anything like this?
    Thankyou again,
    Tony Calabrese 12/4/2007

Maybe you are looking for

  • How can I change the value in a stepper cell

    In Numbers 2.3 I was able to change the value in a stepper cell by highlighting the value and using the arrow keys to increase or decrease the value. This was a very easy way to input data. Numbers 3.0 when I do this is moves to another cell Is there

  • To use this tool you must first connect to server.

    Hi all: I am new to Oracle. After installing Oracle 10g I tried to run it but I had Directory Server Connection window popup. It said "To use this tool you must first connect to server. Click on the OK button to select a server". I did not see any se

  • Where is the plus  sign so I can add contacts?  I don't have one!

    I have a new generation 5 ipod touch.  I want to add contacts.  When I go to "contacts", I do not have the plus sign so I can add a contact.  Please help. What is wrong?

  • CIF questions

    Hi,        I have a couple of questions: 1. I created an integration model with selection take all materials in the plant P1. This model had about 4000 materials when I generated and activated it. Now few more materials are created and when I go to t

  • MP3 imported, but being played in high speed?!

    Hello community, Having Captivate 2, I'm wondering why this happens... It worked in Captivate 1 perfectly. I record and modify the audio recordings externally from Captivate using Adobe Audition (1.5 or 2; depending on the machine I'm working on). In