Text arrays (variables) and Dynamic Text Box

Hello everyone. I have a text file (let's call it sample.txt)
that has numerous variables or arrays in this format:
&info=This is some information
&stuff=This is more stuff
&whatever=Even more stuff again....
Anyway, I need to load a particular variable via individual
buttons from this same sample.txt file into a dynamic text box
(let's call it dynText), and I am a bit lost as to how to do it.
Please provide me a solution thank you.
Glenn

Thank you very much, it's greatly appreciated. It worked
perfectly except that it does not like variables that begin with
numbers like:
&401_2b=401_2b
The above doesn't work, but if I do this...
&h401_2b=401_2b
Everything is fine. Problem being, I am generating the
variables via PHP and therefore cannot "change" them. Can you
provide me with a way that ActionScript can "see" the variable that
starts with a numeric value? Thanks for your time.
Glenn

Similar Messages

  • How to create customer exit for characteristic variables and for text vars.

    hi friends,
      can anybody tell me how to create customer exit for characteristic variables and for text variables in bw ides system.
    thanks,
    sree

    Hi,
    Please have a look at:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Krzys

  • HT4528 I get texts to myself and double texts from everyone else on my iphone?

    When I text I get texts to myself and double texts from everyone else responding to my texts on my iphone? Any suggestions on how to stop this?

    Is it text or imessage?

  • Events, Variables and Input Text

    Hi,
    I'm not new to Flash or AS3 but I've never really made anything too complex. I'm making a Flash game and getting to know Variables for the first time. The tutorials online confuse me because they're mostly geared towards AS2 and I bought this book (which is awesome) Game Design with Flash, but it only covers variables involving numbers and a guessing game.
    All I want right now is a field to enter your name and below, whatever the user has entered, will show up in a Dynamic text field that will go, "Oh, so your name is (whatever)?" I understand that the information that the user types into the Input Text Field has to be entered in somehow, so do I need to make a function to make it work with a button? Right now I can type in the Input but nothing shows up in the Dynamic text field.
    I borrowed an AS3 example from elsewhere on this forum and added my own Instance names. I also wanted to know, how can I call up the user's name throughout the game? Just calling that same variable up?
    Here is what I have:
    stop();
    var myName:String;
    myName = userName.text;
    confirm_txt.text = "So your name is "+ myName;
    I get no errors but the Dynamic text box isn't showing what I'm typing... How do I go about "entering" the name so it shows up and I can call it up anytime throughout the game?
    Thank you so much in advance for any help offered!

    "It sounds like the same concept of a class, so if a class is a pot, everything in it can be what pertains to the pot."
    Well, there one important thing you need to keep in mind when dealing with Flash. There are classes and display lists. Classes have properties and methods and display lists have children.
    For example,
    var myClip:MovieClip = new MovieClip();
    var mySprite:Sprite = new Sprite();
    myClip.addChild(mySprite);
    Now, this is important:
    you can
    trace(myClip.x) - because is x a documented property of MovieClip class
    BUT
    you cannot
    trace(myClip.mySprite) because although mySprite is a child of myClip, IT IS NOT A PROPERTY of myClip as it is not a property of MovieClip class.
    In other words, display list of a DisplayObjectContainer is sort of independent property/feature that doesn't fall into conventional realm of class capabilties. This special feature is addressed and children are manipulated in a special, peculiar to Flash manner only.
    Using pot analogy, display list is a space where you can put DisplayObjects. Objects that are put into this space do not belong to the instnace but just temporarily occupy it.
    Here is a little game (let's name it "move vegies between pots") that may help you to get feel of parent/child relationships. Click on vegies and observe how they behave relative to their parents:
    import flash.display.Graphics;
    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    var apple:MovieClip = vegie("apple");
    var beet:MovieClip = vegie("beet");
    var onion:MovieClip = vegie("onion");
    var pear:MovieClip = vegie("pear");
    var bigPot:Sprite = makePot(250, 250);
    var mediumPot:Sprite = makePot(200, 200);
    var smallPot:Sprite = makePot(150, 150);
    addChild(bigPot);
    addChild(mediumPot);
    addChild(smallPot);
    bigPot.x = 20;
    bigPot.y = 20;
    mediumPot.x = bigPot.x + bigPot.width + 50;
    mediumPot.y = bigPot.y + bigPot.height - mediumPot.height;
    smallPot.x = mediumPot.x + mediumPot.width + 50;
    smallPot.y = bigPot.y + bigPot.height - smallPot.height;
    var vegies:Array = [apple, beet, onion, pear];
    var pots:Array = [bigPot, mediumPot, smallPot];
    putVegies();
    * Places vegies into big pot
    function putVegies():void {
         for each(var veg:MovieClip in  vegies) {
              bigPot.addChild(veg);
              // bigPot has index 0 in pots Array
              veg.parentIndex = 0;
              veg.mouseChildren = false;
              veg.buttonMode = veg.useHandCursor = true;
              veg.x = veg.width + Math.random() * (bigPot.width - veg.width * 3);
              veg.y = veg.height + Math.random() * (bigPot.height - veg.height * 3);
              veg.addEventListener(MouseEvent.CLICK, onClick);
    * listener to clicking on vegies
    * chooses a new random parent
    * @param     e
    function onClick(e:MouseEvent):void {
         var target:MovieClip = e.currentTarget as MovieClip;
         // new parent random index
         var parentIndex:int = Math.round(Math.random() * (pots.length - 1));
         var newParent:Sprite = pots[parentIndex];
         newParent.addChild(target);
         target.x = target.width + Math.random() * (newParent.width - target.width * 3);
         target.y = target.height + Math.random() * (newParent.height - target.height * 3);
    * Makes vegie
    * @param     text - vegie label
    * @return
    function vegie(text:String):MovieClip {
         var label:TextField = new TextField();
         label.autoSize = "left";
         label.text = text;
         label.x = - label.width / 2;
         label.y = - label.height / 2;
         var s:MovieClip = new MovieClip();
         var g:Graphics = s.graphics;
         g.beginFill(0xffffff * Math.random());
         g.drawCircle(0, 0, (label.width / 2) + 5);
         g.endFill();
         s.addChild(label);
         return s;
    * Draws pot outline
    * @param     w
    * @param     h
    * @return
    function makePot(w:Number, h:Number):Sprite {
         var edge:Number = 10;
         var s:Sprite = new Sprite();
         var g:Graphics = s.graphics;
         g.lineStyle(2, 0x000000);
         g.moveTo(0, 0);
         g.lineTo(w, 0);
         g.lineTo(w - edge, edge);
         g.lineTo(w - edge, h - edge);
         g.curveTo(w - edge, h, w - edge * 2, h);
         g.lineTo(edge * 2, h);
         g.curveTo(edge, h, edge, h - edge );
         g.lineTo(edge, edge);
         g.lineTo(0, 0);
         return s;

  • Problems sending text from JavaScript to dynamic text box

    For reasons which I won't bore you with, I'm trying to send
    text from a JavaScript to a dynamic text box in Flash. I've just
    spent all day wondering why I can't get it to work, despite
    following web guides to the letter. Finally I discovered that I'm
    not actually doing anything wrong and everything works perfectly -
    as long as it's online. It won't work at all locally or from the
    network.
    The problem is that this is for learning material which will
    be deployed both online and on CD, so it won't always be running
    from a webserver. Has anybody got any ideas a) why this is
    happening, and b) what I can do about it?
    Cheers
    Marc

    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPBeans.html
    This is a good tutorial on using JSP pages with JavaBeans.
    Your JSP page can have all the standard HTML tags and a bean can be set to retrieve any values from form fields upon a submit.
    At that point your bean properties are set and your Java application can use that data for whatever processes you wish.
    It's really quite simple once you get the hang of it! ^_^
    Message was edited by:
    maple_shaft

  • Variable in Dynamic text field

    Hi,
    I'm trying to build a custom keyboard into flash to display text in the interface.  So far all that I have tried failed, can anyone point me toward a simple script or tutorial that would help me out.
    Thank you
    Yann

    ok here's a description of the project:
    I made a Movie clip containing all the buttons needed to make a QWERTY keyboard, plus some special character.  I would like text to appear in a dynamic field when the user click on the button, so they can write text in the field.
    So far, I've tried the following code, but it's not working :
    Frame 1 :
    stop();
    var myText:String;
    input_txt.text = output_txt.text;
    next_btn.addEventListener(MouseEvent.CLICK, nextClick);
    function nextClick(myNextEvent:MouseEvent):void {
        captureText();
        this.nextFrame();
    function captureText():void {
        myText = input_txt.text+"q";
    Frame 2 :
    output_txt.text = myText;
    back_btn.addEventListener(MouseEvent.CLICK, backClick);  
    function backClick(myBackEvent:MouseEvent):void {
        this.prevFrame();
    I'm pretty sure this isn't the most elegant way to do it, I've made it work once in a separate project, but I can't make it work in the new one.
    Does this help understand my problem?

  • Difference jb/w text symblosin script and standard text in scripts

    hi to all
    can u pols explain about the
    difference b/w text symblos in script and standard text in scripts

    hi
    Default paragraph Paragraph set to * in <b>standard text</b> maintenance
    If no form has been assigned to a text, the system automatically assigns the form SYSTEM, which contains minimal definitions for text formatting. There are two ways of formatting texts using forms: • Use the <b>standard text</b> maintenance to enter and print the text.
    Any kind of text can be included in a form. If no object is specified, then TEXT will be used (<b>standard texts</b>).
    <b>
    Text Symbols</b>
    Text symbols acquire their values as a result of explicit assignment. To interactively assign text symbols, in the text editor choose Include &#61614; Symbols &#61614; Text. This method is available for all text symbols belonging to a text module as well as those of the associated form. Values defined in this way are lost when the transaction is left. If you want to print the text module again, then you must enter the symbol values again. The purpose of the DEFINE command is to provide a means of making this value assignment a permanent part of the text, so that the values are available again when the text module is called again. This command can also be used to re-assign a new value to a text symbol half-way through the text. Syntax: /: DEFINE &symbol_name& = 'value'
    /: DEFINE &subject& = 'Your letter of 7/3/95' The value assigned can have a maximal length of 60 characters. It may itself contain other symbols. A symbol contained within the value assigned to another symbol is not replaced with its own value at the point at which the DEFINE command is executed. Rather, this replacement is made when the symbol defined in the DEFINE command is called in the text.
    /: DEFINE &symbol1& = 'mail' /: DEFINE &symbol2& = 'SAP&symbol1&' /: DEFINE &symbol1& = 'script' &symbol2& -> SAPscript If, however, the DEFINE command is written using the ':=' character rather than the '=' character, then any symbol contained within the value being assigned is replaced immediately with its current value. The assignment to the target symbol is made only after all symbols in the value string are replaced with their values. The total length of the value string may not exceed 80 characters. The target symbol must be a text symbol, as before.
    /: DEFINE &symbol1& = 'mail' /: DEFINE &symbol2& := 'SAP&symbol1&' /: DEFINE &symbol1& = 'script' &symbol2& -> SAPmail
    Inserting <b>Text Symbols</b>
    Procedure
    Inserting a Text Symbol
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Place the cursor on the desired text symbol.
    3. Choose Choose.
    4. The system inserts the text symbol.
    Editing the Value of a Text Symbol
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Choose Edit value bearbeiten. The dialog window Value definition for symbol <text symbol> appears.
    3. Enter the appropriate value definition.
    4. Choose Continue. In the dialog window Text symbols the specified value appears after the name of the text symbol.
    5. Choose Continue.
    Deleting all Text Symbol Values
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Choose Delete all values. The system deletes all defined values.
    3. Choose Continue.
    Using Formatting Options for Text Symbols
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Choose Options. The dialog window Formatting options for <text symbol> appears.
    3. Fill in the fields.
    4. Choose Continue.
    5. Choose Continue. The system executes the selected formatting option.
    regards
    ravish
    <b>plz reward points if helpful</b>

  • JSP (no java code), taglibs and dynamic list boxes

    Hi,
    Can anyone recommend a few examples of JSPs using Tag Libraries to represent a dynamic dropdown box in a form? We are trying to learn how to incorporate tag libs into our pages so we have no code on the JSPs. We currently have a JSP that uses dynamic dropdowns, but the all the code is in the JSP. Most examples we find use either static data or just output data into a table with taglibs. But our pages use many dropdowns, inputs, etc... for updates and inserts. We are using JSPs, servlets, and tags which will get data from EJB's (stateless and entity). (We are also using WEblogic Server 7.0 if that makes any difference) If you know of some good examples or tutorials that show how to accomplish this, it would GREATLY help us out!!
    Thanks!

    Check out Struts, they have an HTML taglib that does exactly what your talking about. http://jakarta.apache.org/struts

  • Matchcode with texts in Bex and without texts in Web

    Dear all,
    I've got one query with variable selections and especially for InfoObject "Catalog".
    When I launch the query with Bex, the variable selection window appears, then I select the matchcode for "Catalog" and the values (keys and texts) appear.
    When I launch the Web template based on this same Bex query, only the keys are available for the matchcode "Catalog". I can't see why there is no text.
    Can anybody tell me what's wrong?

    Hi Ric,
    I have the same issue
    Could you tell me how did you solved?
    Thanks a lot!

  • Add date to new text file name and generic text in body

    Okay, I hope this is the right forum. To help manage and keep track of incoming assets/files and I created an Automator workflow with the following: "Get Selected Finder Items → Get Folder Contents → New Text File (w/Show this action when the workflow runs so I can give a unique name).
    This creates a text file with the folder contents listed in the body.
    I would like to know if I can do two things:
    1. Automatically add a date/time stamp to the Save as field so it will automatically have a unique file name?
    2. I also want to add text before the listed contents within the text file. (e.g.: Let's say the folder contents are Volumes/Mac HD/Generic_movie.mov. I want the final text to read:
    "The following file has been moved to the local volume at: Volumes/Mac HD/Generic_movie.mov"
    Is there a way to accomplish either one or both of these with Automator or AppleScripts?
    Thanks.

    I would like to know if I can do two things...
    This might address your first concern:
    *1) Get Selected Finder Items*
    *2) Get Folder Contents*
    *3) New Text File* -- select a destination folder and check *Show Action When Run*
    *4) Rename Finder Items:*
    Choose *Add Date or Time* from the popup
    Date/Time: select Created, Modified, or Current - Format: *Month Day Year*
    Where: *After name* - Separator: *Forward Slash*
    Separator: Space - check *Use Leading Zeros* (optional)
    *5) Rename Finder Items:*
    Choose *Add Text* from the popup
    Add: *" at"* -- put a leading space before "at" (without the quotes), and select *after name*.
    *6) Rename Finder Items:*
    Choose *Add Date or Time*
    Date/Time: Current - Format: *Hour Minute Second*
    Where: *After name* - Separator: Dash
    Separator: Space - check *Use Leading Zeros* (strongly recommended)
    +--- End of Workflow ---+
    Save the workflow as an application and use it as a droplet. Drop a desired folder onto the saved applet and enter a name when the dialog appears. The new text file, which will be found in the destination folder, should be appended with a date and time stamp, e.g., *"My Folder List 7/8/2010 at 23-54-09"*
    Tested using Mac OS 10.4.11 and Automator v. 1.0.5
    Good luck; hope this helps.

  • Smart form Text module translation and Standard text

    Hi i have a requirement in smartforms in which i need to create text modules and transtale into diffrent languages.
    I have created text modules they are in my transport,
    when i am translating through SE63 into target language it is not asking for any transport request , Can any one help me regarding how i can assign Transaltion thing to my transport.
    Another thing is i require to use standard text, i am not much aware of it also as per my understanding i need to create it through SO10 Transaction , and i can use it in include text please correct me if i am wrong, i need this standart text also in two language but while creating standard text it is not asking transport request, and how i would convert standard text in diff lang and how can i assign to my transport.
    Surely i would provide points for the valid reply.
    Thanks in advance.

    Hi Gudia San,
                 To transport Standard text, use the standard Report Program <b>RSTXTRAN</b>, execute it, on the selection screen, enter your standard text name as
    <b>Text key - name</b>, press F8, it will display a ouput list. Now press F5 key and it will ask for transport request number.
      Regards,
       Abdul.
    P.S: Rewards points, if useful!

  • Hi there. I having a problem with InDesign PDF interactive export. I would keep my text area style and not text area default style when I export the PDF. How could I do?

    Could you help me?

    Thanks for the answer Sumit Singh,
    sorry but my problem keeps.
    I create a simple text area and then trasform it in interactive text area, set it, apply my paragraph/character style and at the end export it in PDF (interactive).
    I open the file with Adobe Acrobat, but when I customize it, words inside text area have stylized with default paragraph/character style.
    How could I keep my style on export interactive text area?
    Thanks a lot.

  • Bind variables and Dynamic sql

    I have this function which works only when i'm not passing bind variables. The moment i add bind variables it is not able to execute the function.
    Oracle Db Version: 8.1
    Thanks
    Source Code
    FUNCTION TestFunction( In_Test_id in Number,
    In_Asof in Date )
    Return ScoreType
    IS
    LvScore ABC.LV_SCORE.SCORE%TYPE;
    DVScore ABC.LV_SCORE.SCORE%TYPE;
    Begin
    EXECUTE IMMEDIATE
    'SELECT SCORE,DVSCORE
    FROM
    SELECT SCORE,DVSCORE
    DENSE_RANK() OVER (PARTITION BY TEST_ID ORDER BY ASOF_DT DESC) AS score_RANK
    FROM ABC.LV_SCORE
    WHERE TEST_ID = :x
    AND ASOF_DT <= :y
    ) WHERE score_RANK = 1'
    INTO LvScore,DVScore
    USING In_tEST_ID,In_Asof;
    Return ScoreType( LvScore,
    DVScore);
    End;

    It just keeps on executing for sometime and then disconnects itself from database What was the indication that told you that it disconnected? Was there a visible indication of this disconnect?
    Did you get ORA-03113?
    ===========================================
    ORA-03113: end-of-file on communication channel
    Cause: The connection between Client and Server process was broken.
    Action: There was a communication error that requires further investigation. First, check for network problems and review the SQL*Net setup. Also, look in the alert.log file for any errors. Finally, test to see whether the server process is dead and whether a trace file was generated at failure time.

  • EDGE and HTML dynamic text in a "box" with scroll bar

    I'm new to EDGE, a win7pro master collection cs5.5 suite owner. I'm mainly in the Film/Video post production field (mostly AE, PPro, Pshop, IA) but have been branching into web design the last couple of years.  I use Dreamweaver, Fireworks, Flash. While I'm a expert user with all the Film/video apps, I would say I only have intermediate ability with the web apps. While I understand a lot of programing logic bulding blocks I'm not a coder.
    So since we're told "flash is dead",  my interest in Edge is to try to do some of the things that I can currently do in flash in  EDGE. I was excited when Edge first came out but lost interest when it became obvious that Adobe was not going to offer Edge and Muse to "suite owners" but only in their force feeding of the "Cloud". Better known as the "golden goose" for adobe stockholders and a never ending perpetual hole in the pocket for users. Anyway....
    I spent the last couple of days doing some of the tuts and messing with the UI. It's matured a lot since I was here last.
    I've been working on a flash site for a sports team where one of the pages is a player profile page where college recuriters and other interested parties can view recuriting relavent info/stats about players. This is how it works. While on the "Team" page a users clicks on  a button labled "Player Profiles" . (Animation) A "page" flies in and unfurls from the upper right corner (3d page flips effect created in AE played by flash as a frame SEQ). Once it lands filling most of the center of the screen there is a bright flash. As the brightness fades we see the "page" is a bordered box with a BG image of a ball field(End). (Animation) from behind the border in fly small pictures (player head shots with name and jersey number). They stream in and form a circle like a wagon train and the team logo zooms up from infinity to the center of the circle(End). As the user mouses over a player's pic it zooms up a little and gets brighter (like mouseover image nav thumbs for a image slider). If the user clicks on a player's head shot it flips over and scales up to become a text box with a scrollbar. The content of the box is a mix of images, static and dynamic text fields populated from data in an "player info data base" XML file, and some hyperlinks. It's all kept updated dynamicaly with current stats, info and images from the XML file. There is also a "PDF" button that allows the user to open/save/print a PDF of the player's profile (the PDF's are static files for now but the choice of which pdf to retrive is dynamicaly supplied via the XML file.
    So.... Is Edge now able to do something like this?  Would it need to be a collection of small animations? could these be "assembled" and connected as an asset in dreamweaver ?
    I thought I would approach this from the end (ie click on an image and display a box with dynamic TEXT fileds. ) since that is the most important part, ie displaying the dynamicaly updated profile info.  Sooooo....
    Can Edge display a scrolling text box with Images, static text, and html dynamic text in it??
    Joel

    The code is in composition ready. Click the filled {}

  • 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.

Maybe you are looking for

  • I lost my install disk to my mac book 10.6.8

    My computer is corrupted and needs the intall disk to fix my issues but lost my install disk to my book 10.6.8

  • Issues With Speed Of FCP X

    After spending countless hours on a project in Final Cut Express only to discover its poor rendering power, I ultimately decided to try and rebuild my project in FCP X - especially since I could try it for free. At first, FCP X ran fine. After a week

  • Use of Adobe Interactive Forums

    Hi, We have been asked to evaluate the use of Adobe Interactive Forms with SAP's External Service Management. The client desires to provide external contractors with Adobe Interactive Forms representing the SAP Service Entry Sheet. The external contr

  • Create expense report- general Data

    Hi Experts, I am working in Create expense report using standard Webdynpro ABAP components. My requirement it to skip the the GENERAL DATA view and go directly to receipt screen. I am able to go to screen by deleting the roadmap steps in configuation

  • Here! maps download to SD card in Winwowsphone 8.1

    Can I download Here! maps to my SD Card in my Nokia 630 / Windowsphone 8.1  ??