Change the Text in Linked TFL on the fly

     I have 3 TFL fields on the stage. They are linked so the text overflow from the first spills into the subsequent fields 2 and 3. I want to change the text dynamically but when I do the overflow text do not "overflow" into the other fields. It is as if they were not linked at all.
For instance, when I call:
textField1.htmlText = "bla bla bla......" 
the first text field displays the text just fine but the "overflow" does not display in textField2 and textField3 eventhough they are linked on the stage and the initial text displays just fine.
Can this be done?
\\Nick

Do you mean TLFTextField in Flash pro? If you are talking about TextField, there is nothing about TLF.
TextFlow can flow through linked containers. You can make it on linked Sprite. TLFTextField is a kind of Sprite. You need not to use TLFTextField to implement such a feature.
Sample code:
    import flash.display.Sprite;
    import flashx.textLayout.compose.StandardFlowComposer;
    import flashx.textLayout.container.ContainerController;
    import flashx.textLayout.conversion.TextConverter;
    import flashx.textLayout.elements.TextFlow;
    import flashx.textLayout.edit.EditManager;
    import flashx.textLayout.container.ScrollPolicy;
    public class ContainerControllerExample1 extends Sprite
        private const textMarkup:String = "<flow:TextFlow xmlns:flow='http://ns.adobe.com/textLayout/2008' fontSize='8' " +
                "textIndent='10' paragraphSpaceBefore='6' paddingTop='8' paddingLeft='8' paddingRight='8'>" +
            "<flow:p paragraphSpaceBefore='inherit'>" +
                "<flow:span>There are many </flow:span>" +
                "<flow:span fontStyle='italic'>such</flow:span>" +
                "<flow:span> lime-kilns in that tract of country, for the purpose of burning the white" +
                    " marble which composes a large part of the substance of the hills. Some of them, built " +
                    "years ago, and long deserted, with weeds growing in the vacant round of the interior, " +
                    "which is open to the sky, and grass and wild-flowers rooting themselves into the chinks" +
                    "of the stones, look already like relics of antiquity, and may yet be overspread with the" +
                    " lichens of centuries to come. Others, where the lime-burner still feeds his daily and " +
                    "nightlong fire, afford points of interest to the wanderer among the hills, who seats " +
                    "himself on a log of wood or a fragment of marble, to hold a chat with the solitary man. " +
                    "It is a lonesome, and, when the character is inclined to thought, may be an intensely " +
                    "thoughtful occupation; as it proved in the case of Ethan Brand, who had mused to such " +
                    "strange purpose, in days gone by, while the fire in this very kiln was burning.</flow:span>" +
            "</flow:p>" +
            "<flow:p paragraphSpaceBefore='inherit'>" +
                "<flow:span>" +
                    "The man who now watched the fire was of a different order, and troubled himself with no " +
                    "thoughts save the very few that were requisite to his business. At frequent intervals, " +
                    "he flung back the clashing weight of the iron door, and, turning his face from the " +
                    "insufferable glare, thrust in huge logs of oak, or stirred the immense brands with a " +
                    "long pole. Within the furnace were seen the curling and riotous flames, and the burning " +
                    "marble, almost molten with the intensity of heat; while without, the reflection of the " +
                    "fire quivered on the dark intricacy of the surrounding forest, and showed in the " +
                    "foreground a bright and ruddy little picture of the hut, the spring beside its door, the " +
                    "athletic and coal-begrimed figure of the lime-burner, and the halffrightened child, " +
                    "shrinking into the protection of his father's shadow. And when again the iron door was " +
                    "closed, then reappeared the tender light of the half-full moon, which vainly strove to" +
                    "trace out the indistinct shapes of the neighboring mountains; and, in the upper sky, " +
                    "there was a flitting congregation of clouds, still faintly tinged with the rosy sunset, " +
                    "though thus far down into the valley the sunshine had vanished long and long ago.</flow:span>" +
            "</flow:p>" +
        "</flow:TextFlow>";
        public function ContainerControllerExample1()
            // create the TextFlow, containers, and container controllers
            var textFlow:TextFlow;
            var container:Sprite = new Sprite();
            var container2:Sprite = new Sprite();
            var controllerOne:ContainerController = new ContainerController(container, 200, 210);
            var controllerTwo:ContainerController = new ContainerController(container2, 200, 220);
            // import the text flow from markup using TextConverter and assign a StandardFlowComposer
            textFlow = TextConverter.importToFlow(textMarkup, TextConverter.TEXT_LAYOUT_FORMAT);
            textFlow.flowComposer = new StandardFlowComposer();
            addChild(container);
            addChild(container2);
            container.x = 25;
            container.y = 100;
            container2.x = 280;
            container2.y = 100;   
            // add the controllers to the text flow and update them to display the text
            textFlow.flowComposer.addController(controllerOne);
            textFlow.flowComposer.addController(controllerTwo);
            textFlow.flowComposer.updateAllControllers();
            textFlow.interactionManager = new EditManager();
            //controllerTwo.verticalScrollPolicy = ScrollPolicy.ON;

Similar Messages

  • How to remove 'Change to Text Mode' link on 'richTextEditor' item

    Hi,
    Now I'm using 'richTextEditor' item on my page. But above it, there is a link named 'Change to Text Mode'. How can I remove it? From profile, if I change the profile, it will be Text Mode only. But I want to use rich text mode, not use text mode. So I want to remove the link 'Change to Text Mode'. But it seems it is with the text box together.
    Please help.
    Regards,
    Eileen

    // Get your bean
    OAMessageRichTextEditorBean bean = (OAMessageRichTextEditorBean)webBean.findChildRecursive("YourMessageRichTextEditorBean");
    // Set to be plain text mode
    bean.setRenderingMode(OAMessageRichTextEditorBean.TEXT_MODE);
    // Remove the "Switch to Rich Text" hyperlink
    bean.setAttributeValue(OAMessageRichTextEditorBean.SWITCH_MODE_HYPERLINK_ATTR, BooleanUtils.getBoolean(false));
    Edited by: asnow_au on Jan 9, 2009 3:37 PM

  • Changing buttons text in Report

    Hi !
    I am using a standard Region report in my application.
    There are some buttons in this Region:
    "Next button" and "Previous button".
    How to change the buttons text ?
    I want to get empty text on this buttons.
    Thanks,
    Roman

    Hi user....
    I am sorry,
    but I want to change a text of link label inside the Region.
    There are two links inside the Region: Next link and Previous link.
    I want to get the links without text label.
    Thanks, Roman.

  • Can't change the color of text of links on my Welcome Page

    I have a Welcome page with four links that happen to be text that I dragged over from my list of sites. I can change the text style and size but I cannot change the color from the default reddish brown.

    To change the color of any hyperlinks, you need to select the link, go to the Hyperlink page, choose the Format option, and then select the color you want for Normal, Rollover, Visited and Disabled.
    This should work.
    You can also set the default colors and formats you want for all other entries on that same page.

  • I can't change the colour of linked text?

    I have a black background on the side of my web page containing the menu bars which requires the link text to be white so it can be
    seen. I also have it set to change to yellow when you hover over it.
    The problem is that this setting seems universal throughout the website and I cannot get the links in general text (such as 'contact
    us' links, etc) on each page to change colour - they default to white which doesn't show up as the background is also white.
    i have tried creating a CSS rule for links in the body of a page but to no avail.
    Can I change the colour of links on different parts of the website?
    I am relatively new to dreamweaver with little knowledge of CSS, etc but I'm sure this must be possible.

    Yes it is possible to have differen coloured links..
    You need to look at Pseudo-classes / descendant selectors:
    http://www.thepattysite.com/linkstyles1.cfm
    http://www.projectseven.com/tutorials/pseudoclasses/index.htm
    Descendant selectors:
    http://www.projectseven.com/tutorials/css/pseudoclasses/page3.htm
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/
    http://twitter.com/nadiap

  • Changing the Name of Text Links to a File

    I happily discovered that iWeb will create download links to files such as text, spreadsheet, word processing, PDF, and the like, if you zip them. However, when I create a text link to a file, the linked text takes on the name of the file, such as YourDownload.zip, rather than keeping the description I entered when creating the link. So links to files don't work the same way that links to URLs or other web pages within a site do, in that the link path (the URL) is separate from the name or description of the link. Is there a way around this apart from using graphics objects for the links?
    Any advice would be most appreciated.

    Once the text link is created you can go back, select the text and change the name to anything you want. It doesn't have to the the name of the zipped file. An annoyance but easily overcome.
    OT

  • I have an Adobe Flash Professionals digital classroom book for CS6 and was following all steps easily until it ask me to select the text tool and change it from classic to tfl in the property inspector. I looked and all that drops down is dynamic, static,

    I have an Adobe Flash Professionals digital classroom book and was following all steps easily until it ask me to select the text tool and change it from classic to tfl in the property inspector. I looked and all that drops down is dynamic, static, and input. Where is the TFL and Classic ? I watched adobe learning center but he was using CS5. Can anyone please help?

    Hi,
    Do you use Flash CS6 to follow the instructions in the classroom book? If yes, then you can find it under text drop down for an AS3 Document as shown below
    If you follow the instruction in Flash CC or Flash CC2014 then you will not find this option as this is deprecated.
    Thanks!
    Mohan

  • How to change the links text color?

    could any one tell me if it's possible to change the link text's color? instead we stuck with the defaut theme asigned color.

    Ok Looking to do this manually I don't see all that you suggest I need to see.
    .Body {
    color: #181c01;
    font-family: 'Palatino-Roman', 'Palatino', 'serif';
    font-size: 14px;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    letter-spacing: 0;
    line-height: 19px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    opacity: 1.00;
    padding-bottom: 0px;
    padding-top: 0px;
    text-align: left;
    text-decoration: none;
    text-indent: 0px;
    text-transform: none;
    .Header {
    color: #6a6f75;
    font-family: 'Palatino-Bold', 'Palatino', 'serif';
    font-size: 29px;
    font-style: normal;
    font-variant: normal;
    font-weight: bold;
    letter-spacing: 0.16em;
    line-height: 38px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    opacity: 1.00;
    padding-bottom: 0px;
    padding-top: 0px;
    text-align: center;
    text-decoration: none; NOTE THIS
    text-indent: 0px;
    text-transform: uppercase;
    .Normal {
    padding: 4px;
    .graphicgeneric_body_textbox_styledefault {
    background: transparent;
    float: none;
    margin: 0px;
    opacity: 1.00;
    .graphicgeneric_header_textbox_styledefault {
    background: transparent;
    float: none;
    margin: 0px;
    opacity: 1.00;
    .graphictextbox_layout_styledefault {
    padding: 4px;
    .graphictextbox_styledefault {
    background: transparent;
    float: none;
    margin: 0px;
    opacity: 1.00;
    div {
    overflow: visible;
    img {
    border: none;
    .InlineBlock {display: inline; }
    .InlineBlock {display: inline-block; }
    .tinyText {
    font-size: 1px;
    This is the welcome page css file, not the index file.
    On my page I have white background, black text, when the arrow points to the link text it turns light brown, I am not so concerned about anything except the link text standing out in a differnt color, initially.
    I am leaning quite abit.
    So what do I do now
    Thanks
    Moncrief

  • Can I change the colour of my link text?

    I mean, can I change it from the colour set in the template – in this case a rather uncool dun shade? Attempts to change it with the inspector haven't worked; the colour seems set.
    Thanks,
    Simon

    If you're referring to the nav bar links that would require some post publishing editing. However, there's an application, HyperlinkShader, that's supposed to change the link color of the templates. Search for it at VersionTracker.com. The post publishing info has been discussed in other topics in this forum. Do a search and you should be able to find the threads.

  • How to change the size of the web item text in WAD 7.0

    Dear All
    I am quite new to WAD and I am having a problem with changing the font size of a web text item
    I have searched already and someone suggested changing the Design property to  HEADER1 or HEADER2 etc and then I should be able to change the font / size.
    I have done this but to no avail
    I want to have large heading across the top of the web template
    am I using the wrong web item ?
    I know I can key the text directly into the web template and change the font from the menu bar  but I need it in an item as I want to export them through to PDF later
    Would be grateful of any help
    thanks
    Sandra

    Thank you all for your quick responses (I will award points once this is sorted)
    On the information you have supplied this has opened up yet another new part of WAD that I have not experienced ...TAGs
    Shubhranshu - I have done what you said but as I have never used tags I have just had a look around and found that I can insert Any Tag but not sure if I should be doing that.  If it is inert any tag , I chose FONT from the drop down and cbmAttributes defaulted into the custom tab for the class name but not sure what it wants in the Attributes and CSS Style tab, it won't accept what I am putting which is leading me to believe that I shouldn't be doing it that way.
    Venkat - thanks for the links they will prove very useful.  I've had a look and although they talk alot about the XHTML code for tags they don't actually say how you do it in the editor - I would like to produce one that way first and then see the code it generates for it.  I'm a bit apprehensive with changing the code direct as I don't want to mess anything up.
    Thanks again for your help

  • Changing the default "New Item" link url in SharePoint

    Is it possible to change the default url of the New Item button on a list.
    When i hover over or click on new item link it show the ......../15/listform.aspx?Page type=blah.....blah......
    I want it to be something like :/newform?source=xxxx
    Please help me !
    Thank you !

    Hi,
    The following code for your reference, please add the code into a Content Editor Web Part in the list view page.
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
    <script type="text/javascript">
    $(function () {
    $("#idHomePageNewItem").attr("href", "http://site/list/newform.aspx?source=http://...........");
    $("#idHomePageNewItem").attr("onclick", "");
    </script>
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)

    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    3° Ive created buttons linking pages..
    - "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'
    - what should i do?
    5° Once i export it into Swf. how how can i visualize it? or put it online?
    Thank you for your time.

    stlbbl4u wrote:
    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    You should setup Object Styles - these can also include Paragarph Styles that can be triggered when the Style is selected.
    http://help.adobe.com/en_US/indesign/cs/using/WS5CEDB81A-0011-4dc9-9DE8-AC7AD4C80076a.html
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    I'm not sure what you mean - I don't do files with Animations
    3° Ive created buttons linking pages..- "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    Does it work properly when you export it to the finished file?
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'- what should i do?
    InDesign won't link directly to youtube videos. I think your best bet would be to use Downloader to download the video and embed them directly in Indesign.
    5° Once i export it into Swf. how how can i visualize it? or put it online? 
    Thank you for your time.
    You can look up how to embed a SWF file into your HTML - but it depends what you mean by "online" there's a dozen ways to get a file "online".

  • How to change the default text "There are no items to show in this view" in the visual webpart

    Hi,
    I am using a visual webpart and in that if there are no items in the list it is showing the default text "There are no items to show in this view." I want to change this default text. 
    I checked the forums here there are multiple ways are shown but no one is working for me.
    Kindly help me to change this text.
    Thanks in advanced.

    It seems you're retrieving items inside a specific you.. why not having a <div> inside you're visual web part and check to see if the count of items retrieved is > 0 then insert that in the div, otherwise, insert your custom message and not rendering
    the web part itself. What you're describing is the default message from SharePoint which comes from default views, and this can be changed from xslt in SP 2010 or in JSLink in SP 2013, here's a link how to do so in JSLink :
    http://www.idubbs.com/blog/2015/jslink-csr-to-override-there-are-no-items-to-show-in-this-view/ .
    But as said, since you're doing a visual web part, keep your stuff in the visual web part and check for the count of items before adding the rendered data to your div.  
    Mohamed Derhalli
    SharePoint Consultant
    Blog: SharePoint Thoughts
       Twitter:
    LinkedIn:
      

  • Is there any way to change the font size of the text in the Finder Sidebar?

    This may sound like a bit of a dorky question but here goes nothing...
    I am rather near-sighted and in need of new glasses but I am stuck in a holding pattern until I can get a referral to see my eye doctor. Anyway... I have found myself using the Zoom features far more often and increasing the font size in the Finder for the Item Names & Info.
    The problem that I am facing now, is that the font size of the text in the sidebar is FAR SMALLER than the font size of the text of the actual file names & info.
    +*IS THERE ANY WAY TO INCREASE THE FONT SIZE OF THE TEXT IN THE SIDEBAR??*+
    So far I have looked in:
    *The Finder Preferences
    *The Desktop Preference Pane
    *The Appearance Preference Pane
    *The Seeing Tab of the Universal Access Preference Pane
    And to add to my frustration I have also searched the Mac OS X Help AND all of the posts in this thread (back to 1/1/09) that had the word "sidebar" mentioned in them!!
    +*DOES ANYBODY HAVE ANY OTHER IDEAS?? OR IS THIS ONE AREA THAT I AM OUT OF LUCK BECAUSE APPLE DIDN'T FORESEE THIS ISSUE??*+
    Usually, Apple is really very good about foreseeing any possible trouble (ESPECIALLY when it comes to the area of Accessibility for people w/ disabilities!!)
    I do hope that SOMEBODY can help me on this one!!
    Also, I noticed that the size of the text that is on the Toolbar is also the same ITSY BITSY font size as the text on the sidebar, but I am guessing that there is next to nothing that can be done about that!!
    Thanks a Million!!
    +~Kathryn A.+
    P.S. Here is the link to a screenshot that I took that will illustrate my problem more clearly...
    Icon View Screenshot: http://screencast.com/t/gzDONwN3

    Hi! The only way I know of is changing the screen resolution. Tom

  • Using a Variable to change the content of Caption Text?

    Can someone give me some direction on how I can do something like this.
    I have one caption, I want to change it's text upon a button click.
    So I have 3 buttons and 3 sets of  text, and one caption.
    Thanks in advance!

    Hi there
    You might achieve it in a few different ways.
    Multiple captions and use Hide / Show actions to hide one and show another
    Create a variable and use that in the caption. Then configure the action to change the variable value
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

Maybe you are looking for