Arrays and text inside MC

var cards:Array = ["asso","tre","re","donna","jack","sette","sei","cinque","quattro","due"]
var Carte:Array = ["Asso","Tre","Re","Donna","Jack","Sette","Sei","Cinque","Quattro","Due"]
for (var ft=0;ft<=Carte.indexOf(event.currentTarget.name);ft++){
                                        carteChiamate[ft]=Carte[ft]
                                        Carte[ft].cards[ft].setTextFormat(text_format);
there's something wrong with Carte[ft].cards[ft].setTextFormat(text_format), the rest of the code is ok...

sorry im newbie.. what is wrong with my code?
i also tried this[Carte[ft]+"."+cards[ft]] but probably has no sense..
i wanna obtain:
Asso.asso.setTextFormat(text_format);
Tre.tre.setTextFormat(text_format);
Due.due..setTextFormat(text_format);

Similar Messages

  • Selecting textframe and text inside with 3 clicks

    This was possible in InDesign-Versions previous to InDesign CC. Now, if I double-click a textframe i have to wait 1 second, then i'm able to select text with another double click.
    That is very annoying and disturbs my working process. Is someone else facing this issue?
    The answer from the Adobe LiveChat-Support was "we have something changed" and questions in the kind of "First: Have you already turned your machine on?".
    Friendly as they are the gave me an mysterious adress to a cave somewhere in US, where I can dig for further answers. Fine.

    Sorry, that is not my point, changing settings as you propose doesn't solve my problem.
    This triple click is meant if the cursor is already blinking in the selected textframe.
    @Peter Spier: I change nothing in my prefs. Thats how it works since I installed InDesign CC without any changes.
    No matter how often I click once - InDesign CC does not select text. I have to wait one second and then I have to double click, or triple click to select a word or a line.
    I older versions it was possible just to click three times and text was selected - without switchen first to the text-tool.
    I work very fast on an InDesign-Document, often image-frames and text-frames step by step. So it slows me down if I have to wait one second so I'm able to select text...
    I try this explanation, so you can reproduce the error:
    1. create a text frame and enter some text
    2. Switch from text-tool to the selection-tool (Key "V" or Escape-Key)
    3. Click several times (i mean 10 times and more) fast on a word in the textframe. You will see that in InDesign CC no text will be selected. You have to wait 1 second, then the text-tool will be activated and then you are able to select text. I previous InDesign versions after 3 clicks there was text selected - without selecting first the text-tool.
    Understand my problem? In a fast workflow it is unacceptable to wait 1 second because of a UI-Bug...

  • Scaling and Text formatting / Layout - Help needed

    I am having some trouble with the way text is scaled up in
    flash. When I output and have scaling mode enabled. Objects scale
    nicely when the user resizes the window. However, text does not. If
    there is a text box with multiline enabled and text inside. The
    text will constantly readjust its formatting and layout as you
    scale the window.
    This is a huge problem for an ebook I am developing. It seems
    if I add line breaks manually at the end of each line, it fixes the
    problem, however that is an unrealistic solution as the text will
    all be dynamic.
    Has anyone experience what I am talking about, and knows of a
    solution.

    thnks for the reply ... did something like this
    <af:panelFormLayout binding="#{opportunityManagement.pfl3}"
                                                    id="pfl3" maxColumns="2"
                                                    rows="1">
                                  <af:inputText label="Lead"
                                                binding="#{opportunityManagement.it1}"
                                                id="it1" columns="5"/>
                                  <af:commandButton text="..."
                                                    binding="#{opportunityManagement.cb3}"
                                                    id="cb3"/>
                                  <af:inputText label="Opportunity"
                                                binding="#{opportunityManagement.it2}"
                                                id="it2" columns="5"/>
                                  <af:commandButton text="..."
                                                    binding="#{opportunityManagement.cb4}"
                                                    id="cb4"/>
                                </af:panelFormLayout>but all are on different lines

  • Opening window text inside

    Hi , i dont know that is it right category
    problem is this , i dont know how to make window, if you scroll over than a window will open and text inside , if you click it , it will take you to the other site
    its like this
    The box should be bigger of course
    >>>>>>>>>>>>>>>>>.
         The Dogs               .
    >>>>>>>>>>>>>>>>  .
    If you scroll over , some of the text will apear
    like this
    The box should be bigger of course
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    The Dogs            
                    went to visit my .
                    Grandmas  Dogs     .
                     They were intres
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    If you click it , than a site will apear where is all the text                             .

    - make a button with just 'Dogs'
    - add it to the stage
    - double click on it to edit it
    - go to frame 'Over' and add the Grandma interesting cookies text or what ever... this will make the text appear when you go over the button
    - and as for the going to a site, i guess you could just hyperlink the text to the web page, but there is an action for that 100% but im not shure how it goes... ill try to get it and post it but im shore that somebody will help you before me...

  • How to change font size & color of text inside note and callout annotation using code ?

    Hi,
    I want to set different font size & color for the text inside note and callout annotations. And for this, I am setting properties using the DS attribute while creating annotations (see below code).
    //"font: Helvetica,sans-serif 12.0pt;font-stretch:Normal; text-align:left; color:#rrggbb";
    sprintf(buf,
    "%s %2.1f%s%s%s%s;" , "font: Helvetica,sans-serif", float(g_fontSize),"pt; font-stretch:Normal; text-align:left; color:#", str[0], str[1], str[2]);CosDictPutKeyString (cosAnnot,
    "DS",CosNewString (cosDoc, false, buf, strlen(buf)));PDAnnotNotifyDidChange(pdAnnot, ASAtomFromString(
    "DS"), 0);
    But this doesn't work when I just wrire text after creating annotation.
    And suprisingly it works fine when I click first outside of the annotaion and then double click to write text inside annoatation.
    Is this bug of Adobe ? if not then please let me know the fix.
    Regards,
    Arvind

    Hi
    Is there any way(eg. preference) by which we can change default color & font size for annotation?
    Regards,
    Arvind

  • Is there a way to automatically resize the text box to fit the text inside, without using the selection tool to resize the corners in Illustrator and Photoshop?

    I'm wondering if there is a way where I can quickly resize a text box to fit exactly around the text inside, so pretty much the smallest the text box can go without being too small to fit the text? I know you can do this manually with the selection tool, but is there a button/command that automatically does this in one go?
    Thanks

    Try this script. Save the page as .jsx the the "Presets>Scripts" AI folder. When you restart AI it will appear in the "Scripts" menu. Select the text block and run the script.
    Thanks to Nathaniel Vaughn KELSO for the script.
    http://kelsocartography.com/scripts/scripts/nvkelso/FitToTextContent_v2.jsx

  • Build Array and Output Values to Text or Excel File

    I know this is a simple question but I need some help. I'm reading a DC voltage in LabVIEW a while loop. I want to store all the read values into an array and export that array as an text or Excel file. I had a VI that I build before for this but I cannot seem to find it and I can't remember how I did it before. Any help is appreciated. I think I can do the exporting part but I do help with building the array (storing all the data values).

    I run into a problem while using the "Write to Text File Function". Initially I took about 60 measurements and wrote to a text file. That works but I increased the amount of measurements to be taken to 600 and when I did that the output in the text file are all Chinese letters (or that's what it seems like). Is this because I'm writing too much data?
    When I use the "Write To Spreadsheet File VI" to write the measurments it works fine for the 600 measurements. The problem with this is I cannot insert any text. Using the "Write to Text File Function" I inserted some text before the measurements and "end of lines", to format the data. Attached is a screenshot of my VI.
    Attachments:
    measurements.PNG ‏45 KB

  • Sql Query to replace the square bracket and the whole text inside with a single charecter

    Hi All,
    I  have a question.
    I am using Sql Server 2012.
    I have a  situation where i need to replace the entire text and the square bracket with a single charecter.
    Eg:-> 
    I have atext    san[123456dd]text
    i just wanted to replace all teh text inside the sqaure bracket to another charecter say 'X' 
    My end result should be sanXtext.
    Could anyone help me regarding this?
    Samproo

    Prashanth ,
    Thanks 
    It works if i have a single square bracket like 
    'san[123456dd]text'but presently i do have multiple square brackets like'san[123456dd]text[898989dd]note'I wanted to have teh result as 'sanXtextXnote'
    Samproo

  • Need help getting information out of array and into text/object files

    Im having alot of trouble with this i have the classes for the array, text reader and writer, and object reader and writer mostly done. I originally had a getInfo method in my object and text classes to input the data needed, but that wasnt how the instructor wanted. So my question is how do i take the infomation in the array in class studentarray and send that information to the text and object classes? I have looked online for an example and cant seem to find one that looks like it would work. I am pretty sure what i need will be put in the class StudentArray
    here is requirements i havent figured out how to implement
    - read student records from a �text� file
    - write student records into a �text� file (new data after sorting)
    - read student records from an �object� file
    - write student records into an �object� file (new data after sorting)
    I have sorting methods below in StudentArray just didnt post them
    public class StudentArray {
    private static Scanner input = new Scanner(System.in);
    private static student sArray[] = new student[5];
    public static void insert() throws NegativeIDException
    for(int i = 0; i < 5; i++)
    System.out.println("Please enter firstname:");
    String Fname = input.next();
    System.out.println("Please enter lastname:");
    String Lname = input.next();
    System.out.println("Please enter id:");
    int Id = 0;
    try
    Id = input.nextInt();
    NegativeIDException nide = new NegativeIDException("No negative number for id.");
    if(Id < 0)
    throw nide;
    scanner.nextLine();
    System.out.println("you must enter a positive number try again");
    catch(InputMismatchException ime)
    System.err.printf("\nException: %s\n", ime);
    scanner.nextLine();
    System.out.println("you must enter an integer try again");
    System.out.println("Please enter year admitted:");
    int Admitted = 0;
    try
    Admitted = input.nextInt();
    NegativeIDException nide = new NegativeIDException("No negative number for id.");
    if(Admitted < 0)
    throw nide;
    scanner.nextLine();
    System.out.println("you must enter an integer try again");
    catch(InputMismatchException ime)
    System.err.printf("\nException: %s\n", ime);
    scanner.nextLine();
    System.out.println("you must enter an integer try again");
    System.out.println("Please enter Gpa:");
    double Gpa = input.nextDouble();
    int t = 0;
              int q = 0;
              System.out.println("Please select your track");
                   System.out.println("1 for doctoral student");
                   System.out.println("2 for graduate student");
                   System.out.println("3 for major student");
                   System.out.println("4 for minor student");
                   t = input.nextInt();
                   if (t == 1)
                             System.out.println( "Please select your doctoral topic");
                             System.out.println("1 for Video Games");     
                             System.out.println("2 for CPU History");     
                             System.out.println("3 for Other");     
                             int c = input.nextInt();                         
                             String diss = "";
                             if (c == 1)
                                  diss = "Video Games";     
                             else if (c == 2)
                                  diss = "CPU History";
                             else if (c == 3)
                                  diss = "Other";
                             sArray[i] = new CSDoctStudent(Fname, Lname, Id, Admitted, Gpa, diss);
                             q++;                              
                        else if (t == 2)
                        System.out.println( "Please enter the number for your graduate course");
                        System.out.println("1 for Software Engineering");     
                        System.out.println("2 for Theory");     
                        System.out.println("3 for Other");     
                        int b = input.nextInt();
                        String Theory = "";
                        if (b == 1)
                             Theory = "Software Engineering";     
                        else if (b == 2)
                             Theory = "Theory";
                        else if (b == 3)
                             Theory = "Other";
                        sArray[i] = new CsGradStudent(Fname, Lname, Id, Admitted, Gpa, Theory);
                   q++;     
                        else if (t == 3)
                             System.out.println( "Please enter the number for your major course");
                             System.out.println("1 for Hardware");     
                             System.out.println("2 for IS");     
                             System.out.println("3 for Theory");     
                             int m = input.nextInt();
                             String track = "";
                             if (m == 1)
                             track = "Hardware";
                        else if (m == 2)
                             track = "IS";
                        else if (m == 3)
                             track = "Theory";
                             sArray[i] = new CSMajorStudent(Fname, Lname, Id, Admitted, Gpa, track);
                             q++;     
                   else if ( t == 4)
                             System.out.println( "Please enter the number for your minor course");
                             System.out.println("1 for Computer Application");     
                             System.out.println("2 for Multimedia");     
                             System.out.println("3 for Web Technology");
                             int d = input.nextInt();
                             String Hardware = "";
                             if (d == 1)
                                  Hardware = "Computer Application";     
                             else if (d == 2)
                                  Hardware = "Multimedia";
                             else if (d == 3)
                                  Hardware = "Web Technology";
                             sArray[i] = new CSMinorStudent(Fname, Lname, Id, Admitted, Gpa, Hardware);
                             q++;     
                   else;
    sArray= new student(Fname,Lname,Id,Admitted, Gpa);
    //trying to write it to a text file with this
    import java.io.PrintWriter;
    import java.util.Scanner;
    import java.io.File;
    import java.io.FileNotFoundException;
    public class TStream {
    private Scanner input = null;
    private PrintWriter output = null;
    private student [] sArray = new student[5];
    public TStream()
    public void write()
    try
    output = new PrintWriter("tdatabase.txt");
    for(int i = 0; i < 5; i++)
    output.print(sArray[i].getFname() + "\t");
    output.print(sArray[i].getLname() + "\t");
    output.print(sArray[i].getId() + "\t");
    output.print(sArray[i].getAdmitted() + "\t");
    output.print(sArray[i].getGpa() + "\t");
    output.println();
    output.close();
    catch(FileNotFoundException fnfe)
    System.err.printf("\nException: %s\n", fnfe);
    System.out.println("Can not open this file.\n");
    public void read()
    try
    input = new Scanner(new File("tdatabase.txt"));
    for(int i = 0; i < 5; i++)
    String Fname = input.next();
    String Lname = input.next();
    int Id = input.nextInt();
    int Admitted = input.nextInt();
    double Gpa = input.nextDouble();
    sArray[i] = new student(Fname,Lname,Id,Admitted,Gpa);
    input.close();
    catch(FileNotFoundException fnfe)
    System.err.printf("\nException: %s\n", fnfe);
    System.out.println("Can not open this file.\n");

    Use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • Need to cut a word in half and insert text inside

    need to cut a word in half and insert text inside like this: http://looksgreat.tumblr.com/post/56189410707/tutorial-letra-dividida

    Hi,
    For me, Jongware is right! It's very easy and cool to do it directly in InDesign (with totally editable text). Here's a sample:

  • Need to cut a word in half and insert text inside, in Illustrator or InDesign

    need to cut a word in half and insert text inside, in Illustrator or InDesign, like this: http://looksgreat.tumblr.com/post/56189410707/tutorial-letra-dividida

    That's fine. Everybody has their own preferences. I find it odd that you feel the need to criticize mine. Personally, I've been a Prepress Tech for 25 years, the last 15 in a digital environment on Mac Workstations. I work with live fonts and outlined text every day. I've had way more headaches with font substitution and reflow than I've ever had with vector art. Most of the time, I leave live text as live text. But if I'm designing a Logo or art that is intended to be placed in multiple documents and probably scaled, I'm going to convert it to paths. Much less chance of the RIP screwing it up that way.
    Your answer to OPs question was spot on. So was mine. There is rarely only one right way to create something in Illustrator. If you don't care for my methods, then don't use them. But let me assure you, I don't need any schooling from you. The fact that you seem compelled to engage me on this may say something about your personality. Micro-manage much?

  • File Name Copy (not text inside the file ) and change the extension of file

    Hi,
    I have a requirement in which I have to copy the file name (not the text inside file ) from one folder/dir to another folder/dir with some another extension.
    Suppose we have file abc.txt of 20kb in a folder ,we need this in another folder with abc.done extension of 0 kb.
    This I need just to trigger a process.
    I have a below code to copy some files from one folder to another but this code copies the complete file not the file name only.Need help.
    package com.sumit.collections;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.nio.channels.FileChannel;
    public class FileMove {
         * @param args
         * @throws IOException
         public static void main(String[] args) throws IOException {
              FileMove fm=new FileMove();
              fm.copyFiles();
         public void copyFiles() throws IOException { 
              File destination=new File("C://soft//test2");
              File srcDir = new File("C://soft//test");
         File[] files = srcDir.listFiles();
         FileChannel in = null;
         FileChannel out = null;
         for (File file : files) { 
         try { 
         in = new FileInputStream(file).getChannel();
         File outFile = new File(destination, file.getName());
         out = new FileOutputStream(outFile).getChannel();
         in.transferTo(0, in.size(), out);
         } finally { 
         if (in != null)
         in.close();
         if (out != null)
         out.close();
    Thanks
    Sumit

    Thanks for all your help.I got the solution.
    package com.sumit.collections;
    import java.io.File;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    public class DotDoneFile {
         public static void main(String[] args) throws IOException {
              DotDoneFile fm=new DotDoneFile();
              fm.copyFiles1();
         public void copyFiles1() throws IOException { 
              List<String> filnamne = new ArrayList();
              File destDir = new File("C://Barcklays-soft//test2");
              File srcDir = new File("C://Barcklays-soft//test");
              File[] listOfFiles = srcDir.listFiles();
         try{
         for (int i=0;i<listOfFiles.length;i++){
              if (listOfFiles.isFile())
              filnamne.add(listOfFiles[i].getName());
              System.out.println(listOfFiles[i].getName());
              File.createTempFile(listOfFiles[i].getName(), ".done", destDir);
         catch(IOException ioe)
         System.out.println("Exception creating temporary file : " + ioe);

  • How do I print a blank card on Iphoto all options seem to have text and photos inside

    I have tried to find just a plain blank photo card 5x7.  There is one that has a blank cover but in the folded area there seems to be no blank option they all have photo inserts and text inserts????  It seems that you can delete the text boxes but I cant seem to delete the photo insert boxes

    The question of making and having printed a photo book has been asked more than a few times now. It seems like a good idea. Perhaps you might provide that suggestion directly to Apple on their iPhoto for iOS Feedback page here
    http://www.apple.com/feedback/iphoto_ios.html

  • How to create the Check box and Text Area inside the Assignment block

    Dear all,
            I am new to web UI development. my requirement is to create the Check box and Text box in the Assignment block. Can anyone help me to do this requirement.
    Thanks & Regards,
    Ashok.

    Hi,
      Please place the below code in the GET_P methods of the fields.
      For Text Area 
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_textarea.
      ENDCASE.
    For Check Box 
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_checkbox.
      ENDCASE.
    Regards,
    Lakshmi.Y

  • Why is it not possible to highlite text inside every PDF?

    Hey guys,
    Does anybody know why I cannot highlight text inside a few PDFs?
    I know already the following:
    If you scan a document and save it as a PDF, it is normally an ordinary picture and therefore you cannot highlight anything. However, I can highlight text inside some scanned PDFs. I assume that somebody (who and how?) used some sort of OCR software. If that is the case, Adobe Reader recognizes the “picture” as text and you can mark easily. So far so good.
    The questions are: Who has to enable OCR scanning? Does Adobe Reader itself has a feature for OCR scanning? If I got a document, which is not yet “OCR scanned”, is there a possibility for me to enable OCR and therefore highlight the text afterwards?
    Thanks in advance for your help (and excuse any language mistakes)!
    Julian

    Adobe Reader can't perform OCR. Adobe Acrobat has this feature.

Maybe you are looking for

  • Analysis Office vs Webi report ---Bex query Data mismatch

    I have one Bex query. I insterted the query in Analysis office for Microsoft edition, and its pulling 985 records, but when i inserted the bex query in Webi report its pulling only 27 records. Any body faced similar problem, explain the solution..? U

  • How to backup an image of internal hard drive on external hard drive with disk utility

    I've followed the instructions under the paragraphph 'Instructions for backing up to an external hard disk via Disk Utility in this article: http://support.apple.com/kb/ht1553. My external hard drive is plugged in. I mount my install DVD of Leopard a

  • Mac OS X Lion Server Roaming Profiles

    I have Mac OS X Lion Server on my iMac and want to setup "Roaming Profiles" to be able to go into any one of my macs, laptops and desktops, and log in to the same profile. Any one know if this is possible and if so, how to do this???

  • ITunes not syncing all pictures

    My iTunes will not sync all of my pictures from iPhoto. After every try I go and delete the iPod photo cache, but it still doesn't work.  I'm trying to sink my MacBook with my iPhone 5 and my ipad mini, but neither work..

  • Bad Software Update: Creative Media Explorer 6.21.08 Software Pack for

    I've just tried installing the 9 April update for the Zen Vision:M 30GB - the Creative Media Explorer 6.2.08 Software Pack for the Zen Vision:M30 and 60 GB. This is supposed to run under Vista. Well, it launches fine, but someone forgot to put the in