Re: Migrating Enterprise Flex Application

2018-08-03 Thread Alex Harui
ResourceBundles should be commented out, but we missed that one.  I just 
commented it out and pushed the change.  Should be in the nightly build for the 
MXRoyale branch.

This kind of bug wouldn't matter if you use Ant or Maven.  Just use the one you 
prefer.

HTH,
-Alex

On 8/3/18, 2:00 AM, "chembali"  wrote:

Tried js/bin/mxmlc. Getting the following error now.


C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\src>C:\devenv\GitHub\royale-asjs/j
s/bin/mxmlc
-compiler.source-path=C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\
src C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\src/BlazeDsExample.mxml
Using Royale Compiler codebase: C:\devenv\GitHub\royale-asjs\js\bin\..\..
Using Royale SDK: C:\devenv\GitHub\royale-asjs
MXMLJSC

-sdk-js-lib=C:\devenv\GitHub\royale-asjs\frameworks\js\Royale\generated-sources
-compiler.source-path=C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\src
C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\src/BlazeDsExample.mxml
Error: Unable to resolve resource bundle 'rpc'


4.925945806 seconds.

Any ideas?



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Ce4ce53cb24ff46ca02c908d5f91f8608%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636688836157078382sdata=gwEW1x26lq8h%2Ff18BPS6IPShWj6QOYchM3zvaGDa7TU%3Dreserved=0




Re: [royale-asjs] branch feature/MXRoyale updated: Update BorderContainer.as

2018-08-03 Thread Alex Harui
Hi Alina,

This change should have caused the SparkRoyale build to fail due to a missing 
import.  Did it not fail for you?

Thanks,
-Alex

On 8/2/18, 11:38 PM, "alinak...@apache.org"  wrote:

This is an automated email from the ASF dual-hosted git repository.

alinakazi pushed a commit to branch feature/MXRoyale
in repository 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.apache.org%2Frepos%2Fasf%2Froyale-asjs.gitdata=02%7C01%7Caharui%40adobe.com%7Ce3d6cf283d6b4a840c8708d5f90bb740%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636688751073701368sdata=kntiK1qlFI9y6gHMivcMR9AaJy5d57mQ2cWoH3fbEyQ%3Dreserved=0


The following commit(s) were added to refs/heads/feature/MXRoyale by this 
push:
 new 86215d7  Update BorderContainer.as
86215d7 is described below

commit 86215d7be2c749f1c665954a108ca92c56ab8b33
Author: alinakazi 
AuthorDate: Fri Aug 3 11:38:22 2018 +0500

Update BorderContainer.as

borderStyle property added
---
 .../royale/spark/components/BorderContainer.as | 29 
+-
 1 file changed, 23 insertions(+), 6 deletions(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/BorderContainer.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/BorderContainer.as
index 44aadee..d302159 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/BorderContainer.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/BorderContainer.as
@@ -236,23 +236,40 @@ public class BorderContainer extends 
SkinnableContainer
 {
 super(); 
 }
-public function get borderColor():uint {
+   public function get borderColor():uint 
+   {
return 0;
 
}
-   public function set borderColor(val:uint):void {
+   public function set borderColor(val:uint):void 
+   {
}
-public function get borderWeight():Number {
+   public function get borderWeight():Number 
+   {
return 0;
 
}
-   public function set borderWeight(val:Number):void {
+   public function set borderWeight(val:Number):void
+   {
}
-   public function get dropShadowVisible():Boolean {
+   public function get dropShadowVisible():Boolean 
+   {
return false;
 
}
-   public function set dropShadowVisible(val:Boolean):void {
+   public function set dropShadowVisible(val:Boolean):void 
+   {
+   }
+   public function get borderStyle():String
+   {
+   if (GOOG::DEBUG)
+   trace("BorderContainer:borderStyle not implemented");
+   return "solid";
+   }
+   public function set borderStyle(value:String):void
+   {
+   if (GOOG::DEBUG)
+   trace("BorderContainer:borderStyle not implemented");
}
// private var _backgroundFill:IFill;
 





Build failed in Jenkins: royale-asjs_MXRoyale_MXTests #15

2018-08-03 Thread apacheroyaleci
See 


Changes:

[noreply] Update BorderContainer.as

[noreply] IDropInListItemRenderer.as Added

[noreply] Update TreeItemRenderer.as

[noreply] Update AdvancedDataGridItemRenderer.as

[aharui] add debug info for now

[aharui] comment out resource bundles for now

[aharui] forgot import

--
[...truncated 1.75 MB...]
[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

[mxmlc] using source file: 

Re: compc compiler error

2018-08-03 Thread Alex Harui
HI Bhau,

There is no mapping document at this time.  We are creating solutions as folks 
need them.  For sure flash.net.navigateToURL should be replaced by 
BrowserWindow.open.  References to DisplayObject/Sprite should be replaceable 
by references to IUIComponent.  There is an org.apache.royale.utils.Timer class.
There is org.apache.royale.net.URLLoader and URLRequest.  There is 
org.apache.royale.reflection.getQualifiedClassName and 
getQualifiedSuperclassName.

I would recommend commenting out code that isn't critical to your app that uses 
flash.*.* classes.  Then provide detail on how you use flash classes that are 
important to you so we can discuss best ways to handle those APIs.

Thanks,
-Alex

On 8/3/18, 8:58 AM, "bhau"  wrote:

Thanks Piotr and Alex. It helped and i moved little further.

Is there any mapping document for preferred replacement between Flex to
Royale classes? So far I have found following list of flash package classes.

1)

flash.globalization.NumberFormatter,flash.globalization.DateTimeStyle,flash.globalization.DateTimeFormatter,
2)

flash.events.TimerEvent,flash.events.IOErrorEvent,flash.events.ContextMenuEvent,
flash.events.FocusEvent
3)

flash.utils.IExternalizable,flash.utils.getQualifiedClassName,flash.utils.getQualifiedSuperclassName,flash.utils.getTimer,
4)

flash.display.Sprite,flash.display.DisplayObject,flash.display.Bitmap,flash.display.DisplayObjectContainer,flash.display.Graphics,flash.display.LoaderInfo,flash.display.GradientType,flash.display.StageDisplayState
5) flash.net.navigateToURL,flash.net.URLRequest,flash.net.URLLoader,
flash.net.registerClassAlias
6)

flash.text.TextField,flash.text.TextFormat,flash.text.StyleSheet,flash.text.TextFieldAutoSize,flash.text.TextLineMetrics,
7) flash.geom.Point,flash.geom.Rectangle
8) flash.ui.Keyboard,flash.ui.ContextMenu,flash.ui.ContextMenuItem,
9) flash.filters.DropShadowFilter,
10) flash.errors.IllegalOperationError,
11) flash.system.ApplicationDomain,flash.system.Capabilities,
12) flash.external.ExternalInterface,
 

DisplayObject is being used most of the time and I am thinking to replace it
with UIElement.

What would you suggest?

--Bhau




--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C07fea8abdfd04b7ad58308d5f959fe99%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636689087272829678sdata=%2Fe8vOnmbXZUgUhF5PocliXArmltWjf1TJf3RicCpwb8%3Dreserved=0




Re: Migrating Enterprise Flex Application

2018-08-03 Thread chembali
Thank you Carlos for the input. I am trying to migrate a sample BlazeDS
application ( which is working fine in Flex ) to Royale in order to identify
the steps/changes needed. Here is my orginal mxml that is working in Flex.


http://www.adobe.com/2006/mxml; layout="absolute">














  


I have changed the mx name space to
xmlns:mx="library://ns.apache.org/royale/mx in the above mxml. I want to use
the Royale JS compiler and compile the above mxml and identify the changes
required to get this sample app working in Royale. I hope you understand
what I am trying to accomplish here.





--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: Migrating Enterprise Flex Application

2018-08-03 Thread Carlos Rovira
Hi,

I don't have experience with using mxmlc directly, don't know your reasons,
but if you want to just build your project, maybe you can consider Maven
since I think abstracts you from that complexity. Check this link:

Build Apache Royale with Maven


If you follow the maven way you have the AMF RemoteObject projects examples
described here :

https://github.com/apache/royale-asjs/wiki/Apache-Royale-communication-with-AMF-and-RemoteObject

Bonus link to set up the environment quickly in Mac OS

Mac OS X Development Environment In 5'!



Hope that helps

Best

Carlos



2018-08-03 11:00 GMT+02:00 chembali :

> Tried js/bin/mxmlc. Getting the following error now.
>
> C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\src>C:\devenv\
> GitHub\royale-asjs/j
> s/bin/mxmlc
> -compiler.source-path=C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\
> src C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\src/BlazeDsExample.mxml
> Using Royale Compiler codebase: C:\devenv\GitHub\royale-asjs\js\bin\..\..
> Using Royale SDK: C:\devenv\GitHub\royale-asjs
> MXMLJSC
> -sdk-js-lib=C:\devenv\GitHub\royale-asjs\frameworks\js\
> Royale\generated-sources
> -compiler.source-path=C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\src
> C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\src/BlazeDsExample.mxml
> Error: Unable to resolve resource bundle 'rpc'
>
>
> 4.925945806 seconds.
>
> Any ideas?
>
>
>
> --
> Sent from: http://apache-royale-development.20373.n8.nabble.com/
>



-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Migrating Enterprise Flex Application

2018-08-03 Thread chembali
Tried js/bin/mxmlc. Getting the following error now.

C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\src>C:\devenv\GitHub\royale-asjs/j
s/bin/mxmlc
-compiler.source-path=C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\
src C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\src/BlazeDsExample.mxml
Using Royale Compiler codebase: C:\devenv\GitHub\royale-asjs\js\bin\..\..
Using Royale SDK: C:\devenv\GitHub\royale-asjs
MXMLJSC
-sdk-js-lib=C:\devenv\GitHub\royale-asjs\frameworks\js\Royale\generated-sources
-compiler.source-path=C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\src
C:\devenv\BlazeDSRemoteObjects\BlazeDsExample\src/BlazeDsExample.mxml
Error: Unable to resolve resource bundle 'rpc'


4.925945806 seconds.

Any ideas?



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Build failed in Jenkins: Royale-asjs_MXRoyale #49

2018-08-03 Thread apacheroyaleci
See 


Changes:

[noreply] IDropInListItemRenderer.as Added

[noreply] Update TreeItemRenderer.as

--
[...truncated 1.94 MB...]
 [java] ^
 [java] 
 [java] 
:
 col: 5 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] mx_internal var vsPreferredHeight:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 2 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public var x:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 2 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public var flex:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 2 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public var height:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 2 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public var max:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 2 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public var min:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 2 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public var preferred:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 2 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public var y:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 5 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public var resizableColumns:Boolean = true;
 [java] ^
 [java] 
 [java] 
:
 col: 5 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] mx_internal var _horizontalScrollPosition:Number = 0;
 [java] ^
 [java] 
 [java] 
:
 col: 5 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] mx_internal var _verticalScrollPosition:Number = 0;
 [java] ^
 [java] 
 [java] 
:
 col: 2 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public static var topLevelSystemManagers:Array
 [java] ^
 [java] 
 [java] 
:
 col: 5 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public static var 

Build failed in Jenkins: Royale-asjs_MXRoyale #48

2018-08-03 Thread apacheroyaleci
See 


Changes:

[noreply] Update BorderContainer.as

--
[...truncated 1.94 MB...]
 [java] ^
 [java] 
 [java] 
:
 col: 5 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] internal var columnWidths:Array /* of GridColumnInfo */;
 [java] ^
 [java] 
 [java] 
:
 col: 5 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] internal var rowHeights:Array /* of GridRowInfo */;
 [java] ^
 [java] 
 [java] 
:
 col: 5 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] internal var rowIndex:int = 0;
 [java] ^
 [java] 
 [java] 
:
 col: 5 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] internal var numGridItems:int;
 [java] ^
 [java] 
 [java] 
:
 col: 5 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] mx_internal var vsMinWidth:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 5 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] mx_internal var vsMinHeight:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 5 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] mx_internal var vsPreferredWidth:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 5 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] mx_internal var vsPreferredHeight:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 2 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public var x:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 2 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public var flex:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 2 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public var height:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 2 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public var max:Number;
 [java] ^
 [java] 
 [java] 
:
 col: 2 public var may not work in minified JS output.  Use getter/setter 
instead.
 [java] 
 [java] public var min:Number;
 [java] ^
 [java] 
 [java] 

Re: compc compiler error

2018-08-03 Thread Alex Harui
Hi Bhau,

org.apache.royale.events.Event should be in the nightly build of the MXRoyale 
branch.  I've been using it.  You can unzip the Core.swc (or CoreJS.swc) and 
verify.  Then make sure those SWCs are in the library-path.  They should be if 
you are using the default royale-config.xml.  If you are still having problems, 
show us what compiler options you are using.  The first lines of console output 
should echo the configuration.

The MXRoyale branch should contain some new classes that replace some of the 
flash classes.  There is an mx.display.Graphics to replace 
flash.display.Graphics, for example.  But for others, we want to eliminate 
usage, or design and use a more cross-platform API.  So tell us more about how 
you are using ApplicationDomain.  As a parameter to module loading, we'll 
probably just eliminate it for now.  In other usages, the Reflection.SWC should 
have most of the functionality.

For Capabilities, tell us more about what you are using from that class.  We 
might just make an mx.system.Capabilities.  But in other cases, 
flash.net.navigateToURL has been replaced by BrowserWindow.

HTH,
-Alex

On 8/2/18, 1:45 PM, "bhau"  wrote:

I think I found the issue with my configuration. 
I am working with version 0.9.3 which does not have some of emulated
components my application is using. However some of these missing emulated
components exist in another branch (MXRoyale). So I checked out this branch
code and linked my compiler with this. Newly added emulated components (like
MenuBar etc.) were picked up by compiler but it could not find event class.
When I revert back to 0.9.3 , it found event class but could not find newly
added component (which make sense).

Where can I find nightly build which includes latest emulated components?

--Bhau  



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C2fe71d4f286943af69a408d5f8b8eecc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636688395518311270sdata=plWbxhNrE%2B7XPr%2FeEdgqghpbloiHsX0EbvyDhU6uplU%3Dreserved=0