Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 63FE7112A9 for ; Thu, 3 Apr 2014 20:42:22 +0000 (UTC) Received: (qmail 17896 invoked by uid 500); 3 Apr 2014 20:42:21 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 17622 invoked by uid 500); 3 Apr 2014 20:42:21 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 17614 invoked by uid 99); 3 Apr 2014 20:42:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2014 20:42:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [165.212.64.23] (HELO gwo5.mbox.net) (165.212.64.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2014 20:42:14 +0000 Received: from gwo5.mbox.net (localhost [127.0.0.1]) by gwo5.mbox.net (Postfix) with ESMTP id 3g0GR219W4z1FXlyC; Thu, 3 Apr 2014 20:41:50 +0000 (UTC) X-USANET-Received: from gwo5.mbox.net [127.0.0.1] by gwo5.mbox.net via mtad (C8.MAIN.3.82G) with ESMTP id 498sDcupS0832Mo5; Thu, 03 Apr 2014 20:41:44 -0000 X-USANET-Routed: 5 gwsout-gwsd Q:gwsd X-USANET-Routed: 3 gwsout-vs Q:bmvirus X-USANET-GWS2-Service: gwsdout-archive True X-USANET-GWS2-Tenant: intralinks.com X-USANET-GWS2-Tagid: INTK Received: from D2DAG2B.d2.usa.net [165.212.117.30] by gwo5.mbox.net via smtad (C8.MAIN.3.95E) with ESMTPS id XID099sDcupS9227Xo5; Thu, 03 Apr 2014 20:41:44 -0000 X-USANET-Source: 165.212.117.30 OUT smatheson@intralinks.com D2DAG2B.d2.usa.net TLS X-USANET-MsgId: XID099sDcupS9227Xo5 Received: from D2DAG2A.d2.usa.net ([169.254.1.156]) by D2DAG2B.d2.usa.net ([10.117.2.122]) with mapi id 14.03.0174.001; Thu, 3 Apr 2014 20:38:52 +0000 From: Scott Matheson To: "users@flex.apache.org" Subject: RE:
in TextArea Thread-Topic:
in TextArea Thread-Index: AQHPTrU0Tdza/AM4Y0uWJ7Aoe5vRrpr/ZA2AgADu8jeAAATfAIAAA3mj Date: Thu, 3 Apr 2014 20:38:52 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [92.25.76.137] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org thanks, that interesting and works give me a direction, unfortunialty not = what i want to achieve maybe i am starting from the wrong place, i want text that the student can = click, on, each click plays a voice recording i achieve this by add each sentence s a ________________________________________ From: omuppi1@gmail.com [omuppi1@gmail.com] on behalf of OmPrakash Muppiral= a [bigosmallm@gmail.com] Sent: Thursday, April 03, 2014 9:23 PM To: users@flex.apache.org Subject: Re:
in TextArea That's interesting. Here is how I tested this hack and and does seem to work for me: Using this textflow xml: sentence1 = sentence2 = sentence3 In the online TLF editor here [1], click on the 'Markup...' button. In the panel that shows up, copy and paste the above textflow xml. Then click 'Import'. The end result seems to be what you wanted. You may have to adapt this to your use workflow somehow. Thanks, Om [1] http://www.adobe.com/devnet-apps/tlf/demo/ On Thu, Apr 3, 2014 at 1:10 PM, Scott Matheson wr= ote: > Om > I am an old fashioned hacker, :) so did i undeeratsnd you suggestion= ? > i tried this with out any lic > > var linkWrapper:LinkElement =3D new LinkElement(); > linkWrapper.addEventListener(FlowElementMouseEvent.MOUSE_UP, > clickActionHandle(model.clip)); > var sentence:SpanElement =3D new SpanElement(); > > var ss:String =3D " Lorem ... diam. Morbi ... diam. Morbi ... > vitae"; > > sentence.text =3D ss; > > > linkWrapper.addChild(sentence); > paragraphArea.addChild(linkWrapper); > > > i just end up with the . in the textArea > > > > > > > > > > ________________________________________ > From: omuppi1@gmail.com [omuppi1@gmail.com] on behalf of OmPrakash > Muppirala [bigosmallm@gmail.com] > Sent: Thursday, April 03, 2014 6:51 AM > To: users@flex.apache.org > Subject: Re:
in TextArea > > According to the docs [1] the breakelement gets converted into newline > character and hence does not appear in TextFlow markup. > > As a hack, you can try inserting where you want a
> Again, if you export the markup, the will get replaced by a newline > character. But at least your display would look like how you want. > > Thanks, > Om > > [1] http://blogs.adobe.com/tlf/category/tlf > > On Wed, Apr 2, 2014 at 1:50 PM, Scott Matheson >wrote: > > > Hi > > I am trying to build a Paragraph from sentences, > > > > this builds the Paragraph (from am XML file and itemRender) > > > > the build function looks like > > > > > > var linkWrapper:LinkElement =3D new LinkElement(); > > > > var sentence:SpanElement =3D new SpanElement(); > > > > sentence.styleName =3D 'linkStyle'; > > > > sentence.textDecoration =3D TextDecoration.NONE; > > > > sentence.text =3D model.text + " "; > > > > linkWrapper.addChild(sentence); > > > > paragraphArea.addChild(linkWrapper); > > > > > > > > Layout > > > > > > > > > > > > > > > > > > > > > > > > > > > I get > > > > > > sentence1 > > > > sentence2 > > > > sentence3 > > > > > > > > my problem is how to i add a
in to the Paragraph and end up with > > > > > > sentence1 > > > > > > sentence2 > > > > > > sentence3 > > > > > > > > it would be good if the input text model.text could be > > "sentence1
sentence2
sentence3" > > > > > > > > > > > > ________________________________ > > > > Disclaimer: This electronic mail and any attachments are confidential a= nd > > may be privileged. If you are not the intended recipient, please notify > the > > sender immediately by replying to this email, and destroy all copies of > > this email and any attachments. Thank you. > > > > ________________________________ > > Disclaimer: This electronic mail and any attachments are confidential and > may be privileged. If you are not the intended recipient, please notify t= he > sender immediately by replying to this email, and destroy all copies of > this email and any attachments. Thank you. > ________________________________ Disclaimer: This electronic mail and any attachments are confidential and m= ay be privileged. If you are not the intended recipient, please notify the = sender immediately by replying to this email, and destroy all copies of thi= s email and any attachments. Thank you.