textFlow is missing in TextArea component

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

textFlow is missing in TextArea component

Serkan Taş
Hi,

I am using popup to show a content of a file and setting the "textFlow" attribute of TextArea component.

            protected function setLineNumbers():void {
                var flowComposer : StandardFlowComposer = StandardFlowComposer(mainTextField.textFlow.flowComposer);
                var absoluteIndex : int = mainTextField.selectionActivePosition;
                var lineIdx : int = flowComposer.findLineIndexAtPosition(absoluteIndex);
                lineNumbers.text = (lineIdx + 1) + "/" + mainTextField.textFlow.numChildren;
                //endOff.value = 5000;
            }


I have two questions :

1. Setting modal true does not make the popup modal, is it possible ?
2. TextArea in royale is missing textFlow. Is there any other option ?

Thanks,
Serkan
Reply | Threaded
Open this post in threaded view
|

Re: textFlow is missing in TextArea component

Alex Harui-2

Nobody has asked for it so far.  Feel free to implement it.

 

-Alex

 

From: Serkan Taş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 1:05 AM
To: "[hidden email]" <[hidden email]>
Subject: textFlow is missing in TextArea component

 

Hi,

I am using popup to show a content of a file and setting the "textFlow" attribute of TextArea component.

            protected function setLineNumbers():void {
                var flowComposer : StandardFlowComposer = StandardFlowComposer(mainTextField.textFlow.flowComposer);
                var absoluteIndex : int = mainTextField.selectionActivePosition;
                var lineIdx : int = flowComposer.findLineIndexAtPosition(absoluteIndex);
                lineNumbers.text = (lineIdx + 1) + "/" + mainTextField.textFlow.numChildren;
                //endOff.value = 5000;
            }


I have two questions :

1. Setting modal true does not make the popup modal, is it possible ?
2. TextArea in royale is missing textFlow. Is there any other option ?

Thanks,
Serkan

Reply | Threaded
Open this post in threaded view
|

Re: textFlow is missing in TextArea component

Serkan Taş
Which one ?




On Mon, Nov 25, 2019 at 7:22 PM +0300, "Alex Harui" <[hidden email]> wrote:

Nobody has asked for it so far.  Feel free to implement it.

 

-Alex

 

From: Serkan Taş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 1:05 AM
To: "[hidden email]" <[hidden email]>
Subject: textFlow is missing in TextArea component

 

Hi,

I am using popup to show a content of a file and setting the "textFlow" attribute of TextArea component.

            protected function setLineNumbers():void {
                var flowComposer : StandardFlowComposer = StandardFlowComposer(mainTextField.textFlow.flowComposer);
                var absoluteIndex : int = mainTextField.selectionActivePosition;
                var lineIdx : int = flowComposer.findLineIndexAtPosition(absoluteIndex);
                lineNumbers.text = (lineIdx + 1) + "/" + mainTextField.textFlow.numChildren;
                //endOff.value = 5000;
            }


I have two questions :

1. Setting modal true does not make the popup modal, is it possible ?
2. TextArea in royale is missing textFlow. Is there any other option ?

Thanks,
Serkan

Reply | Threaded
Open this post in threaded view
|

Re: textFlow is missing in TextArea component

Serkan Taş
In reply to this post by Alex Harui-2
Which one iş not implemented, both?




On Mon, Nov 25, 2019 at 7:22 PM +0300, "Alex Harui" <[hidden email]> wrote:

Nobody has asked for it so far.  Feel free to implement it.

 

-Alex

 

From: Serkan Taş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 1:05 AM
To: "[hidden email]" <[hidden email]>
Subject: textFlow is missing in TextArea component

 

Hi,

I am using popup to show a content of a file and setting the "textFlow" attribute of TextArea component.

            protected function setLineNumbers():void {
                var flowComposer : StandardFlowComposer = StandardFlowComposer(mainTextField.textFlow.flowComposer);
                var absoluteIndex : int = mainTextField.selectionActivePosition;
                var lineIdx : int = flowComposer.findLineIndexAtPosition(absoluteIndex);
                lineNumbers.text = (lineIdx + 1) + "/" + mainTextField.textFlow.numChildren;
                //endOff.value = 5000;
            }


I have two questions :

1. Setting modal true does not make the popup modal, is it possible ?
2. TextArea in royale is missing textFlow. Is there any other option ?

Thanks,
Serkan

Reply | Threaded
Open this post in threaded view
|

Re: textFlow is missing in TextArea component

Alex Harui-2

The subject of the email is ‘textFlow is missing in TextArea”, so that one.

 

From: Serkan Taş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 8:39 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: textFlow is missing in TextArea component

 

Which one iş not implemented, both?

 



On Mon, Nov 25, 2019 at 7:22 PM +0300, "Alex Harui" <[hidden email]> wrote:

Nobody has asked for it so far.  Feel free to implement it.

 

-Alex

 

From: Serkan Taş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 1:05 AM
To: "[hidden email]" <[hidden email]>
Subject: textFlow is missing in TextArea component

 

Hi,

I am using popup to show a content of a file and setting the "textFlow" attribute of TextArea component.

            protected function setLineNumbers():void {
                var flowComposer : StandardFlowComposer = StandardFlowComposer(mainTextField.textFlow.flowComposer);
                var absoluteIndex : int = mainTextField.selectionActivePosition;
                var lineIdx : int = flowComposer.findLineIndexAtPosition(absoluteIndex);
                lineNumbers.text = (lineIdx + 1) + "/" + mainTextField.textFlow.numChildren;
                //endOff.value = 5000;
            }


I have two questions :

1. Setting modal true does not make the popup modal, is it possible ?
2. TextArea in royale is missing textFlow. Is there any other option ?

Thanks,
Serkan


Reply | Threaded
Open this post in threaded view
|

Re: textFlow is missing in TextArea component

Alex Harui-2

Ah, I see where you asked an unrelated question about popup modal.  I thought popup modal was working.  It is a bug and should be fixed if it isn’t.  And you or anyone is welcome to work on that as well.

 

-Alex

 

From: Alex Harui <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 8:44 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: textFlow is missing in TextArea component

 

The subject of the email is ‘textFlow is missing in TextArea”, so that one.

 

From: Serkan Taş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 8:39 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: textFlow is missing in TextArea component

 

Which one iş not implemented, both?

 




On Mon, Nov 25, 2019 at 7:22 PM +0300, "Alex Harui" <[hidden email]> wrote:

Nobody has asked for it so far.  Feel free to implement it.

 

-Alex

 

From: Serkan Taş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 1:05 AM
To: "[hidden email]" <[hidden email]>
Subject: textFlow is missing in TextArea component

 

Hi,

I am using popup to show a content of a file and setting the "textFlow" attribute of TextArea component.

            protected function setLineNumbers():void {
                var flowComposer : StandardFlowComposer = StandardFlowComposer(mainTextField.textFlow.flowComposer);
                var absoluteIndex : int = mainTextField.selectionActivePosition;
                var lineIdx : int = flowComposer.findLineIndexAtPosition(absoluteIndex);
                lineNumbers.text = (lineIdx + 1) + "/" + mainTextField.textFlow.numChildren;
                //endOff.value = 5000;
            }


I have two questions :

1. Setting modal true does not make the popup modal, is it possible ?
2. TextArea in royale is missing textFlow. Is there any other option ?

Thanks,
Serkan



Reply | Threaded
Open this post in threaded view
|

Re: textFlow is missing in TextArea component

Serkan Taş
I did not think that you ignored mail body :)

Do I have to implement modal windows ?




On Mon, Nov 25, 2019 at 7:47 PM +0300, "Alex Harui" <[hidden email]> wrote:

Ah, I see where you asked an unrelated question about popup modal.  I thought popup modal was working.  It is a bug and should be fixed if it isn’t.  And you or anyone is welcome to work on that as well.

 

-Alex

 

From: Alex Harui <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 8:44 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: textFlow is missing in TextArea component

 

The subject of the email is ‘textFlow is missing in TextArea”, so that one.

 

From: Serkan Taş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 8:39 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: textFlow is missing in TextArea component

 

Which one iş not implemented, both?

 




On Mon, Nov 25, 2019 at 7:22 PM +0300, "Alex Harui" <[hidden email]> wrote:

Nobody has asked for it so far.  Feel free to implement it.

 

-Alex

 

From: Serkan Taş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 1:05 AM
To: "[hidden email]" <[hidden email]>
Subject: textFlow is missing in TextArea component

 

Hi,

I am using popup to show a content of a file and setting the "textFlow" attribute of TextArea component.

            protected function setLineNumbers():void {
                var flowComposer : StandardFlowComposer = StandardFlowComposer(mainTextField.textFlow.flowComposer);
                var absoluteIndex : int = mainTextField.selectionActivePosition;
                var lineIdx : int = flowComposer.findLineIndexAtPosition(absoluteIndex);
                lineNumbers.text = (lineIdx + 1) + "/" + mainTextField.textFlow.numChildren;
                //endOff.value = 5000;
            }


I have two questions :

1. Setting modal true does not make the popup modal, is it possible ?
2. TextArea in royale is missing textFlow. Is there any other option ?

Thanks,
Serkan



Reply | Threaded
Open this post in threaded view
|

Re: textFlow is missing in TextArea component

Serkan Taş
In reply to this post by Alex Harui-2
Ok, I got it. Thanks



On Mon, Nov 25, 2019 at 7:47 PM +0300, "Alex Harui" <[hidden email]> wrote:

Ah, I see where you asked an unrelated question about popup modal.  I thought popup modal was working.  It is a bug and should be fixed if it isn’t.  And you or anyone is welcome to work on that as well.

 

-Alex

 

From: Alex Harui <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 8:44 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: textFlow is missing in TextArea component

 

The subject of the email is ‘textFlow is missing in TextArea”, so that one.

 

From: Serkan Taş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 8:39 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: textFlow is missing in TextArea component

 

Which one iş not implemented, both?

 




On Mon, Nov 25, 2019 at 7:22 PM +0300, "Alex Harui" <[hidden email]> wrote:

Nobody has asked for it so far.  Feel free to implement it.

 

-Alex

 

From: Serkan Taş <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, November 25, 2019 at 1:05 AM
To: "[hidden email]" <[hidden email]>
Subject: textFlow is missing in TextArea component

 

Hi,

I am using popup to show a content of a file and setting the "textFlow" attribute of TextArea component.

            protected function setLineNumbers():void {
                var flowComposer : StandardFlowComposer = StandardFlowComposer(mainTextField.textFlow.flowComposer);
                var absoluteIndex : int = mainTextField.selectionActivePosition;
                var lineIdx : int = flowComposer.findLineIndexAtPosition(absoluteIndex);
                lineNumbers.text = (lineIdx + 1) + "/" + mainTextField.textFlow.numChildren;
                //endOff.value = 5000;
            }


I have two questions :

1. Setting modal true does not make the popup modal, is it possible ?
2. TextArea in royale is missing textFlow. Is there any other option ?

Thanks,
Serkan



Reply | Threaded
Open this post in threaded view
|

Re: textFlow is missing in TextArea component

Serkan Taş
Hi Alex,

I am getting compiler error below when started to work on the issue.

     [java] D:\dev\royale-emulation-works\github\royale-asjs\frameworks\projects\SparkRoyale\src\main\royale\spark\components\TextArea.as(505): col: 4 Error: Attempted access of inaccessible method setContent through a reference with static type TextArea.
     [java]
     [java]                     setContent(value);
     [java]                     ^
     [java]
     [java] D:\dev\royale-emulation-works\github\royale-asjs\frameworks\projects\SparkRoyale\src\main\royale\spark\components\TextArea.as(573): col: 11 Error: Attempted access of inaccessible method getTextFlow through a reference with static type TextArea.
     [java]
     [java]                     return getTextFlow();
     [java]                            ^
     [java]
     [java] D:\dev\royale-emulation-works\github\royale-asjs\frameworks\projects\SparkRoyale\src\main\royale\spark\components\TextArea.as(584): col: 4 Error: Attempted access of inaccessible method setTextFlow through a reference with static type TextArea.
     [java]
     [java]                     setTextFlow(value);
     [java]                     ^
     [java]


The method in TextArea calls method from base class

        public function set content(value:Object):void
        {
            // Of 'text', 'textFlow', and 'content', the last one set wins.
       
            setContent(value);
        }


From SkinnableTextBase :

    mx_internal function setContent(value:Object):void
    {       
        if (textDisplay)
        {
            var richEditableText:RichEditableText = textDisplay as RichEditableText;
           
            if (richEditableText)
            {
                richEditableText.content = value;
                textDisplayProperties = BitFlagUtil.update(
                    uint(textDisplayProperties), CONTENT_PROPERTY_FLAG, true);
            }
        }
        else
        {
            textDisplayProperties.content = value;
           
            // Of 'text', 'textFlow', and 'content', the last one set wins.  So
            // if we're holding onto the properties until the skin is loaded
            // make sure only the last one set is defined.
            textDisplayProperties.text = undefined;
            textDisplayProperties.textFlow = undefined;
        }

        // Generate an UPDATE_COMPLETE event.
        invalidateProperties();                   
     }



What is the root cause you think ?

Thanks,
Serkan

25.11.2019 19:48 tarihinde Serkan Taş yazdı:
Ok, I got it. Thanks



On Mon, Nov 25, 2019 at 7:47 PM +0300, "Alex Harui" <[hidden email]> wrote:

Ah, I see where you asked an unrelated question about popup modal.  I thought popup modal was working.  It is a bug and should be fixed if it isn’t.  And you or anyone is welcome to work on that as well.

 

-Alex

 

From: Alex Harui [hidden email]
Reply-To: [hidden email] [hidden email]
Date: Monday, November 25, 2019 at 8:44 AM
To: [hidden email] [hidden email]
Subject: Re: textFlow is missing in TextArea component

 

The subject of the email is ‘textFlow is missing in TextArea”, so that one.

 

From: Serkan Taş [hidden email]
Reply-To: [hidden email] [hidden email]
Date: Monday, November 25, 2019 at 8:39 AM
To: [hidden email] [hidden email]
Subject: Re: textFlow is missing in TextArea component

 

Which one iş not implemented, both?

 




On Mon, Nov 25, 2019 at 7:22 PM +0300, "Alex Harui" <[hidden email]> wrote:

Nobody has asked for it so far.  Feel free to implement it.

 

-Alex

 

From: Serkan Taş [hidden email]
Reply-To: [hidden email] [hidden email]
Date: Monday, November 25, 2019 at 1:05 AM
To: [hidden email] [hidden email]
Subject: textFlow is missing in TextArea component

 

Hi,

I am using popup to show a content of a file and setting the "textFlow" attribute of TextArea component.

            protected function setLineNumbers():void {
                var flowComposer : StandardFlowComposer = StandardFlowComposer(mainTextField.textFlow.flowComposer);
                var absoluteIndex : int = mainTextField.selectionActivePosition;
                var lineIdx : int = flowComposer.findLineIndexAtPosition(absoluteIndex);
                lineNumbers.text = (lineIdx + 1) + "/" + mainTextField.textFlow.numChildren;
                //endOff.value = 5000;
            }


I have two questions :

1. Setting modal true does not make the popup modal, is it possible ?
2. TextArea in royale is missing textFlow. Is there any other option ?

Thanks,
Serkan




Reply | Threaded
Open this post in threaded view
|

Re: textFlow is missing in TextArea component

Serkan Taş
Fixed !

Thanks,
Serkan

25.11.2019 22:31 tarihinde Serkan Taş yazdı:
Hi Alex,

I am getting compiler error below when started to work on the issue.

     [java] D:\dev\royale-emulation-works\github\royale-asjs\frameworks\projects\SparkRoyale\src\main\royale\spark\components\TextArea.as(505): col: 4 Error: Attempted access of inaccessible method setContent through a reference with static type TextArea.
     [java]
     [java]                     setContent(value);
     [java]                     ^
     [java]
     [java] D:\dev\royale-emulation-works\github\royale-asjs\frameworks\projects\SparkRoyale\src\main\royale\spark\components\TextArea.as(573): col: 11 Error: Attempted access of inaccessible method getTextFlow through a reference with static type TextArea.
     [java]
     [java]                     return getTextFlow();
     [java]                            ^
     [java]
     [java] D:\dev\royale-emulation-works\github\royale-asjs\frameworks\projects\SparkRoyale\src\main\royale\spark\components\TextArea.as(584): col: 4 Error: Attempted access of inaccessible method setTextFlow through a reference with static type TextArea.
     [java]
     [java]                     setTextFlow(value);
     [java]                     ^
     [java]


The method in TextArea calls method from base class

        public function set content(value:Object):void
        {
            // Of 'text', 'textFlow', and 'content', the last one set wins.
       
            setContent(value);
        }


From SkinnableTextBase :

    mx_internal function setContent(value:Object):void
    {       
        if (textDisplay)
        {
            var richEditableText:RichEditableText = textDisplay as RichEditableText;
           
            if (richEditableText)
            {
                richEditableText.content = value;
                textDisplayProperties = BitFlagUtil.update(
                    uint(textDisplayProperties), CONTENT_PROPERTY_FLAG, true);
            }
        }
        else
        {
            textDisplayProperties.content = value;
           
            // Of 'text', 'textFlow', and 'content', the last one set wins.  So
            // if we're holding onto the properties until the skin is loaded
            // make sure only the last one set is defined.
            textDisplayProperties.text = undefined;
            textDisplayProperties.textFlow = undefined;
        }

        // Generate an UPDATE_COMPLETE event.
        invalidateProperties();                   
     }



What is the root cause you think ?

Thanks,
Serkan

25.11.2019 19:48 tarihinde Serkan Taş yazdı:
Ok, I got it. Thanks



On Mon, Nov 25, 2019 at 7:47 PM +0300, "Alex Harui" <[hidden email]> wrote:

Ah, I see where you asked an unrelated question about popup modal.  I thought popup modal was working.  It is a bug and should be fixed if it isn’t.  And you or anyone is welcome to work on that as well.

 

-Alex

 

From: Alex Harui [hidden email]
Reply-To: [hidden email] [hidden email]
Date: Monday, November 25, 2019 at 8:44 AM
To: [hidden email] [hidden email]
Subject: Re: textFlow is missing in TextArea component

 

The subject of the email is ‘textFlow is missing in TextArea”, so that one.

 

From: Serkan Taş [hidden email]
Reply-To: [hidden email] [hidden email]
Date: Monday, November 25, 2019 at 8:39 AM
To: [hidden email] [hidden email]
Subject: Re: textFlow is missing in TextArea component

 

Which one iş not implemented, both?

 




On Mon, Nov 25, 2019 at 7:22 PM +0300, "Alex Harui" <[hidden email]> wrote:

Nobody has asked for it so far.  Feel free to implement it.

 

-Alex

 

From: Serkan Taş [hidden email]
Reply-To: [hidden email] [hidden email]
Date: Monday, November 25, 2019 at 1:05 AM
To: [hidden email] [hidden email]
Subject: textFlow is missing in TextArea component

 

Hi,

I am using popup to show a content of a file and setting the "textFlow" attribute of TextArea component.

            protected function setLineNumbers():void {
                var flowComposer : StandardFlowComposer = StandardFlowComposer(mainTextField.textFlow.flowComposer);
                var absoluteIndex : int = mainTextField.selectionActivePosition;
                var lineIdx : int = flowComposer.findLineIndexAtPosition(absoluteIndex);
                lineNumbers.text = (lineIdx + 1) + "/" + mainTextField.textFlow.numChildren;
                //endOff.value = 5000;
            }


I have two questions :

1. Setting modal true does not make the popup modal, is it possible ?
2. TextArea in royale is missing textFlow. Is there any other option ?

Thanks,
Serkan