Hi Serkan,

I’m not sure where you found the source for ConcreteDataService.  I didn’t 
think the code in fds.swc was open source.

Regarding your specific question, when I look at the emulation for AsyncToken, 
setResult is already mx_internal and not private.  Does ConcreteDataService 
have:

import mx.core.mx_internal;
use namespace mx_internal;

That said, the key question for you is what part of FDS you are using?  We have 
RemoteObject working with AMF, but I think FDS has other protocols.  If you 
didn’t go with Royale, what would you have done to access the server?  Whatever 
that is, you should put that together and wrap it in Royale APIs and replace 
fds.swc.

Thanks,
-Alex

From: Serkan Taş <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Tuesday, November 6, 2018 at 1:17 PM
To: "[email protected]" <[email protected]>
Subject: flex access modifier and usage within library

Hi,

I extracted the sources of fds.swc and library class ConcreteDataService.as 
uses method mx_internal function setResult(newResult:Object):void .

public function applyChangedItems(changedItems:ChangedItems) : AsyncToken
      {
         var applyToken:AsyncTokenChain = null;
         var refreshAllLocalFills:Function = function():void
         {
            var currDataList:DataList = null;
            for each(currDataList in _dataLists.toArray())
            {
               applyToken.addPendingInvocation(refreshLocalFill,currDataList);
            }
         };
         applyToken = new AsyncTokenChain();
         applyToken.setResult(changedItems);

According to the definition of the method in mx.rpc.AsyncToken the function is 
private and i can not compile the fds.

In flex, the fsd.swc is included in my project and everything is working fine. 
How can this happen any idea ?

Thanks,
Serkan

Reply via email to