-
Recente
I'm using code of the form: IEditManager(_textFlow.interactionManager).applyLink(" http://www.cnn.com"); However, in my underlying markup, I'd like to have something like this: <flow:a href=" http://www.cnn.com" id="myID">My Link here</flow:a> Since in the latest releases of Gumbo SDK every FlowElement have IDs, we're using these IDs to track LinkElements which are later used to fire specific events based on their IDs, when the TextFlow is in non-editable mode. (we ignore the actual href). The applyLink method of course takes only a url as string, but is there a way to add a general LinkElement using the IEditManager where we could specify the LinkElement ID ? We don't want to have to directly add LinkElements to the TextFlow because our current application uses an IEditManager.
In earlier versions of Flash, it was possible to link to a local function. In the htmlText of a text area, you could link to event:functionName instead of a website. Is that possible in the text layout framework? If so, can someone post an example?
Check it out on the team blog. http://blogs.adobe.com/tlf/2009/02/iformatresolver_and_using_css_1.html Richard
Is there a way to create a new FlowElement (such as a DivElement) from markup text without having to go through the TextFilter.importToFlow function? What I am trying to accomplish is this: I have a TextFlow already built. I receive some text that I want to inject into the TextFlow as a new element somewhere in the existing TextFlow. The method that I am using to accomplish this is, to create a second TextFlow from the markup via the importToFlow Function. Then I get the element from the second flow and make a deepCopy of it into a new "unowned" element. Lastly, I use this new "unowned" element in my main code by adding it as a child of the original TextFlow. My function that does this is attached. Thanks. Tim
Hi~ I'm crushed with a following problem. Problem: I need to create a container with a single text line. As i learn from the TLF API, there's no way to do that so it left only a way that's like this: //Assuming textFlow object is create var container:Sprite = new Sprite(); var width:Number = 500; // it's specified value var height:Number = 300; // just estimating it's enought for a normal single line height var controller:DisplayObjectContainerController = new DisplayObjectContainerController(container, width, height); controller.verticalScrollPolicy = ScrollPolicy.OFF; textFlow.flowComposer.addController(controller); textFlow.flowComposer.composeContainer(textFlow.flowComposer.getControllerIndex(controller)); // find top first line in the created container var textFlowLine:TextFlowLine= textFlow.flowComposer.findLineAtPosition(controller.absoluteStart, false); var calLineHeight:Number = textFlowLine.textHeight+8; // here 8 is just a test value controller.setCompositionSize(width, c
I'm finding that CharacterFormat (soon ITextLayoutFormat) fails to take a value of "regular" for fontStyle. This code illustrates the case (attached) On the first run the traces are as expected, setting the text to italic: "existing fontWeight: normal" "existing fontStyle: regular" "new fontStyle: italic" "should be: italic" But when I click my italic button again it fails to reset the text to regular because the "italic" CharacterFormat will not take a value of FontStyle.REGULAR when using a conditional assignment (ternary or if-else), the final trace shows the outcome of this conditional assignment, it just never actually gets assigned (it remains null). So the traces for when the text is already italic are: "existing fontWeight: normal" "existing fontStyle: italic" "new fontStyle: null" "should be: regular" I'm not using bold here so there's nothing running through the BOLD_ITALIC stuff.
Alrighty, we promised we'd have further discussion about this on the forums, so here we go. Since I think the email system can't handle really long posts, I'm going to post a series of things that I've written up, along with some responses that started among the team. We'll take things from there. Solving the naming convention with regard to overlapping classnames is especially difficult when you take a number of factors into account. Here are some of the things to consider as we look to address the issue (not prioritized and not exhaustive): These issues can be attributed to general use and the SDK: - Flex 4 aims to be compile-time compatible with Flex 3. This means that we cannot rename existing classes nor break major interface contracts. - Given we can't rename existing classes, what package naming structure makes sense if new classes will overlap with existing. - How does CSS differentiate between classes with the same local name (class name) - How will new users understand the
Revision: 5008 Author: gauravj@adobe.com Date: 2009-02-18 20:26:21 -0800 (Wed, 18 Feb 2009) Log Message: ----------- Fix for mx.accessibility.AccImpl.as causing a java.io.FileNotFoundException exception in ASDoc QE Notes: None. Doc Notes: None. Bugs: SDK-19340 tests: checkintests, asdoc Ticket Links: ------------ http://bugs.adobe.com/jira/browse/SDK-19340 Modified Paths: -------------- flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
Revision: 5007 Author: gauravj@adobe.com Date: 2009-02-18 20:23:43 -0800 (Wed, 18 Feb 2009) Log Message: ----------- Fix out of memory error. QE Notes: None. Doc Notes: None tests: checkintests Modified Paths: -------------- flex/sdk/trunk/frameworks/projects/airframework/build.xml flex/sdk/trunk/frameworks/projects/flash-integration/build.xml flex/sdk/trunk/frameworks/projects/flex/build.xml flex/sdk/trunk/frameworks/projects/flex4/build.xml flex/sdk/trunk/frameworks/projects/framework/build.xml flex/sdk/trunk/frameworks/projects/framework_textLayout/build.xml flex/sdk/trunk/frameworks/projects/haloclassic/build.xml flex/sdk/trunk/frameworks/projects/rpc/build.xml flex/sdk/trunk/frameworks/projects/utilities/build.xml flex/sdk/trunk/frameworks/projects/wireframe/build.xml
I have loaded fonts.swf on startup. I don't use TextLayout Embeded fonts feature. Then i have loaded some xml and assign xml to TextLayout. How I can use loaded font for display?
I have a pretty complex scenario but I should be able to see what's going wrong here... the question is on the very last line. I'm building an application where inside an editor users can lay out and edit text, (using things like resize handles and the EditManager for position and selection/typing). The app has a strict MVC implementation and I'm utilising a global undo system via commands so every edit to the text runs through a central mechanism instead of using the UndoManager directly. I'm also generating thumbnail images of this "container" after a certain time period after user activity, in effect producing 2 views of the same data. The problem this causes is that each TextFlow object is now being used by two Containers (I'm using a "TextElementRenderer" as a container class, which takes a TextFlow object and using the TLF draws the text). So it only actually renders in the last one assigned (in my case the thumbnail which lives inside a TileList that lets you switch between ed
Using at least the last few gumbo builds, if you have hyperlinks in the paragraphs that scroll out of view in a FxTextArea they don't work when scrolled to. I don't know if this is a TLF problem or a Gumbo problem or a not yet implemented deal. I couldn't find any mention of it anywhere so I entered a bug here with an attached example: http://bugs.adobe.com/jira/browse/SDK-19063
Hi, found that Flex Builder has a lot of extension points, but I try to extend those extensions but i found only schema for the debug extension point, is there a way for me to extend the others extension point? Tks,
When we embed a font in Flex, we can define which style of the font we want to have. So if we set the property "fontWeight" to "bold", the font manager (or the compiler?) will look for the bold font from the file, embed it and use it with text defined as bold. Sometimes the different styles of one font are defined in different files, and often they are not defined correctly in the font file. For example, you can have a font file myfont-bold.ttf, which defines the bold style of myfont, but in the ttf file, the font is not defined as bold, but as normal (don't know if this is clear). In this case, if I set the fontWeight property to bold while embedding the font, the compiler will give an error message, which is right. Now my question is: is there a way to tell the compiler to embed the 'normal' font from a file, but use it for bold text? Generally it would be nice if we could define which font style to take from a font file and for which text style to use it. Does it make sense?
Hello, I have a question that I can't seem to find an answer to anywhere online. In the old Google discussion group, someone asked the question regarding the problem I'm having. But no solution was ever posted. I'm testing a method to make sure that a bad assertion shows up on the failed test list. However, when I run my TestRunner, I get an ActionScript pop-up instead of a failed test case. I'm just not sure how to suppress that error pop-up and show that a test case has failed. Any help would be greatly appreciated. Here's a look at the code I'm running: public function testGetDepartment():void { var service:HTTPService = new HTTPService(); service.url = "getDepartmentByID.xml"; service.method = "GET"; service.resultFormat = "e4x"; service.addEventListener(ResultEvent.RESULT, function(event:ResultEvent):void { //Takes the XML response and "maps" it to a Dept. VO var dept:Department = DepartmentMapper.getDepartment(event); //This assertion works fine. //assertEquals("D
Hi, In cases when lines are visible but have their validity as "invalid", we can't get the atom data. Is there anyway to force the lines' validity to be "valid" so that atom data can be extracted from these? Regards, Ahmed
I've got a simple quiz that needs to be ported from FTE to the TextLayout Framework. To get something approximating TextField.autoSize, I use an ample initial value for height, and then use setCompositionSize to crop the DisplayObjectContainer back down to it's correct size. I have a bunch of Choices which are all parented to a Sprite. I measure that Sprite to put the results under the Choices. In the Choice class, everything looks normal. If I trace the boundaries with the drawing API, they are where I expect them. The problem is the parent Sprite that contains all the Choice instances. Its height hasn't been updated to reflect setCompositionSize. Here are the relevant code snippets: //This class creates each Choice: _choiceSprite = new Sprite(); _choiceSprite.x = 30; addChild(_choiceSprite); var choiceXML:XML = new XML("<TextFlow characterFormat='{choiceCF}' containerFormat='{offsetContainerFormat}'><p></p></TextFlow>"); choiceXML.prependChild(_formats); c
I'm not able to import StandardFlowComposer in FlexBuilder. I see the SWC contains it but it mentions the "tlf_internal" namespace. Is this class limited by to that namespace visibility or public? For now I'm casting flowComposer as FlowComposerBase but ideally I'd like to have access to StandardFlowComposer to extend it perhaps?
I have a bunch of containers created, and if I programmatically make a slight change to one span in the text flow, I do not want to go through the process of updating all of the containers to see that change. I figured flowComposer.updateContainter(modifiedContainerIndex) would work, however, after I call this method, the containers that come after the supplied index do not display properly. After reviewing the docs, I found that this is not unexpected behaviour.... "Does just enough composition and update to ensure that the display for the specified container is current. If you have a chain of twenty containers and specify the tenth container, updateContainer() ensures that containers 1 - 10 are properly composed and displayed. Composition stops at that point and you cannot assume that the following containers are correctly displayed." I tried to just call flowComposer.compose() hoping this might do the job, but it does not. :( So, I ask... Is there a way to update a single conta
I have an application that for all intents and purposes can be considered similar to the Pagination example. I do not want the end user to be able to edit the document however I need to do certain operations when the end user interacts with the text, such as perform some actionscript when they click a LinkElement, or create a hover box over certain ParagraphElements and DivElements on mouseover. Therefore I have created a superclass to SelectionManager to handle the text events and the mouse events. The side effect of this design is that when the end user hovers the mouse over any old text, the mouse pointer is almost always an i-beam insertion point, giving the impression that editing is available, even though they cannot in fact edit. If I find an alternate way of doing the events and eliminate the SelectionManager altogether, then I dont get the handy ability for my users to select a section of text and copy it to the clipboard. Surely there must be a way, when using a Selection
Hi, I'm created a new HorizontalList() and tried to set different width of its columns (by override set Data()) but its always gives me the same with... Can i set the columns width for HorizontalList or is it fixed? Thanks Jo
Hi, I have an issue with addAsync that handler function is not invoked when event fired. It does not work as I use addAsync in deeper function calls as below code. The player does fire MediaComplete event but correct handler never get called. Anyone know has ideas of what the problem is? Here is the flow of the code: - Play a video - Let it plays for 10 seconds (wait for a none existing event) - Seek to the end of time elapse - Verify video is stopped playing public function testVidSeekBeyondLength():void { var uuid:String = "7b992781-37f7-4abd-a948-f7d540237aa7"; Player.Instance.addEventListener(Events.VideoLoaded, addAsync(putVideoPlayFor10Secs, 45000, null, null)); Player.Instance.callMethod("playId", uuid); } private function putVideoPlayFor10Secs(e:Event):void { Player.Instance.removeEventListener(e.type, putVideoPlayFor10Secs); Player.Instance.addEventListener(Events.NotExist, addAsync(neverInvoke, 10000, null, verifyVidSeekBeyondLength)); } private function
Hi helper, Can I insert an HTML Table tag inside a TreeTable (Hierarchical data) using AdvancedDataGrid as a value? I need to create a Tree table in flex and I have beside normal int values some cells that need to show a certain images in an HTML Table I will create. Is it possible? Please advice Thanks Jo
Hi, When adding support for keyboard shortcut for Ctrl + B, its behavior is different on firefox vs Internet Explorer. Ctrl + B works fine in firefox but doesn't work in Internet Explorer as it opens "organize Favourites" Is there any way to add support for Ctrl + B, in a TLF based editor for Internet Explorer. Thanks, Ahmed
Hi, I've integrated the new Gumbo build 4.0.0.4904 (with TLF build 357), but there seems to be issue with images. Problem is that of image disappearance. After adding image, type some text and then click mouse close to image, results sometimes in image disappearance and then continuing with typing, images get appeared again. Can you verify? Regards, Ahmed
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Você já é cadastrado? Entrar
Ainda não tem uma conta? Crie uma conta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.