『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
Hi!I am creating multiple RichText components (from code), which i then connect to textflow by adding multiple containercontrollers.This all works great.But now my question: Is it possible to get the html content from each specific containercontroller. I have tried a number of things for example, editor = event.currentTarget as RichText;var tf:TextFlow = editor.content as TextFlow;trace(TextConverter.export(tf, TextConverter.TEXT_FIELD_HTML_FORMAT, ConversionType.STRING_TYPE).toString());but this only produces a piece of html code without the actual text from the RichText field.Anyone have an idea?ThanxMaurice
How can I disable a textflow? it's been rendered in a Sprite container. I want to avoid users been able to type in it, at certain times.Tks.
Hi there!Importing a LinkElement via code is not a problem, but to set the linkNormalFormat/linkHoverFormat for it is an issue:Via Code it works like this: .... var linkNormalFormat:TextLayoutFormat = new TextLayoutFormat(); linkNormalFormat.color = 0xff0000; var span:SpanElement = new SpanElement(); span.text = "This is a Test"; var linkElement:LinkElement = new LinkElement(); linkElement.linkNormalF
Hi guys:1. One EventListener, like: addEventListener(MouseEvent.CLICK, onMouseOver);2. import a markup to your TextFlow and set a default color: var markup:XML = <TextFlow><p fontSize="30">Make it red!</p></TextFlow>;3. change the color onClick:// Does work, if I don`t set a default color in my markup. But I want to have default color and want to change the color on click // HOW CAN I OVERWRITE THE COLOR PROPERTY? textFlow.color = 0xff0000; textFlow.flowComposer.updateAllControllers();Thanks!
Hi,Is there a way to add an event listener to InLineGraphicElements so I can detect when they are deleted using the "delete" key.Thanks.
I'd like to understand the relationship between Cairngorm 3 and Cairngorm 2. Does Cairngorm 3 contain all the codes in Cairngorm 2? Thanks.
Hi there,I'd like to use Cairngorm 3 with Parsley in a new Flex 4 project. To start understanding what I need to do, I thought I'd first take the Insync modular extended project, and try to reproduce some core parts of it in Flex 4. I have got a certain way, but am having trouble which may be something very straightforward I'm missing.Here's my code. References to core are simply a copy of the insyncModularExtended-core project and the three sections are separate projects which each only contain a label, "Section1", "Section2", "Section3".//Shell.mxml<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" xmlns:core="test.core.*" &n
We are having some problems with textfields that worked fine with Flash Player 10.0 upon upgrade to 10.1. The biggest problem is that frequently we have no errors such as pauses/delays in the interface and so forth. What has changed from 10.0 -> 10.1? What should we watch out for and really look for in terms of changes and thus what may need to be fixed or done properly?There is one error that has cropped up for us that was mentioned elsewhere in the forum here: ArgumentError: Error #2008: Parameter validity must be one of the accepted values. at flash.text.engine::TextLine/set validity()at http://forums.adobe.com/thread/612819 I certainly wish we had more to post from the debugger, but there is nothing very helpful in terms of output except that previous note. If I run into more, I certainly will share them, however this is a very unproductive and problematic issue.
I haven't spent any time digging into this, but I'm wondering, is there a valid reason that inline graphic elements seem to get positioned differently than text.The example below (image of results and markup) was created using the online TLF Demo and is simply a bunch of '0's and 'g's with the Google logo inserting between some of the lines. In this particular example the only setting of note is that I set Leading too 100% to help illustrate the positioning "issue".As you can see the image overlaps with the bottom of the previous line. I highlighted the image and the highlight actually shows where it thinks the image should be (and I agree).Is this a bug (I have a hard time believing it's not), and if so is there some setting / attribute that could be applied to correct this, or is there some quick fix to put in place for quick positioning.Thanks!BryonImage capturing results:Markup:<?xml version="1.0" encoding="utf-8"?><flow:TextFlow whiteSpaceCollapse="prese
http://www.stevensacks.net/2010/05/28/flash-cs5-tlf-engine-causes-errors-with-loaded-swfs/I go into great detail about what the issues are in my post.In a nutshell, TLF is not enterprise ready.
Hi,I have a Component with a RichEditable text and I want to display the text in two colums.I found this example code here:private function changeColumnCount(newCount:String):void{ if (_textFlow && _textFlow.interactionManager is IEditManager) { var cf:TextLayoutFormat = new TextLayoutFormat(); cf.columnCount = newCount; IEditManager(_textFlow.interactionManager).applyContainerFormat(cf); _textFlow.interactionManager.setFocus(); } }When I try to apply it to my RichEditableText.textFlow nothing happens.Even the if condition is not true?I tried it like this:private function changeColumnCount(newCount:String):void { if (myEditor.textFlow && myEditor.textFlow.interact
We need to build a function that places a linefeed after each displayed line wrap. This is to save the entered text the same way it is displayed in the editor for its later reproduction as a PDF.Now as getLineText() hasn't been included in the new components and we can't switch back to MX we have to retrieve every single line of characters a different way.I'd like to know if there is an alternative to the MX getLineText() in Flex4 Spark with the RichEditableText, or at least a way to combine functions that will reach the same result.
Hi,I have a textflow that maps to multiple controllers (that contains a UIComponent each) to get a flow between them.When I set the firstBaselineOffset to BaselineOffset.LINE_HEIGHT on all controllers it only works on the first container and the others get BaselineOffset.ASCENT.What is the correct way to set firstBaselineOffset on all controllers in the textflow?This is the result I get (only the first container gets the text "pushed" down):
Hi,How can i compile the tlfxproject and include it in flash builder 4?I need the table and bullet features, to create an advanced editor.I already have the source for tlfx, but don't know how to proceede.Thanks.Allan
Hi,I am making a FlashBuilder Actionscript file - that uses TLF. I want it to download the latest TLF swz from Adobe - but am not sure where it is located.I think that Flash CS5 swfs download it from here:http://fpdownload.adobe.com/pub/swz/tlf/1.0.0.595/textLayout_1.0.0.595.swz Is this the latest version on fpdownload.adobe.com? Or are later versions sometimes put up with milestones?How can I make sure that I am asking for the latest version of the swz? Is there any place that this is listed online? JOsh
package { import flash.display.Sprite; import flashx.textLayout.container.ContainerController; import flashx.textLayout.elements.TextFlow; import flashx.textLayout.conversion.TextConverter; public class Test extends Sprite { public function Test() { init(); } private function init():void{ var markup1:XML = <TextFlow xmlns='http://ns.adobe.com/textLayout/2008'> &nb
We were finally able to narrow down the source of the elusive errors being thrown in scrollTimerHandler and while handling certain mouse events. The problem seems to stem from some intermittent conditions that cause certain TextLine objects to be invalid at a time that we're not expecting them to be. The condition that causes the exception lies between SelectionManager and TextFlowLine. Details on that below.We were able to work around this issue in our container controller by overriding the methods that lead to exceptions and wrapping the super call with a try catch. if we catch an error, which was basically due to invalid text lines at unexpected locations, we call on the flow composer to force compose/update of the TextLine's and then re-call the super. This seems to work fairly well, but we're sometimes having to force a lot of composition work at an inopportune time.Note that we were using build 468 at the time this information was captured and that t
Can someone please post a example with Flex Unit 4 in Flash Builder 4 project.Thanks.Flex Bee.
Hello,I'm trying to use the special characters « and » in a textflow paragraph. The characters are displayed properly but the words don't wrap as expected.It seems like « and » need more space in the text then characters with a similar letter width like "m" or "w".It that true?ThanksFranziska
Hi all,I am using papervision3d as my 3d engine to create anaglyph objects. I want to load 3d objects in diffrent canvas and displayed it based on the selection.for that i created a list when the list changes using the mouse click the object also changes.i am adding the object in the resourcemanager class. so i load the resourcemanager class to a ui component . but all the objects are loading in to the same scene and it's behind the componenti give the functionprivate function selectHandler(event:Event):void { uploadFile.text = _fileReference.nativePath; dp.addItem(_fileReference.name);//dp is the data provider to the list &
Hi,I try to figure this example out, but it only assume that a TextArea is used. I only got the TextFlow to work with. I've tried to translate it to only use functions from TextFlow, but with no success.http://blog.flexexamples.com/2009/07/25/exporting-a-textflow-object-in-flex-4/ - (its the second example)Thanks!
The docs for TextFlow.findChildIndexAtPosition contains the following comment:Given a relative text position, find the index of the first child FlowElement that contains the relative position. More than one child can contain relative position because of zero length FlowElements.Examine the children to find the FlowElement that contains the relative position. The supplied relative position is relative to this FlowElement.I do not understand the meaning or implication of "zero length FlowElements". Nor does the example fragment show any indication of "examining the children".In a possibly related vein, I don't understand why the parentRelativeEnd of one child equals the parentRelativeStart of the next child; and the method findChildIndexAtPosition finds the preceding child if the position is that duplicated value, even though the text at that position is contained in the second child, not the first.In fact, the position lies one beyond the boundary.
HiThe mouse cursor was over the text inside the text flow and it was text cursor i.e like a vertical line between two horizontal lines.I made my text read only by using keyboard shortcuts while keeping the cursor unmoved.Now when the text is read only and I move the mouse,the cursor does not change back to pointer not even outside the text flow i.e when I roll the mouse cursor over the other components like buttons etc. The cursor as i expected should have changed back to mouse pointer but it didnt, and the solution was to refresh only.
Make a text flow with a large font size, then scale down the container. Suddenly we have a faint and oft-disappearing caret. See it here:http://aaronhardy.com/transfer/scalecaretbug/ScaleCaretBug.htmlRight-click the sample app for source. This appears to be because the caret isn't drawn using a hairline (in which case it would supposedly show up at any scale) but instead a one-pixel-wide rectangle. This is gleaned from TextFlowLine.computePointSelectionRectangle() and ContainerController.drawPointSelection().Which brings me to my questions:(1) Has this been reported as a bug?(2) Is there a workaround? Currently it appears that I'm going to need to extend ContainerController to implement my own caret drawing.Thanks.Aaron
Hello all,I am working on a fairly complex designer tool that allows the user to add text items to a stage and manipultate the text wysiwyg style.I have it all working well, and the textflow info is saved to the database through a webservice. However I am experiancing an odd issue.This is the code I am using to load up the textflow: GlobalSettings.resolveFontLookupFunction = null; var tf:TextFlow = TextFlowUtil.importFromXML(res.children()[0],"preserve"); tf.renderingMode = RenderingMode.CFF; tf.fontLookup = FontLookup.EMBEDDED_CFF; txt.t
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
アカウントをお持ちではありませんか? アカウントを作成
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.