『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
Revision: 9228Author: aharui@adobe.comDate: 2009-08-11 11:59:47 -0700 (Tue, 11 Aug 2009)Log Message:***********Fix off-screen mouse events in AIR.QE Notes: NoneDoc Notes: NoneBugs: SDK-21453Reviewer: darrelltests: checkintestsTicket Links:************ http://bugs.adobe.com/jira/browse/SDK-21453Modified Paths:************** flex/sdk/branches/3.x/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as
Seems that FlexUnit 4 passes a method marked with [Test(async)] even if inside it there is a real call to a RemoteObject using AsyncToken. The code looks like this:[Test(async)] public function testCreateProject():void { var responder:IResponder = Async.asyncResponder( this, new TestResponder( verifyNewProjectResult, verifyNewProjectFault ), 5000 ); var token:AsyncToken = remoteObject.createProject(); token.addResponder( responder ); }On the FlexUnit4 framework test cases here http://opensource.adobe.com/svn/opensource/flexunit/branches/4.x/FlexUnit4Test/src/flexUnitTests/flexUnit4/suites/frameworkSuite/cases/TestAsynchronous.asthere is a method that used the AsyncToken and TestResponder "testAyncResponderFaultWithTestResponder", but what happens there is not actually async as the result is sent right on the method scope with the token.applyResult. Actually
Hello,var source:String = '<flow:TextFlow lineBreak="toFit" xmlns:flow="http://ns.adobe.com/textLayout/2008"><flow:p><flow:span>Testttttt</flow:span></flow:p></flow:TextFlow>';textFlow = TextFilter.importToFlow(new XML(source), TextFilter.TEXT_LAYOUT_FORMAT);<s:RichEditableText id="rt" content="{textFlow}"/> dont worksor<s:RichEditableText id="rt" content="little test"/> dont worksif the property content is set the problem occurs if the property text is set the problem does not occur<s:RichEditableText id="rt" text="little test"/> worksThanks,
Revision: 9205Author: gauravj@adobe.comDate: 2009-08-10 11:35:20 -0700 (Mon, 10 Aug 2009)Log Message:***********Adding BindableExtension to asdoc. QE notes: Some baselines will need to be updated.Doc notes: NoneReviewed By: PaulBugs: SDK-19341, SDK-17001, SDK-22595Tests run: checkintestsIs noteworthy for integration: NoTicket Links:************ http://bugs.adobe.com/jira/browse/SDK-19341 http://bugs.adobe.com/jira/browse/SDK-17001 http://bugs.adobe.com/jira/browse/SDK-22595Modified Paths:************** flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableExtension.java flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableProperty.vm flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableSecondPassEvaluator.java flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeExtension.java flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEva
Hello,I would like to now how to proceed to test a delegate class that is taking an IResponder as method parameter.For exemple :LoginDelegate.as (simplified version) :public function login( responder : IResponder, username : String, password : String ) : void{var s : SomeService = new SomeService();s.addEventListener( ResultEvent.RESULT, responder.result );s.addEventListener( FaultEvent.FAULT, responder.fault );s.login( username, password );}As you can see, the delegate communicate with some backend service and then calls the provided responder methods.I tried to use Async.asyncResponder without luck:[Before(async)]public function runBeforeAsyncTest():void{var d : LoginDelegate = new LoginDelegate();var responder : Responder = new Responder(result,fault);Async.asyncResponder(this, responder, 5000);d.login(responder, "someuser", "somepass");}public function result(data:Object):void{trace("result");}public function fault(info:Object):void{trace("fault");}[Test]public function testLoginFa
Revision: 9180Author: aharui@adobe.comDate: 2009-08-07 15:11:43 -0700 (Fri, 07 Aug 2009)Log Message:***********When another popup is going away as the alert is going up, the Alert can get validated inside of addPopUp and its centering logic never got the event it expected.add the event listener earlier so it is ready if we get validated inside addPopUpQE Notes: versioning/baselines/mp_alert_mask_compatible.png needs updating. I think the current baseline is incorrect.Doc Notes: NoneBugs: SDK-22819Reviewer: darrelltests: checkintests mustella/components/alertTicket Links:************ http://bugs.adobe.com/jira/browse/SDK-22819Modified Paths:************** flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as
I am trying to change the lineBreak explicitly but the RichEditableText not allowed because hostFormat of TextFlow refers to a CSSTextLayoutFormat which is read onlyExemplevar myTextFlow:TextfLow = TextFilter.importToFlow(new XML(mySource), TextFilter.TEXT_LAYOUT_FORMAT);<s:RichTextEditor content="{myTextFlow}" width="200" id="rt"/>....myTextFlow.lineBreak = LineBreak.EXPLICIT;textFlow.flowComposer.updateAllControllers();I tried this too, but failedAnd also realizedmyTextFlow.hostFormat.lineBreak = LineBreak.EXPLICIT; // i think becouse read onlyand debuging above line this return that myTextFlow.hostFormat is a CSSTextLayoutFormat (is read only).so how do I proceed? Thanks, sorry my english,
Prior to merging with Flex SDK, there was a separate changelog for TLF.Is there a place where I can peek at TLF changelog now?Thank you.
I believe you guys may have some miss information in your sample files or the beer I have consumed this evening has comprised my comprehensionfaculties.I'm trying to test out the TLF sample files in Flex 3.2 and 3.3 however I am getting compiler errors. I may be missing a .swc that the instructions didn't mention or you may have some outdated references in your sample code.The sample files I downloaded and readme are here:http://opensource.adobe.com/wiki/display/tlf/Text+Layout+FrameworkThe readme suggest that the samples are compatible with Flex 3.2 and indeed give instructions for how to get it working. However, after following the instructions (and figuring out a few of the ambiguous steps) I was able to get almost everything working except a few small things like compiling and actually running the sample. 😃When I try to compile I am getting the following errors from the SimpleEditor example (the only project I am using):Unable to find:flashx.textLayout.conversion.TextConver
I am new to TLF. From what I understand textFlow is simply a data model. It didn't make sense to me that why multiple RichEditableText instances cannot share the same textFlow.<?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" creationComplete="onCreationComplete()"> <fx:Script> <![CDATA[ import spark.primitives.RichEditableText; import flashx.textLayout.conversion.TextConverter; import flashx.textLayout.elements.TextFlow; &nbs
Hi,I use TLF to render Arabic text and this looks fine. But when I set the alpha (using textAlpha) then I can see where Arabic characters overlap at the point where they join. At the joins the characters are rendered on top of each other and this results in a join that is less transparent than the other parts of the character. (I've attached a screen grab of an example of this situation.)I've played around with the ligature level and kerning but this doesn't solve the overlapping parts of the joins. Is thre a way to fix this?Thanks Marco.
Is there any way to get a SpanElement's background color to include the leading, rather than just extend from ascent to descent. Like this:This is some text.This is another line of text.
Can PrintJob be used to print content created using TLF? Will the content print exactly how they its displayed in Flash Player?Michael Ramirez
When I apply a link using the EditManager, my markup looks like this for example:<TextFlow xmlns="http://ns.adobe.com/textLayout/2008"><p><span>some </span><a href="http://www.adobe.com"><span>test</span></a><span> link</span></p></TextFlow>Then when I want to remove the link I select the link and do this as recommended in the docs:editManager.applyLink(null, null, true);Then the markup looks like this:<TextFlow xmlns="http://ns.adobe.com/textLayout/2008"><p><span>some </span><a><span>test</span></a><span> link</span></p></TextFlow>All that has happend is that the href attribute of the <a> tag has been stripped. Now because I have a config.defaultLinkNormalFormat defined for my links the text inside the left over <a> tag still has a different color.This doesn't seem right, there has to be a better way to remove links (including the
Hi all,I'm still figuring out the TLF and how it works so my question might seem dumb to some but any help would be great.I'm making a RTE because I need access to a TextFlow when the user is done editing the text. It wasn't obviouse that the halo RTE could do that so I'm making my own.The problem I'm running in to is that a user can select a range of text and apply something like italics to it. But if they don't have a range selected, say for example they just want to start off typing in italics, then how would I do that?I've tried doing this and it works for a range but not anything elsevar textfmt:TextLayoutFormat = rte.getFormatOfRange(null, rte.selectionAnchorPosition, rte.selectionActivePosition);textfmt.fontStyle = (textfmt.fontStyle == FontPosture.ITALIC) ? FontPosture.NORMAL : FontPosture.ITALIC;rte.setFormatOfRange(textfmt, rte.selectionAnchorPosition, rte.selectionActivePosition);I also tried this when there wasn't a range selected and it also didn't workvar f:TextLayoutForm
hi.i don't know whether i found the source file..i downloaded the "flex_sdk_4.0.0.7219.zip"and the path of the "textLayout.swc" is "frameworks/libs"..many .swc files and an "air" folder and a "player" folder in this folder..that's the true file?i wanna use it with the Flash CS4 Profressionalbut when i published the flash file..then compiler shows me many errors..please help...and an advanced thanks..Abel Lee
I've simplified the creation and deletion calls and used a generic item. In my before method, I call Async.handleEvent to wait for PropertyChangeEvents, but this only waits for the first one. My problem lies in the fact that ItemManager is an IEventDispatcher that sends multiple property change events, but I need to wait for the specific event with the property "item". However, when I call Async inside the handler, it does not keep the Test method from running, Before assumes that it's Async responsibilities have been fulfilled and launches the next stage of tests. How can I keep Before from moving on until an event with a specific property has been received?public class Test { private static const TIME_OUT:int = 3000; [Before(async)] public function runBeforeEveryTest() : void&
If you want to run many test suite class in an order , you can use the following way which i found it useful for my test cases.my main master suite looks like this package com.tt.vl.testcase.svc1.testsuite{ [Suite] [RunWith("org.flexunit.runners.Suite")] public class MasterSuite { public var t1:TestSuite1; public var t2:TestSuite2; public var t3:TestSuite3; }} The changes i made in child suite is that i included the order tag in all my child suite in a orderly way i want it to execute package com.tt.vl.testcase.svc1.testsuite{ import com.tt.vl.testcase.svc1.cases.*; [Suite(order=1)] [RunWith("org.flexunit.runners.Suite")] public class TestSuite1 { public var a:Test1; }} package com.tt.vl.testcase.svc1.testsuite{ import com.tt.vl.testcase.svc1.cases.*; [Suite(order=2)] [RunWith("org.flexunit.runners.Suite")] public class TestSuite2 { public var a:Test2; }} package com.tt.vl.testcase.sv
Hello guys,I have 3 test class out of which 2 test class is fully passed. But the class which fails has 2 methods. In the failed class 1 method is failed and 1 is passed, but when i check in the flexunit UI it says for the failed class as Result: 2 of 3 passed. But there are only 2 methods, It counts that as passed as well as failed. Can anyone tell me the reason. For reference i am attaching the screeshot.Thanks in advance.Rupam
I am looking for a method to determine if there is still more text beyond what is displayed by the last controller in a text flow. I do not want to display it only know if it exists programmatically.
HiI don't manage to use the exception handling feature in FlexUnit 4.* When I add the [Test(expects="myError")] before a test which does NOT throw an error, the test does not fail.* When I add the [Test(expects="myError")] before a test which throws a myError, the test fails when the error appears. Yet if I use a try/catch I can check that the catched error is of type myError.
Revision: 9049Author: gauravj@adobe.comDate: 2009-08-04 06:18:35 -0700 (Tue, 04 Aug 2009)Log Message:***********Accepting patch submitted by Nate Beck. QE notes: NoneDoc notes: NoneBugs: SDK-22189Tests run: checkintestsIs noteworthy for integration: NoTicket Links:************ http://bugs.adobe.com/jira/browse/SDK-22189Modified Paths:************** flex/sdk/branches/3.x/setup.sh
Revision: 9029Author: aharui@adobe.comDate: 2009-08-03 16:03:01 -0700 (Mon, 03 Aug 2009)Log Message:***********Adjust the way RET gets its windowActivate/deactivate events. Also adjust the way SkinnableContainer handles the temporary contentGroup when the main contentGroup gets created.QE Notes: NoneDoc Notes: NoneBugs: SDK-22418, SDK-22179Reviewer: CoreyAPI Change: NoIs noteworthy for integration: Notests: checkintests mustella/Managers/FocusManager mustella/gumbo/components/TextInput,TextAreaTicket Links:************ http://bugs.adobe.com/jira/browse/SDK-22418 http://bugs.adobe.com/jira/browse/SDK-22179Modified Paths:************** flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as
Hello, was curious if anyone had any insight about making a TextFlow create lines in the form of any shape other than a rectangle, i know TextLineFactory only takes a Rectangle, and i also know you can make shapes out of text by setting a bunch of DisplayObjectContainerController in desired positions, but what i can not find is anyway to tell text to create lines using a vector shape or anything like the such, i would love to be able to drawl a spite and tell my textFlow to use it's bounds when creating lines. If this can't be done with the framework i may end up generating DisplayObjectContainerControllers using some cpu intensive hit tests on an object, but i don't want to go that route if i am just missing something the TextFramework will allow me to do now or after beta.
Hi, I have library project which built on flex 2.0, i converted in to 3.0 with flex sdk (flex_sdk_3.3.0.4852 version). Library project successfully build with flex 3.3.0.4852 version and genereated swc (libraryXX.swc), When runnning my application with libraryXX.swc(deployed in tomcat 5.5) with http://localhost:8080/app - i have no error, But when i run same application with http://127.0.0.1/app am getting following verify error.Please Let me know how to solve this issue..ERROR:VerifyError: Error #1053: Illegal override of lockedRowCount in mx.controls.dataGridClasses.DataGridBase. at flash.display::MovieClip/nextFrame() at mx.managers::SystemManager/deferredNextFrame() at mx.managers::SystemManager/preloader_initProgressHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.preloaders::Pr
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.