Certificate Widget - Text formatting problem

Hello:
(FYI: This question is also posted in the Action Script 3 forum)
I have been modifying the AS3 Certificate Widget that ships with Captivate 4 -- adding backgrounds, re-sizing, etc. However, I don't know how to modify the text format of the variable values when they display. Regardless of what I try, the displayed text seems to be 8pt. Arial. Keeping in mind that I am a complete novice with Action Script, please let me know how you think I might affect the text attributes.
Here is code around line 35:
var y_fmt:TextFormat = new TextFormat();
y_fmt.font = "Arial";
y_fmt.size = 30;
y_fmt.bold = true;
y_fmt.align = "left";
It would seem that modifying the assignment for y_fmt.size would have some effect, but it does not. It does, however, change the font size of data in the widget parameters. So, I think my problem is that I don't know how to apply my custom TextFormat class to text that appears in these variables:
v_Name1.visible = true;
v_Course.visible = true;
v_Grade.visible = true;
v_Date.visible = true;
v_Score.visible = true;
I would be happy to provide all the code if that is appropriate (and helpful.)
Any guidance would be greatly appreciated.
Thanks!
Charlie

Hi Charlie,
There is a little bit of junk in the current Captivate widgets. The AS3 certificate uses a label component to display the text. The TextFormat you're customizing is for the Widget Parameters in the Widget Dialog. The text is then copied over to the label and displayed on the certificate.
What you have to do is to create a new text format say:
var course_fmt:TextFormat = new TextFormat();
course_fmt.font = "Arial";
course_fmt.size = 30;
course_fmt.align ="center";
course_fmt.bold = true;
course_fmt.color = 0xFF0000;
and then assign it to the label such as
v_Course.setStyle("textFormat", course_fmt);
You can then apply the same recipe to the other labels: v_Name1, v_Score, v_Grade and v_Date.
That should do the trick!
Whyves
www.flash-factor.com

Similar Messages

  • Text format problem when sending mails

    Hi all,
    I am using the FM SO_DOCUMENT_SEND_API1 to send mail in text format, but the problem now is iam getting the space between each characters and also for each lines the alignment differs. can any one tel me how to solve this issue ?
    D o c u m e n t   N o       L o g   D e s c r i p t i o n                                                                               
    4 5 0 0 0 0 1 4 1 0       PO  d o n e   f o r   G o o d s   r e c e i p t   o f   P O   4 5 0 0 0 0 1 4 1 0                                                                               
    4 5 0 0 0 0 1 4 1 1                   PO   d o n e   f o r   G o o d s   r e c e i p t   o f   I n t e r C o P O   4 5 0 0 0 0 1 4 1 1                                                                               
    4 5 0 0 0 0 1 4 1 2          PO   d o n e   f o r   G o o d s   r e c e i p t   o f   I n t e r C o P O   4 5 0 0 0 0 1 4 1 2 .
    Thanks.

    Hi Siva,
    Seems problem with the types.Define following paramaters as shown below.
      DATA: DOCDATA    LIKE SODOCCHGI1 OCCURS 0,
           OBJPACK    LIKE SOPCKLSTI1 OCCURS 0,
            OBJHEAD    LIKE SOLISTI1   OCCURS 0,
            L_OBJTXT1     TYPE SOLISTI1,
            RECLIST    TYPE SOMLRECI1,
            DOC_CHNG TYPE  SODOCCHGI1,
            OBJPACK  TYPE SOPCKLSTI1.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            DOCUMENT_DATA                    = DOC_CHNG
         PUT_IN_OUTBOX                    = 'X'
         COMMIT_WORK                      = 'X'
    IMPORTING
      SENT_TO_ALL                      =
      NEW_OBJECT_ID                    =
          TABLES
          PACKING_LIST                     = L_OBJPACK
         OBJECT_HEADER                    = L_OBJHEAD
      CONTENTS_BIN                     =
           CONTENTS_TXT                     = L_OBJTXT
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
            RECEIVERS                        = L_RECLIST
       EXCEPTIONS
         TOO_MANY_RECEIVERS               = 1
         DOCUMENT_NOT_SENT                = 2
         DOCUMENT_TYPE_NOT_EXIST          = 3
         OPERATION_NO_AUTHORIZATION       = 4
         PARAMETER_ERROR                  = 5
         X_ERROR                          = 6
         ENQUEUE_ERROR                    = 7
         OTHERS                           = 8
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    Regards,
    Ravinder

  • Text Format problem in Online Discussion Forum app

    Hello,
    I want to use the Online Discussion Forum app to host forums for DBAs to post information and discussion of database problems. I would like to be able to cut and paste material from log files, config files and other sources into the posted messages along with original text. When I paste a block of text from a terminal window into the message window of ODF the text appears okay. However when I click Preview (or Post the message and later view it), the text appears to run together and the line breaks appear as the string "br" embedded in angle brackets in the run on text rather than being honored as actual line breaks.
    I am using Firefox 2 on a Sun Solaris workstation as my browser. The text is being cut from xterm type terminal windows on Solaris. Anyone know why this is happening and whether there is anything I can do about it.?

    I forgot to mention that I am using Online Discussion Forum v0.92 using Apex v3.0.1 on Oracle 10.2.0.3 running on a Sun Solaris 8 server.
    Don
    Message was edited by:
    g8rdba

  • Text format problem

    hi all ! I have this problem I need to save a string like this
    DATE NAME
    NOTE
    NOTE 2
    The thing is that i have to keep this format, save it in a DB and save it.
    This is how I have it now. But I cant make it work. I know how ot would be in C but not in java.
    String nota1=(fecha+" "+fisio+" "
    salida"" +
    +"--------------------------" +
    ""+
    ""+entrada);
    Thanks!

    Then the first method I used should be close, though i missed it a little:
        String newLine = System.getProperty("line.separator");
         String nota1= fecha+" "+fisio+newLine+newLine+salida
            +newLine+newLine+"--------------------------" +newLine+newLine+entrada;An example I wrote up was like this:
    <html>
      <body>
        <%
        String fecha="Date"; String fisio="Name";
        String salida="Note1"; String entrada="Note2";
        String newLine = System.getProperty("line.separator");
         String nota1= fecha+" "+fisio+newLine+newLine+salida
            +newLine+newLine+"--------------------------" +newLine+newLine+entrada;
        %>
        <textarea cols="76" rows="8"><%=nota1%></textarea>
      </body>
    </html>The HTML output was like this:
    <html>
      <body>
        <textarea cols="76" rows="8">Date Name
    Note1
    Note2</textarea>
      </body>
    </html>

  • Text formatting problems when exporting to Epub

    During my fixed layout export to epub, some of the text on  my pages is messed up (see image).  Anyone know how to fix this?
    FWIW: 1) I export with spreads disabled to keep the layout as i have it in ID. 2) I am using 3-4 fonts from  typekit.

    yes, you are correct about what i am trying to accomplish.  I will take your advice for testing the iBooks.  that said, I'm trying to get the kindle version to work correctly.  I don't know much about the process of preparing for Kindle and the documentation I've seen isn't much help to me (I'm not that technical). Any guidance for how i might resolve the issue described above?  It's reallly unfortunate I can't just design in ID and  then publish everywhere with the click of a button.
    Thanks in advance for any help!

  • Problem with text formatting

    I am new to RoboHelp and I am trying to write some more text in an existing project in design view. I use Track Changes and have set the text to be Times New Roman 12pt. When I made a line italic it turned into Arial. I tried to change it to Times once again by selecting the text to format and then choose Format/ Font/ Times New Roman but it won´t change, it is still Arial. Earlier in the text I managed to make a line italic and Times New Roman.
    Anyone who knows what to do?
    (I use RoboHelp 10 with Windows 7 Professional.)

    Thanks for input!
    Yes, I think it was an inline style I made.
    I managed to get the text as I wanted to by deleting it, then I choose a style from the ‘Styles and Formatting’ pod that matched and retyped the text. (To me it seems strange to have to do this. I thought that I could change an inline style by highlighting the text and choose the font I want it to bee from the ‘Formatting’ toolbar.)
    Now I have another (but similar) text formatting problem:
    I copy a text that has style set to Normal. When I insert the text (on a line with style Normal) the font changes from Times New Roman to Arial. The inserted text still has the style Normal. I have in the ‘Styles and Formatting’ pod checked that Normal still has Times New Roman by opening the ‘Styles’ window. (I still have ‘Track Changes’ turned on.)

  • Adobe Captivate 7: How to Customize Certificate Widget

    I can only add (1) additional variable option in a certificate widget text fields.  How can I add more variables on the certificate?  I need these variables to print out on the certificate when the learner selects the print button.  Is it possible to add a company logo onto the certificate that will print also. 

    Not all video files are created equal.  Captivate has in the past shown a preference for certain encoding in FLVs and F4V video files.  It's recommended that any video you want to use with Captivate be encoded via the Adobe Media Encoder app that comes with Captivate.
    Even the fact that your FLV was encoded with some other Adobe app, does not guarantee it will work with Captivate. (Don't get me started on that.)  So try re-encoding your FLV with AME and then see if that improves your chances of embedding the link.

  • Problems with the Widget "Text Ticker"

    Hello, I have a problem with the widget "Text ticker". I tried to put more then one text ticker on my site, but it doesn't work, when I look in Muse it looks like this:
    and when I look in the preview only the first text ticker works...maybe it is not possible to have more then one text ticker on one site?
    Thank you.

    It seems you are using the same name for all the ticker instances on page.
    You need to have unique names for each of the ticker you want on a single page. Tickers with duplicate names will not work.
    Cheers,
    Vikas

  • How do I fix the problems with text formating functions in hotmail and other text based sites?

    In a Mailing list provider site it disables the text formating functions, instead only showing a 'loading' message. The functions never appear. In Hotmail the scroll arrows on the right hand side does not work. Sometimes the email toolbar becomes 'grey' and the buttons do not work. When forwarding an email sometimes the email does not show in the new email message.
    == This happened ==
    Every time Firefox opened
    == Firefox was reinstalled March 2010.

    The only possible fix was turning the phone off immediately and burying it in a bag of dry rice for a week at least. That might...just might...have worked.  But you're way beyond that and I see no fixes.  In fact the phone is probably going to get more problems before finally gving up the ghost.  Continued use is just shorting out more and more of the circuitry.  For that reason I don't think repair is much of an option. Go to an Apple Store and buy an out-of-warranty replacement.

  • Copying text from InDesign to Word: formatting problems

    Hi all,
    I have copied a large amount of text from an InDesign CS4 document into Word. I am now having formatting problems. The main problem is that where long words run over two lines, they are not appearing as hyphenated, and I am not able to stop them running over two lines. Inserting the cursor at the start of the second part of such a word and deleting simply deletes the preceding letter on the line above, as if there were no line break.
    Any help much appreciated.
    Jon Cope

    Instead of Copy/Paste, try selecting the text and exporting to .rtf (or if you have an active cursor, but no selection, theentire story will be exported). Open the .rtf in Word.

  • Captivate Certificate Widget - Printing Problems.

    Has anyone else experienced this problem? It's not a problem in Captivate, per say, but it's Captivate related.
    First some vital facts:
    OS: Mac OS X 10.6.4
    Captivate 5
    Flash: CS4
    Flash Player: 10.1.53.64
    Browser: Firefox
    I have a customized Captivate Certificate Widget (AS3) from Captivate 4 that works perfectly. When one clicks the "Print Button", the print dialog box comes up and when one checks the print preview option, one sees the certificate ready to be sent to the printer.
    Fantastic. Now I want to save this Flash file as a new file and I want to change a textbox on the certificate that is no connected to the ActionScript at all. When I publish this new file, the Print button no longer works. Can anyone explain this?
    I have, in fact taken a look at the new Captivate 5 Certificate Widget. I published it out and it's print button doesn't work either! I took both my swfs into XP and opened them and they both worked fine in Firefox and IE.
    After further examining both Flash files for the CP4 Certificate Widget and the CP5 Certificate Widget, I keep noticing that an error is traced to the output window when publishing the files. The error appears after pressing the Print button and then canceling the print. The error that I'm getting is:
    TypeError: Error #2007: Parameter child must be non-null.
       at flash.display::DisplayObjectContainer/removeChild()
       at CertificateWidget_fla::MainTimeline/ClickPrint()
    I've managed to point the problem to line 207: this.removeChild(sheets);
    Is this causing the problem?
    If anyone could help, that would be great. I don't want to tell my client that the certificate that was working, now doesn't work for no apparent reason.

    I use Cap 4 for testing. You put a name field in the first slide, then the certificate widget will fill in the name, date, and score.  You get a print or e-mail field at the bottom of the certificate.
    I used Internet sources to find out how to do some things, but the Adobe free online webinars taught me most of it.
    Web sites: 1. http://blogs.adobe.com/edtechatadobe/2009/06/some_widget_fun_with_captivate.html
    2. http://help.adobe.com/en_US/Captivate/4.0/Using/WS48CDC052-3430-49b3-9BFC-0FC7793F1C34.htm l 
    3. http://stevehoward999.wordpress.com/2009/03/22/captivate-4-capture-stor-and-display-your-u sers-name/ 
    Adobe webinars:  New one coming up: Effectively using Acrobat.com with Adobe Captivate 5 for Tracking Learners’ Quiz Results, May 11, 2011, 10:00 PT http://www.adobe.com/cfusion/event/index.cfm?event=list&type=eseminar&loc=en_us 
    There are five or six more on Captivate on this page...scroll down. After the upcoming sessions, there are dozens of recorded session (one about adding quizzes in Captivate 5). (You just have to create an Adobe log in and password to be able to sign up for the webinars or watch and listen to the recorded versions if you miss it.)
    I also check Adobe TV for great tutorials. http://tv.adobe.com/search/?q=captivate 
    As far as making the certificate work in Cap 5, I've read a lot of suggestions, but couldn't make them work.
    :O) Dabareh

  • Making Certificate widget Captivate 7 work

    It is probably a very simple question, but I am lost. How will I make Certificate widget work in Captivate 7 ?
    I have inserted the widget into last screen of my file, after quiz and quiz results. How will I make it "pick up" quiz score and grade? Can I delete grade?
    Thank you

    HI,
    The Certificate format is editable and so you can delete or add text in it. In the Widget Properties, double click on the Certificate and it becomes editable.
    The score obtained in the Quiz is automatically picked up by the widget and gets populated in corresponding section of certificate. 'Score' in Edit Variables should be ON. (Refer screenshot below)
    The username is taken from LMS. If you want to give your own username, a user-defined variable solves this problem.
    Click on the Edit Variables in Widget Properties
    Mark Name as OFF
    Mark Other as ON and give any user-defined variable name
    Create the user-defined variable with the same name in Captivate and give the name that should appear in certificate in Value field
    Let me know if you find any other difficulty in using the widget.
    Regards,
    Salini

  • How can I get a name to populate in Certificate Widget?

    Hi,
    I am using Captivate 5.5.  I am trying to use the Certificate Widget which I pulled into my project.  How can I get a user name to populate in the first line?  I will be using a text-entry field to ask for the name and that is the name I want to print on the certificate. 
    Also, I am passing the assessment with a score of 100% but on the Certificate it says 0% and Fail. 
    Any help would be greatly appreciated.
    Thanks

    I am having the same problem. I inserted the blank slide after the results slide and then put the widget in that blank slide.
    I also entered the information into the properties box. The only time the information actually came into the certificate was the very first time. The widget does prompt the use for their name but that only worked the first time. I was also not able to print.
    From what I see in the forum, the widget does not work and we have to create our own.
    I also do not see how the results slide helps determine if they see the certificate or not. If the person fails, they should not see the certificate but I don't find any place to set that up. I have not found these answers in the forum so far.

  • DECODING MAIL FROM WEB SERVER IN PLAIN TEXT FORMAT(THE MAIL BEING SENT BY LABVIEW APPLICATION)

    Hi All
    I have a labview application that send mail every hour automatically.
    But actually the mail has to be decoded from the web server(by another application).But now when that application decode the data in the mail(that is send by labview application)its getting some funny characters inside that can not be detected by the decoding application
    (When open the mail no problem.)But actually our goal is to decode the mail from the web server.
    Why the extra characters are appearing when decoding from the server?Is it because of the HTML format?
    Is there option to send the mail in plain text format(not like attachment)?
    In outlook we can change the setting (tools->options->send->mail sending format->....here we can set as HTML format/Plain Text format)
    Like that at the sending time can i chenge the sending option as plain text format in my labview application?
    Thanks...

    smercurio_fc wrote:
    Then it sounds to me like this other application is not decoding the attachment correctly, especially if you looked at the attachment yourself after you received it and verified it's correct.
    No, no, smercurio. This is charcter encoding here. In older versions of LabVIEW you could specify what character encoding to use when sending an email through the SMTP VIs. But that gave problems since people in certain locales used certain characters that where not transfered right when the wrong encoding was specified, and that encoding stuff is not understood by most people at all, so the wrong selected encoding was rather the rule than the exception. In newer versions of LabVIEW do the SMTP VIs handle the encoding automatically based on the currently used locale on the system.
    This change is documented in the Upgrade Notes of LabVIEW and probably happened around LabVIEW 7.1 or 8.0.
    A decent mail client will recognize the encoding and convert it back to whatever is necessary before presenting it to the user. The OPs posters server application obviously isn't a smart mail client but probably just some crude text file parser that has no notion of proper mail character encoding and how to deal with it.
    I would suppose that there is a chance to dig into the SMTP VIs itself and try to manipulate or disable that encoding altogether in there but that may open a whole can of worms somewhere else. The proper way would be to process the incoming mail by a character encoding aware mail client before passing it to the text parser. On Unix setting up something like this would be fairly trivial.
    Rolf Kalbermatter
    Message Edited by rolfk on 01-23-2008 10:21 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Text formatting

    With the recent update adding text formatting, one would think that I would be glad about it...but I'm not. Why? Well, allow me to explain. I am a roleplayer, and in roleplay, asterisks are used to signify a character's actions. Now, whenever I have my character do something, it's all in bold and looks awful. And yes, I am aware of the "two at symbols" thing, but that is just absolutely backwards and unnecessary. Is it really so hard to put an extra checkbox under options that says "disable text formatting" or something like that?

    Claudius has posted a solution to the autoformatting problem. It's not discoverable, even by accident, and it shows that the option actually exists, but that Skype have decided not to show it to us users.
    http://community.skype.com/t5/iOS-iPhone-and-iPad/Bolded-text/m-p/3802566#M31604
    Sean Ellis - uses Skype chat for serious work
    Click here to read my blog post on Skype 7 and basic principles of GUI design

Maybe you are looking for

  • Error while create or mount a repository in MDM

    Hi, after installing SAP MDM 5.5 SP06 and SAP MaxDB 7.6.00.35 on the same hardware (Laptop with Windows NT Client) I started MDM Console, mounted the MDM Server and then started the MDM Server (green arrow). When I try to add a repository (unarchivin

  • Need instructions on hard reset of HP officejet pro 8600

    Hi jason_h , Please message me with the info about how to do a hard reset on my Officejet pro 8600.  Thank you!

  • Query required for below situation.

    Hi All, I have two table T1 --> deal_site_id, subsection_id T2 --> deal_site_id, subsection_id, catalog_id requirement is first I need to check all the subsection_id in table T1 depending upon one deal_site_id. Then what ever subsection_id I get from

  • Imovie can't be opened

    I have a MacBook Pro with OSX 10.9.5 When I go to open iMovie, it says "iMovie can't be opened because of a problem. Check with the developer to make sure iMovie works with this version of OSX. You may need to reinstall the application." I updated th

  • Ichat problems after installing 10.4.4

    I installed tiger (10.4.4) and i'm no longer able to launch ichat 3.1.1. when i'm giving my information with my .mac member name ad password, the computer is trying to connect to the .mac server and nothing happen. power mac G5 dual 1.8   Mac OS X (1