Dynamic popup text box...

I have a text box with a ton of text in it (multiple
paragraphs). Functionally, what I'd like to do is have it so that I
can have people click on (or roll over) certain words, and then a
definition pops up in a blue box (kinda like a tooltip)...
I could make one "box" movieclip with a dynamic text field in
it, and then just use it as a transparent button over each word
that needs to be defined within the paragraph (loading the
definition text inside the "box" dynamically), but I wouldn't know
how to adjust the size of the box so that it fits each definition's
text. (like, some definitions may be a couple words, and some may
be a sentence or two, so if the box is always just one size, that
won't work)...
That being said, the only thing I can think of is having a
separate "box" movieclip (each sized to its separate dimentions) in
the library. But with all of those definitions, that will increase
the file size huge...
There's gotta be a simple solution to this that I'm missing -
any ideas?! Thanks!...

quote:
Originally posted by:
kglad
to size your textfield use the autoSize property of
textfields.
I thought of that too. That solves the problem of the text
field itself being the correct size, but I then need the box_mc
that the text field is IN to be sized correctly....
...the reason I need the text field in a box (as opposed to
just stand-alone) is simply for aesthetics. I need a
semi-transparent blue background behind the text.
Is there a way (maybe) to auto-size the text field, then grab
the size that it was autosized to into variables, then apply those
variables to size the box_mc??? I'm just grasping at straws here -
I don't even know if that's possible...
...if it IS possible, could someone help get me started with
a sample code? Thanks!

Similar Messages

  • Wanted a popup text box

    Hi all,
    I want a popup text box.
    My logic is like this:
    when ever i select one record and press pushbutton which is located at application toolbar, than one popup text box must display so that they will write some reason for that action and that reason must save in the "ZTABLE".
    thanking u...
    regards,
    giri.

    Hi, See this. it is usefull for you as per your requirement.
    Step 1. you have to create text object using SE75.
    Step 2. follow below program of text box editor.
    step 3. call this editor function when user press button.
    Step 4 .you need to create screen as per program for container.
    program is:
    *& Module pool       ZEDITOR1
    *& Program to Read text, edit text and save text using editor screen
    *& For this program create sap script object using SE75
    PROGRAM  ZEDITOR1.
    *Varriable declaration
    DATA: G_CONTAINER1 TYPE SCRFNAME VALUE 'TEXT' ,
          TEXT1  TYPE REF TO CL_GUI_TEXTEDIT , " declaration to create object
          G_CUSTOM_CONTAINER1 TYPE REF TO CL_GUI_CUSTOM_CONTAINER .
    CONSTANTS: LINE_LENGTH TYPE I VALUE 256.
    DATA: OK_CODE LIKE SY-UCOMM.
    DATA : ED_NAME   LIKE  THEAD-TDNAME ,
           ED_OBJECT LIKE  THEAD-TDOBJECT ,
           ED_HEADER LIKE  THEAD ,
           ED_LINES  LIKE  TLINE OCCURS 0 WITH HEADER LINE ,
           ED_TITLE  LIKE  TTXIT-TDTEXT .
    CONSTANTS: C_LINE_LENGTH TYPE I VALUE 256.
    define table type for data exchange
    TYPES: BEGIN OF MYTABLE_LINE,
             LINE(C_LINE_LENGTH) TYPE C,
           END OF MYTABLE_LINE.
    table to exchange text
    DATA : G_MYTABLE TYPE TABLE OF MYTABLE_LINE.
    DATA : G_WA LIKE  LINE OF  G_MYTABLE.
    DATA:ZSR(5) VALUE 'TX'.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'EDIT_100'.
    SET TITLEBAR 'xxx'.
    Initialize container of editor screen
      IF G_CUSTOM_CONTAINER1 IS INITIAL.
        CREATE OBJECT G_CUSTOM_CONTAINER1
               EXPORTING CONTAINER_NAME = G_CONTAINER1.
        CREATE OBJECT TEXT1
          EXPORTING
            PARENT = G_CUSTOM_CONTAINER1
            WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
            WORDWRAP_POSITION = LINE_LENGTH
            WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Form  read_text_in_editor
          text
    FORM READ_TEXT_IN_EDITOR .
      ED_NAME = ZSR.                                            "'ZTEST2'.
    ED_OBJECT = 'ZMAT' .
      ED_OBJECT = 'ZRAJ1'. "ZALOK' .
    *--- For Reading Inspection Remarks Related text
      CLEAR: ED_LINES[],ED_LINES,G_MYTABLE[],G_MYTABLE.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          CLIENT                  = SY-MANDT
          ID                      = '01'
          LANGUAGE                = SY-LANGU
          NAME                    = ED_NAME
          OBJECT                  = ED_OBJECT
         IMPORTING
           HEADER                  = ED_HEADER
        TABLES
          LINES                   = ED_LINES
        EXCEPTIONS
          ID                      = 1
          LANGUAGE                = 2
          NAME                    = 3
          NOT_FOUND               = 4
          OBJECT                  = 5
          REFERENCE_CHECK         = 6
          WRONG_ACCESS_TO_ARCHIVE = 7
          OTHERS                  = 8.
      IF ED_LINES[] IS NOT INITIAL.
        LOOP AT ED_LINES .
          G_WA-LINE = ED_LINES-TDLINE .
          APPEND G_WA TO G_MYTABLE .
          CLEAR  G_WA.
        ENDLOOP .
      ENDIF.
        PERFORM MOVE_TO_EDITOR.
    ENDFORM.                    " READ_TEXT_IN_EDITOR
    *&      Form  MOVE_TO_EDITOR
          text
    FORM MOVE_TO_EDITOR.
      CALL METHOD CL_GUI_CFW=>FLUSH
        EXCEPTIONS
          OTHERS = 1.
      CALL METHOD TEXT1->SET_TEXT_AS_R3TABLE
        EXPORTING
          TABLE  = G_MYTABLE
        EXCEPTIONS
          OTHERS = 1.
    ENDFORM.                    "MOVE_TO_EDITOR
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
      CASE OK_CODE.
        WHEN 'CLEA'.
          CLEAR: ED_LINES[],ED_LINES,G_MYTABLE[],G_MYTABLE.
          PERFORM MOVE_TO_EDITOR.
        WHEN 'EXIT'.
          LEAVE TO SCREEN 0.
        WHEN 'DISP'.
          IF ZSR IS INITIAL.
            MESSAGE 'Enter Text No.' TYPE 'S'.
          ELSE.
            PERFORM READ_TEXT_IN_EDITOR .
          ENDIF.
        WHEN 'SAVE'.
          PERFORM SAVE_DATA.
      ENDCASE.
      CLEAR: OK_CODE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  SAVE_DATA
          text
    FORM SAVE_DATA .
      CALL METHOD TEXT1->GET_TEXT_AS_R3TABLE
        IMPORTING
          TABLE  = G_MYTABLE
        EXCEPTIONS
          OTHERS = 1.
      CALL METHOD CL_GUI_CFW=>FLUSH
        EXCEPTIONS
          OTHERS = 1.
      CLEAR : ED_LINES, ED_LINES[] .
      LOOP AT G_MYTABLE INTO G_WA .
        MOVE G_WA-LINE TO ED_LINES-TDLINE .
        APPEND ED_LINES .
        CLEAR  ED_LINES .
      ENDLOOP.
    ED_HEADER-TDOBJECT = 'ZMAT' .
      ED_HEADER-TDOBJECT = 'ZRAJ1'. "ZALOK' .
      ED_HEADER-TDNAME =  ZSR. "'ZTEST2'.              "ED_NAME .
    ED_HEADER-TDID = 'ZMAT'.
      ED_HEADER-TDID = '01'.
      ED_HEADER-TDSPRAS = SY-LANGU.
      ED_HEADER-TDLINESIZE = '072'.
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
          CLIENT          = SY-MANDT
          HEADER          = ED_HEADER
          SAVEMODE_DIRECT = 'X'
        TABLES
          LINES           = ED_LINES
        EXCEPTIONS
          ID              = 1
          LANGUAGE        = 2
          NAME            = 3
          OBJECT          = 4
          OTHERS          = 5.
      IF SY-SUBRC <> 0.
        CASE SY-SUBRC.
          WHEN '5'.
            MESSAGE E002(SY) WITH 'IPL' .
          WHEN '1'.
            MESSAGE E002(SY) WITH 'IPL1'.
        ENDCASE.
      ENDIF.
    ENDFORM.                    " SAVE_DATA

  • Popup text boxes or shadowboxs

    In using Dreamweaver: I want to use a "onClick link" and have a popup text box or even a shadowbox that slightly darkens the webpage.
    I will have links to these different popups all over the html page.
    I want to specify the size of the box - same for all (with scroll if need be)
    I really only need the box to contain text (having the ability to use styles would be nice, but not a game breaker)
    Dreamweaver's popup text box does not give me control and is different in all browsers.( in Chrome it says JavaScript Alert at the top of the box - not what I want to see)
    I have Dreamweaver CSS5, but am into writing my own css rules. Just need a little support here.  Thanks

    I like jQuery Fancybox2.  It's very simple to set-up and it can handle just about anything you care to toss at it.  Copy & paste the following code into a new, blank document.  Save & Preview in browsers.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 with Fancybox2 and Divisions</title>
    <!--LATEST JQUERY CORE LIBRARY-->
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <!--FANCYBOX plugins-->
    <link href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.css" rel="stylesheet" media="screen">
    <script src="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js"></script>
    <style>
    /**CSS Reset, fixes box-model in fluid layouts**/
    margin:0;
    padding:0;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    box-sizing:border-box;
    /**this styles thumbnail container**/
    #thumbs p {
        float: left;
        width: 180px;
        margin: 10px;
        padding: 10px;
        text-align: center;
        border: 1px solid silver;
        /**optional rounded borders**/
        -moz-border-radius: 20px;
        -webkit-border-radius: 20px;
        border-radius: 20px;
    /**use same size thumbnail images**/
    #thumbs img {
        width: 160px; /**adjust width to thumbnail**/
        height: 120px; /**adjust height to thumbnail**/
        opacity: 0.75;
    #thumbs img:hover { opacity: 1.0 }
    /**float clearing**/
    #thumbs:after {
        content: "";
        clear: left;
        display: block;
    /**hidden content**/
    #detail-01, #detail-02, #detail-03 { display: none; }
    img {
        max-width: 100%;
        margin: 0 auto;
        display: block
    </style>
    </head>
    <body>
    <header>
    <h1><a href="http://fancyapps.com/fancybox/">Fancybox2 Viewer</a> with images &amp; divs</h1>
    <h2>Details are hidden until thumbnails are clicked.</h2>
    </header>
    <!--insert thumbnails with links to details below-->
    <div id="thumbs">
    <!--thumbnail 01-->
    <p><a class="inline" data-fancybox-group="gallery" href="#detail-01"><img src="http://placehold.it/160x120&text=THUMBNAIL 01" alt="Thumbnail 01" /> </a></p>
    <!--detail for thumbnail 01-->
    <div id="detail-01"> <img src="http://placehold.it/500x320&text=FULL SIZE IMAGE 01" alt="image 01"><h3>Heading 3</h3>
    <p>Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
    <!--end detail-01--></div>
    <!--thumbnail 02-->
    <p><a class="inline" data-fancybox-group="gallery" href="#detail-02"><img src="http://placehold.it/160x120&text=THUMBNAIL 02" alt="Thumbnail 01" /> </a></p>
    <!--detail for thumbnail 02-->
    <div id="detail-02"> <img src="http://placehold.it/500x320&text=FULL SIZE IMAGE 02" alt="image 02"><h3>Heading 3</h3>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
    <!--end detail-02--></div>
    <!--thumbnail 03-->
    <p><a class="inline" data-fancybox-group="gallery" href="#detail-03"><img src="http://placehold.it/160x120&text=THUMBNAIL 03" alt="Thumbnail 01" /> </a></p>
    <!--detail for thumbnail 03-->
    <div id="detail-03"> <img src="http://placehold.it/500x320&text=FULL SIZE IMAGE 03" alt="image 03"><h3>Heading 3</h3>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
    <!--end detail-03--></div>
    <!--end thumbs--></div>
    <footer>Your footer</footer>
    <!--invoke FancyBox on page load-->
    <script>
    $(document).ready(function() {
    $("a.inline").fancybox({
    'transitionIn'    :    'elastic',
    'transitionOut'    :    'elastic',
    'speedIn'        :    600,
    'speedOut'        :    400,
    'autoScale'            : true,
    'overlayOpacity'    : 0.8,
    'overlayColor'    : '#505050'
    </script>
    </body>
    </html>
    Nancy O.

  • Help needed in getting values from the dynamically created text boxes

    Hello,
    I am developing one jsp page using struts. In the page i m
    dynamically adding some rows with two text boxes in each row. and after entering data into
    those textboxes , user clicks on save button and page is submitted.
    I want to capture all this data of dynamically added
    rows so that i can enter those rows into DB.
    how can i acheive this using struts?.
    Have anyone had tried doing it?. Please help.
    Thanx in advance
    Deepali Naik

    Hi,
    1. If you give these textBoxes the same name, then in your action you can call request.getParameterValues(paramName) - it returns String[ ] of values.
    2. You can give form textBox names like "name"+index or something like this in <logic:iterate> tag
    Good luck!

  • Dynamically changing text boxes

    My development staff is new to ABAP and the screen painter, and one of those developers is designing a screen with text boxes on it that need to dynamically change according to what is brought back from the database. How would one accomplish that task?
    Thanks,
    Kevin.

    Since it is an ABAP programming-related question, you might have a better chance of getting it answered if you post it in the ABAP Programming Forum.
    Regards,
    Ivo

  • To dynamically  generate text box using javascript

    hi...
    i want to have a button such that if he clicks that button 2 textboxes be generated side by side.
    i want the textboxes to be added just above the button so that the button is always below the newly created textboxes.
    its not only once i want this ..i want that whenever he clicks the button 2 textboxes gets added everytime...
    how can i achieve this?
    thanks

    Ok, so this is a complete thread hijack - probably would have been worth a new thread.
    The initial solution involved javascript completely.
    The problem breaks down to
    1 - identify when we should move focus
    2 - identify which field focus should move to.
    Here is one version. This approach gives each textfield an individual name/number so you can find its "matching" pair.
    <html>
    <head>
      <script>
      var numLinesAdded = 0;
      function focusNext(tBox){
        var name = tBox.name;
        var index = name.substring(name.indexOf('_')+1);
        var brother = eval("document.all.txt2_" + index);   
        var l = tBox.value.length;   
        if (l >= tBox.maxLength){
          brother.focus();
         function generateRow() {
         var d=document.getElementById("div");
         d.innerHTML+="<input type='text' maxlength='5' name='txt1_" + numLinesAdded + "' onkeypress='focusNext(this)'>";
         d.innerHTML+="<input type='text' name='txt2_" + numLinesAdded + "'><br>" ;
         numLinesAdded++;
    </script> 
    </head>
    <body>
    <form>
    <div id="div"></div>
    <input type="button" value="Add" onclick="generateRow()"/>
    <input type="submit">
    </form>
    </body>
    </html>

  • Dynamic text box problems

    I have created a dynamic text box and an input text box.
    I have produced code that replicates whatever is typed in the
    input box to display in the dynamic box along with a date and time
    stamp once a button is clicked.
    This all works fine, except for the sizes of the fonts. for
    both boxes, i selected font size 10 . The input box is fine,
    however the dynamic box text is huge.
    When i make the dynamic text font smaller, it fits in fine,
    but the input text that is inserted into the dynamic text box comes
    in too big. If i make the input text box font smaller it is
    unreadable when typing it in.
    any soultion to how to make my font consistent. I am assumin
    the problem is because both the text boxes are different sizes,
    however i don't know how to resolve the issue.
    Any help is much appreciated.
    Laura

    hi laura
    i think the problem it's in the targetPath "
    mainClip.newspaper_mc.newinstructions.text =
    lu.welcome[langIdx];".
    chech if you have mistype the instance names of your
    movieClip and rewrite it or in the Actions panel select the path "
    mainClip.newspaper_mc.newinstructions" and click the button
    "Insert Target Path" this will open a popup with a tree of your
    MC's on the stage, so you can browse and find the textfield. i hope
    i helped you if not let me know!

  • Displaying the result of a calculation in a dynamic text box

    Hi folks,
    I'm having a very minor issue here (operator error, I'm sure ). With the help of some folks here, I've created a series of calculations, and I've got that part down. Now, I just need it to show up in the movie.
    I've created the dynamic text box in Flash (CS3), but when I hit test, it won't show up.
    After all the calculations, I should have a figure that I call totalmoney. My dynamic text box is called total. The user doesn't need to hit anything for it to appear. It just appears as part of the movie.
    Here's my code:
    stop();
    var startDate:Date = new Date(2010,0,12);  // use your  startyear, startmonth, startdate in the new Date() parameters.
    var  currentDate:Date = new Date();  // assuming user's clock is correct and in your  timezone.  else use server date/time.
    var numberOfSeconds:Number =  (currentDate.getTime()-startDate.getTime())/1000;
    var interest:Number =  (numberOfSeconds*0.74356);
    var totalmoney:Number =  (interest+15,000,000);
    function displaytotal(evt:TextEvent):void {
         total.text = "totalmoney";
    Any thoughts?
    Thanks!
    Napo

    You didn't have to bury any of the calculations in the function--leaving it as you had it is better.  They could remain where they a=werew, and you'll probably find you want them outside it if you have other plans for using them.  If left inside, they only have scope inside.  In the programming world, it's good to think of functions as things that do one thing and one thing only (though it isn't often practiced that way)--it's called modular design.
    When you place an event as an argument for a function, it typically means that there is an event listener that initiates the call to the function.  If you work with buttons you'll see what I mean.  But if the plan is to create your own call to a function when you desire it as such, not have it driven by an event listener, then you don't need to pass any event to it, though you may pass some other type of variable to it if need be.
    For instance, what you have now will call the function without an argument because the function has the value built into its code....
    displaytotal();
    But you could also make the function a little more generic and set it up to recieve the value instead as an argument...
    function displaytotal(amt:Number):void {
         total.text = String(amt); // an earlier error of mine
    displaytotal(totalmoney);
    That would make your function a little more useful.  Now it could be used to display other Number variables as well.
    // my earlier error was that a textfield displays text, so you need to convert the Number value to s String.
    Hope I'm not confusing you.

  • Create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box

    HELP!!! Can anyone please provide some guidance on how to create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box.
    I have a form which – based on the department that's selected from a drop-down box – will have different form fields/text boxes, etc, made available.
    Is this possible in LiveCycle, if so, can you please provide the script/info - as needed.
    Thanks,

    In the preOpen event of the second dropdown list you put something like (in formCalc):
    if (dropdown1 == 1) then
    $.clearItems()
    $.setItems("Year, 2 Year,  3 Year")
    elseif (dropdown1 == 2) then
    $.clearItems()
    $.setItems("3 Year,  4 Year")
    endif

  • Dynamic action on text box change does not working

    i have a page with following components.
    a report that has and edit link.
    a text box to catch the primary key from report link when it is clicked
    a number of elements (text boxes, check boxes and LOVs) which are used as data entry form.
    Now my design is that user enter values save them and no sooner did they save, the report depicts new
    values. if user want to edit any record, they click on edit link and the data entry form elements
    should now bring all those values from DB on page. i m successful to pick primary key and bring
    it in a hidden text box and wrote a dynamic action on its change event that will bring values from
    DB and set all page elements. but but but.........the change event doesnt work. it only work
    when focus is lost from the text box...!! offcourse user wont want to click in that "hiddent" text
    box and then click some where else to bring values in page data entry form......
    help is humbly requested from forum or if any other solution approach is to be used easier than
    one i m using, would be appreciated.
    thanks in advance for reading my bore question :)

    bundles of thanks for reply. i m going to elaborate.
    1. My page no is 3.
    2. Hidden Item name is P3_EDIT_ACTIVITY_ID
    3. Data entry form, hidden item and the report are on the same page.
    4. on the edit link of report, i have used following settings.
        Target: Page in this application
         Page: 3
         and i set hidden item as follows......
         Item 1   P3_EDIT_ACTIVITY_ID         Value #ACTIVITY_ID#
       well, when i click the link on report it does bring Activity_Id in the hidden box (which is not yet hidden for debugging purpose)
    Next i wrote Dynamic action which fires on the change event of P3_EDIT_ACTIVITY_ID and run PL/SQL code with in it which is as follows
      declare
      Dept varchar(50);
    begin
       select my_dept into Dept from activity_main ACTIVITY_ID = :P3_EDIT_ACTIVITY_ID;
       :P3_Dept := :Dept;          (i did use :P3_Dept := Dept also but this wont work)
      insert into testdynamic (stamp) values (Dept);  (I did this to check whether correct value is brought from DB, yes it works correctly, correct Dept is being inserted in stamp column)
    end;
      i have created another true action to check when the dynamic action is fired. its very simple alert. and the problem is, it only fires when focus is lost from the P3_EDIT_ACTIVITY_ID. i mean, when u keep changing value inside the text box, nothing happens, when u go outside, the alert is fired and so the pl/sql procedure. but the line
        :P3_Dept := :Dept;       OR      :P3_Dept  := Dept;         arent working which is the actual requirement.
      I m not using set value here as i have to set a lot of values on page not one. further. plz let me get rid of this lost focus thing as i want the form to be populated with correct values related to P3_EDIT_ACTIVITY_ID as the user click on any edit_link in the report.
    Thanks for persistence. i hope i have provided all the details.
    looking forward.

  • Is there a way to list all the file names (automatically) in a folder to dynamic text box?

    Hi,
    I would like to know whether FLASH AS3 has some option to get all the files names from a folder specified and show it in a dynamic text box? Whenever some new files added to this folder it should update the list accordingly.
    Thanks for any information in this regard.

    Not particularly experienced in this field myself, but I've found its just easier to implement an XML file which lists the contents of the folder. It just means that when you upload a new file you have to add it to the list in the xml file also. No real hardship once you figure out the mechanics of it

  • How can I load a .TXT file into a dynamic text box?

    I am sure that many people know how to load a .txt file into
    a dynamic text box. But I do not. I want to be able to reference a
    txt file from the server into the text box. So that when I change
    the text file it changes in the flash movie without even editing
    the flash file itself. Thank you.

    http://www.oman3d.com/tutorials/flash/loading_external_text_bc/
    I think this is the simplest way to go :)

  • Targeting Dynamic Text Box inside moviecip with variable

    Hi,
    How does one target a dynamic text box to change the border
    color inside of a movie clip? Example below which does not work
    theName = ("answerPrint" + arryCount);
    boxName = ("box" + (arryCount+1));
    _root.pagePrintPartA[theName][boxName].border = true;
    _root.pagePrintPartA[theName][boxName].borderColor =
    0x00cc66;

    Thanks for the reinforcement, but I should of indicated what
    was what:
    theName = ("answerPrint" + arryCount);// Name of Variable
    inside Dynamic Text Box Inside MovieClip
    boxName = ("box" + (arryCount+1));// Instance Name of Actual
    Dynamic Text Box Inside MovieClip
    _root.pagePrintPartA[theName][boxName].border = true;
    _root.pagePrintPartA[theName][boxName].borderColor =
    0xFF0000;
    By certifying this script you showed me wher I went wron (not
    seeing the forest from the trees). The last two lines should be:
    _root.pagePrintPartA[boxName].border = true;
    _root.pagePrintPartA[boxName].borderColor = 0xFF0000;
    I was targeting backwards. Thanks alot DazFaz.

  • Can I put Chinese and English characters in the same dynamic text box?

    I'm translating a game into several different languages, one of which is Chinese. I've noticed that in a dynamic text box where English characters are included also, they aren't displayed when the .swf is exported. The font is embedded in the document with all characters selected. It seems like whatever language-character is first displayed in the text box, the other language cannot be. For instance, if there are Chinese characters first, then English, the English will not display, and vice-versa. Any work around on this? I am using Flash CS5 and Actionscript 2.0. Thanks!

    Kglad - I'm not sure I follow your instructions for the fix. I assume you want me to set the _visible property to false via Actionscript ( textInvisible._visible = false; ). What is the purpose of this second text field - does it need any specific content in it to function? It doesn't seem to work to fix the problem but maybe I'm misunderstanding.

  • Dynamic character count info as text box resizes

    Not knowing Javascript, does anyone think this is scriptable?
    When clicked inside a text box the info panel tells you how many characters are in view in that text box and how many are overset... it doesn't however display that info if you are resizing a text box by dragging one of the handles... do you think there may be a way of getting it or having onother info panel that displays how many character are inside the text box and how many are overset and it dynamically changes the read out as the user resizes the text box.
    Regards, Tim

    I don't think Javascript can do stuff "dynamically" -- you'd have to press a button to get the updated values. This sort of things is possible with InDesign, but it'd require writing a full plugin. Writing plugins is not for the meek, the faint-hearted, or the kind of people that enjoy their sanity.
    (OTOH I've been wrong a few times: APID, Rorohiko's script extensions -- http://www.rorohiko.com/ -- can perform a few tricks that used to be plugin-only. Check their website to see if there is something that sounds like your request.)

Maybe you are looking for

  • Devices does not show up in left-hand column

    Ipod nano is connected to USB port and has fully charged. "Devices" doesn't show up in left-hand column.  Library, Store, Genius, and Playlists are listed.  Looked on public forums, but no viable solution displayed.  I welcome suggestions.  Nano was

  • Can I use 640g HD with my 3000 G430?

    My HD just died and I wanna replace it with WD640g HD.  Can anyone confirm me if I can replace my old one(WD 250g) with WD 640g HD?  Thank you very much

  • How to keep the forwarded email in the hotmail inbox?

    After I received an email in the Hotmail.com, I selected the Forward under the Reply. After I forwarded the email, the original email was no longer in the inbox. I checked the Options before forwarding the email. There is no Mail option. Can you tell

  • Queries about snapshots and snapshot logs in Oracle Ebusiness Suite

    Hi , We are running Oracle E-business Suite 11.5.8, and have noticed some on-demand snapshots with associated snapshot logs. The reason we have noticed them is that the snapshot logs have grown large in size (up to 20GB). What we need to know is why

  • Abstract Class HttpURLConnection

    How do we instantiate the HttpURLConnection abstract class. Any help would be great Thanks