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

Android için Outlook <https://aka.ms/ghei36>'u edinin



On Mon, Nov 25, 2019 at 7:47 PM +0300, "Alex Harui" <[email protected] <mailto:[email protected]>> 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 <[email protected]>
    *Reply-To: *"[email protected]" <[email protected]>
    *Date: *Monday, November 25, 2019 at 8:44 AM
    *To: *"[email protected]" <[email protected]>
    *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ş <[email protected]>
    *Reply-To: *"[email protected]" <[email protected]>
    *Date: *Monday, November 25, 2019 at 8:39 AM
    *To: *"[email protected]" <[email protected]>
    *Subject: *Re: textFlow is missing in TextArea component

    Which one iş not implemented, both?

    Android için Outlook
    
<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36&data=02%7C01%7Caharui%40adobe.com%7C79ab18b237e24760e9ad08d771c6c32c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637102970801771514&sdata=KjL3yiVQYGr67sfEZEYNV09JTCAofnRmV1ZkzANN0bY%3D&reserved=0>'u
    edinin




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

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

        -Alex

        *From: *Serkan Taş <[email protected]>
        *Reply-To: *"[email protected]" <[email protected]>
        *Date: *Monday, November 25, 2019 at 1:05 AM
        *To: *"[email protected]" <[email protected]>
        *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 via email to