『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
Hi,In a regular non-async test, something like Assert.assertEquals( "apples", "oranges" ); gives a nice report that the strings didn't match. The test fails and the suite continues and all is good. If the test is asynchronous, though, you get an uncaught exception, and a timeout on the test rather than a nice report. Worse, it will cause a command-line based test to freeze with a stack trace showing (if you have a debug version of Flash, of course), until you hit the dismiss button.Here's an example. Without the Assert.assertEquals line, the test passes after two seconds as expected. With the Assert.assertEquals in place, you get the behaviour I described. So the question is, how do I use asserts in an asynchronous test? I want the behaviour that you get with synchronous tests, i.e. a nice report and no pop-up dialog showing the stack. const TEST_COMPLETE:String = "testComplete";
Hi, I'm using Flex SDK 4.5.0.17855 (Fri Sep 24, 2010).<?xml version="1.0"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" > <s:RichText> <s:TextFlow> <s:list> <s:li>item</s:li> <s:li>item</s:li> <s:li>item</s:li> </s:list> </s:TextFlow> </s:RichText></s:Application>At runtime, thi
now, am getting following errors:-have followed all instructions per wiki for download, install, etc. with 3.4sdk-plz resolve asap. thx.--Description Resource Path Location Type1044: Interface method allowDomain in namespace mx.core:IFlexModuleFactory not implemented by class _ContactsModule_mx_core_FlexModuleFactory. insync-cairngorm-modularExtended-contacts line 13 Flex Problem1044: Interface method allowInsecureDomain in namespace mx.core:IFlexModuleFactory not implemented by class _ContactsModule_mx_core_FlexModuleFactory. insync-cairngorm-modularExtended-contacts line 13 Flex Problem1044: Interface method get preloadedRSLs in namespace mx.core:IFlexModuleFactory not implemented by class _ContactsModule_mx_core_FlexModuleFactory. insync-cai
Does the latest SDK (Hero) support Android's Speech to Text API? Is there a reference somewhere which tells you all the Android APIs it supports (GPS etc..)?thanks!-Mike
Hello!Is there a way to stretch fonts in TLF?What I mean is: is there a way to put a horizontal (or vertical) scale in the TextLayoutFormat, so all the words in that format are stretched?greetings, Stefan
Has anyone tried using TLF code in a Flex 4.5 Mobile application? Everything compiles and runs fine but the text is invisible. Any known workarounds for this?
Hi Guys, So I have a fun one here. I have a single textArea.textFlow that contains a mixture of plain text and images. The text is aligned at what looks to be bottom, while the images show up at a top-like alignment...how can I get them all to be aligned at the same level? The content of my textFlow is something like this: <p textIndent="15">You can even place graphics inline like <img source="http://blah.blah.com:8080/images/ce/TopicCGoal6/image6.png" /> this.</p> and it spits this out: Help?!Thanks,Adrian
Hey allI'm currently working on creating a bitmap copy of a TextFlow object and I am looking at hiding the caret. What would be the best way forward, using the focusmanager to 'unfocus' the TextFlow object, or is there some more direct approach available? I know there is a cursormanager in Flex, but this is an AS3 only project.Cheers for your thoughts once again emd
Hi,How does one correct the violation "Copyright header info is missing" in an mxml file? We do have a copyright header in all our mxml files, but they are not being picked up by FlexPMD. Does it look for a specific copyright header?Thanks
Hello, I've been struggling with this for two weeks now without being able to find a solution, so any help would be hugely appreciated.I wrote a subclass (relevant code below) of Sprite which contains a TextFlow and a variable number of child sprites (each one of them is linked to a ContainerController in the TextFlow's flowComposer). When there's just one page everything works fine: the cursor changes when you hover over a link and it opens the browser when you click on it. The problem comes when there's more than one page: neither cursor change nor click behavior in any page.I observed something similar happening in the Pagination example contained in the latest build anounced on the blog, except for the fact that links in the first page worked.After reading this discussion I downloaded the latest build, copied textLayout.swc into the frameworks/libs directory of my local copy of Flex SDK 4.1 (replacing the old one) and updated the project's build path reference to that file (I'm sti
Hello,So I've created a TextFlow input field usingtextFlow.interactionManager = new EditManager();I've also limited the vertical scrolling to using controller.verticalScrollPolicy = ScrollPolicy.OFF;so basically I have just one input line.The controller also has a fixed width, so when a user starts typing and the amount of text exceeds the available viewing space the newly entered text is no longer visible.What I'm after is a method to 'read' the total textWidth and compare that to the width of the textFlow container so I can do something when the space runs out. Is this at all possible?Many thanks for any thoughtscheers
Hi,This code :var tlf:TLFTextField= new TLFTextField()tlf.type=TextFieldType.DYNAMICaddChild(tlf)throws these errors:What Im doing wrong?TIAverify fl.text::TLFTextField/setFormatForAllElements() stack: scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] ~ locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * * 0:debugfile "F:\stage\Flash11_Main_
Hi all, I'm new to flex and have been asked to provide a small widget that will display the contents of a csv in a list. Can I use the HTTPService to open a csv file and then create an actionscript 3 function to parse it? If so can anyone point me to a tutorial on how to parse a csv file please. Thanks in advance
What needs to be done to get an Flash Text Engine based application indexable by Google through Ichabod?Is there an interface that needs to be implemented?Thanks.Regrads,Benny
It had been asked before, but I think the last time it was over a year ago.Will the source code be made available for the official online demo (http://labs.adobe.com/technologies/textlayout/demos/)?It would be a great help to see how things are being done there.
I'm trying to find any info on using TLF text in a pure AS project (using FDT), but quickly finding myself getting confused by it all.My normal workflow when laying out text is to- use Flash Pro to lay my text out within a MovieClip,- set that MovieClip for export in the library,- publish a swc,- add that swc to my classpath in FDT so I can add the it to the stage etc.Now.. I get the way that if you're using Flash Pro to compile, you end up with the 160kb swz file which is only downloaded by the user if it's not been cached already on their machine. All very clever.But... the moment I stick a TLF textfield into a MovieClip and publish a SWC, that SWC is 406kb (which is added to my project when I include the movieclip with the TLF TextField).Why so big??? Why is it so much bigger than the 160k that the swz file is??Even if I had to embed the TLF framework within my swf I could just about swallow the 160k hit, but 406k is a LOT.Am I missing something?
Hi,We are trying to integrate the sample application SimpleEditorWithCSS into a Flex 3 application.We have upgraded to Flex 4. and using the HALO theme. The application compiles, but when we try to include the SimpleEditorPanel, and we set the textFlow in it, we get an error in the set textFlow () function, on the line below: _textFlow.flowComposer.updateAllControllers(); See below the error that we are gettingThe integration and initialization of the component is exactly done like the example.Anybody seen this before and do you know what we are doing wrong here?I cannot see in the function where the error occurs, so it's hard to understand what is happening.Cheers,AntonTypeError: Error #1009: Cannot access a property or method of a null object reference. at flashx.textLayout.container::ContainerController/getFirstTextLineChildIndex() at flashx.textLayout.container::ContainerController/http://ns.adobe.com/textLayout/internal/2008::updateCompositionShapes() at flashx.textLayout.compose:
Hi,I am new to Cairngorm framework.I want to use Local shared object in Cairngorm framework,I am confused where i have to create and where i will get data and how i can add to lso.If any example or suggestions to use Local shared object It is helpful for me.Thanks in Advance.RegardsNaresh
http://opensource.adobe.com/wiki/display/flexsdk/Mirroring+Component+DescriptionsThis document is described as: This document describes the expected behavior when layoutDirection="rtl" and direction="rtl". Most text alignment is controlled by the 'direction' property.Is this doc updated regularly? Seems, unless I'm overlooking something, for example, mx:TextInput now responds to a RTL setting. Anyone know who in Adobe owns this doc? I see a need to use it for a client.DK
Hello,I have some troubles with TLF (RichEditableText - editable) and Letterspacing/Kerning.Problem is, that I my application uses a different rendering-engine on the server-side. Textediting happens with a Flash/Flex Client displaying serverside stored layouts, mass-printing/spoolfile generating again is being done on the server side.Now Text looks terrible (currently most annoying when using Verdana , size 10pt). Even when typing the same word twice letterspacing of the two words looks (and is by one Pixel) diffferent.I could life with some differences happening here and there but the Layout and resulting Paragraph height it is a complete mess. Word wrapping accours on different words in almost every line compared to the serverside template-document.Last hope is that I am doing things wrong.Is this correct: 10 point fontsize equals 10 pixel fontsize in Flash (as flash.system.Capabilities always says DPI is 72)?Fonts being used are embedded in MXML style declaration.Thanks for a
This should be so simple, but as usual with Flash it's a complete nightmare that has taken me nearly 2 days to try and do using various 'solutions' thrown up by google, and to no avail.Ok, so enough venting of frustration, onto the problem...—I have 3 linked TLF text fields on stage, and am trying to load in external text from a .txt file. The first text field in the chain has an instance name (Box) which I target to load in the text with As3 like this...—var Text:URLLoader = new URLLoader(); Text.dataFormat = URLLoaderDataFormat.TEXT;//is this needed? Text.addEventListener(Event.COMPLETE,Loaded); Text.load(new URLRequest("external.txt"));function Loaded(event:Event):void{ //Box.text = Text.data; // Text flows between text fields, but obviously HTML tags show up as part of the
i create on stage TLF and i slice to 2 text fieldsi put text to TLF in actions tText.htmlText = "Some text...."if text is too much, text from 1 text field is not displayed in 2 text field. All is displayed only in 1 text fieldif i add text from tText.text is displayed in 1 and 2 text field.how to make to text with html tags displayed in 1 and 2 text field?
Hello. I know that paste operaion can be performed only by user interaction (via context menu or by cntrl+V combination). But there're some confusing description of the Event.PASTE type:'TextField objects always include Cut, Copy, Paste, Clear, and Select All commands in the context menu. You cannot remove these commands from the context menu for TextField objects. For TextField objects, selecting these commands (or their keyboard equivalents) does not generate clear, copy, cut, paste, or selectAll events. However, other classes that extend the InteractiveObject class, including components built using the Flash Text Engine (FTE), can dispatch these events.'So, somehow I can dispatch paste event and it's possible to insert text programmatically? But how?
Hello,We have created a swf for a given font (for e.g., Calibri.swf) which contains all the styles (Regular, Italic, Bold, BoldItalic).We have created a xml which lists the name of the font and the corresponding swf file path. The names from the xml are loaded into a combo box in the application.When we try to apply the selected font to a text in the text layout framework, it does not apply the same. It sets the font to default "Times" font.Following is a snippet of code to apply the font to the text:private function selectFont(fontXML:XML):void { var path:String = fontXML.@source; var myEvent:IEventDispatcher = styleManager.loadStyleDeclarations(FlexGlobals.topLevelApplication.url.substring(0,FlexGlobals.topLevelApplic
Is there any way to force the the paragraph terminator to not be on the same line as an InlineGraphicElement? Even if the graphic is wider than a page it still puts the terminator on the same line as the graphic. Most of the time I want it to work like this but I am running into a scenario where I really need ensure there is a textLine after a InlineGraphic and if I was able to have the line terminator on the line after the graphic everything will just work.Thanks,Joel Marks
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.