Can i do this (use a counter "i" in instance name)

hello,
i have  5 Dynamic Text object in my scene and i need to do a treatement for them (compare each one to the other)
my Text instance names are :
to0,to1,to2,to3,to4
and their variable names are :
t0,t1,t2,t3,t4
what i need to do is :
if (t0>t1) then to0 will move to the place of to1 and to1 will move to the place of to0
till now i have no problem to compare 2 elements and change their place but what if i have a large number or an unknow number of elements , i know that i can (should) a for loop but the problem is that i can't do this
for examle let's say that i have 10 elements :
for(i=0;i<10;i++){
          if(t[i]>t[i+1]){
            exchange(to[i],to[i+1]);
//this code work perfectly when i work with an array
i hope that you understand my problem, i don't need someone to tell me how to apply a sort in a table all i want is the ability to use a counter on an instance/variable name of a MovieClip,DynamicText,etc...
thank you

If you follow what I offered in your other message, it would be something like...
for(i=0;i<10;i++){
          if(t[i]>t[i+1]){
            exchange(this["to"+i], this["to"+(i+1));

Similar Messages

  • I have about 10000 images of different persons with dimension of 640*480. I wan to crop face from these images to dimension of 200*280. The location of face varies in differnt pics. So, please let me know step by step how can I perform this using the Ligh

    I have about 10000 images of different persons with dimension of 640*480. I wan to crop face from these images to dimension of 200*280. The location of face varies in differnt pics. So, please let me know step by step how can I perform this using the Lightroom software. Also I wan to know what should be the aspect ratio to do so.Thank you in advance

    The aspect ratio should be set to 200x280, or equivalently 5x7.
    I don't think it is possible to do the cropping automatically in Lightroom, you'd have to do this image by image to crop the faces correctly.

  • Hi, I've been stolen and I need to find my iPhone, how can I do this using the IMEI?

    Hi, I've been stolen and I need to find my iPhone, how can I do this using the IMEI?

    You cannot do this using IMEI.
    If your iPhone, iPad, or iPod touch is lost or stolen - Apple Support
    Report a lost or stolen Apple product - Apple Support

  • Using a variable in an instance name

    Hey all,
    Simple question:
    I'm trying to use a variable to call on different instance names:
    var picCaller:uint=2;
    material_mc.addChild(pic_""+picCaller+"");
    The code in red is the issue in question.  In this example, I'm trying to add a child called "pic_2", with the number two called from the variable "picCaller"
    Any assistance is greatly appreciated.
    Thanks!

    Just for context, here is what I'm trying to do:
    I have jpegs in my library and I want to add them to the stage when they're needed, so just to add one image, here is the code I have:
    var pic_1=new pic1(0,0);
    var image_1:Bitmap=new Bitmap(pic_1);
    material_mc.addChild(image_1);
    I want to put the above into a loop so that I dont have to repeat those three lines for every image in my library like so:
    var pic_1=new pic1(0,0);
    var image_1:Bitmap=new Bitmap(pic_1);
    var pic_2=new pic2(0,0);
    var image_2:Bitmap=new Bitmap(pic_2);
    var pic_3=new pic3(0,0);
    var image_3:Bitmap=new Bitmap(pic_3);
    var pic_4=new pic4(0,0);
    var image_4:Bitmap=new Bitmap(pic_4);
    var pic_5=new pic5(0,0);
    var image_5:Bitmap=new Bitmap(pic_5);
    var pic_6=new pic6(0,0);
    var image_6:Bitmap=new Bitmap(pic_6);
    var pic_7=new pic7(0,0);
    var image_7:Bitmap=new Bitmap(pic_7);
    the variable "picNum" is the total amount of images that in the library, each one exported as "pic1", "pic2", "pic3" respectively.
    var picNum:uint=7;
    var picCaller:uint=1;
    var  picMC:MovieClip = new MovieClip();
    picMC=this["pic_"+picCaller];
    for (var  i:int = 1; i <= picNum; i=i+1)
         var "pic_"+i = new image_i(0,   0);
         var image:Bitmap = new Bitmap("pic_"+i);
    Thanks so much for your help.

  • How can I make this using coldfusion?

    Hi, I'd like to make a photo changing gallery as you see on
    the news sites when you click next it loads a new photo and text
    without reloading the page (
    http://news.aol.com/story/ar/_a/miners-families-outraged-in-utah/20070806121809990001)
    is this done in ajax? do you know where I can find the code
    or application to do this in coldfusion?
    Thanks

    this can be done with a simple image swaping javascript like
    the attached code, and then you call it with and onclick event
    like:
    "imageSwap('BigImage', 'myPicture.jpg');" to cycle through
    several images you can use a javascript array to hold all your
    image names and have the next button just increment through the
    list everytime you click it.

  • Can I do this: Use wireless network as WAN and create my own LAN.

    I travel quite a bit and many hotels now do not have wired in-room networks.
    So I'm looking for a way to use the wireless network as a wide area network and create a local network in-room behind a router/firewall, preferably with a private SSID..
    I've been reading for quite some time and am confused about whether this is even possible.
    It sounds as if I could use an airport express to join the wireless network then use the Ethernet to connect to another airport or time capsule? It sounds like joining a network on any other airport device (Time Capsule or Airport Extreme) disables all the network functions on hose devices...? I'd like to do this with a time capsule but I'm not really fond of passing my backup all over the hotel network...
    Incidentally, this is about security and not dodging charges, I almost never stay in hotels that charge for Internet. Kind of hard to believe I'm the only one that wants to do this... and if it isn't obvious I don't have any airport devices presently.

    Interim update:
    I picked up an airport express and joined it to the hotel network. I then connected the router that I carry around to the airport express and was able to connect to the internet using my SSID on the router.
    After playing with the airport utility I see that configuring any of the airport devices to replace the current router should be no issue.
    I'll maybe pick up a Time Capsule next week and finish the job.

  • How can I do this using Wildcards?

    Hi everyone,
    I have a classed called LabeledDecimal which is a subclass of BigDecimal. Now, I have a class called Pair which is written using Wildcards.
    This class has a copyFrom() method which looks like :
    public void copyFrom(T p2)
         this.first = p2.first;
         this.second = p2.second;
    }If I try to use this method like below:
    Pair<BigDecimal> p1 = new Pair<BigDecimal>();
    Pair<LabeledDecimal> p2 = new Pair<LabeledDecimal>(ld1, ld2);
    p1.copyFrom(p2);Then I get the error:
    The method copyFrom(Pair<BigDecimal>) in the type Pair<BigDecimal> is not applicable for the arguments (Pair<LabeledDecimal>)
    How do I fix the copyFrom() method to get rid of this problem using wildcards?
    Edited by: fantastic_ray on Mar 20, 2008 12:07 AM

    Figured it out!
    public void copyFrom(Pair<? extends T> p2) That will fix it.

  • Need to create a searchable employee directory in Muse.  How can I do this using Business Catalyst?

    I have been tasked with updating our firm website, and have no prior web design experience.  Muse seems like a great option, but I understand that Muse has no database capabilities.  I was advised that I could find a way to incorporate a searchable employee directory (database) via Business Catalyst. Are there any links that show how to do this?

    Thanks, Adam.  I think this looks like a good option for us.  Here is our current, existing website, which I am tasked with updating:
    www.bstz.com
    Would you mind taking a look at the attorney directory, and confirming that the BC Meet the Team will allow me to create essentially the same sort of directory, with search fields, photos and cv?  I'm sure it will, but I just need confirmation before I go too much further down the design path.
    Right now I am just on trial Adobe Creative Cloud membership, so I was able to download and experiment with Muse.  I believe the cost to continue this would be about $15/month.  If I join Business Catalyst with eCommerce membership, would that be in addition to the Adobe Creative Cloud membership?  I'm going to need to give a proposal to my partners, and I want to make sure I am accurately stating the monthly costs.  We currently have our own in-house server, and I want to be able to rationalize moving away from that.
    Thank you for your continuing expertise.
    Ingrid
    BSTZ
    310.500.4750

  • Some telephone numbers only stay visible for a second or two, refreshing the screen brings them back but again for a second ie too short to note down. How can I stop this (use Vista Basic on laptop)?

    When searching for numbers on a business website quite often, though not always, the telephone number only appears very briefly. Copying the web address on to Internet Explorer the number stays visible. Only happens on telephone numbers not for any other info eg email address.
    Have no idea why this happens as it appears to be random though it must relate to how a website is viewed. Wouldn't where to start to fix this!

    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Java Plug-in 1.6.0_13 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version (6 U22).
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version (10.1 r85).
    *http://www.adobe.com/software/flash/about/

  • Why can I no longer use a period in a file name for Adobe Reader?

    I was using Google Chrome to view pdf's but Chrome wasn't following the field tabbing order of the pdf.  To resolve this issue, I decided to try disabling Chrome's pdf viewer so that pdf's would open in Adobe Reader.  It didn't go as planned and decided to go back to using Chrome's pdf viewer.  I can no longer rename a pdf with a period.  Is there a setting may have changed?  I don't know if this is an Adobe or a Chrome issue but I thought I would start with Adobe.  Thank you!

    Naming a file with a dot is a dangerous and unpredictable thing to do. Whether it works CAN depend on what comes after the dot.

  • How can we do this ? (Can it be done using ASSIGN Componenet stuff)

    Hi,
    I am trying to validate the data entered by user. This is related to tax validation.
    Before the tax validation is carried out the data entered by user is valid or not is checked.
    After the user enters the values for field LAND1, BUKRS, KOART, STCD1, STCD2 ; the configuration table zconfig having structure LAND1, BUKRS, KOART and FNAME is checked.
    Now the business people will populate zconfig along with data for LAND1, BUKRS, KOART and FNAME. FNAME will have value of STCD1 and/ or STCD2.
    Now user enters CANADA, 567, D, 3456 for the fields <b>LAND1, BUKRS, KOART  and STCD1</b> (<b>This leaves STCD2 value blank.)</b>
    Now in config table for combination of CANADA, 567, D; the <b>value under FNAME is STCD1.</b>
    Hence
    data enterd by user is valid.
    EXIT.
    But if user enters CANADA, 567, D, 3456 for the fields <b>LAND1, BUKRS, KOART  and STCD2</b> respectively.
    <b>(Here STCD1 is blank.)</b>
    So when this data is being checked against config table the user data should be invalidated as config table has <b>STCD1 as value of FNAME for combination of CANADA, 567, D.</b>
    data entered by user is invalid.
    raise error.
    Can someone tell me how to do this ?
    How can we do this using field symbols ?
    Thanks..

    Hi,
    just a try:
    assumption : stcd1 or stcd2 is <b>obligatory</b> !
    assign (zconfig-fname) to <f>. "so <f> = stcd1 or stcd2
    if <f> is initial."the correct tax no is space !
    message e001(00) with 'false tax no.'.
    else.
    exit.
    endif.
    hope it helps
    Andreas

  • Can Formatted search be used in this situation?

    Dear Experts,
    I have defined a row level UDF called DIA. I input dia values in goods issue. Hence it is stored in ige1 table. When I receive those items in Goods Receipt, the Dia Column found blank. I need to have the dia value entered in IGE1 in Goods Receipt form.
    Its some what like this.
    Itemcode    Qty    DIA
    a001          10       12
    b001          20        20
    c001          10       22
    When I receive these items after the specified process, I make entry in Goods Receipt based on PO No,. That time, the form
    shows blank value in DIA field. I need the DIA values entered for the Items to appear automatically from IGE1. Can I do this using formatted search. Please advise.
    Thanks in adv.
    Anand

    As I understand, you want to make a goods issue transaction entering these values into the document rows and in an independent transaction (I could not catch it is a goods receipt or a goods receipt PO) to get these values.
    First you should make a reference in the second transaction to the original one. The best is to define a header level UDF where you can write the DocNum of the original goods issue transaction (assuming you are using unique document numbers). We can call it e.g. U_SourceDocNum.)
    Then you make an FMS like this:
    Select  R.U_DIA from IGE1 R inner join OIGE I on R.DocEntry=I.DocEntry
    Where I.DocNum=$[OIGN. U_SourceDocNum] and R.ItemCode=$[IGN1.ItemCode]
    And set it autorefresh when SourceDocNum is changes.
    (The user should fill the SourceDocNum after filling the document lines!)
    In the code I used OIGN and IGN1. If you use goods receipt PO in the second steg, you should replace them with OPDN and PDN1.

  • I have just converted from PC to iMac. Yay. But pls be nice to me; I am back to newb! Running Lion. Have connected a Time Capsule as both a backup and WAP. I want to be able to join the network with my iPad, iPhone, iPod to print. How can I do this?

    Can I do this using the Time Capsule. I am not tech, so bear with me. Can I get the iPad to connect wirelessly to the TC, which connects wirelessly to the Canon MP495? Or, can I connect/network the iPad to the iMac to print?
    Either way, or if there is any other solution, I would appreciate if someone would walk me through it, or point me to a plain-speaking resource.
    Thankyou.
    Actually, one more: I would like to connect my HP laptop as well. I have heard this is not simple, but possible.

    You can create a wifi network with your TC, and you can join this network with your iPad. However, your printer does not support the AirPrint protocol, so you will not be able to print from your iPad, unless you load additional software.
    These are the steps:
    1.  (You may have completed this step already) Set up your TC to create a wireless network. You can do this from AirPort Utility on your Mac or from the AirPort Utility App on your iPad (free download from the App Store).
    2. From your iPad, go to settings / wifi and join the network.
    3. Download the Canon iPhone App from the App store on your iPad
    4. You can now print photos from your iPad to your Canon printer.
    If you want full functionality, (not just photos), there is software for your Mac that makes your printer available to your iPad through AirPrint (Printopia). The downside is, you have to purchase it, and you have to have your Mac running when you want to print from your iPad.
    Good luck!

  • HT4576 I want to set up appointment times for an overseas trip before I go, and see those local times in the places I visit, but also be able to set new appointments while I am traveling, in the local times.  Can I do this with Time Zone Support?  If not,

    I want to set up appointment times for an overseas trip on my iPhone 4S before I go, and have them appear as I put them in (for the local time) when visiting other countries.  I also want to be able to adjust times and set up new appointments when I am overseas for the local time.  Can I do this using the Time Zone Support or any other way? 
    Basically I want to do what I can do with a piece of paper - write down the time for when I will be there, and have it viewable when I am there, but also be able to put down new times while there.

    Hi.
    Regarding your question about reverting back- yes, I think you can. If you make a backup of your current configuration in Server Admin (by dragging the configuration file to your desktop- cool, no?) then you can load that one back in should your configuration not work. If you have the manual from Apple it should describe this process.
    Network speed post-op? I don't think you will need to worry. Even using home directories stored on our OS X Server there is no network slowdown (that you can notice or that impacts the wider LAN in any case). It shouldn't slow down access to files, applications (which still come from the local drive anyway) or individual internet connections (even with filtering).
    In our experience some of these things have actually got faster- but a lot of that is user perception. Same goes for people who will know you have configured the server and that they are now accessing files through your network from the server, and who really think it is slower. File coming from your local hard drive will always be quicker- but network access isn't that bad that it will make you barf and run in the opposite direction.
    Something to look at: connection speed between clients and switching technology in your office. In other words, what kinds of switches are you using, what line speed have you got (100MB/s?) and is the connection from your server to the switch gigabit? Make sure it is.
    Enjoy
    Paul
    MacBook Pro 2.16GHz   Mac OS X (10.4.8)  

  • Infopath submit - how to hide - Save as dialog box - You can only save this file to the current site

    HI,
    I have a infopath form. In the submit options, i have used the below:
    submit options -
    sharepoint document library
    Data connection - Sharepoint Library Submit
    Doc library - lib location
    File name: concat("User Info - ", ResourceName, "-", PersonalID)
    Allow overwrite if file exists is checked.
    When I try to save a record, I am getting a popup:
    Save As:
    You can only save this file to the current site
    File Name: textbox
    save location: doc lib.
    save, cancel buttons.
    How to override this save as option(save as option should not be shown to user), and save the file using the file name mentioned?
    Thanks

    Are you clicking "Save" when you're using the form or "Submit"??
    You should be using "Submit" and it will ... submit your form to the document library with the file name you specified.
    To disable the "Save" button, click on "File" then "Form Options". Under the "Filler Features" area you can uncheck the box beside "Save and Save As". Click OK then re-publish your form.

Maybe you are looking for

  • PL/SQL code not running

    Hi , Please help to get the rows which have a character in the PFNUM column for this table EMPNU PFNUM NAME 100 222 rat 101 a33 sanu 102 4a4 rahul our PL/SQL is 1 DECLARE 2 i number; 3 j number; 4 t varchar2(10); 5 CURSOR ratnesh_cur IS 6 select PFNU

  • Iphoto printing - preview is landscape, but prints out portrait

    This is a recurring issue when I print photos.  The preview shows a landscape oriented picture, but it prints in portrait orientation. How do I correct this? The settings for the current photo are as listed: Brother MCF-J425W US Letter Color Aspect R

  • Anamorphic material in iDVD6

    I thought this was going to be fixed. Don't get me wrong. I'm happy just for the new iPhoto and iWEB!!! But really. Toss in some great DVD themes and I'm a sucker for it. Except when it won't (I mean I can't figure out how to get it to) do what I nee

  • Time capsule was back-up stopped halfway and started a new back-up

    I was backing up 220+ GB when it stopped at 120+ GB and started a new back-up of 85+ GB. Is this normal?

  • I synced my ipod and now I can't play any of my apps, why?

    I synced my son and daughters ipods and now they can't play any of their apps....please help!!!