『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
Is there and event that fires when the undo stack has changed? (I thought I read about such an event, for the benefit of allowing the TLF to work with other stuff). How about a property that tells you how many items are on the stack? (Again, I thought there was one - but probably wishful thinking that the TLF had adequate hooks to make the programmer's life easier).
I am on Flex 4.0.13654 SDK from Jan 20 2010.The following 50 lines of code illustrate 4 different methods to select text, including1) calling "selectAll" method on s:TextInput component creation,2) calling "selectRange" method on SelectionManager3) applying instance of SelectionState to SelectionManager4) calling "selectAll" method on SelectionManagerall failed <?xml version="1.0" encoding="utf-8"?> <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/halo" minWidth="1024" minHeight="768"> <fx:Script> <![CDATA[ &n
Hello!I apply text formatting to the empty newly created text flow. It seems to be strange that the formatting is not applied immediately, but when I start editing.The small sample demonstrates the problem.<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"layout="vertical"creationComplete="onCreationComplete()"><mx:Script><![CDATA[import flashx.textLayout.events.FlowOperationEvent;import flashx.textLayout.formats.ITextLayoutFormat;import flash.text.engine.RenderingMode;import flash.text.engine.FontLookup;import flashx.textLayout.formats.TextLayoutFormat;import mx.controls.SWFLoader;import flashx.textLayout.edit.EditManager;import flashx.textLayout.container.ContainerController;import flashx.textLayout.elements.TextFlow;private var textFlow:TextFlow;private function onCreationComplete():void {var container:Sprite = new Sprite();canvas.rawChildren.addChild(container);var containerController:ContainerController = new Contai
I'm building a presentation that's driven by external data files (XML with HTML text for body text on each slide), and I'd like to specify HTML that enables the content producers to insert floating images (each image requires a caption) and wrapping text. It's only one column text, but I'm at a loss for finding examples of TLF with images that use external data sources to drive the experience. Any suggestions would be greatly appreciated.
Hi,When the InLineGraphicElement is bigger than the TextFlow (after the initial import), it doesn't render until the container is updated by the user. After the user makes a change, the image shows up.How can I force the images to always show after the initial import even if they are bigger than the container?Tks.
Hi. Will some future version of the Flex DataGrid/AdvancedDataGrid have pagination built-in? Thanks.
Hey!I've decided to try and dabble some with modifying the compiler, mainly just for fun but if I can I hope to be able to contribute to the project somehow. In any case, I've gotten everything to build properly using the ant script, but I can't seem to make the java compiler bits to build correctly in Flash Builder. This baffles me because everything seems to be set correctly and I get no linked resource errors. FLEX_SDK is set and verfied, as is ANT17_JAR, ANT_HOME and JAVA_HOME. Again, the project builds just fine using the ant script. What am I doing wrong here?I get a ton (653 to be exact) of compiler errors. Here's a few just to get you an idea of what I'm talking about:app.beginLine cannot be resolved or is not a field InterfaceCompiler.java /flex-compiler/src/flex2/compiler/mxml line 665 Java Problemapp.beginLine cannot be resolved or is not a field InterfaceCompiler.java /flex-compiler/src/flex2/compiler/mxml line 682 Java Problemapp.beginLine cannot be resolved or is not a fi
Revision: 16324Revision: 16324Author: klin@adobe.comDate: 2010-05-25 17:37:25 -0700 (Tue, 25 May 2010)Log Message:***********Fix broken build. Modified Form check-in test to be platform-independent.QE notes: NoDoc notes: NoBugs: NoReviewer: JoannTests run: checkintestsIs noteworthy for integration: NoModified Paths:************** flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/FormTestScript.mxml
Hello,Are you guys monitoring the wiki, such as this page I added using 'discussion' tab?:http://docs.flexunit.org/index.php?title=Talk:DownloadsANDAs I ask on that page - I don't see matching dates in RC1 and what is in SVN - Any idea where i can find source that matches release 4.0-rc1?This is dated: Wednesday, September 09, 2009:http://opensource.adobe.com/svn/opensource/flexunit/tags/4.0_flash_builder_b2Where the 4.0.0-rc1 release is dated: 14th December 2009Thanks!
Hi,I've been looking for a solution for an issue for a while and hope someone can help me here.I have a TextFlow rendered in a Sprite. The sprite is inside a resizable container. When the container is resized, the new sprite size is update in the container controller. The problem is that the text is been deformed.This is an image of the text before been scaled.And this one is after been scaled:I'm not changing the the font size or anything else, just width and height of the sprite.Any ideas?
Hi,I'd like to know if somebody else is having this behaivor.I'm adding an event listerner to SelectionEvent.SELECTION_CHANGE events. in this way:textFlow.addEventListener(SelectionEvent.SELECTION_CHANGE, selectionChangeListener, false, 0, true );The proble is that every time the selection changes, the vent is been dispatched twice. The event listener is been added just once.I also checked the type of the event, just to make sure I'm not capturing two event with the same event listener, but both are of type "selectionChange".Any ideas?
Revision: 16320Revision: 16320Author: klin@adobe.comDate: 2010-05-25 14:58:53 -0700 (Tue, 25 May 2010)Log Message:***********Form Bugfixing. -Fixed ConstraintLayout so that it takes into account the "maxWidth" of columns and rows.-FormItemSkin's and StackedFormItemSkin's helpCol column now has a maxWidth of 200 (longer help strings will wrap).-FormSkin's contentGroup now stretches to be the size of the Form fixing the issue with FormItems not looking right with 100% width. FormSkin's errorStringText now also has a maxWidth that is binded to the FormSkin's width. This allows errorStringText to wrap reasonably.-Fixed Form checkin test to pass.QE notes: NoDoc notes: NoBugs: SDK-26491, SDK-26495, SDK-26501, SDK-26512, SDK-26513Reviewer: JasonTests run: checkintestsIs noteworthy for integration: NoTicket Links:*********** http://bugs.adobe.com/jira/browse/SDK-26491 http://bugs.adobe.com/jira/browse/SDK-26495 http://bugs.adobe.com/jira/browse/SDK-26501 http://bugs.adobe.com
HiI'm using Cairngorm Navigation Library in a modular application. One of them contains a Cairngorm 3 wizard. Like the sample in svn, the context is initialized with the wizard and a PM class (as MessagesPM) :[Landmark(name="myWizard")] public class MessagesPM { private static const LOG:ILogger=LogUtil.getLogger(MessagesPM); [Bindable] public var message:String=""; //------------------------------------------------------------------------ // // Enter/Exit Methods // //------------------------------------------------------------------------ [Enter(time="first")] &
Hi,how do I make Text live flow around embedded Images ? e.g.:When I click a embedded Image and scale it, how do I make the Text automaticly flow around that image ?Whats the best way to emmbedd Fonts ?I tried : http://blogs.adobe.com/tlf/2008/11/embedded_font_subsetting_using.htmlBut that did not work whyever.RegardsMarc
Steps to repro:1. Put your cursor in an empty paragraph2. Set paragraphStartIndent using an ApplyFormatOperation3. UndoYou will notice the operation wont get undone.Here is a little video of it. I used Ctrl+Z to undo. http://screencast.com/t/YzE0ZTc5OTMt It appears the issue is with this code that gets executed from ParaEdit during the undo public static function setParagraphStyleChange(flowRoot:TextFlow,begChange:int, endChange:int, coreStyles:Object):void { var beginPara:int = begChange; while (beginPara < endChange) { var para:ParagraphElement = flowRoot.findLeaf(beginPara).getParagraph(); para.setCoreStylesInternal(coreStyles); beginPara = para.getAbsoluteStart() + para.textLength; } }It seems like it should may
Hi,Question. why after I insert an image, the text flow renders it as it'd have "spaces" before and after it?The original code is just an image wrapped by <p> and </p>.Any way to prevent this behavior without deleting the spaces manually?Tks.
We need to determine when there is more text than the textfield can display, so we can show a warning.The user is designing pages to be printed, so he has to know when text will be omitted.I'm looking for an alternative to "maxscroll" in the RichEditableText component using Flex4.We tried it with „contentHeight“:if(myRichEditableText.contentHeight > myRichEditableText.height) // do somethingBut this seams to be unreliable.Pointing in the right direction is welcome.
I want a ContainerController to autosize. Like setting TextField.autosize, so that the textfield expands to fit all the text it holds (without scrolling or truncating the text). How do I do this?If I call ContainerController.setCompositionSize(...,calculateHeight()); - will that do it? Is there a way to update this automatically? (apart from the obvious way using an event handler).I know that FTETextField supports autosize, but I never use mx. flex classes in my own pure actionscript projects.(What I'm doing next in e2publish is adding tables - and rows will expand to accommodate text in cells. http://www.e2easy.co.cc/e2publish.html )
I've seen it mentioned (and confirmed it) that there are two ways to binda textarea control - the text property and the textFlow property. What arethe advantages and disadvantages of each?I have a long TextFlow (a document) that is built up from pages. Itduplicates the structure of an existing printed book. Each page isa file. I constuct the TextFlow by reading the pages, creating a Divwith a Paragraph with a Span, assigning the file text to the Spanand the Paragraph to the Div, and then adding the Divs one by oneto the TextFlow.I want to be able to edit each page (Div) in a textarea. The propermapping unit is a Div; but the Div's textFlow property appears tobe the entire TextFlow, not some sub-TextFlow equal to the Div.But the Div has no text property - there's only the getText method- the Div provides no bindable hook.If I write my own text() setter, when will it be called? If I need tohook the textarea up to another Div (another page), how will I knowif I've edited the textarea but
After several hours trying to find why embedded fonts didn't work in my application any more (they were working fine) I found the source, something that looks like a bug.If I add a spark component, like a textarea, to the display objects list, the embedded fonts don't work in a textFlow / ContainerController / EditorManager setup. The embedded fonts work on all spark components but the sprite container controlled by the TextFlow.Any Ideas?BTW, this is how I'm embedding the fonts:package{ import flash.text.Font; import flash.text.engine.RenderingMode; public class RockwellFont { [Embed(source='assets/fonts/rock.ttf', fontName='RockwellV', mimeType='application/x-font', embedAsCFF="true" )] private static var standardF:Class;
Hello, I'm new with this framework and I have some problems with updating list value in the View part. What I want to do is quite simple select few files (add those file names to the list) I have one button and one list. In my command where I update data provider object for that list everything is ok, and number of file name is correct. I bind that value in the View but the list isn't updated. I need explicitly in View part to say something like: listFiles.dataProvider = uploadModel.arrUploadFiles; in order to update list. Is this behaviour normal for this framework, or I made some mistake ? Model and ModelLocator for that class are declared as [Bindable]. I mean, my general question would be, if you update model in command class, is that change viewable on the view part? Thanks in advance. Regards, Ljubisa
Hi,How can I loop through the textline children to examine which "child" is a character or an inline graphic element?tks.
This code snippets below should help calify what is meant in the title. My aim was to minimise the number of events that i had to create to woth with products( The constants are to make CRUD activities simple).. the first snippet crashed the code ). Cairngorm does not like mapping of same event to more than one command which is not very cool........is this a bug or am i doing somthing wrong ( I hope i am )...<codeSnippet> this.addCommand(TProductsEvent.TPRODUCTS_EVENT, TListProductsCommand); this.addCommand(TProductsEvent.TPRODUCTS_EVENT, TGetProductsByMemberCommand);</codeSnippet><codeSnippet>package net.sps.mobileadmanager.event{ import com.adobe.cairngorm.control.CairngormEvent; import flash.events.Event; import net.sps.mobileadmanager.VO.TProductListVO; public cla
Revision: 16267Revision: 16267Author: klin@adobe.comDate: 2010-05-20 15:24:53 -0700 (Thu, 20 May 2010)Log Message:***********Added better baseline support for ConstraintLayout. ConstraintRow's now have a baseline property. It can either be a number or of the form "maxAscent:x". In the first case, it will position elements at that y-pixel value in the row based on their baseline position. Otherwise, it first aligns elements to the maximum baseline position of the elements in the row, and then, positions elements based on the pixel value provided. This support allows elements with different baselinePositions to be aligned more easily.QE notes: NoDoc notes: NoBugs: NoReviewer: JasonTests run: checkintestsIs noteworthy for integration: NoModified Paths:************** flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/ConstraintRow.as flex/sdk/trunk/frameworks/projects/spark/bundles/en_US/layout.properties flex/sdk/trunk/frameworks/projects/spark/s
Hi,I'm having issues whne I try to use Lucida Sans in my application. I'm embedding several fonts and all of them are working ok. even Lucida Sans is been embedded and displaied correctly, the problem is when I select text, the selection is offset:I just noticed the same issue in the TLF Editor Demo whne the "lookup" properti is set to "Device":The weird thing is that in my application, I'm using:textLayoutFormat.fontLookup = flash.text.engine.FontLookup.EMBEDDED_CFF;When I apply the font.Any Ideas?
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.