Aligning Text in Text Frame

I am placing text within a text frame on the header of my master page. Once I have the text centered and aligned within the text frame in the design screen and go to the preview screen the text displays as skewed to one side (usually to the left). In order to have the text centered within the frame on my published site I had to skew it off center in design mode. See the 'modern kids clothing' text box at the top of my site www.kikikidswear.com
Is there something I am doing wrong?
I've also noticed that when I view my published site on a wide screen monitor other text gets skewed such as the words 'kids wear' on the header and the copyright info in the bottom right of my footer.

Hi Abhishek. Here are the screen shots. These aren't exactly what was used to upload my site as I've played around in Muse trying to figure this out but you can see what the issue is I think by comparing the design view and the preview view. In order to get the text to display as centered (relatively centered in this example) in preview or when previewed in a browser I've had to skew the text fairly far to the right of the text box in design mode. I generally preview in IE explorer 8 on Windows XP although I do also preview the website in other browsers (Firefox, Opera, Safari). The text alignment has not been an issue between browsers although I notice the KIKI logo text in browsers other than IE is slightly jagged on the letter K.

Similar Messages

  • How can I align two different text row in the same table in two different way (one centered and the other one on the left)?

    Hi,
    I want to center two different text row that are in the same table but one on the center and the other one on the left. I put a <span> tag hoping that it has been overwhelmed the table's class properties The .bottomsel's font-family and the .Cig84's font-family and colour work but the text-align don't: they're both on the left.
    These are my source and CSS codes:
    Source:
    <table width="600" border="0">
      <tr>
        <td class="bottomref"><p><span class="bottomsel">| <a href="index.html" target="_self">Main</a> | <a href="about.html" target="_self">About</a> | <a href="clients.html" target="_self">Clients</a> | <a href="contact.html" target="_self">Contact</a> |</span><br />
          <span class="credits">Credits: <span class="Cig84">Cig84</span></span></p></td>
      </tr>
    </table>
    CSS:
    .bottomsel {
      text-align: center;
      font-family: Georgia, "Times New Roman", Times, serif;
    .credits {
      text-align: left;
    .Cig84 {
      color: #F00;
      font-family: "Comic Sans MS", cursive;

    Use paragraph tags with CSS classes.
    CSS:
         .center {text-align:center}
         .left {text-align:left}
    HTML:
    <table width="600" border="0">
      <tr>
        <td class="bottomref">
              <p class="center">This text is center aligned</p>
              <p class="left">This text is left aligned</p>
        </td>
      </tr>
    </table>
    Nancy O.

  • How to find a text in the Frame maker document via script?

    How to find a particular text in the Frame maker document via script?

    johnsyns wrote:
    Why it doesn't work for the other days? When i tried to change the days other than wednesday. it return nothing.
    Reason why Justin's code does not work for other days is date format mask DAY returns day blank padded to 9 characters which is the longest day name which, yes you guessed right, is WEDNESDAY. You either need to blank pad or use format modifier FM:
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY'
      5  /
    no rows selected
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY  '
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'FMDAY') = 'TUESDAY'
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> SY.

  • How to Align test in Text Area?

    Someone please show me how to align text in text Areas...

    You can't (not without rewriting major portions of JTextArea)
    Here's a link which may help (use JTextPane instead)
    http://forum.java.sun.com/thread.jsp?forum=57&thread=342068
    http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20258546.html

  • Align objects to text paths?

    Hi all,
    I don't know if this is possible at all in Illustrator, but I want to align objects to text paths. Look at the following example to get an idea what I mean.
    I start with something like a circular hierarchy, that I get as an output from another program. These are only lines and text. Now I want to add a flag behind the text. This flag should have the same orientation as the text path.
    As this hierarchy is actually pretty big (this is only a snippet), I don't want to rotate all the flags manually. I tried to do it manually with the below example, but it still doesn't looks right...
    Does anyone know, if there is a proper method to rotate the flags according to the orientation of the text paths in Illustrator? Any help is much appreciated!

    I don't know of more automated way  than doing it manually. However you can make the rotation precise using the smart guides. Assuming the text is live (not outlines), this is how I would do it:
    Make sure on the View menu, there is a checkmark in front of Smart Guides (Ctrl+U)
    With a text object selected, pick the Rotate tool (R), find, and click the anchor point of the text object which will be at the left bottom side if the text is left aligned. The Smart Guides will show an "Anchor" label when the mouse cursor is over it.
    Then, away from the Anchor point, click and drag the path of the text object to rotate it until aligned horizontally or vertically to the artboard which will be indicated by the Smart Guides displaying a straight horizontal or vertical line.
    Hold Ctrl key down temporarily to switch to a selection tool and click with it the flag you want to rotate.
    Release the Ctrl key to get back to the Rotate tool and press the Enter key on your keyboard to get the Rotate dialog.
    Change the Angle value to positive if it is negative and negative if it is positive and press the OK button. On a pc you can do all of this step with three keyboard keys instead of the mouse if you press first the Home key, then Delete or Minus for changing the value to positive or negative, and finally press Enter to apply and close the dialog. The flag is now rotated with the same angle as the original orientation of the text.
    Cut (Ctrl + X) the flag, and Undo (Ctrl + z) a few times until you go back to the original orientation of the text.
    Paste (Ctrl + V) to get a copy of the rotated flag and position it in place. I can see that your skills with position the flags are much better than aligning the orientation and I don't think you need more complicated way of doing it.

  • Automatically reduce overset text in a frame?

    I am working with variable data, which pulls text from a spreadsheet. I know I can fit text to a frame, but I don't want to fill the frame. I need the text to start at a specific size, and then if it doesn't fit, reduce the size of the font. I am merging data, so when I print, the document should compose longer email address, or company names, smaller than the intended 10pt. typesize.
    We own a license for XMPie, but it really slow, not to mention expensive to upgrade (again) now that we've moved to Creative Cloud. There must be a way using a plugin, or writing some script. We produce thousands of mailing pieces for schools and non-profits, and I want to steer the company towards an Adobe workflow. We have access to the entire CC suite, so maybe InDesign isn't the solution.
    ? Scott

    I think my article may have been taken to imply that the solution fills the frame. That is not the case.
    The article does imply trying to fill a name badge, but the principle can work for what you are trying to do. The change to the character style doesn't have to be purely to the character height or width, but can change the point size of the type as well as its leading. Re-read the article but more importantly the user comments underneath the article and the solution for instances where there are lots of letters, rather than typing ....... over and over again, use the ^.{x,} where x represents the amount of letters to change.
    Colin

  • Align OCR'd Text to Left

    Hi,
        I have recently scanned in several pages from a document and have run it through OCR. All is well, except that the text on some pages is not left aligned with the text on subsequent pages (see example in picture below):
    Each page is slightly differently misaligned from the others, and I don't want to have to realign it all manually. Is there a method of automatically aligning the text vertically in an automatic fashion after doing OCR on a document?
    b1177

    Not directly. You can use the Object Touchup tool to move the whole block and the crop tool to make things consistent. That may be a bit more manual than you like. I don't think it can be automated.

  • Not able to make change of text in text symbol which are stored in txt pool

    Hi Experts,
    I have new problem today. I have been told to make changes of header text which is displayed after running one customized program.
    Program name : ZSDXXXXX1 which is attached in one Tcode: ZSDXX2.But when I goto SE38 and display the program to make changes, it shows the following different report name like AQCSSYSTQV000009ZSDXXXXX1 and the text symbols text-f58 which are somewhat different.
    Pls gide me to proceed further...
    In SE38:
    report AQCSSYSTQV000009ZSDXXXXX1
       line-size 253 no standard page heading line-count 000(003).
    include <symbol>.
    include <icon>.
    selection-screen: begin of block prog
                               with frame title text-f58.
    tables LIKP.
    data %count-LIKP(4) type x.
    data %linr-LIKP(2).
    tables aqldb.
    include rsaqexcd.
    data: begin of %st_liste occurs 100,
              head(1),
              tab(3),
              line(6) type n,
              cont(1) type n,
              fint(1),
              finv(1),
              fcol(1) type n,
              text(0253),
          end of %st_liste.
    etc.

    As per the report name "AQCSSYSTQV000009ZSDXXXXX1", it seems that there will be a SAP Infoset "ZSDXXXXX1"
    Go to transaction SQ02 with this infoset name "ZSDXXXXX1" then press change button.
    Then on right hand side there witll be field groups/data fields. Select the folder corresponding to Text-F58 and then press change button .
    If it does not work try transaction SQ01 & SQ03.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 11, 2008 4:29 PM

  • How to display text file text in aTextArea component

    Hello
    ive managed to display the text file text in the console, but i want it to show up in the textArea component i have in a frame,
    it seems to display the last character . in the text area
    wheres the rest of the text...this was a lot easier in VB.NET
    any help would be much appreciated
    heres my code...
    private void openButtonActionPerformed(java.awt.event.ActionEvent evt)  {//GEN-FIRST:event_openButtonActionPerformed
    // TODO add your handling code here:
         FileNameExtensionFilter filter = new FileNameExtensionFilter("Text Files Only","txt");
         editorFileChooser.setFileFilter(filter);
         int returnVal = editorFileChooser.showOpenDialog(this);
         if (returnVal == JFileChooser.APPROVE_OPTION){
              System.out.println("You chose to open this file: " + editorFileChooser.getSelectedFile().getName());
              openFileName = editorFileChooser.getSelectedFile().getName();
              openFile = new File(openFileName);
              try {
                   this.readFile = new FileReader(openFile);
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              int inputCharacters;
         try {
         while ((inputCharacters = readFile.read()) != -1){
              System.out.print((char)inputCharacters);
              char[]CHARAARAY = {(char)inputCharacters};
              s3 = new String(CHARAARAY );
              this.editorTextArea.setLineWrap(true);
         this.editorTextArea.setText(s3.toString());
         readFile.close();
         catch(IOException ex){
              System.out.println();
    }//GEN-LAST:event_openButtonActionPerformed

    >
    wheres the rest of the text...this was a lot easier in VB.NET>If you only need to code for Windows, use VB. For code that works on computers, learn the Java idioms, especially with regard to X-plat issues with Files.
    >
    heres my code...>That was a code snippet. You will get better chance of help around these parts, if you can prepare an SSCCE. The code below* is an SSCCE.
    There was a basic problem in the logic of that code, that resulted in the assumption (by the JRE) that every file the user attempted to load, was located in the 'current directory'. It was fixed by abandoning the String based file name of the file, and instead setting openFile to the selected file in the chooser. I also demolished the loading code by replacing the JTextArea with a JEditorPane (much easier).
    * Altered code;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    import java.io.*;
    class TestLoadFile extends JPanel {
      JFileChooser editorFileChooser;
      File openFile;
      JEditorPane editorTextArea;
      TestLoadFile() {
        super(new BorderLayout());
        editorTextArea = new JEditorPane();
        add(
          new JScrollPane(editorTextArea),
          BorderLayout.CENTER );
        JButton load = new JButton("Load File");
        load.addActionListener( new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
              openButtonActionPerformed(ae);
        add( load, BorderLayout.SOUTH );
        editorFileChooser = new JFileChooser();
      public static void main(String[] args) {
        TestLoadFile tlf = new TestLoadFile();
        JOptionPane.showMessageDialog(null, tlf);
      Dimension preferredSize = new Dimension(600,400);
      public Dimension getPreferredSize() {
        return preferredSize;
      private void openButtonActionPerformed(java.awt.event.ActionEvent evt)  {
        //GEN-FIRST:event_openButtonActionPerformed
      // TODO add your handling code here:
        FileNameExtensionFilter filter = new
          FileNameExtensionFilter("Text Files Only","txt");
        editorFileChooser.setFileFilter(filter);
        int returnVal = editorFileChooser.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION){
          System.out.println("You chose to open this file: " +
            editorFileChooser.getSelectedFile().getName());
          // wrong!
          //openFileName = editorFileChooser.getSelectedFile().getName();
          //openFile = new File(openFileName);
          // right!
          openFile = editorFileChooser.getSelectedFile();
          try {
            editorTextArea.setPage(openFile.toURI().toURL());
          } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
      }//GEN-LAST:event_openButtonActionPerfor
    }

  • Pa20(maintain text,display text)

    Hi ,
    I Need to retrieve the text stored for a emplyee.below i am giving the full details,
    In Pa20 transaction if we give the perso. no and select the 0008 infotype.then click on overview tab.then in overview screen if i select any record i.e any period of dates and clicks on display.in display window menu bar
    <b>EDIT-> maintain text .</b>
    they are maintaing some text in that.if i click on display text the text was displaying.
    i need to fetch that data in my custom report.
    can anybody helps from where this text can be selected.which ifotype?.
    hope my question is understood .
    Thanks,
    JK.

    the following works perfect for me..
    *& Report  ZP_PA_0008_READ_NOTES                                       *
    report  zp_pa_0008_read_notes.
    infotypes:
    0008.
    * workfields & internal tables
    data w_subrc type sysubrc.
    data:  key like pskey.
    data: begin of ptext occurs 200.
    data:   line(78).
    data: end of ptext.
    selection-screen begin of block abc with frame title text-001.
    parameters:
                   p_pernr like pernr-pernr,
                   p_date like sy-datum.
    selection-screen end of block abc.
    call function 'HR_READ_INFOTYPE'
      exporting
        tclas           = 'A'
        pernr           = p_pernr
        infty           = '0008'
        begda           = p_date
        endda           = p_date
      importing
        subrc           = w_subrc
      tables
        infty_tab       = p0008
      exceptions
        infty_not_found = 1
        others          = 2.
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    loop at p0008 where itxex eq 'X'.
      refresh ptext.
      move-corresponding p0008 to key.
      import ptext from database pcl1(tx) id key.
      loop at ptext.
        write :/ p_pernr,ptext-line.
      endloop.
    endloop.
    ~Suresh

  • Script error: Operator expected text = pDataMember.text.line[pQuestionNum] Void

    Text

    correction on last post:
    the prop at line 3 should be #pDataMember, not #pDataMember2
    "alchemist" <[email protected]> wrote in message
    news:[email protected]...
    >A friendly hint: Don't post lengthy code - as a rule,
    noone will bother
    >checking it.
    >
    > try changing the first handler with the one below, and
    see how it goes
    > from there.
    >
    > on getPropertyDescriptionList me
    > myList = [:]
    > myList.addProp( #pDataMember2, [#comment: "Data Member",
    #format:#text,
    > #default: ""] )
    > myList.addProp( #pCorrectSound, [#comment: "Correct
    Sound",#format:
    > #string,#default: ""] )
    > myList.addProp( #pWrongSound, [#comment:"Wrong Sound" ,
    #format: #string,
    > #default:""] )
    > myList.addProp( #pEndGameFrame, [#comment: "End Game
    Frame",#format:
    > #marker,#default: #next] )
    > return myList
    > end
    >
    >
    > "Proddy2k" <[email protected]> wrote in
    message
    > news:[email protected]...
    >> Here is the full coding:
    >>
    >> property pDataMember -- question text
    >> property pQuestionNum -- current question
    >> property pPossiblePoints -- points to add to score
    >> property pScore -- current score
    >> property pCorrectAnswer -- which is current correct
    answer
    >> property pCorrectSound, pWrongSound -- sounds
    >> property pEndGameFrame -- frame to go to when game
    is over
    >>
    >> on getPropertyDescriptionList me
    >> list = [:]
    >>
    >> addProp list, #pDataMember,\
    >> [ #comment: "Data Member",\
    >> #format: #text,\
    >> #default: VOID]
    >>
    >> addProp list, #pCorrectSound,\
    >> [#comment: "Correct Sound",\
    >> #format: #string,\
    >> #default: ""]
    >> addProp list, #pWrongSound,\
    >> [#comment: "Wrong Sound",\
    >> #format: #string,\
    >> #default: ""]
    >>
    >> addProp list, #pEndGameFrame,\
    >> [#comment: "End Game Frame",\
    >> #format: #marker,\
    >> #default: #next]
    >> return list
    >> end
    >>
    >> on beginSprite me
    >> pQuestionNum = 1
    >> pScore = 0
    >> showScore(me)
    >> askQuestion(me)
    >> end
    >>
    >> on askQuestion me
    >> -- get the data
    >> text = pDataMember.text.line[pQuestionNum]
    >>
    >> -- reset all the button sprites
    >> sendAllSprites(#makeVisible)
    >>
    >> -- get the question, answers and correct answer
    number
    >> the itemDelimiter = ";"
    >> question = text.item[1]
    >> answers = text.item[2]
    >> pCorrectAnswer = value(text.item[3])
    >>
    >> -- display the question
    >> member("Question").text = question
    >>
    >> -- display the answers
    >> the itemDelimiter = ","
    >> repeat with i = 1 to 4
    >> member("Answer"&&i).text = answers.item
    >> end repeat
    >>
    >> -- start the potential points at 1000
    >> pPossiblePoints = 1000
    >> showPossiblePoints(me)
    >> end
    >>
    >> -- update the possible points dispaly
    >> on showPossiblePoints me
    >> if pPossiblePoints < 0 then pPossiblePoints = 0
    >> member("Possible Points").text =
    "Points:"&&pPossiblePoints
    >> end
    >>
    >> -- update the score display
    >> on showScore me
    >> member("Score").text = "Score:"&&pScore
    >> end
    >>
    >> -- see if an aswer is correct
    >> on clickAnswer me, n
    >> if n = pCorrectAnswer then
    >> if pCorrectSound <> "" then puppetSound
    pCorrectSound
    >> -- add to scrore
    >> pScore = pScore + pPossiblePoints
    >> showScore(me)
    >> -- move on to next question
    >> nextQuestion(me)
    >> return TRUE
    >> else
    >> if pWrongSound <> "" then puppetSound
    pWrongSound
    >> -- subtract from potential score
    >> pPossiblePoints = pPossiblePoints - 100
    >> showPossiblePoints(me)
    >> return FALSE
    >> end if
    >> end
    >>
    >> -- move on to next question
    >> on nextQuestion me
    >> pQuestionNum = pQuestionNum + 1
    >> if pQuestionNum > pDataMember.text.line.count
    then
    >> -- no more questions
    >> go to frame pEndGameFrame
    >> else
    >> askQuestion(me)
    >> end if
    >> end
    >>
    >> on exitFrame me
    >> -- subtract from potential score
    >> pPossiblePoints = pPossiblePoints - 1
    >> showPossiblePoints(me)
    >> go to the frame
    >> end
    >>
    >> -- take any key presses and send to the button
    sprites
    >> on keyDown me
    >> sendAllSprites(#keyHit,the key)
    >> end
    >>
    >> I think it is to do with the version of Director I
    have which is MX 2004.
    >> The
    >> coding was orginnally for Director 7. Any ideas?
    >>
    >
    >

  • How to customize the content set in text as part of tag cq:text property="text"/

    We use the tag <cq:text property="text"/> to get the content, which is set in the jcr property "text".  Text was set in Richtext component and it has hyper link.
    Now, we have to customize the text.
    Example:-
    Actual Text in 'text' property:-
    <p>Click <a data-action="Hyperlink" data-upc-tooltip-type="none" href="/content/www-abc-healthcare-ch/en/offer.html">here</a> for the link</p> <p></p>
    After customization in 'text' property:-
    <p>Click <a data-action="Hyperlink" data-upc-tooltip-type="none" href="/content/www-abc-healthcare-ch/en/offer">here</a> for the link</p> <p></p>
    i.e .html has been removed.
    I tried customizing and set back to text attribute using <c:set var="text" value="<CustomizedText>" /> but even after that tag <cq:text property="text"/> retrieves the old content i.e with .html
    Please suggest how to override text content, so that the tag <cq:text property="text"/> will print customized text.

      Which version of cq? Is Strict Extension Check enabled at  http://<host>:<port>/system/console/configMgr/com.day.cq.rewriter.linkchecker.impl.LinkCheckerTra nsformerFactory
    Thanks,
    Sham

  • Different color text in text area???????

    hi,
    i am working on applet in which i want to show different color text in text area????????
    could any one help me

    I'm not sure it replies, we have developed an
    editorkit for the JEditorPane for colorizing a
    text with a property file describing a grammar. We
    provide in the packaging a trivial sample
    for coloring a java syntax in an applet.
    http://www.japisoft.com/syntaxcolor
    And of course it also requires that you buy it, and a.brillant forgot to mention that a.brillant has a financial interest in this product.

  • Why can I not highligt text? (text is a scan from a book) I use: PC, Win 8, Reader XI

    Hi there :-)
    I read a lot of scanned text from my teacher as a part of my study. According to manuals, I should be able to highlight text - but It's not working.
    Is it because the text is a scan? does it only work with text document files that are converted to pdf's?
    Other people in my class experience the same problem. The twist is: it does work my co-student's Mac. (same shared file, file origin)
    I use Win 8, Reader XI
    Please advise :-)

    Is it because the text is a scan?
    Yes. To highlight text it must be "real" text, ie text that can be selected, not just an image.
    To convert an image to real text you need Acrobat, or a subscription to PDF Pack.
    You can use the Square tool, or other drawing markup tools, to create a kind of highlight over the desired text, though.

  • How to enter text in text input box using virtual keyboard in flex application

    Re: how to enter text in text input box using virtual keyboard in flex application
    hi,
    im using flash builder 4,
    i  designed virtual keyboard, i have to update the text in text input box  continously by using virtual keyboard.
    i used button events.i did  some mistake there.
    can some one help me out of tat.
    thanks  in advance.
    i have included my mxml program with this.
    virtualkeyboard.mxml
    <?xml  version="1.0" encoding="utf-8"?>
    <s:Application  xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"  minHeight="600" creationComplete="initfunc()">
         <fx:Script>
            <![CDATA[
                import  mx.controls.Alert;
                private function initfunc():void
                    b1.addEventListener(MouseEvent.CLICK,handleEvent);
                     b2.addEventListener(MouseEvent.CLICK,handleEvent);
                     b3.addEventListener(MouseEvent.CLICK,handleEvent);
                     b4.addEventListener(MouseEvent.CLICK,handleEvent);
                     b5.addEventListener(MouseEvent.CLICK,handleEvent);
                     b6.addEventListener(MouseEvent.CLICK,handleEvent);
                     b7.addEventListener(MouseEvent.CLICK,handleEvent);
                     b8.addEventListener(MouseEvent.CLICK,handleEvent);
                     b9.addEventListener(MouseEvent.CLICK,handleEvent);
                     b10.addEventListener(MouseEvent.CLICK,handleEvent);
                     b11.addEventListener(MouseEvent.CLICK,handleEvent);
                     b12.addEventListener(MouseEvent.CLICK,handleEvent);
                     b13.addEventListener(MouseEvent.CLICK,handleEvent);
                     b14.addEventListener(MouseEvent.CLICK,handleEvent);
                     b15.addEventListener(MouseEvent.CLICK,handleEvent);
                     b16.addEventListener(MouseEvent.CLICK,handleEvent);
                     b17.addEventListener(MouseEvent.CLICK,handleEvent);
                     b18.addEventListener(MouseEvent.CLICK,handleEvent);
                     b19.addEventListener(MouseEvent.CLICK,handleEvent);
                     b20.addEventListener(MouseEvent.CLICK,handleEvent);
                     b21.addEventListener(MouseEvent.CLICK,handleEvent);
                     b22.addEventListener(MouseEvent.CLICK,handleEvent);
                     b23.addEventListener(MouseEvent.CLICK,handleEvent);
                     b24.addEventListener(MouseEvent.CLICK,handleEvent);
                     b25.addEventListener(MouseEvent.CLICK,handleEvent);
                     b26.addEventListener(MouseEvent.CLICK,handleEvent);
                     b27.addEventListener(MouseEvent.CLICK,handleEvent);
                     b28.addEventListener(MouseEvent.CLICK,handleEvent);
                     b29.addEventListener(MouseEvent.CLICK,handleEvent);
                     b30.addEventListener(MouseEvent.CLICK,handleEvent);
                     b31.addEventListener(MouseEvent.CLICK,handleEvent);
                     b32.addEventListener(MouseEvent.CLICK,handleEvent);
                     b33.addEventListener(MouseEvent.CLICK,handleEvent);
                     b34.addEventListener(MouseEvent.CLICK,handleEvent);
                     b35.addEventListener(MouseEvent.CLICK,handleEvent);
                     b36.addEventListener(MouseEvent.CLICK,handleEvent);
                     b37.addEventListener(MouseEvent.CLICK,handleEvent);
                     b38.addEventListener(MouseEvent.CLICK,handleEvent);
                     b39.addEventListener(MouseEvent.CLICK,handleEvent);
                     b40.addEventListener(MouseEvent.CLICK,handleEvent);
                     b41.addEventListener(MouseEvent.CLICK,handleEvent);
                     b42.addEventListener(MouseEvent.CLICK,handleEvent);
                     b43.addEventListener(MouseEvent.CLICK,handleEvent);
                     b44.addEventListener(MouseEvent.CLICK,handleEvent);
                     b45.addEventListener(MouseEvent.CLICK,handleEvent);
                     b46.addEventListener(MouseEvent.CLICK,handleEvent);
                     b47.addEventListener(MouseEvent.CLICK,handleEvent);
                     b48.addEventListener(MouseEvent.CLICK,handleEvent);
                     b49.addEventListener(MouseEvent.CLICK,handleEvent);
                     b50.addEventListener(MouseEvent.CLICK,handleEvent);
                     b51.addEventListener(MouseEvent.CLICK,handleEvent);
                     b52.addEventListener(MouseEvent.CLICK,handleEvent);
                     b53.addEventListener(MouseEvent.CLICK,handleEvent);               
                public function handleEvent ( e :  MouseEvent ) : void
                    var a:String=  e.target.name ;
                    Alert.show(e.target.name);
                   var b:String=null;
                    switch(a)
                        case "Button20":
                           b=textbox.text;
                            //textbox.text="a";
                             textbox.text=b+"a";
                            break;
                       case "Button21":
                            //textbox.text="b";
                           textbox.text=b+"b";
                           break;
                       default:
                           //textbox.text="s";
                            textbox.text=b+"s";
            ]]>
        </fx:Script>
        <s:Panel  x="43" y="82" width="527" height="213">
          <mx:Button  x="71" y="86" id="b1" label="1" width="30" height="24"/>
             <s:Button x="180" y="86"  id="b2" label="5" width="30"  height="24"/>
            <s:Button x="127" y="86"  id="b3"  label="3" width="30" height="24"/>
            <s:Button x="99"  y="86"  id="b4" label="2" width="30" height="24"/>
             <s:Button x="323" y="86"  id="b5" label="0" width="30"  height="24"/>
            <s:Button x="294" y="86"  id="b6"  label="9" width="30" height="24"/>
            <s:Button x="265"  y="86"   id="b7" label="8" width="30" height="24"/>
             <s:Button x="237" y="86"  id="b8" label="7" width="30"  height="24"/>
            <s:Button x="209" y="86"  id="b9"  label="6" width="30" height="24"/>
            <s:Button x="42"  y="86"  id="b10" label="`" width="30" height="24"/>
             <s:Button x="382" y="86" id="b11" label="=" width="30"  height="24"/>
            <s:Button x="353" y="86"  id="b12"  label="-" width="30" height="24"/>
            <s:Button x="410"  y="86"  id="b13" label="back" width="76" height="24"/>
             <s:Button x="157" y="86"  id="b14" label="4" width="30"  height="24"/>
            <s:Button x="43" y="109" id="b15"  label="tab" width="66" height="24"/>
            <s:Button x="105"  y="109"  id="b16" label="q" width="31" height="24"/>
             <s:Button x="247" y="109"  id="b17" label="y" width="30"  height="24"/>
            <s:Button x="303" y="109"  id="b18"  label="i" width="31" height="24"/>
            <s:Button x="361"  y="110"  id="b19" label="p" width="34" height="23"/>
             <s:Button x="394" y="109"  id="b20" label="[" width="31"  height="24"/>
            <s:Button x="191" y="109"  id="b21"  label="r" width="34" height="24"/>
            <s:Button x="424"  y="109"  id="b22" label="]" width="31" height="24"/>
             <s:Button x="222" y="109"  id="b23" label="t" width="31"  height="24"/>
            <s:Button x="161" y="109"  id="b24"  label="e" width="31" height="24"/>
            <s:Button x="133"  y="109"  id="b25" label="w" width="31" height="24"/>
             <s:Button x="332" y="109"  id="b26" label="o" width="31"  height="24"/>
            <s:Button x="275" y="109"  id="b27"  label="u" width="31" height="24"/>
            <s:Button x="220"  y="133"  id="b28" label="g" width="31" height="24"/>
             <s:Button x="424" y="132"  id="b29" label="enter" width="62"  height="24"/>
            <s:Button x="43" y="132"  id="b30"  label="caps" width="66" height="24"/>
            <s:Button x="275"  y="133"  id="b31" label="j" width="42" height="23"/>
             <s:Button x="314" y="132"  id="b32" label="k" width="31"  height="24"/>
            <s:Button x="133" y="133"  id="b33"  label="s" width="31" height="23"/>
            <s:Button x="161"  y="133"  id="b34" label="d" width="31" height="23"/>
             <s:Button x="250" y="133"  id="b35" label="h" width="31"  height="23"/>
            <s:Button x="105" y="133"  id="b36"  label="a" width="31" height="23"/>
            <s:Button x="191"  y="133"  id="b37" label="f" width="31" height="23"/>
             <s:Button x="342" y="132"  id="b38" label="l" width="31"  height="24"/>
            <s:Button x="152" y="154"  id="b39"  label="x" width="31" height="24"/>
            <s:Button x="353"  y="154"  id="b40" label="." width="31" height="24"/>
             <s:Button x="325" y="154"  id="b41" label="," width="31"  height="24"/>
            <s:Button x="294" y="154"  id="b42"  label="m" width="31" height="24"/>
            <s:Button x="259"  y="154"  id="b43" label="n" width="37" height="24"/>
             <s:Button x="236" y="154"  id="b44" label="b" width="31"  height="24"/>
            <s:Button x="211" y="154"  id="b45"  label="v" width="31" height="24"/>
            <s:Button x="181"  y="154"  id="b46" label="c" width="31" height="24"/>
             <s:Button x="122" y="154"  id="b47" label="z" width="31"  height="24"/>
            <s:Button x="380" y="154"  id="b48"  label="/" width="31" height="24"/>
            <s:Button x="368"  y="132"  id="b49" label=";" width="31" height="24"/>
             <s:Button x="396" y="132"  id="b50" label="'" width="31"  height="24"/>
            <s:Button x="43" y="154"  id="b51"  label="shift" width="82" height="24"/>
            <s:Button  x="407" y="154" id="b52" label="shift" width="79" height="24"/>
             <s:Button x="455" y="109"  id="b53" label="\" width="31"  height="24"/>
        </s:Panel>
        <s:TextInput  x="161" y="27" id="textbox" width="253"/>
    </s:Application>
    regards,
    saran r

    hi,
    how to code for these buttons "control,alt,delete,insert and spacebar".
    can u help me how to program?
    i have attached the mxml code with this,
    virtualkeypad1.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   creationComplete="application1_creationCompleteHandler(event)" viewSourceURL="srcview/index.html">
        <fx:Script>
            <![CDATA[
                import flash.utils.getQualifiedSuperclassName;
                import mx.events.FlexEvent;
                private var inpText:String = 'inp1';
                private var shiftState:Boolean = false;
                private var capsState:Boolean = false;
                protected function keyboard_clickHandler(event:MouseEvent):void
                    this[inpText].text = this[inpText].text+(event.currentTarget as Button).label;
                    if (shiftState == true) shift_clickHandler(null);
                protected function caps_clickHandler(event:MouseEvent):void
                    capsState = !capsState;
                    if (capsState == true)
                        currentState = "SHIFTED" else currentState = "PRIMARY";
                protected function tab_clickHandler(event:MouseEvent):void
                    this[inpText].text = this[inpText].text+"    ";
                protected function shift_clickHandler(event:MouseEvent):void
                    shiftState = !shiftState;
                    if (shiftState == true)
                        currentState = "SHIFTED" else currentState = "PRIMARY";
                protected function enter_clickHandler(event:MouseEvent):void
                    this[inpText].text = this[inpText].text+"\n";
                protected function backspace_clickHandler(event:MouseEvent):void
                    var tmpStr:String = this[inpText].text;
                    this[inpText].text = tmpStr.substr(0,tmpStr.length-1);
                protected function application1_creationCompleteHandler(event:FlexEvent):void
                    inp1.setFocus();               
                protected function focus_enterHandler(event:MouseEvent):void
                    inpText = event.currentTarget.id;
            ]]>
        </fx:Script>
        <s:states>
            <s:State name="PRIMARY"/>
            <s:State name="SHIFTED"/>
        </s:states>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:TextInput id="inp1" y="36" width="151" horizontalCenter="0" click="focus_enterHandler(event)" y.PRIMARY="239" horizontalCenter.PRIMARY="42" width.PRIMARY="199" height.PRIMARY="31"/>
        <s:Group id="keyboard" width="661" height="184" horizontalCenter="0" y="300" focusEnabled="false">
            <s:Button x="5" y="5" label="~" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="`"/>
            <s:Button x="49" y="5" label="!" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="1"/>
            <s:Button x="93" y="5" label="@" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="2"/>
            <s:Button x="137" y="5" label="#" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="3"/>
            <s:Button x="181" y="5" label="$" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="4"/>
            <s:Button x="225" y="5" label="%" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="5"/>
            <s:Button x="269" y="5" label="^" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="6"/>
            <s:Button x="313" y="5" label="&amp;" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="7"/>
            <s:Button x="357" y="5" label="*" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="8"/>
            <s:Button x="401" y="5" label="(" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="9"/>
            <s:Button x="445" y="5" label=")" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="0"/>
            <s:Button x="489" y="5" label="_" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="-"/>
            <s:Button x="533" y="5" label="+" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="="/>
            <s:Button x="577" y="5" label="Backspace" height="43" width="80" fontSize="11" fontWeight="bold" click="backspace_clickHandler(event)"/>
            <s:Button x="5" y="48" label="Tab" height="43" width="67" fontSize="12" fontWeight="bold" click="tab_clickHandler(event)"/>
            <s:Button x="72" y="48" label="Q" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="q"/>
            <s:Button x="116" y="48" label="W" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="w"/>
            <s:Button x="160" y="48" label="E" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="e"/>
            <s:Button x="204" y="48" label="R" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="r"/>
            <s:Button x="248" y="48" label="T" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="t"/>
            <s:Button x="292" y="48" label="Y" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="y"/>
            <s:Button x="336" y="48" label="U" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="u"/>
            <s:Button x="380" y="48" label="I" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="i"/>
            <s:Button x="424" y="48" label="O" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="o"/>
            <s:Button x="468" y="48" label="P" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="p"/>
            <s:Button x="512" y="48" label="{" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="["/>
            <s:Button x="556" y="48" label="}" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="]"/>
            <s:Button x="600" y="48" label="|" height="43" width="57" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="\"/>
            <s:Button x="5" y="91" label="CapsLock" height="43" width="80" fontSize="12" fontWeight="bold" click="caps_clickHandler(event)"/>
            <s:Button x="85" y="91" label="A" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="a"/>
            <s:Button x="129" y="91" label="S" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="s"/>
            <s:Button x="173" y="91" label="D" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="d"/>
            <s:Button x="217" y="91" label="F" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="f"/>
            <s:Button x="261" y="91" label="G" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="g"/>
            <s:Button x="305" y="91" label="H" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="h"/>
            <s:Button x="349" y="91" label="J" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="j"/>
            <s:Button x="393" y="91" label="K" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="k"/>
            <s:Button x="437" y="91" label="L" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="l"/>
            <s:Button x="481" y="91" label=":" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY=";"/>
            <s:Button x="525" y="91" label="&quot;" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="'"/>
            <s:Button x="569" y="91" label="Enter" height="43" width="88" fontSize="24" fontWeight="bold" click="enter_clickHandler(event)"/>
            <s:Button x="5" y="134" label="Shift" height="43" width="106" fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
            <s:Button x="111" y="134" label="Z" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="z"/>
            <s:Button x="155" y="134" label="X" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="x"/>
            <s:Button x="199" y="134" label="C" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="c"/>
            <s:Button x="243" y="134" label="V" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="v"/>
            <s:Button x="287" y="134" label="B" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="b"/>
            <s:Button x="331" y="134" label="N" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="n"/>
            <s:Button x="375" y="134" label="M" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="m"/>
            <s:Button x="419" y="134" label="&lt;" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY=","/>
            <s:Button x="463" y="134" label="&gt;" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="."/>
            <s:Button x="507" y="134" label="?" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="/"/>
            <s:Button x="551" y="134" label="Shift" height="43" width="106" fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
        </s:Group>
    </s:Application>
    thanks in advance,
    saran r

Maybe you are looking for

  • Shut down problem on new macbook pro 13"

    Hey, Just a new convert to mac after ditching my glitchy windows desktop replacement. Been really enjoying the mac (i've had it for 3 days now). I've experienced a shut down problem where everything would close, like the dock and the bar up the top.

  • How do i Fresh intall?

    How do i intall a fresh copy os os X on my macbook im used to the install routine on windows xp, does it format on its own? is there a guide?

  • Syncing iPod to a new iTunes library - back up question

    The PC I used to sync my Daughter's iPod touch to is broken so I need to re sync the iPod to another iTunes library. I have backed it up to iTunes on another PC following instructions on this site but think i now need to restore it so that it syncs w

  • Suddenly Slow Export

    I produce a half-hour tv show each week that ordinarily takes an hour to export.  I've been shooting/editing the same way for a year and a half, and within the last two weeks it suddenly takes three hours to export.  I shoot on the same camera with t

  • Safari crashes on page load up

    I have OS 10.5.7, Safari 4.0. Safari loads up fine to default favorite web pages. However, when click on a page or directly ente the URL the page begins to load up and then crashes leaving me with the Relaunch, Report, Ignore option. I have repaired