Create 10 different TEXTFIELDS with a FOR statement

Hello everybody, I,ve been trying to create 10 different
TEXTFIELDS with a FOR statement, in order to apply different
properties to each one. First I tried this code:

Hi - your first one is closer; the problem is that you are
only creating one TextField and merely changing the properties of
the same one each time through the loop, and you are trying to add
the same one 10 times to the stage.
You probably want to do something closer to:

Similar Messages

  • To create 5 different files in target for each record in the sender file

    Hi SapAll,
    i have got a a requirement where pi need to create 5 different files with data of each record from the sender side.
    Its an file to file scenario
    suppose there are 5 rows in a file , then in target side i need to create 5 diff with each one record in it.
    Can we do it without using 3 comm channels
    Thanks&regards,
    Sai

    Hey,
    As a more generic solution, can you try using MultiMapping. It is supposed to generate multiple instances of messages on receiver side.
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    You just need to put a simple logic in Message Mapping to generate new Node for every occurence of source field.
    Thanks
    Aamir

  • Problem with the FOR statement.....again!

    Hi everyone,
    Well I'm still trying to do a car slideshow using external
    files and can't seem to see the end. The current movie is here:
    http://www.virtuallglab.com/projects.html
    I also attach the code. My problem is I had originally set up
    an animation with 2 pictures sliding in with some text, and then
    wait 4 seconds before sliding out, and then next pictures and text
    would slide in and so on, using a setInterval.
    The problem is the FOR loop seems to skip the setInterval and
    the function "wait", so it just loops quickly and jumps to last
    picture, so on the example above, it just slides the last picture
    (i=9) and that's it!
    Can you not include another function within a FOR statement.
    Or is there a way to tell the FOR loop to wait until all motion is
    finished?
    Any help greatly appreciated
    import mx.transitions.*;
    import mx.transitions.easing.*;
    for (i=0; i<10 ; i++) {
    var picLeft = "pics/"+i+".jpg";
    var picRight = "pics/"+i+"b.jpg";
    var txtToLoad = "text/"+i+".txt";
    this.createEmptyMovieClip("leftHolder",1);
    leftHolder.loadMovie(picLeft,i,leftHolder.getNextHighestDepth());
    leftHolder._x = -200;
    leftHolder._y = 15;
    var leftTween:Tween = new Tween(leftHolder, "_x",
    Strong.easeOut, leftHolder._x, 10, 2, true);
    this.createEmptyMovieClip("centerHolder",2);
    centerHolder.loadMovie(picRight,i+"b",centerHolder.getNextHighestDepth());
    centerHolder._x = 180;
    centerHolder._y = 250;
    var centerTween:Tween = new Tween(centerHolder, "_y",
    Strong.easeOut, centerHolder._y, 15, 2, true);
    text._x = 600;
    myData = new LoadVars();
    myData.onLoad = function(){
    text.carText.text = this.content;
    myData.load(txtToLoad);
    var textTween:Tween = new Tween(text, "_x", Strong.easeOut,
    text._x, 420, 2, true);
    myInterval = setInterval(wait, 4000);
    function wait() {
    var leftTweenFinished:Tween = new Tween(leftHolder, "_x",
    Strong.easeOut, leftHolder._x, -200, 1, true);
    var centerTween:Tween = new Tween(centerHolder, "_y",
    Strong.easeOut, centerHolder._y, 250, 1, true);
    var textTween2:Tween = new Tween(text, "_x", Strong.easeOut,
    text._x, 600, 1, true);
    clearInterval(myInterval);
    ***************************************************************************************** ***

    There is no way to tell a for loop to wait. That is not what
    they do.
    The entire for loop will execute (if possible, and it doesn't
    enter some kind of continuous infinite loop) completely before each
    time the frame is rendered.
    If you want to spread things out over time you need to use
    the setInterval -- but not inside a for loop! If you do that you
    immediately set however many intervals as your loop has. In this
    case you will also assign the ids for those intervals to the same
    variable, effectively overwriting the value so you will never be
    able to clear most of those intervals.
    So you need to rethink you whole structure. Set up some kind
    of counter and limit like this:
    var slidesToShow:Number=10;
    var curSlide:Number=0;
    Then have your setInterval increment the curSlide each time
    it is called and check to see if it has shown all of them. That is
    where your "loop" comes in.
    As for the other part of your question -- yes you actually
    have two different issues going on -- again you cannot make a for
    loop wait for anything. So no there is no way to pause it while you
    wait for your tween to end. But you can be notified when a tween
    ends.
    Check out the documentation about the tween class in the help
    files. There you will find the onMotionFinished event. So you can
    set up one of those to start whatever needs to be started when the
    tween has finished.
    You should also use the MovieClipLoader class to load your
    images, because you have no idea how long it will take to load
    them. Using that class you get a nice event (onLoadInit) that tells
    you when the asset is ready to be used.
    Finally I'm thinking you might want to use setTimeout instead
    of setInterval. It only goes once, while setInterval repeats
    forever. So I would think your algorithm would be something like
    this.
    1. load external asset
    2. when ready animate in and set onMotionFinished handler
    3. when motion is finished start loading next asset and
    setTimeout for 4 seconds.
    4. when 4 seconds is up or the clip is loaded (which ever
    takes longer) go to 2 and repeat.
    If this is going to be run locally on a hard drive or CD you
    won't have any problem with the length of time it takes to load the
    external assets, but if it is over the web it will take time.

  • Need to color the  different textfield with different color in J2ME

    hi
    i am developing an application where i need to color the different textfield in the form with different color. but i am not able to do this even with the canvas class also. Can you please help me ? Thanks in advance..

    In J2ME, I don't think you can do that easily by setting color. If you want to use specific color in a text field, you need to construct the text box your own. Use Graphics object to draw text field (as image) and here specify a color of your choice.
    Hope this helps.
    Thanks,
    Mrityunjoy

  • Create EDI sales order with reason for rejection set for item

    Hello all,
    I'm trying create an EDI sales order with item rejected, but I get the following error: Item 000001's configuration can no longer be changed.
    I set the reason for rejection in the segment E1EDP01, field ABGRU.
    How can create the sales order, with item rejected without error?

    Use program SDJEDI to simulate the error (see note 380603)
    This way you can figure out whether the same issue exists in VA01 or just in the SD EDI process
    From reading the issue, it seems you have a configurable item and the line is not open for input and that's why your reason for rejection is ignored.
    But SDJEDI should tell you everything.
    Run it first to see the BDCDATA your idoc produces.
    Then run it again in simulate mode and it should take you very close to the error
    Hope this helps
    Paul

  • Finding the minimum with a for statement

    Ok so Ive got this program and I need to find the minimum value from the 10 values that are entered by a user, my problem is I cant figure out to initialize the variable minNum, Im not sure how to do it with a for loop, if I set it to zero, then zero will always be the minimum, so Im not sure how to make it so it takes the first value as the minimum then compares each value entered after that to see if the value is smaller, and I have to use a for loop for this problem, my professor specified which loop to use, so heres the code:
    import java.util.Scanner;
    public class Exercise52Chapt6
      public static void main(String[] args)
                Scanner scan = new Scanner(System.in);
                  int minNum;  // stores the minimum of 10 numbers
                           int number;  // stores the current input
                           for ( int i = 1; i <= 10; i++ )
                    System.out.print( "Enter an integer > " );
                                   number = scan.nextInt( );
                        if(number < minNum)
                        minNum = number;
              // process results by printing the minimum
              System.out.println( "The minimum is: " + minNum );
    }

    import java.util.Scanner;
    public class Test
      public static void main(String[] args)
                    Scanner scan = new Scanner(System.in);
                        int minNum=0;  // stores the minimum of 10 numbers
                          int number;  // stores the current input
                          for ( int i = 1; i <= 10; i++ )
                            System.out.print( "Enter an integer > " );
                                number = scan.nextInt( );
                                if(i==1){
                                    minNum = number;
                                    continue;
                                if(number < minNum)
                                    minNum = number;
                    // process results by printing the minimum
                    System.out.println( "The minimum is: " + minNum );
    }

  • Create id, update id with date for each record

    Hi,
    Please give me brief idea or document for this concept:
    I need create id, create date, update id, update date for each record inserted or updated in database (in few tables).
    1) how user id can be obtained?
    2) Is it better if i use views instead of tables for this?
    3) is it possible for each record?
    Please show me complete scenario. a piece of code can also be helpful.
    thanx in advance.

    only.ashish99 wrote:
    Hi,
    Please give me brief idea or document for this concept:
    I need create id, create date, update id, update date for each record inserted or updated in database (in few tables).
    1) how user id can be obtained?SELECT
    2) Is it better if i use views instead of tables for this?It depends.
    post EXPLAIN PLAN for both.
    3) is it possible for each record?yes
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • Should I create 2 different apple ID's for my kids ?

    I just purchased 2 16g wifi Mini's for my two daughters. We have 3 active iphones in the house and my youngest has mom's old 16GB 4s phone (4 phones all together). We all share the same Apple ID. Both of my kids use different apps (5 year age difference). Should I create another Apple ID and share it with my oldest daughter and let my wife and youngest daughter continue to share our current ID?
    They both are getting $100 iTunes cards, so how can I organize this without one using the others $$$? I own a MacBook also and my wife is getting an Airbook and Apple tv for Christmas.
    What should I do?

    can I use the same email address for multiple Apple ID's?
    My two kids dont need e-mail addresses

  • How to create twenty different formulars with the same headline?

    hi, I am german an I would like to create different formulars (at least 20) with Acrobat pro XI.
    Is there a possibility to feed in just one time personal datas like name, adress etc. and to use it in all of the 20 formulars (these datas should be protected by password etc.)
    Firma:
    Musterfirma
    Musteradresse
    Betriebsanweisung
    Ersteller:
    Mustername
    Mustertelnr.
    Tätigkeit:
    Arbeiten an und mit Maschinen
    Datum: 
    14. November 2014
    the red text i would like to write down one time, and find them afterwards as an protected text in different formulars...

    Yes, that's what I meant. This kind of operation is called a "mail merge". It can be done using the PDF Maker plugin of Acrobat in some versions of Word and Excel, or using a script. I've developed a script that allows you to do it with any plain-text data file, for example.

  • Can you create a different default Opportunity name for Lead conversion?

    We're using CRMOD for a high-volume call center and we end up with leads with the same name. According to the online help, "The First Name and Last Name for the lead appear in the Opportunity Name field by default." That's working correctly, but it would make our lives easier if it did something different, like maybe First Name, Last Name, and ZIP code, or First Name, Last Name, and a Timestamp. Is there a way to do that? I realize the users could do something manually, but then I get all the associated issues.

    I'm not quite sure how that would work. I attempted this in staging using [<AccountName>]+" "+[<AccountLocation>], and I checked the Post Default box. When I go to convert a Lead, it still defaults to First Name and Last Name on the Convert Lead screen.

  • How to create a USB pendrive with HUU for UCS

    hi,
    I have 4 UCS C220M3 that needs updates, and I downloaded HUU2.0.3d-1 for this as ISO file
    I really want to use a USB drive to boot the UCS of of the box before i shipthem out - So there are no network connectvity - just out of the box, boot to USB via F6 and go !
    I have doine this before on 1.5 code, but now with 2.0 I got all kinds of funny error and I think its related to the way I create the USB drive
    So what is the best way to create a bootable USB drive from this Cisco ISO image ?
    I tried 3 sorts of "makers", but none can boot and load the HUU.
    Latest I tried will boot up and start HUU, but then just fails while loading firmware  and tools
    Please advise

    mbilgrav
    What is the error that you get when you try the install via the USB drive?
    Another option you have is to connect a laptop directly to the mgmt port of the C Server and configure the ip adress of the cimc and the laptop on the same subnet. when you are done with the firmware upgrade you can reset the CIMC of the server to ffactory defaults to remove ip config of the server

  • Other events interfere with abort for state machine started by an event

    In the attached VI there is a state machine that is triggered by a boolean “start” change event.  There is also a boolean “stop” that stop the state machine, a numeric “voltage” that has an event handler and a boolean “exit” that has an event handler.
    The stop button works as expected unless if the voltage value is changed before the stop button is pressed.  I was thinking this might be because there is an event for the voltage value change but there is also an event for the exit button value change and the problem does not occur if the exit button is pressed before stop.
    If anyone could explain the reason I am only running into the problem with the voltage value change and/or how to properly implement the stop/abort function I would appreciate it!
    Thanks,
    Dave (LabVIEW 7.1)

    Well that certainly solves the problem I was having!  The case in a while in a case in a while reminds me of the 10-level deep if statements I used to end up when starting C programming.  I guess the inner case/while are required for the state machine and the outer while is required for the Producer / Consumer.  I always find myself thinking in terms of "if/then" statements and the case/comparison took the place of that. 
    Regardless, problem solved.  If anyone has tips on how to make it (attached) look better, please post them!
    Lynn, I wasn't quite sure about your instructions on passing the exit and stop commands through the queue.  I went with the idea of keeping the long-running loop separate.  I know I still have a bit more to work out such as use of exit button while state machine is running, and the stop button only works in between state machine iterations.
    Message Edited by davey31415 on 11-27-2006 07:04 PM
    Attachments:
    PowerfoldMeasStat.vi ‏158 KB

  • How automaticaly create user's mailboxes with content for test purposes?

    Hi all!
    Tell me please, how can i imitate outlook's users activity. In result i need 10...200 mailboxes with 100-200 elements (mail, calendar's events, meeting requests and etc) and up to 100Mb size of each mailbox. It's need for creating test environment.
    Maybe some script or programs?

    You can use LoadGen tool of MS for simulating load on your exchange servers for various access methods. You can find it at below ling.
    http://www.microsoft.com/en-in/download/details.aspx?id=40726
    Abhijeet D

  • Create a different db with same db_name and now cannot start apex

    Hi All
    we create a db in the same box with my old db.
    The purpose is we need to change the default character set to unicode.
    And How do we start apex?
    Is there a command line tool to start apex?
    -Thanks for the help!

    Hi umesh,
    Thanks for your help.
    That means we can set up two database with same db_name and domain is system. the duplicate DB (second DB) does not affect primary DB in system and makes a confusion for client application? suppose i use TNS to control each DB by IP .
    also, can we use db_link to link two differnet OS plastform( window 32 bit and linuc 64 bit redhat with service name) oacle version is 10 g too?
    I try to configure a TNS in primary DB tnaname file but fail with TNS : no listener ora-12541 during connect linux DB server.
    But I copy this TNS to new window 32 bit PC with oracle client. it works to link to linux db services.
    which issue?
    Thnak for help
    JIM
    Edited by: user589812 on Jul 3, 2009 9:00 AM

  • How to manually create a standby db with SAN for hardware cluster failover

    Hi all,
    The primary db(oracle 9i r2, Sun Solaris) puts its datafile, redo logs, control files in SAN while the pfile, listener and tnsnames files are in its local hardisk. I need to create a standby db(not for dataguard) for hardware cluster failover, where if the primary db fails the hardware cluster will failover to standby db(mounting the datafile, redologs, control files in
    SAN to a mount point automatically and start the db services). But I don't know how to create the standby db, I would install the db software first then should I copy the pfile(created from primary db), listener and tnsnames files to standby db? What are the correct steps to do it? Any advice is greatly appreciated.

    Thanks ackermsb for the reponse. I think I have confused of setting standby db and creating a HA. What I trying to achieve is creating a HA with vendor clusterware and oracle e.g. Sun Cluster HA for Oracle.
    The steps involved in preparing the primary and standby oracle are:
    Oracle application files – These files include Oracle binaries, configuration files, and parameter files. Need to installed separately in two servers locally.
    The Database-related files – These files include the control file, redo logs, and data files are placed in a Cluster File System.
    What I don't how to do it is, after installing the oracle binary in standby server, should I create the listener, tnsnames and pfile or copy them from the primary db?
    Thanks in advance.

Maybe you are looking for

  • Error Your browser/program is not supported by Web Dynpro

    Hi, 1. I am getting error "Your browser/program is not supported by Web Dynpro" while executing Web dynpro java application 2. Portal is EP 7.0 with SP15 3. Browser is IE 8.0 4. Which browser(s) (& sp level)  are supported by web dynpro? 5. Is it pos

  • Zedboard BSP build fails out of the box

    Hello, I downloaded the Petalinux 2015.2 tools and the Avnet Zedboard 2015.2 BSP However, as soon as I try petalinux-build after the creation of the project, i get the error: [...I skip the initial messages which all look correct...] [INFO ] Update a

  • Total number of users with valid passwd

    Hi all, what is the way to check the total number of users (existing on my SAP system) with a valid passwd? I know how to find the total number of users but I just need the info for the valid passwd. Thanks in advance, Loukas

  • How do I close Adobe Dynamic Link Manager & Adobe Media Core to install After Effects?

    when i try and install the after effects cc it tells me to close the following programmes: after effects, adobe dynamic link manager and adobe media core. How do i close the last 2??

  • Video encoding failed, audio encoding successful, both worked before

    I have an .AVI that was provided by a studio.  I used this .AVI in the past (February-ish) to create a .FLV using Media Encoder with no issues.  I have to add a section to the original .AVI now.  When i import the video to the new project, the previe