『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
Hello there,Is it possible to prevent mouse cursor default behavior - changing to hand cursor - while hovering over the link in RichEditableText? It may sound strange, but for the specific design purposes I need to be able temporarily disable this default behavior.CursorManager doesn't seem handle this. I tried to place sort of a shield over the link - the graphic primitive Rect, but smart mouse still detects the coordinates of the link and changes to hand cursor.Any suggestions?Thanks,FTQuest
Hi All,I've hit a bit of a roadbump in developing an AIR app (2.5.1.17730 runtime) using the TLF and wonder if anyone else has seen it and come up with a workaround. Consider the mxmxl below. When you run the app, you two columns of text as you would expect. Editing (cut, paste, type, undo, redo) all work fine anywhere except when you edit the second line of the second column. Then the whole second column is pushed down to the y-value of the first column until you do an edit somehwere else in the window (say, put a space in the first column somewhere). I have pored over this for quite a while and have come to the considered opinion that (a) it's a bug, and (b) I haven't a clue what is causing it or how to work around it.Any suggestions?Thanks!<?xml version="1.0" encoding="utf-8"?><s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:
Hello!I have a problem with tlf using a lot of memory. Even a small test like this (see code below), takes up 47 Mb of Memory in Internet Explorer.With a bigger test, with more text I ran into virtual memory problems (it needed more than 1 Gb of Memory).What am I doing wrong? I'm using Flash Professional CS4 with the latest version of the textLayout.swc.greetings, Stefanpackage { import flash.display.Sprite; import flashx.textLayout.formats.TextLayoutFormat; import flashx.textLayout.container.ContainerController; import flashx.textLayout.elements.ParagraphElement; import flashx.textLayout.elements.SpanElement; import flashx.textLayout.elements.TextFlow; import flashx.textLayout.container.ScrollPolicy; public class Test4 extends Sprite { public function Test4() { var tekstLayoutFormat:TextLayoutFormat = new TextLayoutFormat(); var cs:Sprite = new Sprite(); var cs2:Sprite = new Sprite(); var cs3:Spr
I need to create a TextFlow instance from generic HTML text with a reduced subset of possible tags, being <p>, <b>, <u>, <i>, <a>, <sup> and <sub>.The problem is the conversion of sub and sup tags. Simply importing the HTML text withTextConverter.importToFlow(htmlText, TextConverter.TEXT_FIELD_HTML_FORMAT);results in sup and sub tags being ignored, as they are not supported by TEXT_FIELD_HTML_FORMAT.Do you have any idea how to get the sup and sup content converted to spans with appropriate baselineshift?Be aware that inside sup and sup elements may contains <b>, <i> and <u> tags as they are inline elements!
I'm trying to create a TextFlow object from generic HTML Text. There seems to be a problem with converting the span style class when having some tags inside the span:Here's a code snippet to narrow the issue down: var htmlText:String = '<SPAN CLASS="myclass"><b>foo</b>bar</SPAN>'; var textFlow:TextFlow = TextConverter.importToFlow(htmlText, TextConverter.TEXT_FIELD_HTML_FORMAT); trace(TextConverter.export(textFlow, TextConverter.TEXT_LAYOUT_FORMAT, ConversionType.XML_TYPE));The output is:<p> <span fontWeight="bold">foo</span> <span styleName="myclass">bar</span></p>As you can see, the foo span doesn't have a myclass sty
Hello there,Trying out Flex 4.5 preview I've run into a problem:In my Flex project I dynamically load various SWF files compiled in Flash CS5. These SWFs use TLF.With Flex 4.1 everything worked as expected, but in Flex 4.5 I get RTE(s). Just to be clear: if the SWF uses old classic text Flex 4.5 displays it normally, but once you try TLF - nothing but RTE.Anybody has experienced that?I'll also post this on the Flex forum.Thanks,FTQuest
Hi,I am using TLF in a spark list control item renderer.The list data provider items create the TextFlow. However, when I try to create the textFlow only once I sometimes run into the error below:Version:1.0 StartHTML:0000000149 EndHTML:0000001726 StartFragment:0000000199 EndFragment:0000001692 StartSelection:0000000199 EndSelection:0000001692 We always run into TypeError: Error #1009: Cannot access a property or method of a null object reference. at flashx.textLayout.container::TextContainerManager/set compositionWidth() at spark.components::RichEditableText/measureTextSize() at spark.components::RichEditableText/measure() at mx.core::UIComponent/measureSizes() at mx.core::UIComponent/validateSize() at mx.managers::LayoutManager/validateSize() at mx.managers::LayoutManager/doPhasedInstantiation()
Hi there,My apologies in advance if this is a known issue. I searched the forums but I was unable to find a discussion about this topic. The issue we are running into is when we programmatically move the contents of a Group which is in turn enclosed within a Scroller beyond the Scroller's limits the position of the Group within the stage is incorrectly calculated. This will cause mouseEvents in the area beyond the Group's limits to be "ignored" among other problems.I have created an application to illustrate the problem, we are in 4.1:<?xml version="1.0" encoding="utf-8"?><s:Application minWidth="955" minHeight="600" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here -->&
I create three unique spanelement's and put them into a paragraphelement in a textflow that's a textarea. The first and last span have text in them, but the middle on has no text as it's a placeholder that will have text set later on.Flex then helpfully removes all the empty span's - even unique one's - including the placeholder.Then later on I put text in the placeholder - which is no longer there. No text appears in the textbox and the placeholder doesn't return.Does anyone have a solution for this? Any help would be much appreciated.here's some code to demonstrate the issue:<?xml version="1.0" encoding="utf-8"?><s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx:Script> <![CDATA[ import flashx.textLayout.elements.DivElement; import flashx.textLayout.elements.ParagraphElement; import flashx.textLayout.elements.SpanEleme
Dear Sir:I put long text xml in pagning textlayout ,but when I want get the xml or text in paged container,I choking... how can I get the each page's text xml?my code like this;var controller:IContainerController; var count:Number = 0; for(;;) { _textflow.flowComposer.compose(); while (_containers.length < _textflow.flowComposer.numControllers) { controller = _textflow.flowComposer.getControllerAt(_containers.length); trace(TextFlow(controller.rootElement).getFirstLeaf().text ) //trace(TextFilter.export(controller.textFlow,TextFilter.TEXT_LAYOUT_FORMAT,ConversionType.XML_TYPE) as XML) _containers.push(Sprite(controller.container)); if (controller.textLength =
I am usingIEditManager( editor.textFlow.interactionManager ).insertInlineGraphic(urlRequest, 100, 100, "left");to add an image to the textFlow. If i use "none" the image is rendered inline as you would expect. However when set to "left" or "right" it adds it without error, but the image does not display on the screen. (i know it display because if i look at the tlf text ouput the img is added, also a small whitspace is added to the screen)anyone have any ideas?
Hi,I am using TLF TextFlow as rich text editor. The editor is capable of detecting the hyperlink & convert it into actionable link. Iam trying with adding event: CompositionCompleteEvent.COMPOSITION_COMPLETE exporting text then using regular expression reform the html text and finally importing again. But I think that seems to be very costly in terms of performance.Can anybody help me out if I am going wrong?One more doubt: Is there any way to assign new text in TextLayoutFormat?Thanks in advance.Gaurav
How to create a table using Text Layout Framework? I meen real tables - like in HTML.
Hi, I use the flashplayer version 10,0,22,87, with this version the trace function is able to print to the standard output. Recentrly I installed the newest version of the flex sdk and using the flashplayer that comes with it I noticed that this behavior isn't the same anymore. Can you consider briging it back in the next versions?Thanks!
I am currently using one of the latest versions of TLF available as a swc as described for use in Flash CS4. However, I realize that this is not the TLF 2.0 version. Can I install the TLF version 2.0 via a swc for use in CS4?Or do I need to do all my AS3 projects in Flex 4, which means I need to buy THAT instead?I would just buy CS5, but now I have read somewhere that 2.0 isn't available to update in Flash CS5, which seems sort of bizarre since things like floats were implied to be available in CS5.Keeping track of what software I need to buy to make available a feature implied to be already available in the framework is a bit frustrating.
Hi,I'm using Flash Builder 4 to create an action script based component. I've just started and the code right now is very simple - I have a class which extends the Box class. I set the width & height in the constructor and call an init() method where i create a label, add it using this.addChild(). When I run this I get the error TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.styles::StyleManager$/getStyleManager() at mx.styles::StyleProtoChain$/getStyleManager() at mx.styles::StyleProtoChain$/initProtoChain() at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::initProtoChain() at mx.core::UIComponent/regenerateStyleCache() at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::addingChild() at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild() at mx.core::Container/addChildAt() at mx.core::Container/addChild() at component::Carousel/init() at component::Carousel()It errors out on li
We recently decided to upgrade to the Flex 4.1 SDK after a year or so at 3.2. We have been asked to not use the new SPARK components yet because our products would then have a mistmatch of Halo and Spark components in the UI. We have built support for our Halo components to display html through the ".htmlText" property for the Text components. For example, we can display strings such as "<p>Choose <b>one</b> option:</p>". With the upgrade to Flex 4.1 a couple of questions about supporting bi-directional text have come up. My understanding is that in order to support bi-directional text we need to use the Text Layout Framework. Does anyone have a suggestion on how we can utilize the TLF with the Halo components in Flex 4.1? Can we still use the ".htmlText" property somehow or is there a new property that understands the TextFormat markup? We would love to still be able to use the limited html tags that a
We have a large project and I'm looking into the best way of running Unit Tests on a specific class, without having to recompile the entire project. Is this possible with the FlashBuilder Premium integration?
Hi,I have created an editor using TLF which has word-wrapping enabled. The editor also takes in the Tab key and places it at prober position. In case you insert Tab at the beginning of the line except for the first line then the TAB is inserted in the previous line and it does not get wrapped.Is there any way in which I can acheive word wrapping for Tabs? I have observed similar behavior for SPACE as well.Why is such a behavior in the both the cases?
In the Name of GodHi!I am doing a project in Hero/Burrito which needs complex text functions (it renders complex script languages). The usual RichText and RichEditableText elements are discouraged by burrity saying that they are not mobile optimized. If so, then what is the lightest and mobile optimized TFL enabled component that I can use?I have like 200 medium paragraphs automatically generated from XML in a list and it is not so hard to see that using a richtext component will make scrolling very stuttery.Any idea?
Hi guys,I'm having troubles running the FlexUnit 4.1 RC2 CIListener on an AIR application. The window is launched and the first few tests run in the UI (I have the AIRCIListener, TraceListener and the UIListener all added), but once it gets to the 3rd or 4th test it locks up the window ("not responding"). This is presumably when it is trying to send the buffered data across to the ant task.The listener is definitely connecting to the ant task host, but it is never receiving any data. If I break (CTRL+C) out of the ant task, the tests continue to run to completion in the opened window.The output of the ant task is as follows (I've clipped the paths):Setting up server process ...Starting server ...Opening server socket on port [1024].Waiting for client connection ...Found AIR version: 2.0Created application descriptor at Executing 'c:\...\adl.exe' with arguments:'C:\...\flexUnitDescriptor.xml'The ' characters around the executable and arguments arenot part of the command.Client connected
Condition:Create a string with the <b> tag appearing at the beginning, eg. str = "<b>Bold</b> is the first thing in this string";Create a TLFTextField on the stage (manually from within flash) and then assign the string to its htmlText property, eg.myTLFTextField.htmlText = str;Result:Everything looks fine - but now try and assign a different string to the same TLFTextField. The entire text is fixed to being bold, no matter what html tags are present or not.The same thing happens for the <i> tag as well.The only work around I have is to always insert a space at the start of the string. If any <b> or <i> tag appears at the start of the string, that text field is corrupt for the entire session and can't be fixed.
Hi everyone, I am working on flash builder 4 standalone(not premium), i set the flexunit swc to the libs, and try to run the FlexUnit Tests, but it saysupgrade to premium required Is they any solution to this.or we have to get the premium.thanks
Hi,We're using FlexMojos to build a rather complex AIR application that uses RSLs and Modules.We successfully created a FlexMojos build with Flex SDK 4.0. We're trying to update to 4.1 (and eventually 4.5).Running the debug, Flash Builder compiled version of our application, we are able to run successfully with 4.1. However, we are continually running into the attached error with the FlexMojos 4.1 build. [Frankly, getting a release AIR build in either 4.0 or 4.1 from Flash builder has been a nightmare.]In FlexMojos (as well as the Flash Builder debug build), we are using TLF as an externally linked library. We are using the Adobe libraries in the order in which they're listed in the [SDK]//frameworks/flex-config.xml file, which includes TextLayout at the top of the list.We're not using anything in the TLF directly in our pared down version that still throws the errors, just a few Spark components that are loading within a Module.Any help is greatly appreciated. Thanks!KirkTypeError: Er
Hi,I'm trying to test a component that has a Skin with 2 states, this skin contains a Button (btnMyButton) with "includeIn='state1'" and a TextInput (txtMyText) with "includeIn='state2'".Clicking on the button triggers a method that changes the state, the problem is when I try to access the TextInput on the next step, I get a null pointer. It seems like the property that defines the state of the skin (myComp.skinState) has been updated properly, but the actual skin has not been updated and my TextInput has not been added to the stage. Does anyone know what the correct way for doing this is? Am I doing anything wrong?See my code below.Thanks.- MyCompTest.as [Before( async, ui )] public function setUp() : void { myComp = new MyComp(); myComp.setStyle( "skinClass", MyCompSkin ); &nbs
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.