How to change the direction of TLFTextField when running?

I create a TLFTextField object when the design and need to change its direction during execution, how this could be possible?

the following code does not work and all simply ignored:

var myText:TLFTextField = MyText;
myText.textFlow.direction = 'rtl ';

What should I do?

It works for me:

Import fl.text.TLFTextField;
Import flashx.textLayout.formats.TextLayoutFormat;
Import flashx.textLayout.elements.TextFlow;

var tf:TLFTextField = new TLFTextField();

addChild (tf);
TF.x = 10;
TF.y = 10;
TF. Width = 200;
TF. Height = 100;
TF. Border = true;

var myFormat:TextLayoutFormat = new TextLayoutFormat();
myFormat.color = 0 x 336633;
myFormat.fontSize = 24;

var myTextFlow:TextFlow = tf.textFlow;
myTextFlow.hostFormat = myFormat;
myTextFlow.flowComposer.updateAllControllers ();

TF.direction = 'rtl ';
TF. Text = 'This is my text';

Tags: Adobe Animate

Similar Questions

  • How to change the programs that load when Windows starts

    In simple terms... How to change the programs that load when Windows starts?  Because my boot time is slow in arriving at my login screen!

    Download and run the "Autoruns" from Microsoft Sysinternals freeware:

    < http://technet.microsoft.com/en-us/sysinternals/bb963902="">

    It lists all programs that start at startup and allows you to disable it by simply removing a check mark.  This makes it easy to reverse in case something goes wrong.

    HTH,
    JW

  • I need to change the background image often when running

    any body help me,.

    I need to change the background image often when running

    concerning

    welcan

    Hello

    You can also use effects rather than a timer, much more enjoyable... following example moves between a series of embedded images.

    David.

    http://gumbo.flashhub.NET/menu/ source included

  • How to change the direction of linear gradient in Flash CC 15

    In previous versions of flash 8 Macromedia, CS5.5 and CS6 - I remember taking simply by dragging in a direction with the paint bucket tool while using a linear gradient I could change the direction of the gradient. This seems to be either a feature of flash CC.

    (My lock fill is not selected.)

    Use the gradient transform tool. It is an option in the free transform tool.

  • How to change the name of VirtualSwitch without running virtual MAchines of braking?

    Does anyone know how to change the name of the virtual switch (used by VM) without braking the VM running in this cluster?

    The best way to do this without losing network connectivity is add a group of ports with the new name and connect the virtual machines to the new group of port and when the initial group of port is empty remove - remember that it's the port group named not the vswitch.

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • How to change the video resolution (width) when editing?

    Photoshop CC

    I started a video project, selected a video format and broke into publishing. After work for an hour, I realize I lost the left and right edges. It seems that I have chosen a narrower format that I should have.

    How can I change resolution of 1920 x 1080 mid-project? I tried to create a new project of the correct resolution but cannot copy video editing from one to the other.

    Any ideas?

    Thank you very much.

    What is the source of the video you. All video clips are from the same source and have the same format? If so, why not just open the first clip in Photoshop and then add others in video editing.   When Photoshop open the first video he has the correct size of the canvas must be set.   Photoshop has a lot of vide0 presets, but you must use the preset that matches your video. Now, I know my Canon 1 4 mov files 1080 p video. So I could use the HDTV preset but when I do all the Photoshop seems to do is open a white background canvas 1920 x 1080 and add a few lines of guide. I don't know what the guidelines are and no video time is created I need to create the video and add my video. So rather than create a new document using a preset video I open just my first music video.  You will be fine many captured video on the web.  If you just open it in Photoshop, you have the right size of canvas,

    Using Image > canvas size, then setting 1920 x 1080 can recover your cropped off the coast of the image. I actually don't video much so I can't say for sute.

  • How to change the direction of laptop computer screen display

    My laptop screen seems to have shifted from horizontal to vertical and don't know how to get back to normal.

    Hello

    This will show you how to rotate back:

    How to rotate the screen in Windows XP
    http://www.ehow.com/how_5146797_rotate-screen-Windows-XP.html

    Right-click on an empty area of the desktop - graphics Options - Rotation

    CTRL + ALT + arrow key it also runs.

    CTRL + Alt + (up arrow), Ctrl + Alt + arrow (pointing down), Ctrl + Alt + arrow (left) and also Ctrl + Alt + arrow (right)

    I hope this helps.

  • How to change text labels that created when running?

    Hello

    I am creating label dynamic runtime controls and adding them to a group element. This component of the group is in another custom component and I have a lot of comp. custom in my application.

    My question is how to access (via id) and change a text whict labels created when running?

    I can change it, but I am the creation of the id and that you want to reach via id.

    var lbl:mx.controls.Label = mx.controls.Label (subMenu5.group_subMenu5.getElementAt (1));

    LBL. Text = "good job."

    Thanks, have a nice day.

    First of all, if you already use a group of Spark, I would say that you use a label of the spark instead of a label of MX. If you want to refer to the label of the group, to loop through the elements of the Group and check if the id of the item corresponds to the label that you want to assign text.

    var lbl:Label;

    var n: int = myGroup.numElements;

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

    {

    LBL = myGroup.getElementAt (i) as Label;

    If (lbl & lbl.id == "myLabel")

    {

    LBL. Text = "newText";

    }

    }

  • How to change the menu after InDesign is run?

    Hello.

    I want to change the menu after the charge of the InDesign menu.

    For example, if the 'Login' success, change the menu as "logout".

    If it is not possible, please tell me how to disable the menu once the menu is loaded.

    Thank you.

    Hi K159,.

    with the UpdateActionStates of your component of the action function, you get an IActionStateList Interface where you can change the name of the menu item.

    Markus

  • Re: HP Deskjet 2645: how to change the type of paper when copying photo

    Hello! I have the same problem. Currently im using HP Deskjet 2645 and I have a problem with the copying of the photo. I want to copy a document from the photo and change in legal size but the only option are A4plain, A4photo and Photo 4 x 6. How can I fix my printer setting? I hope you can help me with this one...

    Thank you!

    Hi @remz,

    Welcome to the Forums of HP Support!

    I see that you are looking to copy a legal document size on printer all-in-one HP Deskjet Ink Advantage 2645. I'd be happy to help you and don't forget to come back to this thread and check "Accept as Solution", if I have successfully helped solve you the problem. If you want to say 'Thank you' to my effort to help, click on the "thumbs up" to give me a Kudos.

    If you try to copy a legal document size on the dish (glass), you will not be able to. Flat maximum scanning is: 216 x 297 mm (letter 8.5 x 11).

    That being said, you can copy legal size documents using the ADF (ADF). The ADF will automatically copy the legal size document, as long as you have legal paper loaded in the paper feeder.

    Here is a related article, the HP all-in-one Officejet 2620 and the HP Deskjet Ink Advantage all-in-one series 2645 - copy text or mixed Documents.

    Please reply to this message with the result of your troubleshooting. I can't wait to hear strings attached good luck!

  • Where and how to change the name that appears when you post comments

    When I post a comment on MSN my name and PYSEUONYM appear I can't find where to change it

    MSN uses information / name of your e-mail address.

    So the change you access your profile on your email account / hotmail - outlook.com that never allows you to sign in using MSN.

  • How to change the version of java, when I start WebLogic Server Oracle

    Hi friends,
    I installed the weblogic with the version of Java that I show below,
    from weblogic with the Java version:
    Java version "1.6.0_17".

    My question is how to put in place another version of java
    E.g. JRockit to begin my domain name.

    Concerning

    Change your setCommEnv script in the directory {WL_HOME} / common/bin and set JAVA_HOME to your path. If you change some other JVM Jrockit, also the JAVA_VENDOR value (BEA in WL 10, Oracle in WL 10.3.3)

  • How to change the page that appears when I open the page new tab using the sign + on the tab bar?

    every time I open a new tab using + sign on the tabs bar, a Web site appears, which I was not aware. I want just the old rear setting. It must be my fault of friends. Help, please.

    You can do this on the topic: config page by resetting the pref browser.newtab.url via the context menu.

    See this article on the page tab (topic: newtab):

  • In XP, how to change the properties so that when you open a program, it is automatically expanded?

    title says it all.  A few weeks ago I was driving full-screen, now I have to press the size button to get the full screen, which I didn't do before.

    * original title - XP-loading of icons I have only half screen not full screen as I did 2 weeks ago *.

    Hi JimBinnebose,

    ·         Are you referring to the icon on the desktop shortcuts?

    ·         Do you want to open maximized?

    Follow these steps and check if that helps.

    a. right-click on the icon and select Properties.

    b. under the shortcut tab find run.

    c. click the menu drop down and select Maximized.

    d. click apply and OK.

  • How to change the icon of the application where the application focus?

    Hello guys

    I want to know how to change the application icon focus when the application.

    I know how to create the icon of the Application, such as insert icon-> properties-> use as the application icon.

    Do you know how to insert the second icon to the project?

    Please help me guys

    TNX'

    Hello

    Ago may messages on roll on icon.

    This is the KB article for the overview icon.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    KB article for icon creation.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    TNX.

Maybe you are looking for

  • How can I remove a letter from project in the project file?

    Of course, it's simple, but it's the first time I had a draft letter in my project file and I can't remove it to clear the file.

  • C870-14 t and Win7 - undetected webcam - USB device unknown satellite

    Hello Since then, the webcam on my wife's cell phone is no longer in effect. I checked the Device Manager and I have a unknown USB device. so I downloaded the drivers on the Toshiba site.After installation, the web cam HD made its appearance in the I

  • Qosmio G20 - TV Tuner

    HelloI have a G20 and have never been able to get a signal. I tried the terrestrial antenna and also my SKY box via the input RF1. Does anyone know what I might be missing? Someone told me I might need a download from microsoft but was not sure that

  • Symbolic notation on the chart MS2009 axis labels?

    I use Measurement Studio 2009 (c#) to display graphs of waveform. Question: How can I format the labels to the major division of a XAxis (or YAxis) such as: -A value of 1000 will display "1 k". -A value of 0.001 will display "1 m". -etc. I'm looking

  • Requiring a LAN connection to share folders (ineffective p/w requirement)

    Two Windows 7 machines, both connected to the same router; the two part of the default WORKGROUP. for reference purposes, one is a laptop and one is a desktop computer. The office is configured to require an account and a password in order to see the