Isn’t it being called by the databinding system?  If so, it shouldn’t be 
causing any problems.

-Alex

From: Serkan Taş <serkan....@likyateknoloji.com>
Reply-To: "users@royale.apache.org" <users@royale.apache.org>
Date: Tuesday, March 10, 2020 at 11:32 PM
To: "users@royale.apache.org" <users@royale.apache.org>
Subject: Re: MXAdvancedDataGridItemRenderer XML parsing

It is simple Alex, static function is called before the data binding.



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


On Wed, Mar 11, 2020 at 8:38 AM +0300, "Alex Harui" 
<aha...@adobe.com<mailto:aha...@adobe.com>> wrote:
I have no idea what question/problem you have.  Please re-state it.

-Alex

From: Serkan Taş <serkan....@likyateknoloji.com>
Reply-To: "users@royale.apache.org" <users@royale.apache.org>
Date: Tuesday, March 10, 2020 at 10:28 PM
To: "users@royale.apache.org" <users@royale.apache.org>
Subject: Fwd: MXAdvancedDataGridItemRenderer XML parsing


Just to remind, may be lost during thread....
9.03.2020 22:15 tarihinde Serkan Taş yazdı:
Forgot to add the note : No exception thrown anyway for the null data.
9.03.2020 22:12 tarihinde Serkan Taş yazdı:
Hi Alex,

In first stop it is null but I sent you the result of the second stop after 
resuming the execution.

So to make it clear here is the first call and call stack:

[cid:image001.png@01D5F776.973EE220]

[cid:image002.png@01D5F776.973EE220]

For the image display as far as i know the images are loaded from url as a 
class :

Here is the code pieces for displaying sample clock image.

private static var _clock1:String = '/images/clock1.png';

                statuImageList = new ArrayList();

                statuImageList.addItem(clock1)
                statuImageList.addItem(kilit)
                statuImageList.addItem(kosu2)
                statuImageList.addItem(ok2)
                statuImageList.addItem(error)
                statuImageList.addItem(timeout)
                statuImageList.addItem(skip)
                statuImageList.addItem(stop)
                statuImageList.addItem(pause)
                statuImageList.addItem(disabled)
                statuImageList.addItem(warning)

for example to get clock1 image

public static function get clock1():String
        {
            return _clock1;
        }


through function :

        public static function resolveStatus(data:Object):Class {

            var statu:int = XML(data).visualParams.statu;

            // Alert.show("Vparams : " + data.visualParams);
            // Alert.show("statu:" + statu + " image:" + 
imageList.getItemAt(statu));

            return statuImageList.getItemAt(statu) as Class;
        }

I'am not sure if they are replaceable with SVG or Unicode symbols technically. 
But they are used just to make the gui more user friendly and to have better 
look&feel.

And hey are fıunctional, mean you can click on the images to send actions about 
the jobs : to stop suspend or run for example.

Serkan.
9.03.2020 08:49 tarihinde Alex Harui yazdı:
Hi Serkan,

Looks like the call sequence is fine.  The “data” is not null in the screenshot 
below.  In your previous email, it may be that some other binding logic ran 
that expression early, but that should be a caught exception.  If that isn’t 
true, show us the call stack for that exception.

But given no image is being displayed, further investigation is needed to 
determine the problem.  What is ImageContainer?  What does it contain?  The bit 
of JS code you attached  looks like it might have contained embedded images.  
Royale doesn’t currently support embedded images.  If the Flex app was using 
embedded images, let’s have a discussion about what to replace it with.  It 
will depend on what the images are.  If they can be replaced by SVG or Unicode 
symbols that will be best.

HTH,
-Alex





Reply via email to