Vertical movement the AS3 Carat

Earlier, I struggled with moving the horizontal Carat now I need to move it to the top and to the bottom of the text box.

It is a keyboard virtual so all arrow controls are made with coded buttons.

Here's an example: I have a text field contains two rows with varrying amount of text, and our carat is at the end of the bottom line. My goal is to move the carat up to the end of the first line.

Boop var = textSelect.text.length;

Snoop var = boop;

the arrow controls to move left and right

function larw(event:MouseEvent):void

{

Snoop = 1;

internship. Focus = Texteselectionnez;

textSelect.setSelection (snoop, snoop);

}

function rarw(event:MouseEvent):void

{

Snoop += 1;

internship. Focus = Texteselectionnez;

textSelect.setSelection (snoop, snoop);

}

move up

function uarw(event:MouseEvent):void

{

}

find this position (at the help of maxScrollV and a loop) and reuse setSelection:

var index: int = indexF(your_tf,1);  to find the end of line 1 in your_tf.  You may want some massage more if you do not want to choose a white space.

your_tf.setSelection (index, index)

do not change this feature:

function indexF(tf:TextField,lineNumber:int):int {}

var h:int = tf.height;

TF. Height = 5;

var s:String = tf.text;

TF. Text = "";

trace (TF.maxScrollV);

for (var i: int = 0; i<>

If (tf.maxScrollV<>

tf.appendText (s.charAt (i));

} else {}

break;

}

}

TF.text = s;

TF. Height = h;

Return i-1;

}

Tags: Adobe Animate

Similar Questions

  • Hi, while writing an email online using Firefox 3.6.3, I was using one of the "CTRL + left arrow or right" to move the cursor on the text. I must have pressed some other key because the screen has become huge - and I can't scroll vertically or horizont

    Hi, while writing an email online using Firefox 3.6.3, I was using one of the "CTRL + left arrow or right" to move the cursor on the text. I must have pressed some other key because the screen has become huge - and I can't scroll vertically or horizontally, which makes the pages of Mail of Hotmail impossible. I have connected since using the Explorer MSFT and it works very well. This problem occurs only on the page of Mail of Hotmail Live not on the home page or other.
    Could you please let me know if there is a problem with Firefox, or if you have any advice on how to restore the appearance of Hotmail in Firefox?

    This has happened

    Just once or twice

    == I'm compiling an email in Hotmail Live

    See this:
    https://support.Mozilla.com/en-us/KB/page+zoom

  • move the vertical scroll bar in a table

    Hello

    In my VI front panel contains a table of results with the visible vertical scroll bar.  When the program runs a performing a test, I am inserting a line every time the captured result.  The row is inserted in the lower part, and when all the visible lines are met you can not see the final result.  What I want to do is either focus on the last row to move the vertical scroll bar or move programmatically control scrollbar itself.  Is this possible?  If this is not the case, what is the property node that I need to display the last line of a table.  I have inserted the data at the top of the table, but this isn't really what the standard application programs do!

    Thank you

    Martin

    See attachment...

    Dan

  • Position of the taskbar? How can I move the taskbar to return at the end of the screen? It is vertical on the right side of my screen?

    I have no idea of what I got to do my task bar to move to the right of my screen, but I would like to know how to bring it back to the bottom of the screen? Please

    http://Windows.Microsoft.com/en-AU/Windows-Vista/unlock-and-move-the-taskbar

    Unlock and move the taskbar

    Once you unlock the taskbar, it is ready to move to any horizontal or vertical office edge.

    Taskbar

    View all

    To unlock the taskbar
    • Right click on a space empty in the taskbar. If a checkmark beside him doesn't lock the taskbar, the taskbar is locked. You can unlock it by clicking on lock the taskbar, which removes the check mark.

      Note

      To lock the taskbar into place, right-click an empty space in the task bar, then click on lock the taskbar, so that the box is displayed.

    Click on an empty space on the taskbar, and then hold down the mouse button, dragging the taskbar to one of the four sides of the office. Once the taskbar where you want, release the mouse button.

    See you soon.

    Mick Murphy - Microsoft partner

  • arrows move the object in opposite directions - default type in vertical orientation

    Hi Illustrator community.

    Two questions were really annoys me and so far I've been unable to find a solution:

    On my Macbook Pro 13, 2012 ", in this version of Illustrator CC (not a problem for other products CC), the arrows are somehow put out: using the left/right arrows moves objects vertically, and using up/down arrow keys moves objects to the left and right." Even if I tried to get used to it, it's really slow me down I checked the preferences and keyboard shortcuts, and unless I'm missing something, there seems to be a setting for this?

    Also when using the standard tool (not the vertical type tool), initially type is placed rotate 90 degrees counterclockwise, and after that I flip back to a horizontal position, I can move and edit fine. Any suggestions?

    Thanks in advance,

    Mark

    Mark,

    Edit > preferences > General > constrain Angle should be 0 degrees.

    If this is the case, Illy may think, it is not, and then she made a mess of things (and perhaps other things, too). In this case, it may be time for the list below.

    Unless you subscribe to the vertical version.

    The list:

    Sometimes, (some) things may fail or stop working for no apparent reason. When (other) possible reasons/remedies do not work, it is perhaps a kind corruption (temporary or permanent), or even preference settings which disturbs, which can be cured with something on the following list put in place in order to provide a catch-all solution for otherwise intractable cases. It starts with a few easy suggestions and safe) 1 and 2) for cases less serious and goes two ways 3) and 4) to reset the default preferences (easily but irreversibly and more laboriously but more completely and also reversible), then follows a list 5) various other possibilities, and it ends with a complete reinstallation 6). If no other suggestion doesn't work, or if no other suggestion appears, you can start on the list and decide how to go or who can apply.

    The following is a general list of things, try when

    (A) the question is not in a specific file,

    (B) you have a printer installed, connected and turned on if it's a physical printer (you can use Adobe PDF/Acrobat Distiller as a printer by default without the need to have a printer on, of course you will need to specify when you really need print on paper), and

    (C) It is not caused by problems with opening a file from external media (see below).

    You tried/made some of them already; 1 and 2) are easier for temporary strangenesses and 3) and 4) specifically may be corrupted/inconvenient preferences); ((5) is a list in itself and 6) is the last resort.

    If possible / there is, you must record a current work first, of course.

    (1) close Illy and open again.

    (2) restart the computer (you can make up at least 5 times);

    (3) close Illy and press Ctrl + Alt + Shift / Cmd + Option + shift during startup (easy, but irreversible);

    4) move the folder (follow the link with this name) with closed Illy (more tedious but also more thorough and reversible), for CS3 - CC you can find the file here:

    https://helpx.Adobe.com/Illustrator/KB/preference-file-location-Illustrator.html

    5 look through and try the relevant among the other options (click on the link with that name, item 7) is a list of the usual suspects among other applications which can disturb and confuse Illy, point 15) applies to the maybe CS5, CS6 and CC);

    Even worse, you can:

    6 (A) uninstall (check the box to delete the preferences, if any), B) run the cleanup tool (if you have CS3/CS4/CS5/CS6/CC) and C) reinstall. It is important to use this step three way: otherwise, things may persist.

    http://www.Adobe.com/support/contact/cscleanertool.html

  • Power supply becomes unstable when you move the Satellite 1900 203

    I have a problem with my toshiba satellite 1900 203 (1905 for usa version). I can manage to start perfectly and I can work without any problem, but if I move the laptop just there seems to be a loss of power (fan is working and screen still shows black and white lines vertical and it sometimes becomes very bright). The CPU seems to also stop, because if I'm music listen to it disappears too.

    I'm pretty sure that this is not a screen problem and it must be powered; I throw overheating, as I can work perfectly for a long time if I move the laptop, but after knocking the laptop intentionally, it crashes. I think there must be a bad contact in the motherboard, but I don't know how to find...

    Thank you

    Hello Miguel

    Here on the forum, it is not easy to give you a diagnosis. To do this, and to understand the problem the laptop must be in front of me.

    In any case, from your description, I assume that there may be more power. If there is the problem with portable power or no power supply energy, but in your description there are usually few of very strange things (fan still works but shows vertical lines).

    Sorry, but I think that your device should be properly checked by technicians. They have various tools to make diagnostic tests and find out what may be the problem.

  • How can I move the taskbar to return to the bottom of the screen?

    Hey I'm really not in computer science and it's probably a solution easy s I hope that someone can help you. my tool bar that is set to be default on the bottom of the screen has somehow ended up going straight and down one side of the compuetr... I can put it back to where is was?

    Hello

    You don't say what operating system you use, but the method is the same.

    «Unlock and move the taskbar»

    http://Windows.Microsoft.com/en-CA/Windows-Vista/unlock-and-move-the-taskbar

    Unlock and move the taskbar

    Once you unlock the taskbar, it is ready to move to any horizontal or vertical office edge.

    Taskbar

    View all

    To unlock the taskbar

    • Right click on a space empty in the taskbar. If a checkmark beside him doesn't lock the taskbar, the taskbar is locked. You can unlock it by clicking on lock the taskbar, which removes the check mark.

      Note

      To lock the taskbar into place, right-click an empty space in the task bar, then click on lock the taskbar, so that the box is displayed.

    To move the taskbar

    • Click on an empty space on the taskbar, and then hold down the mouse button, dragging the taskbar to one of the four sides of the office. Once the taskbar where you want, release the mouse button.

    See you soon.

  • My taskbar is vertical on the right side of the screen. How can I place horizontally at the bottom of the screen?

    Original title: taskbar

    My taskbar is vertical on the right side of the screen. How can I place horizontally at the bottom of the screen?

    Right-click on the taskbar and make sure that lock the taskbar is not checked. Now click on taskbar and keep the left button of the mouse down and drag the mouse to the bottom of the screen - possibly the taskbar should move to the bottom of the screen. Right-click on the taskbar and make sure lock taskbar is checked

  • How move the taskbar on the right side of the screen to the bottom of the screen?

    my taskbar was now at the bottom of the screen its in how come back down to the right

    * original title - was my task bar at the bottom of the screen now its right how to return to the lower part *.

    Hello

    This should help you

    http://Windows.Microsoft.com/en-us/Windows-Vista/unlock-and-move-the-taskbar

    Unlock and move the taskbar

    Once you unlock the taskbar, it is ready to move to any horizontal or vertical office edge.

    Taskbar

    Hide all

    To unlock the taskbar
    • Right click on a space empty in the taskbar. If a checkmark beside him doesn't lock the taskbar, the taskbar is locked. You can unlock it by clicking on lock the taskbar, which removes the check mark.

      Note

      To lock the taskbar into place, right-click an empty space in the task bar, then click on lock the taskbar, so that the box is displayed.

    To move the taskbar
    • Click on an empty space on the taskbar, and then hold down the mouse button, dragging the taskbar to one of the four sides of the office. Once the taskbar where you want, release the mouse button.

    Make sure that block you the taskbar when you have finished

    or try a restore of the system before this happened

    http://www.windowsvistauserguide.com/system_restore.htm

    If necessary do in safe mode

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.
  • My taskbar is suddenly vertically on the right side of my screen instead of at the bottom. (default) Ive tried to bring it back to its original spot by clicking and now an empty space, but cannot get a reaction. How can I get that back to the default?

    My taskbar is suddenly vertically on the right side of my screen instead of at the bottom. (default) Ive tried to bring it back to its original spot by clicking and now an empty space, but cannot get a reaction. How can I get that back to the default?

    Right-click on the taskbar and make sure the taskbar are not locked. Then move it using the left mouse button. Microsoft® Security MVP, 2004-2009

  • How can I move the toolbar back to the bottom of the screen

    original title: my bar of windows startup has always been at the bottom of the screen.  Suddenly he moved to the right of the screen.  How can I return it the n

    My bar of windows startup has always been at the bottom of the screen.  Suddenly he moved to the right of the screen.  How can I move this back to the bottom of the screen.

    Hello

    http://Windows.Microsoft.com/en-us/Windows-Vista/unlock-and-move-the-taskbar

    Unlock and move the taskbar

    Once you unlock the taskbar, it is ready to move to any horizontal or vertical office edge.

    Taskbar

    View all

    To unlock the taskbar
    • Right click on a space empty in the taskbar. If a checkmark beside him doesn't lock the taskbar, the taskbar is locked. You can unlock it by clicking on lock the taskbar, which removes the check mark.

      Note

      To lock the taskbar into place, right-click an empty space in the task bar, then click on lock the taskbar, so that the box is displayed.

    • Click on an empty space on the taskbar, and then hold down the mouse button, dragging the taskbar to one of the four sides of the office. Once the taskbar where you want, release the mouse button.

  • Windows Vista - How can I move the buttons in the taskbar to the left side of the taskbar?

    Windows Vista - How can I move the buttons in the taskbar to the left side of the taskbar? Someone has used my computer and now they are on the right side you can see 2 programs at once. I want that they start on the left and run through the whole (not just two value windows) task bar so I can see all and switch between them by clicking on them.

    Right-click on the taskbar and unlock it. There will be low vertical bars between the sections of the taskbar. Place the cursor on one and drag it to the left. You have to play a little, but you will get it.
     
     
  • My lowest task or the menu bar suddenly appeared on the right side of the screen and is now running vertically towards the top of the screen! Help!

    My O.P.  system is Vista

    Hello

    http://Windows.Microsoft.com/en-us/Windows-Vista/unlock-and-move-the-taskbar

    Unlock and move the taskbar

    Once you unlock the taskbar, it is ready to move to any horizontal or vertical office edge.

    Taskbar

    View all

    To unlock the taskbar
    • Right click on a space empty in the taskbar. If a checkmark beside him doesn't lock the taskbar, the taskbar is locked. You can unlock it by clicking on lock the taskbar, which removes the check mark.

      Note

      To lock the taskbar into place, right-click an empty space in the task bar, then click on lock the taskbar, so that the box is displayed.

    • Click on an empty space on the taskbar, and then hold down the mouse button, dragging the taskbar to one of the four sides of the office. Once the taskbar where you want, release the mouse button.

  • Move the toolbar

    How to move the office toolbar on the right side of my screen (vertical) to the bottom of the screen (horizontal)?

    Tuesday, July 22, 2014 23:42:43 + 0000, JosephHirschfield wrote:

    How do I move the toolbar of office

    I assume you mean the 'task' bar, not a toolbar.

    on the right side of my screen (vertical) to the bottom of the screen (horizontal)?

    Although by default, the taskbar is displayed on the bottom of the screen,
    It can be on any of the sides on what you prefer. To move any
    side to side, simply click an unused portion and drag
    where you want it. Don't forget to click inside it, not on the edge.
    by clicking on the edge and dragging will resize not move.

    If it does not move, it can be locked. In this case, right click on it
    and uncheck "Lock the taskbar", then try again.

    Moreover, with the screen monitors wide today, I prefer the taskbar
    on the left or the right of the screen. I think that allows a better
    use of real estate than have it at the bottom of screen.

  • Can I move the little window 'Search' on the toolbar?

    I use MS Reader, version 2015.009.20077. I am running Windows 7 on my PC.

    I bring up the small window 'Search' pressing on CTRL-F. I can move it left or right, but I can't move it vertically place just below the toolbar. On earlier versions of the player I could move anywhere in the document pane.

    Can I move the little window 'Search' on the toolbar? If so, how?

    Hi jas.beau,

    I'm sorry but it only moves from left to right/right to the left at the top, no way to remove the toolbar. This is a behavior of design.

    Kind regards
    Nicos

Maybe you are looking for