Two ways to get dynamic text into my s:RichEditableText
font styling doesnt work with..
textFlow="{TextConverter.importToFlow( articleText, TextConverter.TEXT_FIELD_HTML_FORMAT )}"
images dont work with..
textFlow="{TextFlowUtil.importFromString(articleTe xt)}
the problem is one way shows the images i have in img tags the other shows text styles shown with
<p fontSize="20" fontFamily="GillSansStd" color="#ffffff">Welcome...</p>
<br /><br />
…and congratulations<img src='../creative/assets/trinidad.jpg' width="100" height="200" align="top"/>
Really appreciate any helpful postings with understanding why there are two ways and which is better or another way entirely.
thanks
It's hard to tell what's going wrong without more information. There are two different ways to do it so that you have flexibility in how you set it up. If you are starting from markup, then I think importToFlow is probably the easier way to go. But if you already have a TextFlow, for example because you have programmatically constructed it, then you can use the second
For the importToFlow method, the first thing to check is whether you got a null TextFlow back from importToFlow. This can happen if errors are encountered during the import (for example, invalid XML). If you are getting a null TextFlow, you can figure out why changing slightly how you call importToFlow. Instead of invoking it directly on the TextConverter, do this:
var importer:ITextImporter = TextConverter.getImporter(TextConvert.TEXT_LAYOUT_FORMAT);
importer.throwOnError = true;
var textFlow:TextFlow = importer.importToFlow(articleText);
This will result in an exception being thrown when the error is encountered.
Hope this helps,
- robin
Similar Messages
-
Is there a way to get the text written into a text object in an AWTFrame
I am trying to get the text written into the text box in the AWTFrame.
I have tried the following:
<pre> AccessibleTextInfo acinfo;
AccessibleContextInfo actinfo;
AccessibleTextItemsInfo acttinfo;
actinfo = getContextInfoFromContext(ac);
GetAccessibleTextInfo(vmID,ac,&acinfo,actinfo.x,actinfo.y);
printf("char count =%i\n",acinfo.charCount);
printf("OK so far\n");
GetAccessibleTextRange(vmID,ac,0,MAX_STRING_SIZE,sData,MAX_STRING_SIZE);
printf("text =%s\n",sData);</pre>
The charCount is correct but the string returned is always null.
Is this the right way to do this. If not then is there a correct way to get the text from a text box.881530 wrote:
Looks like one of the accessbridge files was corrupted. I re-installed access bridge and it worked fineGlad to hear your problem is resolved. Definitely odd though, I'd expect things to crash and burn in stead of changing behavior. -
Load dynamic text into Captivate form external file
Is it possible to load dynamic text into a Captivate file from an external file like an XML using Javascript.
I see there's a way to get it form the query scring of the URL ( http://captivatedev.com/2011/05/01/how-to-jump-to-a-specific-slide-in-a-separate-course/ ), but I have a project where I want several pieces of text to be replaced and we want to be able to edit it externally from the Captivate file.
Thanks!Hi Ned,
What I'm doing is using a yahoo map to load addresses and
place custom swf files as the placemarkers. The main stage has an
instance of myMap, which is the map that yahoo sets us to display
the ACTUAL map. They have also provided coding for placing markers
on the map, which is what I'm using.
I have the addresses throughout multiple xml files, which I
am actually loading through 1 single xml file. These addresses are
being stored in an array, then called by the AS below to place
markers. All the markers are placed correctly, however, I am trying
to have them actually say the address - this is where the problem
lies.
The marker that is being located and placed has a text field
called load_text in it. I want that field to load the same address
that is being used to place it (from the array addressA).
I'm very confused because every loop through the * for (i=0;
i<addressA.length; i++) * loop the marker is placed at the
correct addressA
location, but I cannot actually get the address to load into the
load_txt field in the marker. I can even run a trace during that
loop and it traces addressA for each address, but I can't seem
to actually load those values into the load_txt box.
Do you have any ideas? -
Is there any way to get this palette into photoshop CS6?
I'm curious as to why Photoshop CS6 can't have a simple effective palette choice like this one from Fireworks?
I'm an artist and this palette makes sense to me. The standard issue pallette in Photoshop is a mess compared to this.
Is there any way to get this palette into photoshop CS6?
Thanks!If your talking about the Color Cubes from fireworks as shown in your screenshot, then yes.
Save the swatches out of fireworks as an Adobe Swatch Exchange File (ASE) and then you can load them into photoshop
in it's swatches panel like below. -
Is there a way to get a PDF into my iPad keynote?
Is it possible?
I don't have an iPad, but it should be no problem. Once you have the PDF in your iPad, you can paste/insert it into your KN presentation. There are probably several ways to get a PDF into your device - download from the net; email it to yourself if it's on a computer; if it's originally your own word processor doc, like Pages, you can export that to a PDF version.
-
I took video in the format (AVCHD) 60i/60p and it does not download into iphoto. Any way to get this video into MP4 format so it will download?
Do you have iPhoto 9.3 or later? Have a look at this support article:
Using AVCHD video with iPhoto '11 -
The simplest way to do dynamic text
HI!
What would be the best way doing dynamic text and objects to your FC builded web site?
I know that FC is not developer tool and I probably have to use Flash Builder.
I've had lot of request to make web pages with parts that customers can upgrade on their own.
Example they want to upgrade some news on the page etc.
I probably do not have to make whole page dynamic.
But what would be the best solution to make some easy dynamic object on my website?
It would be nice if i can solve this without using database or content management system.
I know this question might not be directly related to FC, but as a designer I think you guys can help me best.
(Or at least push to right direction. )Hi SupraJohde,
Flex can talk to whatever type of backend you decide to use, and it supports a variety of different data formats right out of the box. Here's a good getting started tutorial (note that since it's from Flex 3, there may be slight differences from Flex 4, difthe version that Catalyst creates). Here's a more advanced, database-oriented tutorial (this is Flex 4 beta 1, so again there may be slight changes).
I can't tell you whether it's best to use a CMS vs. a databcase vs. something else on the backend. That might be a better question for a different forum :-) If you're looking for the simplest possible solution, I'd suggest putting some XML files on the server and pulling content from those (see first tutorial linked above). Your clients can then update just the XML content files.
- Peter -
Is there a way of getting Merged Clips into After Effects?
Hi,
When I import my premiere pro project into After effects (NOT VIA DYNAMIC LINK as we don't have prod. prem.) After Effects only sees the clips which aren't merged. Any fixes sensible work arounds for this, as currently I'm havbing to import the project ( a feature film...!) into Final Cut Pro then using Automatic Duck export out an AAF then using Automtaic Duck import that into After Effects. I haven't thought about how to get it back into premiere yet...will probably finish it off in FCP.I'm not sure if you have the capability, but did you try copying from your premiere sequence and then pasting into your after fx timeline? i was working with a MUCH shorter video with a mix of merged clips (interview footage) and video clips (b-roll). the video clips imported, but the merged clips did not. i put the timeline cursor to the right point in the after fx timeline, copied the premiere clip from the sequence, pasted it into after fx.
-
Can't get dynamic text in Flash 8 pro to work
Hi,
This is driving me nuts. I am using SWObject to send a
variable to my Flash 8 swf. The swf is basically a header that
plays a video and I want to put the name of the web page
dynamically on top of it. Sounds simple right. Well I can not get
it to work. In the past I have done dynamic text boxes without any
problem.
I have uploaded all the files to my clients server (
including the fla and the HTML page that accesses the swobject code
I have also tried other more conventional means to load the
Variables ( in the URL address and using Flashvars with a normal
object and embed tag ) Nothing seems to work.
Is there a problem with dynamic text and Flash 8?
I'm pulling my hair out any help would greatly be
appreciated, Thanks in advance.
Zip file on the
server with all the filesHi jimWPX, I have no problems with dynamic text in Flash 8,
and I see no problems in your file.
Could it be that the js doesn't parse for Flash 8 correctly?
A quick check for version seems to suggest that it's embedding with
tags for v 6 Flash. Might be problematic.
An alternative is FlashTag.js,
http://www.macromedia.com/go/flashjavascript/
which works fine for me also. Hope it helps -
Getting Dynamic Text To Act Like Static Text
Hi, need help.
I currently have 7 text/symbols that each move to the right
when a button beneath expands in a mouseover.event.
Working fine.
With one exception: I need to set the text value of that text
dynamically using loadVars (the text is dates that vary).
No problem, I can do that with dynamic text, except for a few
somewhat ugly problems.
Problem 1 - I want the text just to display. The dynamic text
gets the I-Beam mouse cursor.
Problem 2 - Dynamic text lets the user select some or all of
the text, which then shows in highlighted color.
I don't want the user to have any interaction with the text,
and I'd like to have the "hand" mouse pointer over it, which
carries through from the button underneath, just like the static
text currently does.
I've tried the label component, but when you move it, it
evaluates the HTML that sets the color too slowly, so you only see
the start and end points. I've tried on (load) and on (draw), and
the text looks like it's taking a huge hop from starting point to
ending point, instead of moving gracefully across the real estate
(default is black, html makes it white).
Any idea how I can get text to move, to format, to get its
text at startup and still look like and act like it's the text on
top of a button?
I'd very much appreciate any help!
Thank you. Sign me stymied! :-)
Alan Arthur KatzProblem 1 and 2: Set the textfields to not be selectable in
the Properties panel. If that's not a solution, say a little more
about how you have it pieced together. -
What is the best and easiest way to get xml data into the rtf document
Hello Frenz
I'm using rtf document(with bi publisher desktop plug in installed in the word document)... please suggest me the best way(to get the xml data from tables) to load the xml data into this rtf document..
I'm not developing oracle apps reports. It is for Oracle retail...
another doubt is... in the rtf document itself there is oracle bi publisher.. can it be used for generating xml data...
please bear with me and suggest me a way out
Thanks and regardsWhat will you be using in your production system to generate XML? Or are you just trying out BIP?
If you're familiar with dbms_xmlquery.getxml , you can pass your SQL to generate the XML output. Save the output in a file and use it in your RTF template.
If you have Oracle reports, you can create XML output when you run the report. -
I have inadvertently put some pics of my vacation on quick time. How can I get them back into my photo album as regular pics?
I think there is an option to save a screen/snap-shot or "Still" in quicktime.
-
How to get formatted text into arrays
Dear experts and helpers,
For my project I import an RTF file and then read the data from it into 3 arrays. This works fine when just using the string contents of the paragraphs. However, the final script should be able to read and replace formatted text...
Why use the intermediate arrays? Because otherwise I need to switch back and forth between two fm-documents (and one may be a book component).
The imported file starts with a number of lines separated into two items by a TAB (» denotes a TAB, in FM \x08)
[[Garneau, 1990 #12]] » [9]
The right item may also be locally formatted text, e.g. [9]
Then follow the same (or smaller) number of paragraphs with formatted text like this:
[9] » D. Garneau, Ed., National Language Support Reference Manual (National language Information Design Guide. Toronto, CDN: IBM National Language Technical Centre, 1990.
Is it possible to replace in the body of the function below the following piece
while(pgf.ObjectValid()) {
pgfText = GetText (pgf, newDoc);
gaBibliography.push(pgfText);
pgf = pgf.NextPgfInFlow;
with this
while(pgf.ObjectValid()) {
gaBibliography.push(pgf);
pgf = pgf.NextPgfInFlow;
Do I need a special declaration of the array gaBibliography ?
And how to get the right part of the intro lines as formatted thingy into array gaFmtCitsFmt ?
Currently I read into arrays only the 'strings' (function GetText not shown):
var gaFmtCitsRaw = []; // left column in processed RTF
var gaFmtCitsFmt = []; // right column in processed RTF
var gaBibliography= []; // bibliography lines from processed RTF
// filename is something like E:\_DDDprojects\FM+EN-escript\FM-testfiles\BibFM-collected-IEEE.rtf
function ReadFileRTF (fileName) {
var nCits=0, nBib = 0, openParams, openReturnParams, newDoc, pgf, pgfText ;
var TAB = String.fromCharCode(8); // FM has wrong ASCI for TAB
var parts = [];
openParams = GetOpenDefaultParams();
openReturnParams = new PropVals();
newDoc = Open (fileName, openParams, openReturnParams);
pgf = newDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf; // get first pgf in flow
// --- read the temp/formatted citations
while(pgf.ObjectValid()) {
pgfText = GetText (pgf, newDoc);
if (pgfText.substring (0,2) == "[[") { // citation lines start with [[
parts = pgfText.split(TAB); // get the two parts of the line
gaFmtCitsRaw.push (parts[0]); // Push the result onto the global array
gaFmtCitsFmt.push (parts[1]);
pgf = pgf.NextPgfInFlow;
} else { break }
// --- read the bibliography
while(pgf.ObjectValid()) { // until end of doc
pgfText = GetText (pgf, newDoc);
gaBibliography.push(pgfText);
pgf = pgf.NextPgfInFlow;
newDoc.Close (Constants.FF_CLOSE_MODIFIED);
} // --- end ReadFileRTF
The next questions then will be how to modify Ian Proudfoot's FindAndReplace script to handle formatted text as replacement. IMHO i will need to use copy/paste ...Klaus,
Working with text is about the most complicated thing to do within FrameMaker. It seems counter-intuitive, since it is about the easiest thing to do with the GUI. But alas, once you remove the ability to select with a mouse and type with a keyboard, text becomes a wild jungle of complexity.
Text ranges are not too bad, once you get the general idea. It is just that... a range of text, like something you would select with a mouse. Like a mouse selection, it starts before some character in some paragraph and ends after some character in some paragraph. It may be the same paragraph, which is a selection within a paragraph. The character can even be the same, which is then just an insertion point (cursor) somewhere.
So, a text range is a data structure that defines two paragraphs and two characters. In the jargon of scripting, the character is called an "offset." An offset is simply the number of characters past the beginning of said paragraph, where 0 is the beginning.
For example, if you want to capture the first five characters of a paragraph as a text range, you can do this, where 'pgf' is some paragraph object:
var textRange = new TextRange();
textRange.beg.obj = pgf;
textRange.beg.offset = 0;
textRange.end.obj = pgf;
textRange.end.offset = 5;
If you want to capture a whole paragraph, change that last line to the number of characters in the pgf, or you can do this:
textRange.end.offset = Constants.FV_OBJ_END_OFFSET;
...where that constant is just some built-in thing that means "get me to the end of whatever." It's a convenience of the interface.
I'll also note that a text range is actually just an array of two text location structures, one named 'beg' and one named 'end.' If you think of a text location as defined by paragraph and an offset from the first character, maybe that will make more sense.
Text item structures are a whole new mess of complexity. I can't possibly go into an explanation of them here.
I think that many ES developers (definitely myself included) still use the FDK documentation because it is considerably more comprehensive. The two interfaces are largely parallel, but of course somewhat different in the language syntax. Consider that as a potential resource.
Russ -
How can I get my text into a wedge shape (without losing quality)?
I'm using PS CS3... So the effect I'm going for is like what you would get if you had an image, and you do Edit > Transform > Distorted it, moving the lower right corner towards the center. The problem is that Distort is not an option for text layers . I tried making my text layer into an image layer and distorting it, but this method make my letters look pixelated. The closest I've got is to do Layer > Type > Warp Text with zero Bend and a negative Horizontal Distortion... But doing that makes both the top AND bottom of my text taper inward. I only want the BOTTOM part of the text to slope. Please help!
One could convert the Text to a Smart Object and then apply the Distortion or Warp.
If the result appears pixelated one could open the SO and increase the resolution, which should alleviate the problem somewhat.
Edit: In CS3 the perspectival transformation for SOs is not directly available, but can be simulated with Warp.
A further option would be creating a Layer with a Vector Mask from the Text (Layers – Type – Convert to Shape; best done on a duplicate of the original text layer) and transform that; this would maintain sharp edges at the price of losing text-editability. -
Is there a fast way to wrap unstructured text into [Para] tags?
I'm trying out my new Frame 12 by trying to produce an ebook in several formats. I'm using the out-of-copyright Agatha Christie's A MYSTERIOUS AFFAIR AT STYLES.
Is there a fast way to wrap each paragraph with a [Para] tag?
Thanks in advance.Wow, Russ, leave it to an FDK programmer to want to write a script or plugin to solve every problem! And FM does indeed have native functionality that addresses this situation. The conversion tables (see the Structured Application Developer Reference) that you mention in passing were designed to handle exactly this situation. Except that a conversion table operates on an unstructured rather than a partially structured document. So, all TdeV1 need do is:
1. Create a new document from the chosen sample.
2. Delete all content, including the root element.
3. Paste the original, unstructured paragraphs.
4. Use StructureTools > Generate Conversion Table to create a new coversion table.
5. Complete the table as follows:
Wrap this object or object
In this element
With this qualifier
P:
Para
Para+
Section
Section
Chapter
6. Save the conversion table but leave it open.
7. In the original document, use StructureTools > Utiltities > Structure Current Document.
8. Create the needed Head elements for the Chapter and Section.
Another alternative, available since FM 11, is Smart Paste. Recall that Smart Paste allows the user to copy material from web pages and Microsoft Office products such as Word and paste it into FM. Yes, in general, there is a significant amount of setup to prepare for using Smart Paste. However, Smart Paste is supported out of the box for DITA. So TdeV1 could do the following:
1. If the content originated in Word, open the Word document and copy the paragraphs to the clipboard.
2. Use DITA > New DITA File > New <topic> to create a new DITA document.
3. Click in the <body> element to set an insertion point within that element.
4. Use Edit > Smart Paste. FM will paste the content, converting each paragraph to a <p>.
5. Copy the resulting <p> elements to the clipboard.
6. Paste the <p> elements into the actual document.
7. Select the <p> elements and use the Element Catalog (or Ctrl-3 to bring up the Smart Catalog for changing elements) to change them to <Para> elements.
However the structured document is created, while this sample template is appropriate for initial experimentation with structured FM, it is intended for technical material and not optimal for fiction. To get the most out of a structured document for production work, it's almost always necessary to define elements and attributes appropriate to the particular project.
--Lynne
Maybe you are looking for
-
Problems with Image Field Table in Adobe Forms
Hello, I have a desgined a Adobe Form(Print Only) in the Adobe Desinger in NWDS. The form layout contains a table of images in 2 columns and 3 rows. Every Column has a Image Field and a TextField displaying the Image URL. The URL of this image is pas
-
Duplicates error in user forms (FND_USER)
Hi, In System Admin: Security User: Define, When I queried for some user "ABC", i got the error < ORA-01422: exact fetch returns more than requested... >. Refer below link for reference. https://docs.google.com/leaf?id=0B5DraJWCbaqSMDkwZDlhM2UtM2I2Yy
-
Attempting to reset old IMAC and so completed step to delete hard drive directory. Next step was to reinstall OSX but I was not connected to Internet, so I moved computer to directly plug into router. When I turned it back on all I get is ? File on
-
Windows Communication Foundation(WCF)
Hi, i want to start WCF so what should i do first . Regards, Gopal Upadhyay
-
Recovering photos from photostream
I Accidentally deleted photostream photos from my ipad 2 and would like to recover them. I tried restoring to my backup but they did not appear. Any other ways I can get them back?