Dynamic Text Feild with Dynamic Scroll Bar

I have a Dynamic Text Feild with a dynamic Scroll bar.
It loads a simple ASCI text file with some html formating.
but I still can not manage to get the text to format.
The biggest problem with the format is a big space between
paragraphs.
I am not sure why but I think the Frame must need a var to
render to html.
Can anybody help please?

My text had the following, similar but no parsing string.
I guess
yourstring.split("\n\r").join("\r").split("\r\n").join("\r");
takes out the carrage returns or <br>?
I notice the one I had just say's String.
I assume that would be the text that is the string?
Thank you for sharing your knowledge of this.
var my_lv:LoadVars = new LoadVars();
my_lv.onData = function(src:String) {
if (src != undefined) {
myTxtFeild.text = src;
} else {
myTxtFile.text = "Error loading text.";
my_lv.load("CadnetPage1_html.txt");

Similar Messages

  • How do i control 2 text boxes with 1 scroll bar? (CS4)

    I want to control 2 Dynamic Text boxs with the 1 scroll bar component? I want them to scroll simultaneously with the user only needing to use the one component. Thank you in advance for your help

    The textfields should have the same number of lines.  You can have the scrollbar (sb) assigned to one textfield (t1) and then have an event listener/handler for the scrollbar adjust the other textfield's (t2) scrollV property to match the first one's scrollV property:
    import fl.events.ScrollEvent;
    sb.addEventListener(ScrollEvent.SCROLL, adjustTs);
    function adjustTs(evt:ScrollEvent):void {
        t2.scrollV = t1.scrollV;

  • Trying to create a text item with a scroll bar in Indesign 5.5

    Is there a simple way to create a scrollable text article in Indesign 5.5? It will later be exported to a SWF as a mini-flash web portfolio.
    I would appreciate any help.
    I'm new to Indesign.

    quote:
    Originally posted by:
    wildfire121
    Can someone please help. I am trying to create a text box
    with a working scroll bar that will scroll the text in the text
    box. Can someone please help me with this?
    Do you mean a text box people can type in (for a Web form
    entry) or one for displaying your content?
    If the first, then you use the textarea tag and scrollbars
    appear when the user types more lines that you specify. See the
    textarea
    description at W3Schools.
    If the second, then that's usually done in Flash, but can be
    done with CSS. See these two pages:
    Dynamic
    text with scrollbar (Flash)
    Textbox
    with scrollbar (CSS)

  • Adobe form -- Issue in Displaying Dynamic text along with Static text

    Hi All,
    I am having an issue when i am displaying a dynamic text along with static text in adobeforms.
    The dynamic text is slightly coming down and not aligned with the static text. i can see half row it is coming down.
    how to align both texts to be printed in same format.
    Request all of your expert advices in achieving this .
    Thank you in advance.
    Thanks&Regards,
    Phani Miriyaila.

    Hi,
    Select both dynamic and static text in the layout. Goto Object palette -> Layout. Give values to X,Y coordinates and Height & Width. Anchor properly and specify margins as well.
    Select both dynamic and static text in the layout. Right click on it and goto palettes -> Paragraph. It gives you the text alignment options. Align the text and give similar font and size.
    Thanks & Regards,
    Sanoosh

  • Absolute dynamic select query with dynamic join and where

    Has anyone ever tried creating an absolutely dynamic SELECT query with dynamic Join and Where conditions.
    I have a requirement of creating such a query in an Utility Class, and i have written the code. But its throwing my sysntax errors.
    Please let me know where am I going wrong OR is it really possible to create such a dynamic Query??
        SELECT (FIELDS) INTO TABLE IT_TABLES
          FROM ( (ME->TABLE1)  inner join ( me->table2 )
          on ( on_condition ) )
          WHERE (me->where_fields).
    Ags.

    It worked for me in a following way:
    select * into corresponding fields of table <result_table>
            from (join_string)
            where (l_where).
    Where the contents of join_string were dynamically build using concatenation. So it will be something like
    concatenate ME->TABLE1 'as a INNER JOIN' me->table2 'as b ON (' into join_string separated by space.
    <...>
    add here matching/reference colums, something like
    concatenate 'a~' me->TABLE1_JOIN_COL into temp1.
    concatenate 'b~' me->TABLE2_JOIN_COL into temp2.
    concatenate join_string temp1 '=' temp2 into join_string separated by space.
    <...>
    concatenate join_string ')' into join_string separated by space.
    And then use similar approach for l_where variable.

  • Dynamic select query with dynamic where condition

    Hi all,
    I want to use the dynamic select query with dynamic where condition. For that I used the below code but I am getting dump when using this code.
    Please advice, if there is any other way to achieve this requirement.
    Thanks,
    Sanket Sethi
    Code***************
    PARAMETERS: p_tabnam      TYPE tabname,
                p_selfl1      TYPE edpline,
                p_value       TYPE edpline,
                p_where1      TYPE edpline .
    DATA: lt_where    TYPE TABLE OF edpline,
          lt_sel_list TYPE TABLE OF edpline,
          l_wa_name   TYPE string,
          ls_where    TYPE edpline,
          l_having    TYPE string,
          dref        TYPE REF TO data,
          itab_type   TYPE REF TO cl_abap_tabledescr,
          struct_type TYPE REF TO cl_abap_structdescr,
          elem_type   TYPE REF TO cl_abap_elemdescr,
          comp_tab    TYPE cl_abap_structdescr=>component_table,
          comp_fld    TYPE cl_abap_structdescr=>component.
    TYPES: f_count TYPE i.
    FIELD-SYMBOLS : <lt_outtab> TYPE ANY TABLE,
    *                <ls_outtab> TYPE ANY,
                    <l_fld> TYPE ANY.
    struct_type ?= cl_abap_typedescr=>describe_by_name( p_tabnam ).
    elem_type   ?= cl_abap_elemdescr=>describe_by_name( 'F_COUNT' ).
    comp_tab = struct_type->get_components( ).
    comp_fld-name = 'F_COUNT'.
    comp_fld-type = elem_type.
    APPEND comp_fld TO comp_tab.
    struct_type = cl_abap_structdescr=>create( comp_tab ).
    itab_type   = cl_abap_tabledescr=>create( struct_type ).
    l_wa_name = 'l_WA'.
    CREATE DATA dref TYPE HANDLE itab_type.
    ASSIGN dref->* TO <lt_outtab>.
    *CREATE DATA dref TYPE HANDLE struct_type.
    *ASSIGN dref->* TO <ls_outtab>.
    * Creation of the selection fields
    APPEND p_selfl1 TO lt_sel_list.
    APPEND 'COUNT(*) AS F_COUNT' TO lt_sel_list.
    ** Creation of the "where" clause
    *CONCATENATE p_selfl1 '= '' p_value ''.'
    *            INTO ls_where
    *            SEPARATED BY space.
    *APPEND ls_where TO lt_where.
    * Creation of the "where" clause
    APPEND p_where1 TO lt_where.
    * Creation of the "having" clause
    l_having = 'count(*) >= 1'.
    * THE dynamic select
    SELECT          (lt_sel_list)
           FROM     (p_tabnam)
           INTO CORRESPONDING FIELDS OF TABLE <lt_outtab>.
    *       WHERE    (lt_where).

    Hi Sanket,
    The above given logic of mine works for you, put the code in the If condition and try-
    just like below:
    IF NOT P_EBELN IS INITIAL.
    lt_where = '& = ''&'' '.
    REPLACE '&' WITH p_ebeln INTO lt_where.
    REPLACE '&' WITH field_value INTO lt_where.
    SELECT (lt_sel_list) INTO CORRESPONDING FIELDS OF TABLE <lt_outtab>
    FROM (p_tabnam)
    WHERE (lt_where).
    ENDIF.
    thanks\
    Mahesh

  • MENU's are coming with the scroll bar

    Hi,
    I have a problem like this, I am migrating one menu file from a forms6i to 10G after that i tried to put that menu in the form then i found that the menus are coming with the scroll bar is there any parameter so that i can set that to false so i can see all the menus at one time.
    Thanks in advance.
    Saravanan.K

    below is my code.
    Display will have some graphics, the mouse click on the part of the graphics will produce different values in the table. class DatabaseDataDisplay has the JTable who display the values.
    Display.addMouseListener(new MouseAdapter()
    {  public void mousePressed(MouseEvent evt)
    //get the location of the mouse
              int x = evt.getX();
              int y = evt.getY();
              current = find(x, y);
    if(current!=-1)
    DatabaseDataDisplay D_Display=new DatabaseDataDisplay(Table_Name, current);
                                       //remove the old panel
                        WholePanel.remove(scrollPane5);
              //add the new DataPanel
    JScrollPane scrollPane5 = new JScrollPane(D_Display,
    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
    JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    WholePanel.add(scrollPane5, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 2, 0, 2), 659, 5));
    /*if I put a repaint() here, the value on the table will always the values of the first time values when I click the mouse*/
    WholePanel.validate();

  • I'm on Mac OS lion and since your new upgrade, the page loads of center, with no scroll bar. On every computer I run I have to resize the page for the page to load correctly. How can I fix this?

    I'm on Mac OS lion and since your new upgrade, the page loads off center, with no scroll bar, this happens on every computer I run.
    In order to have the page load correctly, have to manually resize the page.
    How can I fix this?

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    See also:
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Illustrator Fullscreen mode with out scroll bars

    Hi,
    I'm using Illustrator CS5 for Mac. When I go to full screen mode all toolbars disappear but scroll bar is still there.
    How can I solve that?
    Thanks,
    Gregor Cepek

    Let me explain my situation. In our company we have one big screen (full hd) for clients to see our work in realtime.
    Now I just create "window -> new window" so I have copy of document I'm working on. Then I move it to the big screen and enable "full screen mode".
    It hides all toolbars which is perfect, but it doesn't hide scroll bars (and zoom and page drop down). In manual is written that full screen mode should be with out scroll bars.
    As our designs are mostly for FULL HD resolution it would be very nice to display them full screen on HD TV set. With no distracting scroll bars.
    In photoshop it works ok.
    Thank you,
    Gregor Cepek

  • Fix Chrome? CP opens in a small window with a scroll bar

    I have CP presentations that previously worked and they have started to open funny. They work in IE, but not in Chrome. The presentation opens in a full screen, but with a scroll bar and the right and only showing about 1/4 of the screen. See attached screen shot. Any ideas?

    So it could be 2 things:
    The HTML scaling that is causing your project to expand, and then add a scrollbar as the frame you are viewing your content in is expanding to suit the screen size. When you publish try unchecking the "Scalable HTML Content" checkbox from the publish settings.
    It could be the projects Zoom settings, if it is a flash module. Just right click and ensure its not zoomed.
    The thing that has me stumped is why it is only loading 1/4 of the screen.

  • Showing RSS feed in Dynamic Text box (with hyperlink)

    Hi all -
    I am currently trying to pull RSS data into a project for my first time and am trying to get 3 (potentially 4) boxes filled with rss data that will be updated. So far, I am going with Actionscript 3. So far I have the code below, but it puts data in a listbox. What is the easiest way to put the data in three dynamic text boxes inside a movie clip, so I have one for the title, one for description and one for link (shown as 'read more' text but a link using the url from the rss value)?
    I am really banging my head against the wall on this one and want to get it sorted asap, so any help would be GREATLY appreciated! I have also attached an image to show what I am trying to do:
    I also want to know if it's possible to show rss values only if they exist. For example, my xml feed currently only has 3 items that change, and i will be assigning these to boxes, but is it possible to display a fourth if it exists, and if it doesn't it just shows the first?
    My code so far:
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, onLoaded);
    var xml:XML;
    function onLoaded(e:Event):void
        xml = new XML(e.target.data);
        var il:XMLList = xml.channel.item.description};
        trace(il[1]);
             lb.addItem({data:il.description.text()
                                label:il.title.text()}):
    loader.load(new URLRequest("http://www.rssfeedhere.xml"));

    you would create a movieclip (exported for actionscript and class = rssItem) with 3 textfields and the display shown in your message and use something like:
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, onLoaded);
    var xml:XML;
    function onLoaded(e:Event):void
        xml = new XML(e.target.data);
        var il:XMLList = xml.channel.item.description};
        for(var i:uint=0;i<il.length();i++){
            var mc:rssItem = new rssItem();
            addChild(mc);
            mc.x = 300*i%2;
            mc.y = 300*Math.floor(i/2);
            mc.titleTF.text = il[i].title.text();
            mc.descriptionTF.text = il[i].description.text();
            mc.readmoreTF.text = ?
    loader.load(new URLRequest(http://www.rssfeedhere.xml));

  • Cannot use text:TextField with dynamic text in 3.2

    Hi,<br /><br />I have a multi-lang app which uses English LTR and Hebrew-Arabic RTL.<br />I am using a properties file for each language, and I get the<br />right item using resourceManager getString.<br /><br />Until 3.2 I had to reverse the order of the words in each item when using<br />Hebrew (or Arabic for that matter).<br /><br />In 3.2 with the new Text layout framework, this is not needed (MAJOR IMPROVEMENT) but I cannot get it to work with dynamic text only static text.<br /><br />of course all works great if I upgarde to flex 4.0, and use the textBox component, but I do not want to do that, so late in the development phase of the application.<br /><br />Here is a small mxml which shows the problem:<br /><br /><?xml version="1.0" encoding="utf-8"?><br /><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"<br />   xmlns:TryComps="appComponents.*" xmlns:text="flash.text.*"><br />   <mx:Style source="css/flashTypeStyles.css"/> <br />   <mx:Script><br />     <br />       import mx.resources.ResourceManager;<br />     <br />   </mx:Script><br />     <mx:Label text="Using text:TextField FIXED : THIS WORKS"/><br />        <!-- some text in hebrew if you dont see it you probably dont have it insalled --><br />     <text:TextField text="&#1506;&#1489;&#1512;&#1497;&#1514; &#1499;&#1493;&#1514;&#1489;&#1497;&#1501; &#1502;&#1497;&#1502;&#1497;&#1503; &#1500;&#1513;&#1502;&#1488;&#1500;"/><br />        <mx:Label text="Using text:TextField DYNAMIC :  THIS DOES NOT WORK"/><br />     <text:TextField text="{resourceManager.getString(Locales.LOCALE_BUNDLE,'BI_DIRECTIONAL_TEXT')}"/><br />     <br /></mx:Application><br /><br />Any one has an idea ???<br />The 'BI_DIRECTIONAL_TEXT' is an entry in the property file which has the same value as the static text above.<br /><br />The run time error I get is : <br />TypeError: Error #2007: Parameter text must be non-null.<br /><br />Thanks<br /><br />Eli7

    If you look thru the TextField class in the help documents you will find all of the properties you can manipulate.  One property is the wordWrap property which will keep you text from going off the side of the textfield.  Another is multiline which will allow the textfield to have more than one line.  And another is the autoSize property which will make your textfield adjust to fit the amount of text loaded into it.

  • Dynamic Text box with linking to frames

    I have a problem. I've tried everything I can think of and what I have Googled, but nothing has helped. I have a scrolling dynamic text box and I need some words in that text box to link to frames, like buttons (Not a URL). This is the file and the frame I'm on is "conflictNorthernPlains"     https://dl.dropbox.com/u/72608572/civilWarEra7.zip
    Thanks

    use:
    var tf:TextField = new TextField();
    addChild(tf);
    tf.htmlText = "<a href='event:frame1'>link to  frame1</a><br/>";
    tf.htmlText += "<a href='event:frame2'>link to frame2</a><br/>";
    tf.addEventListener(TextEvent.LINK, tfF);
    function tfF(e:TextEvent):void{
    gotoAndStop(e.text);
    p.s.  please mark helpful/correct responses, if there are any.

  • Use 2 different fonts in a dynamic text field with tf.htmlText?

    i've got a dynamic text field on the screen and all of my
    fonts embedded. is it possible to use 2 different fonts when
    dynamically setting the fields text with the htmlText property?
    i've tried the <font> and the <textformat> tags and
    neither work. I can set it once via a texformat object, but that's
    it.
    thanks

    you're answering all of my questions today aren't you? :)
    right, i think this will be hard since my data is all comming
    from XML and i have no way to specifically set text ranges as
    different fonts within a string.
    i've told the developers to just use images for the special
    characters.

  • What's the code for applying CSS to an XML file, in a dynamic text feild

    Hi all,
    Very simply put, just like in the title.
    If you have a CSS ready, an XML file that already appears
    inside a dynamic text field, what AS2 code would you use to connect
    the CSS so it applies to the XML file which is now unstyled?
    thanks!!!

    ...sorry for thaking a while to get back to you. I pluged the
    code you provided and the exported flash does not deplay the text.
    instead it says "undefined" which to me means something in the xml
    files is work, which is strage since I tested the xml file in a
    browser and it works find. so i am providing both the AS code
    (below) and the xml and css file (attached). my hope is that you
    can direct me to what the problem is.
    THANK YOU AGAING FOR ALL YOU HELP!!!
    AS code:
    Scrolling Text XML by Digital Science |
    www.digitalscience.za.org
    /////////////Load XML Data/////////////
    function loadXML(loaded) {
    if (loaded) {
    xmlNode = this.firstChild;
    header = [];
    txt = [];
    total = xmlNode.childNodes.length;
    for (i=0; i<total; i++) {
    header
    = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
    txt
    = xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
    gotoAndStop(11);
    } else {
    errorMsg.text = "Error loading XML";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("member_content_test.xml");
    stop();
    import TextField.StyleSheet;
    var ss:StyleSheet = new StyleSheet();
    ss.onLoad = function() {
    txt_mc.styleSheet=this; // where yourTF is your textfield
    ss.load("jokes.css"); // where yourSS.css is your css file.

Maybe you are looking for