AS3: organized text blocks

Hey,
I have a problem regarding text appearence on screen.
I have few TFL dynamic text fields in CS5.5 that update each time according to users choises (a dictionary, in hebrew if it matters).
As a text field I can't break lines or organize the text in paragraphs or any other way, the corrent situation is a text block that is not pleasent to read, it's need to be organized (it's for children so it has to be as clear as possible).
I used + '\n' + and it worked with a test file but it didn't on my real project. When testing it throws "can not assign a non refernec value : Erroe 1050".
I am desperet! is there a way to orgenize my text as a dynamic text field? or is there another way?
Any help will be really apprecieted.

I don't have a new enough version to test that with TLF textfields, but using a normal textfield the code tests fine.
If you are adding that text all at once using code, then you should keep it on one line just to be safe, though it should work separated.  And you can use doublequotes around all portions of it, no need for single quotes around \n's.
If you are adding it in stages, you should use the appendText() method.
Since the error is indicating something cannot be assigned to the textfield, it would seem that there is something amiss with the textfield, so you might try placing:  trace(elderText);  one line before to see if it indicates it is recognized as a TLFTextField.

Similar Messages

  • Problem with copying and pasting text blocks in Fireworks CS5

    Until recently when I copied and pasted a text block in Fireworks CS5, the block would retain all formatting applied to the copied text block, font, size, color, etc. Now, the pasted block reverts to some default setting. Oddly, if I copy multiple text blocks, the formatting is retained as expected, but not if I copy a single text block. I cannot find a preference that affects this, and I cannot figure out what might have changed. The current behaviour is definitely not desired, and is dramatically affecting my efficiency. Anyone experienced something similar or have any ideas how to correct this? Thanks.

    Sure, thanks for replying so quickly. My workflow is simple. My problem is limited to copying and pasting within Fireworks. I typically select an entire block with the main selection arrow but I sometimes use this one too depending on the context. I usually just use the keyboard CTRL-C then CTRL-V to paste. Previously (and I have been using FW for years, it's always been the same) it would paste an identical text block directly over the top of the copied one, and it looked exactly the same, same font, same color, etc. Now, it pastes a new block in the center of the document and all the formatting has reverted to what I guess is the default, in this case Myriad Pro 12pt. The behavior is the same no matter which arrow I use to select the text block. I tried Edit>Copy and Edit>Paste, the effect was the same. The Duplicate function seems to work as desired, but I had never noticed or tried that command before reading your post. Using the keyboard to copy/paste is such an ingrained habit I'd much prefer to continue using it as I always have instead of trying to retrain myself. (I'm old, retraining is hard!)
    (Selected block)
    (pasted block)
    Most often I copy and paste directly on the canvas, but occasionally will do it within the layers panel. Both now have the same undesired effect. I also tried creating a new document to see if it was a corruption in my current file, but the issue persisted to the new document as well.
    Thanks.

  • How do I use page numbering and a text block in a footer in Word with the Report Generation Toolkit?

    I am creating a Word document with the Report Generation Toolkit, and LabVIEW 8.2.1. In the report I am using a template that has page numbering enabled in the center. When I try to add a text block to the left side footer, it eliminates the page numbering and adds my text on the left side. I found "Set Report Footer Text" and "Word Set Page Numbering" vi's that may be the clue to this. When I use these two vi's I either get Page 1 of 456789-001 on the left side, or if I reverse the order I get only 456789-001(text) in the left side with nothing in the center. What I would like to achieve is 456789-001(text) on the left footer, and Page 1 of 2 in the center. Is this possible and if it is, then how can I do it?

    Hi SciManStev,
    I have attached a vi where you can see how they can be made to work together. You have to design it such that one follows the other. If you don't design it that way, it results in a race condition and only one of them get executed.
    Good Luck!
    Warm regards,
    Karunya R
    National Instruments
    Applications Engineer
    Attachments:
    SciMan1.vi ‏14 KB

  • How do I add multiple text block records from text file?

    The data manager documentation (page 151) for MDM 5.5 SP3 indicates that one or more new text blocks can be added to the Text Blocks object table from files. It is noted that the files must be plain text files.
    I use notepad and create a text file with two lines as follows:
    Test 1
    Test 2
    When I try to add the text blocks following documentation mentioned above, it only adds one record for the Data Group I have chosen and the record contains the entry "Test 1" from the first line in the text file.
    How can I add multiple records to the data group from a file?

    From my testing it appears that you need to have one text file per text block record in Data Manager.
    I wrote VBA macro to so that I could input my text blocks into an Excel spreadsheet and then the macro will take the contents of each cell in a highlighted column and create one text file per cell.
    Then using Data manager, I can select all of the text files at once and it will import them, creating one record per text file.

  • In the book module of Lightroom 4 I would like to create a two-page spread with a text block

    I'd like to use a single photo as a crossover through the gutter. I do not see an option to include a text block in such a layout. Am I missing something?

    I think many of us were mislead by Adobe's labeling of the boxes as "text" and "caption" - at least I was, initially.
    The text options of the templates are not very versatile since neither their location nor their size can be changed, once it is fulf with text - that's it.
    The surprising - and unexpected-  feature is the caption box that in reality is the needed text box since
    a) it adapts in size to the amount of text - and to the size of the font,
    b) the text can be moved within the box with the Padding Feature, and
    c) the box can be moved up or down with the Offset slider.
    To make the caption box that versatile you have to uncheck <Align with photo> in the Caption panel.
    WW

  • Using  cl_gui_textedit, text blocks always display prior document.

    We have two containers and we're using two instances of cl_gui_textedit.
    On the first call to the text screen, we see the two texts that we should see.
    The user saves the data and backs out to the selection screen, which contains an ALV display of documents. 
    The user selects the next document to process.  During initialization, we attempt the FREE destructor but it does not destroy the text editor ref to cl_gui_textedit.  We can initialize with clear and free as ABAP statement.  Upon entry to the PBO, we can see that we have forcibly cleared the ref to cl_gui_textedit.  It's 0: INITIAL for both text editors.  We watch the table being built and the internal tables contain the correct text.   After our set read_only true or false, we get a beep, and then arrive at our text screen without any error message.
    What is on the screen at that point will be the texts from the prior document.  We've tried inserting lifetime parameters for our custom container.  We've tried CALL METHOD cl_gui_cfw=>flush (which appears to always be necessary in PAI when we get the unprotected portion and the indices, etc.).  Neither of these alter the behavior of the screen and the erroneous content of the text editor blocks.
    Question:  is there a method or something that anyone can suggest to "force" the text blocks to contain the data that was in the table, rather than the data that was in the table for the prior transaction?

    Did you try calling the method DELETE_TEXT of the CL_GUI_TEXTEDIT before setting up the next text.
    This is how I get rid of the existing text:
    * Delete the Text
      me->o_editor->delete_text( ).
    * Set the new text
      me->o_editor->set_textstream( EXPORTING text = iv_text ).
    Regards,
    Naimesh Patel

  • Control of text blocks in parameter form

    How does one control the placement of text blocks in a parameter form? I'm creating paper view reports to be run via a report service on the application server. The report's parameter form, when run through a web browser, looks nothing like its presentation when run directly with the report builder.

    Anyone?
    I would like for the cr/lf characters to transfer from the report builder's parameter development screen onto the page rendered by the browser when the report is run from a report server.
    As shown in the report builder, the parameter screen looks like:
    Enter prefix: __
    Enter ticket: ______
    Prefix example (AA, BB, etc.)
    Ticket number should be all numeric.
    But when rendered from within the browser, it looks like this:
    Enter prefix: __
    Enter ticket: ______
    Prefix example (AA, BB, etc.)Ticket number should be all numeric.
    (Note the last line - it is now one screen line instead of two.)

  • How can I have a standard text block appear on the last page of my documents?

    How can I have a standard text block appear on the last page of my documents without having to type it in all the time? I have a terms statement with a line for a customer’s signature which I want on the last page of my invoices and right now I have to type it in each time or cut and paste it from a previous invoice. I already have a Master Page that includes the customer information and my company information at the top of each page and I am using data merge to fill each page with the items ordered and their pictures etc. I would just like to have this standard terms block automatically show up on the last page after the last item in the data merge.
    Thank you all in advance for your help.

    Thank you Peter. This works. I have the text block now at the bottom of a second master page which I apply to the last page. For aesthetics I can modify the position of the text block in the new master page to bring it up from the bottom under the last item ordered when there is less than 4 items on the page. (my data merge fits up to 4 items with their images on a page).  If the last page is full I’ll insert a final page using the second master and also bring it up to the top of the page.

  • Pages 5.1 (1769) is failing to render text blocks on printing as .pdf, what can I do?

    Sometimes all blocks are rendered properly and sometimes text blocks and images are missing. It appears to be random. It's happening when I open a document and when I print documents out to be saved as a pdf.
    Has anyone had this problem? How is it solved?
    Thanks,
    George

    The fact that renderings for print are very different from page display would seem serious. Print is unreliable. Blocks appearing on screen are moved or missing when printed or the document is saved,  closed, and then reopened. This occurs at random. Is there anywhere in the Apple world to log a problem? Are others experiencing similar problems? Arrrrrrrgh! I have little enough hair already.

  • Tab rulers are not locked to text blocks

    I have a brand new (2 weeks old) iMac working with CS4. I work in Prepress so my typesetting skills are a bit rusty...
    I am trying to work with the tab ruler. If I am viewing as a full page and have my text block selected, my tab rulers open up to the correct size on my text block. However since my document is quite large and my text block is tiny when viewed as full page, I am zooming into my text block to be able to see it correctly. My Tab rulers stay locked to the size and space of my full page viewer, even if I close my ruler and zoom in, then re-open it. What am I doing wrong?

    P Spier wrote:
    The tab panel can be automatically sized and positioned over a column by by clcikinb the little magnet inthe lower right corner, but ONLY if there is enough space on the screen to put it above the column.
    To clarify: That is, only if the entire width of the column is on screen, and only if your left sock is inside out (right sock during daylight savings time).

  • Text block as image -- should I care?

    It was pointed out to me that most of the text on my site is an image, rather than lines of text. All of the text on my site was typed onto the site into text blocks, and none of it was cut and pasted. I did use Garamond for the font.
    A few threads have covered this topic, which I have read.
    Two of those blocks of text-as-image are on my home page and the text in those blocks appears in Google (on the listing of the site on the first "search result" -- or whatever it is called -- page).
    Doesn't this mean that the text in those "text-as-image blocks" (sorry for all the quote marks, but I don't know the real names of these things) are indeed searchable by google, even if they are images rather than lines of text?
    I have tried cutting and pasting the text into TextEdit and then repasting the text back but that didn't solve the problem.
    So:
    1. Does any of this really matter to the search engines and the ability of people to find text on my pages? Or for some weird reason does the home page act differently than the other pages?
    2. Does anyone have a consistent solution to this problem?
    3. Is this something that Apple may think significant enough to have already fixed for the next version -- which I hope is out in a couple of months?
    But mainly, should I even care?
    Thanks!
    Mark

    1. Does any of this really matter to the search
    engines and the ability of people to find text on my
    pages? Or for some weird reason does the home page
    act differently than the other pages?
    No and no. It sounds like your page is already coming up in the search results...graphic or text? It doesn't matter.
    2. Does anyone have a consistent solution to this
    problem?
    Not sure that it is a problem that needs fixing.
    3. Is this something that Apple may think
    significant enough to have already fixed for the next
    version -- which I hope is out in a couple of
    months?
    Again, I doubt that Apple sees it as a problem. iWeb converts text into an image for a reason.... your happiness. Most people would probably want to have a webpage that looks the way it is supposed to look (the way they want it to look). Most people probably don't care about text converted to image as long as it looks the way they expect it to look. This is why iWeb does the text to graphic conversion....to ensure uniform and consistent rendering of the text on the page. I think many, many more people would be upset if iWeb allowed them to put different fonts and text effects on a page and then left it up to a browser to determine how those fonts and effects were to be rendered.
    But mainly, should I even care?
    I think in the grand scheme of things, you shouldn't care. But that's just my humble opinion.

  • Multiple text blocks in PDF

    The PDF I created from InDesign is making 3 text blocks per line! My client needs to edit his menu. Almost every word is a text block. It's only one text block in the InDesign file. I'm using CS6.

    Agreed that they seem to be overselling the editing. It has never been easy to edit, but also depends on how the PDF was created. It may be that the creation process you are using from InDesign is the issue, not Acrobat itself. However, I would not look to Acrobat for a lot of editing, other than for minor corrections. Just how are you creating the PDF from InDesign? Are you setting up the parts for the user to change as form fields rather than basic text blocks?
    It is typically recommended that all changes be done in the original software and the PDF recreated. Often that might be WORD or LIBREOFFICE for many folks. There are issues that have to be watched even there, but it is really the preferred approach and not to edit the PDF, no matter what the claims that are stated.

  • Embedding graphics in a text block

    I do a lot of work that requires the use of bullet points. Many of the bullets are custom graphics. Additionally, I frequently need to use symbols not found in pi fonts that need to stay with the text.
    In Quark Xpress I have the ability to paste a graphic directly into a text block so that if I have to re-flow the text, the graphic stays in place. Is there any way of doing this in Illustrator. It seems to me that I was able to do this in a previous version but maybe I'm dreaming.
    Thanks

    Freehand could do it. InDesign can do it now. Sadly, Illustrator can't, and never could.

  • How do I write javascript for a text block to extract name from signature block?

    Hello,
    I've created a training certificate that the trainee has to sign electronically. To prevent someone from simply putting in their friends name in there and saving it; to send to their friend and help them from having to take the training and quiz I would like to write a javascript in the text block that would extract the name from their signature block and autofill the name in the text block. Is there a way to do this?

    You would have to use JavaScript to access the signature field object and then you can access the various properties of the signature depending upon the certificate or method for signing.
    signatureInfo
    console.show();console.clear();
    // Get particular info;
    var f = this.getField("Signature1");
    // uses the ppklite sig handler;
    var Info = f.signatureInfo();
    // Some standard signatureInfo properties;
    console.println("name = " + Info.name);

  • PDF file shows different numbers of text blocks in CC 2014 and CS6

    Hi,
    I've inherited a file at work that displays different numbers of text blocks, depending on the version of Acrobat used to view the file. Here's the specific issue:
    As viewed in CC 2014:
    "Chapter 1 - Chapter One Title": Appears as two text blocks -- one for "Chapter 1 - " and one for "Chapter One Title"
    As viewed in CS 6:
    "Chapter 1 - Chapter One Title": Appears as a single text block -- "Chapter 1 - Chapter One Title"
    This occurs only with regard to single-digit chapter numbers that are whole numbers. So:
    Chapter 1, Chapter 5, and Chapter 7 entries appear as two blocks in CC 2014, one block in CS6.
    Chapter 2.0, Chapter 6.1, Chapter 10, entries appear in single blocks in both CC 2014 and CS6.
    The PDF file was created -- I believe -- through the save-to-PDF feature in Word 2010.
    Any idea what's happening here?
    Thanks.
    David

    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

Maybe you are looking for