Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EC69B10124 for ; Mon, 9 Feb 2015 09:22:36 +0000 (UTC) Received: (qmail 22209 invoked by uid 500); 9 Feb 2015 09:22:37 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 22182 invoked by uid 500); 9 Feb 2015 09:22:36 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 22172 invoked by uid 99); 9 Feb 2015 09:22:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2015 09:22:36 +0000 Date: Mon, 9 Feb 2015 09:22:36 +0000 (UTC) From: "Alessandro Palombaro (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLEX-34744) TextFlowElement parent nulled when addChild method used via parent reference MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-34744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alessandro Palombaro updated FLEX-34744: ---------------------------------------- Description: Example application below. This worked fine in version 4.12.1 {code:xml}

Hello World.

{code} was: Example application below. This worked fine in version 4.12.1 {code:xml}

Hello World.

{code} > TextFlowElement parent nulled when addChild method used via parent reference > ---------------------------------------------------------------------------- > > Key: FLEX-34744 > URL: https://issues.apache.org/jira/browse/FLEX-34744 > Project: Apache Flex > Issue Type: Bug > Affects Versions: Apache Flex 4.14.0 > Reporter: Alessandro Palombaro > > Example application below. This worked fine in version 4.12.1 > {code:xml} > > xmlns:s="library://ns.adobe.com/flex/spark" > applicationComplete="_this_applicationCompleteHandler(event)" frameRate="60" > backgroundAlpha="0"> > > import flashx.textLayout.elements.FlowElement; > import flashx.textLayout.elements.SpanElement; > import flashx.textLayout.elements.TextFlow; > import mx.events.FlexEvent; > import spark.utils.TextFlowUtil; > protected function _this_applicationCompleteHandler(event:FlexEvent):void > { > var flow:TextFlow = TextFlowUtil.importFromXML(xml); > var span:SpanElement = new SpanElement(); > var target:FlowElement = flow.getElementByID("SpanElementId") as SpanElement; > // target.parent is instance of ParagraphElement > trace("EngineTesting._this_applicationCompleteHandler", target.parent); > target.parent.addChild(span); > // target.parent has been set to null when it should still reference the ParagraphElement > trace("EngineTesting._this_applicationCompleteHandler", target.parent); > richText.textFlow = flow; > } > ]]> > > > >
>

>

Hello World.

>
>
>
> > > >
> {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)