RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-10 Thread Allen YANG
Hi Piotr,

Thank you so much!  This works very nicely.
Following your instruction I was able to build and run the SearchBox 
successfully.
I will study your codes and the files that guide the build process in more 
details tonight. This is very helpful.

Hi Josh: to make sure I have the latest version of asconfigc, I also ran "npm 
install -g asconfigc".

Best Regards,
Allen


-Original Message-
From: piotrz [mailto:piotrzarzyck...@gmail.com]
Sent: Monday, July 10, 2017 4:24 PM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

I just look into your project and change it in order to give you starting 
point. [1]

1) You was not able to properly build cause you didn't have some classes:
- SearchClass - You did add it but it was not enough
- ISearchable - It was missing I've added it as a mock up
2) I was not able to run build through VSCode: It constantly reported:
"Unknown compiler option: targets"

"targets": [
"JSFlex"
]

So in that case I've changed tasks.json in order to launch maven build through 
VSCode - take a look into that file and still use VSCode.

3) I've changed pom.xml - cause you are working on project SampleSearchBox I 
had to change:

SampleSearchBox

Point main class: SampleSearchBox.mxml

4) If you hit CTRL + SHIFT + B - You will run maven build (run:
target\javascript\bin\js-debug\index.html")
5) If you hit F5 - you will run Maven build + run application in debugging mode 
in Chrome (launch.json allows you to do that)
6) If you would like to use some other module from FlexJS for example express - 
go to pom.xml and add dependency :)

Let me know whether it is working for you.

[1] https://1drv.ms/u/s!ApVpLyjpHDC20RLgviwW9Uvdzva3

Thanks, Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p63054.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-10 Thread piotrz
Thanks Josh it's working! :)

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p63056.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-10 Thread Josh Tynjala
> I was not able to run build through VSCode: It constantly reported:
"Unknown compiler option: targets"

You probably have an old version of asconfigc installed on your system. Run
the following command to update:

npm install -g asconfigc

- Josh

On Mon, Jul 10, 2017 at 1:23 PM, piotrz  wrote:

> Hi Allen,
>
> I just look into your project and change it in order to give you starting
> point. [1]
>
> 1) You was not able to properly build cause you didn't have some classes:
> - SearchClass - You did add it but it was not enough
> - ISearchable - It was missing I've added it as a mock up
> 2) I was not able to run build through VSCode: It constantly reported:
> "Unknown compiler option: targets"
>
> "targets": [
> "JSFlex"
> ]
>
> So in that case I've changed tasks.json in order to launch maven build
> through VSCode - take a look into that file and still use VSCode.
>
> 3) I've changed pom.xml - cause you are working on project SampleSearchBox
> I
> had to change:
>
> SampleSearchBox
>
> Point main class: SampleSearchBox.mxml
>
> 4) If you hit CTRL + SHIFT + B - You will run maven build (run:
> target\javascript\bin\js-debug\index.html")
> 5) If you hit F5 - you will run Maven build + run application in debugging
> mode in Chrome (launch.json allows you to do that)
> 6) If you would like to use some other module from FlexJS for example
> express - go to pom.xml and add dependency :)
>
> Let me know whether it is working for you.
>
> [1] https://1drv.ms/u/s!ApVpLyjpHDC20RLgviwW9Uvdzva3
>
> Thanks, Piotr
>
>
>
> -
> Apache Flex PMC
> piotrzarzyck...@gmail.com
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-question-about-
> porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p63054.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-10 Thread piotrz
Hi Allen,

I just look into your project and change it in order to give you starting
point. [1]

1) You was not able to properly build cause you didn't have some classes:
- SearchClass - You did add it but it was not enough
- ISearchable - It was missing I've added it as a mock up 
2) I was not able to run build through VSCode: It constantly reported:
"Unknown compiler option: targets"

"targets": [
"JSFlex" 
]

So in that case I've changed tasks.json in order to launch maven build
through VSCode - take a look into that file and still use VSCode.

3) I've changed pom.xml - cause you are working on project SampleSearchBox I
had to change:

SampleSearchBox

Point main class: SampleSearchBox.mxml

4) If you hit CTRL + SHIFT + B - You will run maven build (run:
target\javascript\bin\js-debug\index.html")
5) If you hit F5 - you will run Maven build + run application in debugging
mode in Chrome (launch.json allows you to do that)
6) If you would like to use some other module from FlexJS for example
express - go to pom.xml and add dependency :)

Let me know whether it is working for you.

[1] https://1drv.ms/u/s!ApVpLyjpHDC20RLgviwW9Uvdzva3

Thanks, Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p63054.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-10 Thread Alex Harui
Hi Allen,

If "comp" is a namespace instead of a folder path, then the new component
has to be added to the manifest.xml for that namespace.  You'll see
basic-manifest.xml files in the various SWC projects.

-Alex

On 7/10/17, 8:43 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi All,
>I added a file called SearcClass.as with the following content just to
>see if that gets me the SearchClass.
>
>package
>{
>[Bindable]
>public class SearchClass
>{
>public function SearchClass()
>{
>}
>}
>}
>
>After that I still get the same error.  Could someone explain a but what
>I should do to properly represent ?
>
>c:\Projects\SampleSearchBox\src\SampleSearchBox.mxml(11): col: 8 This tag
>could not be resolved to an ActionScript class. It will be ignored.
>   
>
>The project is in:
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dropb
>ox.com%2Fs%2F8ascg1jjh0qwaex%2FSampleSearchBox.zip%3Fdl%3D0=02%7C01%7
>C%7C5a21733df40a4e8b06e808d4c7abf462%7Cfa7b1b5a7b34438794aed2c178decee1%7C
>0%7C0%7C636352988740762817=p9j9%2BCEJlO7DfiyDOPjl4TPWo%2BTYy3zQqOI5J
>Iku6Lg%3D=0
>
>
>Thanks and Regards,
>Allen
>
>-Original Message-----
>From: Olaf Krueger [mailto:p...@olafkrueger.net]
>Sent: Monday, July 10, 2017 8:51 AM
>To: dev@flex.apache.org
>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>>I don't see class SearchClass in the project
>Maybe I'm wrong, but I'm also don't see a representation for
>"
>HTH,
>Olaf
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-development.247.n4.nabble.com%2FFlexJS-question-about-porting-an-Ado
>be-Flex-3-project-to-HTML-JS-tp62698p63036.html=02%7C01%7C%7C5a21733d
>f40a4e8b06e808d4c7abf462%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6363
>52988740762817=6%2F3678uUD0DTUxbOJaiL%2FhXkU4UE7TbujcTiH07hFGk%3D
>served=0
>Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>
>
>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>contenir des informations sensibles et/ ou confidentielles ne devant pas
>être divulguées. Si vous n'êtes pas le destinataire de ce message (ou que
>vous recevez ce message par erreur), nous vous remercions de le notifier
>immédiatement à son expéditeur, et de détruire ce message. Toute copie,
>divulgation, modification, utilisation ou diffusion, non autorisée,
>directe ou indirecte, de tout ou partie de ce message, est strictement
>interdite.
>
>
>This e-mail, and any document attached hereby, may contain confidential
>and/or privileged information. If you are not the intended recipient (or
>have received this e-mail in error) please notify the sender immediately
>and destroy this e-mail. Any unauthorized, direct or indirect, copying,
>disclosure, distribution or other use of the material or parts thereof is
>strictly forbidden.



RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-10 Thread Allen YANG
Hi All,
I added a file called SearcClass.as with the following content just to see if 
that gets me the SearchClass.

package
{
[Bindable]
public class SearchClass
{
public function SearchClass()
{
}
}
}

After that I still get the same error.  Could someone explain a but what I 
should do to properly represent ?

c:\Projects\SampleSearchBox\src\SampleSearchBox.mxml(11): col: 8 This tag could 
not be resolved to an ActionScript class. It will be ignored.
   

The project is in:
https://www.dropbox.com/s/8ascg1jjh0qwaex/SampleSearchBox.zip?dl=0


Thanks and Regards,
Allen

-Original Message-
From: Olaf Krueger [mailto:p...@olafkrueger.net]
Sent: Monday, July 10, 2017 8:51 AM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

>I don't see class SearchClass in the project
Maybe I'm wrong, but I'm also don't see a representation for  "http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p63036.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-10 Thread Olaf Krueger
>I don't see class SearchClass in the project 
Maybe I'm wrong, but I'm also don't see a representation for  "http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p63036.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-10 Thread piotrz
Allen,

I don't see class SearchClass in the project - that's why you are getting
such error. You are building project using VS Code there is no Maven. 

Maven build is described in pom.xml file, but ok if you were able to setup
VSCode build that's enough. - You can setup build by maven later if you
needed.

Thanks,
Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p63035.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-10 Thread Allen YANG
Hi Alex, Justin and all,
I appreciate all the help I got; and sorry about the questions that show my 
newness to Flex 3.
At this point I am trying to compile and build Justin's SearchClass example.  I 
corrected one minor typo in the sample code. My project is in:
https://www.dropbox.com/s/8ascg1jjh0qwaex/SampleSearchBox.zip?dl=0

Then I am trying to build it with VS Code + Maven.  I got an error as below:
It appears that comp:Search is not allowed inside of the  block?
Best Regards,
Allen

Output from VS Code + Maven during compilation:

MXMLJSC
+flexlib=C:\ApacheFlexJS\frameworks
+configname=flex
--debug=true
--source-map=true
--js-output-type=flexjs
--output=./bin
--targets=JSFlex
src/views/SearchBox.mxml
src/SampleSearchBox.mxml
2.667458141 seconds
c:\Projects\SampleSearchBox\src\SampleSearchBox.mxml(11): col: 8 This tag could 
not be resolved to an ActionScript class. It will be ignored.

   
   ^


-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Monday, July 10, 2017 3:46 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Justin,

We have advised Allen to try the Express set.  Only some of your advice is 
going to apply.  We want to pre-package beads in Express so folks like Allen 
don't have to add as many beads.

Thanks,
-Alex

On 7/9/17, 6:29 PM, "Justin Mclean" <jus...@classsoftware.com> wrote:

>Hi,
>
>Sending again as this didn’t seem to make it to the list.
>
>There a number of other changes you may need to make to get this to
>work in FlexJS:
>- You need to set value impl to enable layout try
>js:SimpleCSSValuesImpl
>- Change Button to TextButton which has a text attribute but there’s no
>enable attribute
>- toolTips are supported via the tool tip bead
>- there’s no enter event on text input you may have to add logic to
>change for this
>- there’s no backgroundColour attribute on text input you need to add a
>CSS bead for that
>
>Thanks,
>Justin




Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-10 Thread Alex Harui
Justin,

We have advised Allen to try the Express set.  Only some of your advice is
going to apply.  We want to pre-package beads in Express so folks like
Allen don't have to add as many beads.

Thanks,
-Alex

On 7/9/17, 6:29 PM, "Justin Mclean"  wrote:

>Hi,
>
>Sending again as this didn’t seem to make it to the list.
>
>There a number of other changes you may need to make to get this to work
>in FlexJS:
>- You need to set value impl to enable layout try js:SimpleCSSValuesImpl
>- Change Button to TextButton which has a text attribute but there’s no
>enable attribute
>- toolTips are supported via the tool tip bead
>- there’s no enter event on text input you may have to add logic to
>change for this
>- there’s no backgroundColour attribute on text input you need to add a
>CSS bead for that
>
>Thanks,
>Justin



RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-10 Thread yishayw
Hi Allen,

As others have pointed out, the project you posted has some syntax errors
and includes flex 3 classes that will not build. Please post a simple
project that demonstrates the problem you are currently having.

Thanks,
Yishay



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p63015.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Thank you, Justin.
I made your earlier code the only Application and the only MXML file. I still 
got the same compiler complaint, that's why I am confused.

But I should really put your current code in a separate MXML file and call it 
in main application anyway.
Thanks,
Allen



Sent via the Samsung Galaxy S7, an AT 4G LTE smartphone


 Original message 
From: Justin Mclean <jus...@classsoftware.com>
Date: 7/9/17 10:05 PM (GMT-05:00)
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi,

I’d guess you have an js:Application tag elsewhere in your application and this 
is just a component right?

To use as a component try this instead (again untested):


http://ns.adobe.com/mxml/2009;
   xmlns:js="library://ns.apache.org/flexjs/basic">
  
 
  

  
 
  

  
 
 

   
   
   

 
 

   
   
   

 
 

   
   
   

 
  



You could test it with this snippet replacing SearchClass() with your class, 
you may need an import as well.


http://ns.adobe.com/mxml/2009;
   xmlns:js="library://ns.apache.org/flexjs/basic"
   xmlns:comp="*">

   
   
   

   
   

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Justin Mclean
Hi,

> Once I got through the  tag issue I will add these.

In the code (assuming it works) I’ve actually done most of these. The emails 
arrived out of order. 

The only thing you need to work out is how to convert the enter event.

Thanks,
Justin

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Justin Mclean
Hi,

I’d guess you have an js:Application tag elsewhere in your application and this 
is just a component right?

To use as a component try this instead (again untested):


http://ns.adobe.com/mxml/2009;
   xmlns:js="library://ns.apache.org/flexjs/basic">
  
 
  

  
 
  

  
 
 

   
   
   

 
 

   
   
   

 
 

   
   
   

 
  



You could test it with this snippet replacing SearchClass() with your class, 
you may need an import as well.


http://ns.adobe.com/mxml/2009;
   xmlns:js="library://ns.apache.org/flexjs/basic"
   xmlns:comp="*">

   
   
   

   
   

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Hi Justin,
I understand that the code is not tested yet and I am going to fix syntax 
errors in it if they show up.
But I am confused that the  tag got an error "this tag could 
not be resolved to an ActionScript class". It seems perfectly all right to me.
Thanks,
Allen

-Original Message-
From: Allen YANG
Sent: Sunday, July 09, 2017 9:07 PM
To: 'dev@flex.apache.org'
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Justin,
Thank you very much! I will try this.
Best Regards,
Allen

-Original Message-
From: Justin Mclean [mailto:jus...@classsoftware.com]
Sent: Sunday, July 09, 2017 8:55 PM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi,

I’ve not tested this and it’s likely to have issues (I’m not 100% sure the 
binding will work) and you need to modify it so it's not an application.

I think this may help you get towards a working version - their may be other 
ways of doing this as well.


http://ns.adobe.com/mxml/2009;
   xmlns:js="library://ns.apache.org/flexjs/basic">
   

 

  
 
  

  
 
 
  

   
   
  
 
 
   
   
   
   
   
 
  
 
 
  
   
 
  
 
 
  
   
  
   
   



Thanks,
Justin



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Justin Mclean
HI,

There a number of other changes you may need to make to get this to work in 
FlexJS:
- you need to set value impl to enable layout try js:SimpleCSSValuesImpl
- Change Button to TextButton which has a text attribute but there’s no enable 
attribute
- toolTips are supported via the tool tip bead
- there’s no enter event on text input you may have to add logic to change for 
this
- there’s no backgroundColour attribute on text input you need to add a CSS 
bead for that

Thanks,
Justin

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Thank you, Justin.
Once I got through the  tag issue I will add these.
Regards,
Allen

-Original Message-
From: Justin Mclean [mailto:jus...@classsoftware.com]
Sent: Sunday, July 09, 2017 9:30 PM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi,

Sending again as this didn’t seem to make it to the list.

There a number of other changes you may need to make to get this to work in 
FlexJS:
- You need to set value impl to enable layout try js:SimpleCSSValuesImpl
- Change Button to TextButton which has a text attribute but there’s no enable 
attribute
- toolTips are supported via the tool tip bead
- there’s no enter event on text input you may have to add logic to change for 
this
- there’s no backgroundColour attribute on text input you need to add a CSS 
bead for that

Thanks,
Justin



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Hi Justin,
Thank you very much! I will try this.
Best Regards,
Allen

-Original Message-
From: Justin Mclean [mailto:jus...@classsoftware.com]
Sent: Sunday, July 09, 2017 8:55 PM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi,

I’ve not tested this and it’s likely to have issues (I’m not 100% sure the 
binding will work) and you need to modify it so it's not an application.

I think this may help you get towards a working version - their may be other 
ways of doing this as well.


http://ns.adobe.com/mxml/2009;
   xmlns:js="library://ns.apache.org/flexjs/basic">
   

 

  
 
  

  
 
 
  

   
   
  
 
 
   
   
   
   
   
 
  
 
 
  
   
 
  
 
 
  
   
  
   
   



Thanks,
Justin



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Justin Mclean
Hi,

Sending again as this didn’t seem to make it to the list.

There a number of other changes you may need to make to get this to work in 
FlexJS:
- You need to set value impl to enable layout try js:SimpleCSSValuesImpl
- Change Button to TextButton which has a text attribute but there’s no enable 
attribute
- toolTips are supported via the tool tip bead
- there’s no enter event on text input you may have to add logic to change for 
this
- there’s no backgroundColour attribute on text input you need to add a CSS 
bead for that

Thanks,
Justin

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Hi Alex,
Now I closed the HContainer tag; thanks for pointing it out.  But after making 
the corrections and rebuild, now the compiler got back to 
java.lang.NullPointerException again.
Also another error message: "internal error in outgoing dependency subsystem 
when generating code for c:\Projects\FBSearchBox\src\views\SearchBox.mxml "
Flash Builder finally got "unhandled event loop exception. GC overhead limit 
exceeded" error screen.

Regards,
Allen

-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Sunday, July 09, 2017 8:20 PM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Did you close the Hcontainer tag?

On 7/9/17, 5:03 PM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Greg,
>Thanks for pointing out the xml errors.  I corrected them. The compiler
>doesn't hang any more.
>Now with "import com.iwobanas.core.ISearchable;" added within CDATA
>code block, I got a "definition com.iwobanas.core.ISearchable could not
>be found"
>Also, I got "js:Label is not allowed here" compilation error inside
> Regards, Allen
>
>-Original Message-
>From: Greg Dove [mailto:greg.d...@gmail.com]
>Sent: Sunday, July 09, 2017 7:53 PM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>I took a quick look at SearchBox.mxml
>
>there are at least some basic xml errors in it.
>
>xmlns:ns="library://ns.apache.org/flexjs/svg> <- missing quote
>
>
>I think there is more, but I don't have time to check at the moment,
>sorry
>
>On Mon, Jul 10, 2017 at 11:05 AM, piotrz <piotrzarzyck...@gmail.com>
>wrote:
>
>> Allen,
>>
>> SearchBox.mxml - look good to me - of course if you have ISearchable
>> - but I don't see it. Apart of that you have in this project file
>> called "deallist.as" - which has a lot of old Flex classes - it's not
>> going to build. Not sure what you wanted to achieve ?
>>
>> Thanks,
>> Piotr
>>
>>
>>
>> -
>> Apache Flex PMC
>> piotrzarzyck...@gmail.com
>> --
>> View this message in context: http://apache-flex-
>> development.247.n4.nabble.com/FlexJS-question-about-
>> porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62999.html
>> Sent from the Apache Flex Development mailing list archive at
>>Nabble.com.
>>
>
>
>
>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>contenir des informations sensibles et/ ou confidentielles ne devant
>pas être divulguées. Si vous n'êtes pas le destinataire de ce message
>(ou que vous recevez ce message par erreur), nous vous remercions de le
>notifier immédiatement à son expéditeur, et de détruire ce message.
>Toute copie, divulgation, modification, utilisation ou diffusion, non
>autorisée, directe ou indirecte, de tout ou partie de ce message, est
>strictement interdite.
>
>
>This e-mail, and any document attached hereby, may contain confidential
>and/or privileged information. If you are not the intended recipient
>(or have received this e-mail in error) please notify the sender
>immediately and destroy this e-mail. Any unauthorized, direct or
>indirect, copying, disclosure, distribution or other use of the
>material or parts thereof is strictly forbidden.




Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Justin Mclean
Hi,

I’ve not tested this and it’s likely to have issues (I’m not 100% sure the 
binding will work) and you need to modify it so it's not an application.

I think this may help you get towards a working version - their may be other 
ways of doing this as well.


http://ns.adobe.com/mxml/2009;
   xmlns:js="library://ns.apache.org/flexjs/basic">
   

 

  
 
  

  
 
 
  

   
   
  
 
 
   
   
   
   
   
 
  
 
 
  
   
 
  
 
 
  
   
  
   
   



Thanks,
Justin

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Alex Harui
Did you close the Hcontainer tag?

On 7/9/17, 5:03 PM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Greg,
>Thanks for pointing out the xml errors.  I corrected them. The compiler
>doesn't hang any more.
>Now with "import com.iwobanas.core.ISearchable;" added within CDATA code
>block, I got a "definition com.iwobanas.core.ISearchable could not be
>found"
>Also, I got "js:Label is not allowed here" compilation error inside
>
>Regards,
>Allen
>
>-Original Message-
>From: Greg Dove [mailto:greg.d...@gmail.com]
>Sent: Sunday, July 09, 2017 7:53 PM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>I took a quick look at SearchBox.mxml
>
>there are at least some basic xml errors in it.
>
>xmlns:ns="library://ns.apache.org/flexjs/svg> <- missing quote
>
>
>I think there is more, but I don't have time to check at the moment, sorry
>
>On Mon, Jul 10, 2017 at 11:05 AM, piotrz <piotrzarzyck...@gmail.com>
>wrote:
>
>> Allen,
>>
>> SearchBox.mxml - look good to me - of course if you have ISearchable -
>> but I don't see it. Apart of that you have in this project file called
>> "deallist.as" - which has a lot of old Flex classes - it's not going
>> to build. Not sure what you wanted to achieve ?
>>
>> Thanks,
>> Piotr
>>
>>
>>
>> -
>> Apache Flex PMC
>> piotrzarzyck...@gmail.com
>> --
>> View this message in context: http://apache-flex-
>> development.247.n4.nabble.com/FlexJS-question-about-
>> porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62999.html
>> Sent from the Apache Flex Development mailing list archive at
>>Nabble.com.
>>
>
>
>
>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>contenir des informations sensibles et/ ou confidentielles ne devant pas
>être divulguées. Si vous n'êtes pas le destinataire de ce message (ou que
>vous recevez ce message par erreur), nous vous remercions de le notifier
>immédiatement à son expéditeur, et de détruire ce message. Toute copie,
>divulgation, modification, utilisation ou diffusion, non autorisée,
>directe ou indirecte, de tout ou partie de ce message, est strictement
>interdite.
>
>
>This e-mail, and any document attached hereby, may contain confidential
>and/or privileged information. If you are not the intended recipient (or
>have received this e-mail in error) please notify the sender immediately
>and destroy this e-mail. Any unauthorized, direct or indirect, copying,
>disclosure, distribution or other use of the material or parts thereof is
>strictly forbidden.



RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Hi Greg,
Thanks for pointing out the xml errors.  I corrected them. The compiler doesn't 
hang any more.
Now with "import com.iwobanas.core.ISearchable;" added within CDATA code block, 
I got a "definition com.iwobanas.core.ISearchable could not be found"
Also, I got "js:Label is not allowed here" compilation error inside 
Regards,
Allen

-Original Message-
From: Greg Dove [mailto:greg.d...@gmail.com]
Sent: Sunday, July 09, 2017 7:53 PM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

I took a quick look at SearchBox.mxml

there are at least some basic xml errors in it.

xmlns:ns="library://ns.apache.org/flexjs/svg> <- missing quote

 wrote:

> Allen,
>
> SearchBox.mxml - look good to me - of course if you have ISearchable -
> but I don't see it. Apart of that you have in this project file called
> "deallist.as" - which has a lot of old Flex classes - it's not going
> to build. Not sure what you wanted to achieve ?
>
> Thanks,
> Piotr
>
>
>
> -
> Apache Flex PMC
> piotrzarzyck...@gmail.com
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-question-about-
> porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62999.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Piotr,
Deallist.as declares a bunch of global variables in the real Flex 3 application 
that I need to convert to FlexJS.  SearchBox.mxml is one of this Flex 3 
program's source files.  Because SearchBox.mxml accesses the global variables 
in the application, I included deallias.as to reduce compilation errors when 
these global variables are accessed.Now I am trying to isolate each Flex 3 
source file by bringing it one by one after conversion into a new program, so I 
don't have to encounter hundreds of compilation errors if I try to convert any 
source file in the original Flex 3 project folder.

As to ISearchable, I found that whether I have the import statement in the 
SearchBox.mxml or not, the compiler will hit the same out of memory error 
anyway.  I removed that statement just to see if it would make any difference 
but it didn't.
Regards,
Allen

-Original Message-
From: piotrz [mailto:piotrzarzyck...@gmail.com]
Sent: Sunday, July 09, 2017 7:05 PM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Allen,

SearchBox.mxml - look good to me - of course if you have ISearchable - but I 
don't see it. Apart of that you have in this project file called "deallist.as" 
- which has a lot of old Flex classes - it's not going to build. Not sure what 
you wanted to achieve ?

Thanks,
Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62999.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Greg Dove
I took a quick look at SearchBox.mxml

there are at least some basic xml errors in it.

xmlns:ns="library://ns.apache.org/flexjs/svg> <- missing quote

 wrote:

> Allen,
>
> SearchBox.mxml - look good to me - of course if you have ISearchable - but
> I
> don't see it. Apart of that you have in this project file called
> "deallist.as" - which has a lot of old Flex classes - it's not going to
> build. Not sure what you wanted to achieve ?
>
> Thanks,
> Piotr
>
>
>
> -
> Apache Flex PMC
> piotrzarzyck...@gmail.com
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-question-about-
> porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62999.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread piotrz
Allen,

SearchBox.mxml - look good to me - of course if you have ISearchable - but I
don't see it. Apart of that you have in this project file called
"deallist.as" - which has a lot of old Flex classes - it's not going to
build. Not sure what you wanted to achieve ?

Thanks,
Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62999.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Yes; the mailing list stripped out the two attachments. I zipped the folder; 
here is the link to the zip file: 
https://www.dropbox.com/s/6qqf1zqg3il51bp/FBSearchBox.zip?dl=0
This is the project that just has caused compiler to hit the out of memory 
error. The file that seems to have caused this problem is SearchBox.mxml.
Regards,
Allen

-Original Message-
From: piotrz [mailto:piotrzarzyck...@gmail.com]
Sent: Sunday, July 09, 2017 11:17 AM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Allen,

Attachment can be stripped out from mailing list, so you probably need to 
upload them to some server.

Thanks,
Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62983.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread piotrz
Allen,

Attachment can be stripped out from mailing list, so you probably need to
upload them to some server.

Thanks,
Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62983.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Hi Yishay,
Trying to export project from Flash Builder caused FB to hang.  The two files 
are attached; hope that's fine.
Best Regards,
Allen

-Original Message-
From: yishayw [mailto:yishayj...@hotmail.com]
Sent: Sunday, July 09, 2017 8:38 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Can you share the 2 files you're trying to compile?



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62981.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread yishayw
Can you share the 2 files you're trying to compile?



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62981.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Alex Harui
Hi Allen,

One of the simpler projects that has a MyInitialView is in
examples/flexjs/DataBindingExample.  See if you can get that to build
using whatever build process you are using.  If you can build
DataBindingExample, then the next thing to do is comment out just about
everything in your MXML files except the top-level tags (js:Application
and js:View) and see if that builds.  Then uncomment more and more until
it runs out of memory.  That might help figure out what is eating up the
memory.  If DataBindingExample doesn't build, then we'll need to know more
about what version of Java is being used and what memory settings are for
Java.

HTH,
-Alex

On 7/8/17, 2:28 PM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Alex,
>I took the same SearchBox source files to Flash Builder 4.7 and got the
>same error; that allowed me to dump the stack trace, and you are correct,
>it is out of memory.
>Stack trace:
>
>java.lang.OutOfMemoryError: Java heap space
>at java.util.concurrent.CopyOnWriteArrayList.iterator(Unknown Source)
>at 
>org.eclipse.mylyn.internal.monitor.ui.ActivityContextManager.getLastIntera
>ctionTime(ActivityContextManager.java:227)
>at 
>org.eclipse.mylyn.internal.monitor.ui.ActivityContextManager$2.getLastEven
>tTime(ActivityContextManager.java:88)
>at 
>org.eclipse.mylyn.internal.monitor.ui.CheckActivityJob.run(CheckActivityJo
>b.java:86)
>at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
>The two MXML files are too small to run out of memory for the compiler.
>I removed "import import com.iwobanas.core.ISearchable;" statement, saved
>the code, cleaned and rebuild the project; the compiler still took a long
>while then ran out of memory.
>
>Regards,
>Allen
>
>-Original Message-
>From: Allen YANG [mailto:allen.y...@raritan.com]
>Sent: Saturday, July 08, 2017 11:58 AM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Alex,
>Two files only. One file is application and calls the 2nd MXML file. The
>2nd file is the SearchBox.MXML file that's less than 40 lines but imports
>the ISearchable.
>
>I will look into the examples.
>Thanks and Regards,
>Allen
>
>
>
>Sent via the Samsung Galaxy S7, an AT 4G LTE smartphone
>
>
>---- Original message ----
>From: Alex Harui <aha...@adobe.com.INVALID>
>Date: 7/8/17 10:49 AM (GMT-05:00)
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Allen,
>
>Looks like the compiler is somehow running out of memory.
>
>How many files are you trying to compile?
>
>I think Isearchable might be part of a larger set of source and you may
>need all of that source.  FlexJS doesn't have an equivalent, and it would
>be useful to us to see how hard it would be for someone like you to make
>a library like this work in FlexJS.  You could also ask Iwo Banas
>directly to see if he might be willing to help you out.
>
>HTH,
>-Alex
>
>
>
>
>
>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>contenir des informations sensibles et/ ou confidentielles ne devant pas
>être divulguées. Si vous n'êtes pas le destinataire de ce message (ou que
>vous recevez ce message par erreur), nous vous remercions de le notifier
>immédiatement à son expéditeur, et de détruire ce message. Toute copie,
>divulgation, modification, utilisation ou diffusion, non autorisée,
>directe ou indirecte, de tout ou partie de ce message, est strictement
>interdite.
>
>
>This e-mail, and any document attached hereby, may contain confidential
>and/or privileged information. If you are not the intended recipient (or
>have received this e-mail in error) please notify the sender immediately
>and destroy this e-mail. Any unauthorized, direct or indirect, copying,
>disclosure, distribution or other use of the material or parts thereof is
>strictly forbidden.



RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-08 Thread Allen YANG
Hi Alex,
I took the same SearchBox source files to Flash Builder 4.7 and got the same 
error; that allowed me to dump the stack trace, and you are correct, it is out 
of memory.
Stack trace:

java.lang.OutOfMemoryError: Java heap space
at java.util.concurrent.CopyOnWriteArrayList.iterator(Unknown Source)
at 
org.eclipse.mylyn.internal.monitor.ui.ActivityContextManager.getLastInteractionTime(ActivityContextManager.java:227)
at 
org.eclipse.mylyn.internal.monitor.ui.ActivityContextManager$2.getLastEventTime(ActivityContextManager.java:88)
at 
org.eclipse.mylyn.internal.monitor.ui.CheckActivityJob.run(CheckActivityJob.java:86)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

The two MXML files are too small to run out of memory for the compiler.  I 
removed "import import com.iwobanas.core.ISearchable;" statement, saved the 
code, cleaned and rebuild the project; the compiler still took a long while 
then ran out of memory.

Regards,
Allen

-Original Message-
From: Allen YANG [mailto:allen.y...@raritan.com]
Sent: Saturday, July 08, 2017 11:58 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Alex,
Two files only. One file is application and calls the 2nd MXML file. The 2nd 
file is the SearchBox.MXML file that's less than 40 lines but imports the 
ISearchable.

I will look into the examples.
Thanks and Regards,
Allen



Sent via the Samsung Galaxy S7, an AT 4G LTE smartphone


 Original message 
From: Alex Harui <aha...@adobe.com.INVALID>
Date: 7/8/17 10:49 AM (GMT-05:00)
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

Looks like the compiler is somehow running out of memory.

How many files are you trying to compile?

I think Isearchable might be part of a larger set of source and you may need 
all of that source.  FlexJS doesn't have an equivalent, and it would be useful 
to us to see how hard it would be for someone like you to make a library like 
this work in FlexJS.  You could also ask Iwo Banas directly to see if he might 
be willing to help you out.

HTH,
-Alex





Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-08 Thread Allen YANG
Hi Greg,
I moved the fx:Script tag outside of the HContainer tag; the compiler still 
took several minutes and hit the same problem.
Regards,
Allen

-Original Message-
From: Greg Dove [mailto:greg.d...@gmail.com]
Sent: Saturday, July 08, 2017 3:58 PM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

I just glanced back at your mxml. Not sure if this will help... but you could 
try moving the fx:Script tag outside the HContainer tag so it is top level 
inside your mxml. This seems more conventional although I am not sure whether 
it is the cause of the compiler issues you are seeing or not.

-Greg
[sent from my phone]

On 9/07/2017 6:32 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

Hi Alex,
I am leaving SearchBox.mxml compiler issue aside for now since I have no idea 
how to solve it.
Following the MyInitialView.mxml example, I was finally able to convert a Flex 
3 MXML file called UpdateResources.mxml  which starts with   
and has a Canvas with HBox, VBox and Buttons inside.
The result is a very slimmed down version of FlexJS implementation which starts 
with  and includes a  with HContainer, VContainer, and 
TextButtons inside.  I lost most of the formatting of the pages because many 
attributes are not there anymore.  Could you comment whether that's about 
right, or I have completely got it wrong?
(The complied result could run but certainly I lost most of the original UI's 
screen formatting due to many of the properties not being supported.)

Thanks and Regards,
Allen


-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Saturday, July 08, 2017 10:42 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
HTML+JS

Hi Allen,

These are great questions.

Many examples have a MyInitialView.mxml file with js:View as the top tag.
You might want to refer to those examples.

The current Panel does have an optional close button so it can substitute as 
TitleWindow, but I am currently refactoring it for 0.9.0 to be more 
pay-as-you-go.

Unless you need more than one floating window, you shouldn't need PopUpManager 
(which is why it doesn't exist in FlexJS yet).  Instead use code like:

var host:IPopUpHost;
host = UIUtils.findPopUpHost(this); // this is the main view
IPopUpHost(host).addElement(popUp as IChild);

HGroup or HContainer can swap in for HBox.


Use Group or Container instead of Canvas.


Good luck,
-Alex

On 7/8/17, 6:00 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Yishay,
>You are right.  I rechecked the demo.zip file and panelview.as is not
>there. Maybe I was trying to learn about TitleWindow replacement and
>break the code into a separate file, ended up leaving it there.
>No luck yet in converting my MXML file for TitleWindow equivalent
>because it also has PopUpManager and uses HBox and Canvas in the same
>MXML
file.
>I cannot get a simple MXML file (less than 40 lines) to compile.
>
>I am confused why the same code compiles and works when it is part of
>the MXML file inside of  but when I tried to create a
>separate MXML file for a panel inside of a View it doesn't compile.
>In other words, 
>will be fine inside  but cannot be standalone. This must
>be another newbie question.
>Regards,
>Allen
>
>-Original Message-
>From: yishayw [mailto:yishayj...@hotmail.com]
>Sent: Saturday, July 08, 2017 4:58 AM
>To: dev@flex.apache.org
>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>I don't see panelview.as in the sources. But anyway, I don't remember
>it being part of the demo so you can ignore it for now. Any luck with
>creating a TitleWindow equivalent?
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-
>fle
>x-development.247.n4.nabble.com%2FFlexJS-question-about-porting-an-
>Ado
>be-Flex-3-project-to-HTML-JS-tp62698p62960.html=02%7C01%7C%7C547b2
>515
>c4244d1105d608d4c6014a6d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>363
>51156227326642=Vwy%2BU1qoAoMSD1R1jN3t%2BZLAjrCtOS1%2BMXjgdnWzUI8%
>3D&
>reserved=0
>Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>
>
>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>contenir des informations sensibles et/ ou confidentielles ne devant
>pas être divulguées. Si vous n'êtes pas le destinataire de ce message
>(ou que vous recevez ce message par erreur), nous vous remercions de le
>notifier immédiatement à son expéditeur, et de détruire ce message.
>Toute copie, divulgation, modification, utilisation ou diffusion, non
>autorisée, directe ou indirecte, de tout ou partie de ce message, est
>strictement interdit

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-08 Thread Greg Dove
I just glanced back at your mxml. Not sure if this will help... but you
could try moving the fx:Script tag outside the HContainer tag so it is top
level inside your mxml. This seems more conventional although I am not sure
whether it is the cause of the compiler issues you are seeing or not.

-Greg
[sent from my phone]

On 9/07/2017 6:32 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

Hi Alex,
I am leaving SearchBox.mxml compiler issue aside for now since I have no
idea how to solve it.
Following the MyInitialView.mxml example, I was finally able to convert a
Flex 3 MXML file called UpdateResources.mxml  which starts with
  and has a Canvas with HBox, VBox and Buttons inside.
The result is a very slimmed down version of FlexJS implementation which
starts with  and includes a  with HContainer,
VContainer, and TextButtons inside.  I lost most of the formatting of the
pages because many attributes are not there anymore.  Could you comment
whether that's about right, or I have completely got it wrong?
(The complied result could run but certainly I lost most of the original
UI's screen formatting due to many of the properties not being supported.)

Thanks and Regards,
Allen


-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Saturday, July 08, 2017 10:42 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
HTML+JS

Hi Allen,

These are great questions.

Many examples have a MyInitialView.mxml file with js:View as the top tag.
You might want to refer to those examples.

The current Panel does have an optional close button so it can substitute
as TitleWindow, but I am currently refactoring it for 0.9.0 to be more
pay-as-you-go.

Unless you need more than one floating window, you shouldn't need
PopUpManager (which is why it doesn't exist in FlexJS yet).  Instead use
code like:

var host:IPopUpHost;
host = UIUtils.findPopUpHost(this); // this is the main view
IPopUpHost(host).addElement(popUp as IChild);

HGroup or HContainer can swap in for HBox.


Use Group or Container instead of Canvas.


Good luck,
-Alex

On 7/8/17, 6:00 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Yishay,
>You are right.  I rechecked the demo.zip file and panelview.as is not
>there. Maybe I was trying to learn about TitleWindow replacement and
>break the code into a separate file, ended up leaving it there.
>No luck yet in converting my MXML file for TitleWindow equivalent
>because it also has PopUpManager and uses HBox and Canvas in the same MXML
file.
>I cannot get a simple MXML file (less than 40 lines) to compile.
>
>I am confused why the same code compiles and works when it is part of
>the MXML file inside of  but when I tried to create a
>separate MXML file for a panel inside of a View it doesn't compile.
>In other words, 
>will be fine inside  but cannot be standalone. This must
>be another newbie question.
>Regards,
>Allen
>
>-Original Message-
>From: yishayw [mailto:yishayj...@hotmail.com]
>Sent: Saturday, July 08, 2017 4:58 AM
>To: dev@flex.apache.org
>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>I don't see panelview.as in the sources. But anyway, I don't remember
>it being part of the demo so you can ignore it for now. Any luck with
>creating a TitleWindow equivalent?
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-
>fle
>x-development.247.n4.nabble.com%2FFlexJS-question-about-porting-an-
>Ado
>be-Flex-3-project-to-HTML-JS-tp62698p62960.html=02%7C01%7C%7C547b2
>515
>c4244d1105d608d4c6014a6d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>363
>51156227326642=Vwy%2BU1qoAoMSD1R1jN3t%2BZLAjrCtOS1%2BMXjgdnWzUI8%
>3D&
>reserved=0
>Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>
>
>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>contenir des informations sensibles et/ ou confidentielles ne devant
>pas être divulguées. Si vous n'êtes pas le destinataire de ce message
>(ou que vous recevez ce message par erreur), nous vous remercions de le
>notifier immédiatement à son expéditeur, et de détruire ce message.
>Toute copie, divulgation, modification, utilisation ou diffusion, non
>autorisée, directe ou indirecte, de tout ou partie de ce message, est
>strictement interdite.
>
>
>This e-mail, and any document attached hereby, may contain confidential
>and/or privileged information. If you are not the intended recipient
>(or have received this e-mail in error) please notify the sender
>immediately and destroy this e-mail. Any unauthorized, direct or
>indirect, copying, disclosure, distribution or other use of the
>materi

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-08 Thread Allen YANG
Hi Alex,
I am leaving SearchBox.mxml compiler issue aside for now since I have no idea 
how to solve it.
Following the MyInitialView.mxml example, I was finally able to convert a Flex 
3 MXML file called UpdateResources.mxml  which starts with   
and has a Canvas with HBox, VBox and Buttons inside.
The result is a very slimmed down version of FlexJS implementation which starts 
with  and includes a  with HContainer, VContainer, and 
TextButtons inside.  I lost most of the formatting of the pages because many 
attributes are not there anymore.  Could you comment whether that's about 
right, or I have completely got it wrong?
(The complied result could run but certainly I lost most of the original UI's 
screen formatting due to many of the properties not being supported.)

Thanks and Regards,
Allen


-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Saturday, July 08, 2017 10:42 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

These are great questions.

Many examples have a MyInitialView.mxml file with js:View as the top tag.
You might want to refer to those examples.

The current Panel does have an optional close button so it can substitute as 
TitleWindow, but I am currently refactoring it for 0.9.0 to be more 
pay-as-you-go.

Unless you need more than one floating window, you shouldn't need PopUpManager 
(which is why it doesn't exist in FlexJS yet).  Instead use code like:

var host:IPopUpHost;
host = UIUtils.findPopUpHost(this); // this is the main view
IPopUpHost(host).addElement(popUp as IChild);

HGroup or HContainer can swap in for HBox.


Use Group or Container instead of Canvas.


Good luck,
-Alex

On 7/8/17, 6:00 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Yishay,
>You are right.  I rechecked the demo.zip file and panelview.as is not
>there. Maybe I was trying to learn about TitleWindow replacement and
>break the code into a separate file, ended up leaving it there.
>No luck yet in converting my MXML file for TitleWindow equivalent
>because it also has PopUpManager and uses HBox and Canvas in the same MXML 
>file.
>I cannot get a simple MXML file (less than 40 lines) to compile.
>
>I am confused why the same code compiles and works when it is part of
>the MXML file inside of  but when I tried to create a
>separate MXML file for a panel inside of a View it doesn't compile.
>In other words, 
>will be fine inside  but cannot be standalone. This must
>be another newbie question.
>Regards,
>Allen
>
>-Original Message-
>From: yishayw [mailto:yishayj...@hotmail.com]
>Sent: Saturday, July 08, 2017 4:58 AM
>To: dev@flex.apache.org
>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>I don't see panelview.as in the sources. But anyway, I don't remember
>it being part of the demo so you can ignore it for now. Any luck with
>creating a TitleWindow equivalent?
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-
>fle
>x-development.247.n4.nabble.com%2FFlexJS-question-about-porting-an-
>Ado
>be-Flex-3-project-to-HTML-JS-tp62698p62960.html=02%7C01%7C%7C547b2
>515
>c4244d1105d608d4c6014a6d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>363
>51156227326642=Vwy%2BU1qoAoMSD1R1jN3t%2BZLAjrCtOS1%2BMXjgdnWzUI8%
>3D&
>reserved=0
>Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>
>
>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>contenir des informations sensibles et/ ou confidentielles ne devant
>pas être divulguées. Si vous n'êtes pas le destinataire de ce message
>(ou que vous recevez ce message par erreur), nous vous remercions de le
>notifier immédiatement à son expéditeur, et de détruire ce message.
>Toute copie, divulgation, modification, utilisation ou diffusion, non
>autorisée, directe ou indirecte, de tout ou partie de ce message, est
>strictement interdite.
>
>
>This e-mail, and any document attached hereby, may contain confidential
>and/or privileged information. If you are not the intended recipient
>(or have received this e-mail in error) please notify the sender
>immediately and destroy this e-mail. Any unauthorized, direct or
>indirect, copying, disclosure, distribution or other use of the
>material or parts thereof is strictly forbidden.




Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son 

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-08 Thread Allen YANG
Hi Alex,
Two files only. One file is application and calls the 2nd MXML file. The 2nd 
file is the SearchBox.MXML file that's less than 40 lines but imports the 
ISearchable.

I will look into the examples.
Thanks and Regards,
Allen



Sent via the Samsung Galaxy S7, an AT 4G LTE smartphone


 Original message 
From: Alex Harui <aha...@adobe.com.INVALID>
Date: 7/8/17 10:49 AM (GMT-05:00)
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

Looks like the compiler is somehow running out of memory.

How many files are you trying to compile?

I think Isearchable might be part of a larger set of source and you may
need all of that source.  FlexJS doesn't have an equivalent, and it would
be useful to us to see how hard it would be for someone like you to make a
library like this work in FlexJS.  You could also ask Iwo Banas directly
to see if he might be willing to help you out.

HTH,
-Alex

On 7/8/17, 6:27 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Alex,
>I tried usingxmlns:js="library://ns.apache.org/flexjs/express"
>instead of basic, the compiler still hit an exception after a few minutes.
>This is done from VS Code + Maven.
>I also downloaded reusable_fx source codes (ISearchable), it seems to be
>built on an earlier version of Flash Builder, I tried to build it and got
>334 errors like "the definition of base class was not found".  So I am
>not sure I know how to build SWC file given so many errors.  If I include
>the source codes in my project folder.
>Or, is there a replacement for ISearchable in FlexJS that I can use?
>Regards,
>Allen
>
>The compiler output was as follows:
>
>MXMLJSC
>+flexlib=C:\ApacheFlexJS\frameworks
>+configname=flex
>--debug=true
>--source-map=true
>--js-output-type=flexjs
>--output=./bin
>--targets=JSFlex
>src/views/SearchBox.mxml
>src/FlexBasic.mxml
>java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC
>overhead limit exceeded
>at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>at java.util.concurrent.FutureTask.get(FutureTask.java:192)
>at
>org.apache.flex.compiler.internal.units.requests.RequestMaker$Request.get(
>RequestMaker.java:80)
>at
>org.apache.flex.compiler.internal.scopes.ASProjectScope$DefinitionPromise.
>getActualDefinition(ASProjectScope.java:2056)
>at
>org.apache.flex.compiler.internal.scopes.ASProjectScope.replacePromisesWit
>hDefinitions(ASProjectScope.java:344)
>at
>org.apache.flex.compiler.internal.scopes.ASProjectScope.getLocalDefinition
>SetByName(ASProjectScope.java:414)
>at
>org.apache.flex.compiler.internal.scopes.ASScopeBase.getLocalProperty(ASSc
>opeBase.java:265)
>at
>org.apache.flex.compiler.internal.scopes.ASScopeBase.getLocalProperty(ASSc
>opeBase.java:242)
>at
>org.apache.flex.compiler.internal.scopes.ASScopeBase.getLocalProperty(ASSc
>opeBase.java:217)
>at
>org.apache.flex.compiler.internal.scopes.ASProjectScope.findDefinitionByNa
>me(ASProjectScope.java:693)
>at
>org.apache.flex.compiler.internal.projects.CompilerProject.resolveQNameToD
>efinition(CompilerProject.java:803)
>at
>org.apache.flex.compiler.internal.projects.FlexProject.resolveXMLNameToDef
>inition(FlexProject.java:1253)
>at
>org.apache.flex.compiler.internal.scopes.MXMLFileScope.resolveXMLNameToDef
>inition(MXMLFileScope.java:450)
>at
>org.apache.flex.compiler.internal.scopes.MXMLFileScope.resolveTagToDefinit
>ion(MXMLFileScope.java:419)
>at
>org.apache.flex.compiler.internal.tree.mxml.MXMLClassReferenceNodeBase.pro
>cessChildTag(MXMLClassReferenceNodeBase.java:467)
>at
>org.apache.flex.compiler.internal.tree.mxml.MXMLNodeBase.processContentUni
>t(MXMLNodeBase.java:522)
>at
>org.apache.flex.compiler.internal.tree.mxml.MXMLNodeBase.initializeFromTag
>(MXMLNodeBase.java:280)
>at
>org.apache.flex.compiler.internal.tree.mxml.MXMLPropertySpecifierNode.proc
>essChildTag(MXMLPropertySpecifierNode.java:473)
>at
>org.apache.flex.compiler.internal.tree.mxml.MXMLNodeBase.processContentUni
>t(MXMLNodeBase.java:522)
>at
>org.apache.flex.compiler.internal.tree.mxml.MXMLNodeBase.initializeFromTag
>(MXMLNodeBase.java:280)
>at
>org.apache.flex.compiler.internal.tree.mxml.MXMLPropertySpecifierNode.init
>ializeFromTag(MXMLPropertySpecifierNode.java:305)
>at
>org.apache.flex.compiler.internal.tree.mxml.MXMLClassReferenceNodeBase.pro
>cessChildTag(MXMLClassReferenceNodeBase.java:432)
>at
>org.apache.flex.compiler.internal.tree.mxml.MXMLClassDefinitionNode.proces
>sChildTag(MXMLClassDefinitionNode.java:292)
>at
>org.apache.flex.compiler.internal.tree.mxml.MXMLDocumentNode.processChildT
>ag(MXMLDocumen

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-08 Thread Alex Harui
i
>leNode.java:155)
>at 
>org.apache.flex.compiler.internal.tree.mxml.MXMLTreeBuilder.build(MXMLTree
>Builder.java:314)
>at 
>org.apache.flex.compiler.internal.units.MXMLCompilationUnit.handleSyntaxTr
>eeRequest(MXMLCompilationUnit.java:104)
>at 
>org.apache.flex.compiler.internal.units.CompilationUnitBase.processSyntaxT
>reeRequest(CompilationUnitBase.java:839)
>at 
>org.apache.flex.compiler.internal.units.CompilationUnitBase.access$100(Com
>pilationUnitBase.java:109)
>at 
>org.apache.flex.compiler.internal.units.CompilationUnitBase$2$1.call(Compi
>lationUnitBase.java:263)
>at 
>org.apache.flex.compiler.internal.units.CompilationUnitBase$2$1.call(Compi
>lationUnitBase.java:259)
>at 
>org.apache.flex.compiler.internal.units.requests.RequestMaker$1.call(Reque
>stMaker.java:228)
>at 
>org.apache.flex.compiler.internal.units.requests.RequestMaker$1.call(Reque
>stMaker.java:222)
>at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>at 
>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
>1142)
>at 
>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
>:617)
>at java.lang.Thread.run(Thread.java:748)
>Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
>at 
>org.apache.flex.compiler.internal.parsing.mxml.RawMXMLTokenizer.buildToken
>(RawMXMLTokenizer.java:399)
>at 
>org.apache.flex.compiler.internal.parsing.mxml.BaseRawMXMLTokenizer.buildT
>oken(BaseRawMXMLTokenizer.java:133)
>at 
>org.apache.flex.compiler.internal.parsing.mxml.BaseRawMXMLTokenizer.buildT
>oken(BaseRawMXMLTokenizer.java:146)
>at 
>org.apache.flex.compiler.internal.parsing.mxml.RawMXMLTokenizer.nextToken(
>RawMXMLTokenizer.java:786)
>at 
>org.apache.flex.compiler.internal.parsing.mxml.MXMLTokenizer.nextTokenInte
>rnal(MXMLTokenizer.java:209)
>at 
>org.apache.flex.compiler.internal.parsing.mxml.MXMLTokenizer.nextToken(MXM
>LTokenizer.java:240)
>at 
>org.apache.flex.compiler.internal.parsing.mxml.MXMLTokenizer.parseTokens(M
>XMLTokenizer.java:269)
>at 
>org.apache.flex.compiler.internal.caches.MXMLDataCache.createEntryValue(MX
>MLDataCache.java:85)
>at 
>org.apache.flex.compiler.internal.caches.MXMLDataCache.createEntryValue(MX
>MLDataCache.java:38)
>at 
>org.apache.flex.compiler.internal.caches.ConcurrentCacheStoreBase.get(Conc
>urrentCacheStoreBase.java:69)
>at 
>org.apache.flex.compiler.internal.mxml.MXMLDataManager.get(MXMLDataManager
>.java:52)
>at 
>org.apache.flex.compiler.internal.mxml.MXMLDataManager.get(MXMLDataManager
>.java:36)
>at 
>org.apache.flex.compiler.internal.units.MXMLCompilationUnit.getMXMLData(MX
>MLCompilationUnit.java:281)
>at 
>org.apache.flex.compiler.internal.units.MXMLCompilationUnit.handleFileScop
>eRequest(MXMLCompilationUnit.java:168)
>at 
>org.apache.flex.compiler.internal.units.CompilationUnitBase.processFileSco
>peRequest(CompilationUnitBase.java:864)
>at 
>org.apache.flex.compiler.internal.units.CompilationUnitBase.access$200(Com
>pilationUnitBase.java:109)
>at 
>org.apache.flex.compiler.internal.units.CompilationUnitBase$3$1.call(Compi
>lationUnitBase.java:288)
>at 
>org.apache.flex.compiler.internal.units.CompilationUnitBase$3$1.call(Compi
>lationUnitBase.java:284)
>... 6 more
>Unexpected exception 'java.lang.NullPointerException'.
>
>
>408.789603726 seconds
>
>
>-Original Message-
>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>Sent: Saturday, July 08, 2017 1:19 AM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Allen,
>
>You might want to try the Express components by changing:
>
>xmlns:js="library://ns.apache.org/flexjs/basic"
>
>To:
>
>xmlns:js="library://ns.apache.org/flexjs/express"
>
>Then the components should have more APIs built-in.
>
>If you hit a null pointer exception, please post the stack trace so we
>can try to see what the cause was.
>
>You may need to grab the source for ISearchable and include it in your
>project so it gets cross-compiled, or build a FlexJS SWC from the
>ISearchable source.
>
>Good luck,
>-Alex
>
>
>
>
>
>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>contenir des informations sensibles et/ ou confidentielles ne devant pas
>être divulguées. Si vous n'êtes pas le destinataire de ce message (ou que
>vous recevez ce message par erreur), nous vous remercions de le notifier
>immédiatement à son expéditeur, et de détruire ce message. Toute copie,
>divulgation, modification, utilisation ou diffusion, non autorisée,
>directe ou indirecte, de tout ou partie de ce message, est strictement
>interdite.
>
>
>This e-mail, and any document attached hereby, may contain confidential
>and/or privileged information. If you are not the intended recipient (or
>have received this e-mail in error) please notify the sender immediately
>and destroy this e-mail. Any unauthorized, direct or indirect, copying,
>disclosure, distribution or other use of the material or parts thereof is
>strictly forbidden.



Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-08 Thread Alex Harui
Hi Allen,

These are great questions.

Many examples have a MyInitialView.mxml file with js:View as the top tag.
You might want to refer to those examples.

The current Panel does have an optional close button so it can substitute
as TitleWindow, but I am currently refactoring it for 0.9.0 to be more
pay-as-you-go.

Unless you need more than one floating window, you shouldn't need
PopUpManager (which is why it doesn't exist in FlexJS yet).  Instead use
code like:

var host:IPopUpHost;
host = UIUtils.findPopUpHost(this); // this is the main view
IPopUpHost(host).addElement(popUp as IChild);

HGroup or HContainer can swap in for HBox.


Use Group or Container instead of Canvas.


Good luck,
-Alex

On 7/8/17, 6:00 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Yishay,
>You are right.  I rechecked the demo.zip file and panelview.as is not
>there. Maybe I was trying to learn about TitleWindow replacement and
>break the code into a separate file, ended up leaving it there.
>No luck yet in converting my MXML file for TitleWindow equivalent because
>it also has PopUpManager and uses HBox and Canvas in the same MXML file.
>I cannot get a simple MXML file (less than 40 lines) to compile.
>
>I am confused why the same code compiles and works when it is part of the
>MXML file inside of  but when I tried to create a separate
>MXML file for a panel inside of a View it doesn't compile.
>In other words,  will
>be fine inside  but cannot be standalone. This must be
>another newbie question.
>Regards,
>Allen
>
>-Original Message-
>From: yishayw [mailto:yishayj...@hotmail.com]
>Sent: Saturday, July 08, 2017 4:58 AM
>To: dev@flex.apache.org
>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>I don't see panelview.as in the sources. But anyway, I don't remember it
>being part of the demo so you can ignore it for now. Any luck with
>creating a TitleWindow equivalent?
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-development.247.n4.nabble.com%2FFlexJS-question-about-porting-an-Ado
>be-Flex-3-project-to-HTML-JS-tp62698p62960.html=02%7C01%7C%7C547b2515
>c4244d1105d608d4c6014a6d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6363
>51156227326642=Vwy%2BU1qoAoMSD1R1jN3t%2BZLAjrCtOS1%2BMXjgdnWzUI8%3D&
>reserved=0
>Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>
>
>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>contenir des informations sensibles et/ ou confidentielles ne devant pas
>être divulguées. Si vous n'êtes pas le destinataire de ce message (ou que
>vous recevez ce message par erreur), nous vous remercions de le notifier
>immédiatement à son expéditeur, et de détruire ce message. Toute copie,
>divulgation, modification, utilisation ou diffusion, non autorisée,
>directe ou indirecte, de tout ou partie de ce message, est strictement
>interdite.
>
>
>This e-mail, and any document attached hereby, may contain confidential
>and/or privileged information. If you are not the intended recipient (or
>have received this e-mail in error) please notify the sender immediately
>and destroy this e-mail. Any unauthorized, direct or indirect, copying,
>disclosure, distribution or other use of the material or parts thereof is
>strictly forbidden.



RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-08 Thread Allen YANG
olExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
at 
org.apache.flex.compiler.internal.parsing.mxml.RawMXMLTokenizer.buildToken(RawMXMLTokenizer.java:399)
at 
org.apache.flex.compiler.internal.parsing.mxml.BaseRawMXMLTokenizer.buildToken(BaseRawMXMLTokenizer.java:133)
at 
org.apache.flex.compiler.internal.parsing.mxml.BaseRawMXMLTokenizer.buildToken(BaseRawMXMLTokenizer.java:146)
at 
org.apache.flex.compiler.internal.parsing.mxml.RawMXMLTokenizer.nextToken(RawMXMLTokenizer.java:786)
at 
org.apache.flex.compiler.internal.parsing.mxml.MXMLTokenizer.nextTokenInternal(MXMLTokenizer.java:209)
at 
org.apache.flex.compiler.internal.parsing.mxml.MXMLTokenizer.nextToken(MXMLTokenizer.java:240)
at 
org.apache.flex.compiler.internal.parsing.mxml.MXMLTokenizer.parseTokens(MXMLTokenizer.java:269)
at 
org.apache.flex.compiler.internal.caches.MXMLDataCache.createEntryValue(MXMLDataCache.java:85)
at 
org.apache.flex.compiler.internal.caches.MXMLDataCache.createEntryValue(MXMLDataCache.java:38)
at 
org.apache.flex.compiler.internal.caches.ConcurrentCacheStoreBase.get(ConcurrentCacheStoreBase.java:69)
at 
org.apache.flex.compiler.internal.mxml.MXMLDataManager.get(MXMLDataManager.java:52)
at 
org.apache.flex.compiler.internal.mxml.MXMLDataManager.get(MXMLDataManager.java:36)
at 
org.apache.flex.compiler.internal.units.MXMLCompilationUnit.getMXMLData(MXMLCompilationUnit.java:281)
at 
org.apache.flex.compiler.internal.units.MXMLCompilationUnit.handleFileScopeRequest(MXMLCompilationUnit.java:168)
at 
org.apache.flex.compiler.internal.units.CompilationUnitBase.processFileScopeRequest(CompilationUnitBase.java:864)
at 
org.apache.flex.compiler.internal.units.CompilationUnitBase.access$200(CompilationUnitBase.java:109)
at 
org.apache.flex.compiler.internal.units.CompilationUnitBase$3$1.call(CompilationUnitBase.java:288)
at 
org.apache.flex.compiler.internal.units.CompilationUnitBase$3$1.call(CompilationUnitBase.java:284)
... 6 more
Unexpected exception 'java.lang.NullPointerException'.


408.789603726 seconds


-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Saturday, July 08, 2017 1:19 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

You might want to try the Express components by changing:

xmlns:js="library://ns.apache.org/flexjs/basic"

To:

xmlns:js="library://ns.apache.org/flexjs/express"

Then the components should have more APIs built-in.

If you hit a null pointer exception, please post the stack trace so we can try 
to see what the cause was.

You may need to grab the source for ISearchable and include it in your project 
so it gets cross-compiled, or build a FlexJS SWC from the ISearchable source.

Good luck,
-Alex





Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-08 Thread Allen YANG
Hi Yishay,
You are right.  I rechecked the demo.zip file and panelview.as is not there. 
Maybe I was trying to learn about TitleWindow replacement and break the code 
into a separate file, ended up leaving it there.
No luck yet in converting my MXML file for TitleWindow equivalent because it 
also has PopUpManager and uses HBox and Canvas in the same MXML file. I cannot 
get a simple MXML file (less than 40 lines) to compile.

I am confused why the same code compiles and works when it is part of the MXML 
file inside of  but when I tried to create a separate MXML file 
for a panel inside of a View it doesn't compile.
In other words,  will be 
fine inside  but cannot be standalone. This must be another newbie 
question.
Regards,
Allen

-Original Message-
From: yishayw [mailto:yishayj...@hotmail.com]
Sent: Saturday, July 08, 2017 4:58 AM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

I don't see panelview.as in the sources. But anyway, I don't remember it being 
part of the demo so you can ignore it for now. Any luck with creating a 
TitleWindow equivalent?



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62960.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-08 Thread yishayw
I don't see panelview.as in the sources. But anyway, I don't remember it
being part of the demo so you can ignore it for now. Any luck with creating
a TitleWindow equivalent?



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62960.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-07 Thread Alex Harui
Hi Allen,

You might want to try the Express components by changing:

xmlns:js="library://ns.apache.org/flexjs/basic"

To:

xmlns:js="library://ns.apache.org/flexjs/express"

Then the components should have more APIs built-in.

If you hit a null pointer exception, please post the stack trace so we can
try to see what the cause was.

You may need to grab the source for ISearchable and include it in your
project so it gets cross-compiled, or build a FlexJS SWC from the
ISearchable source.

Good luck,
-Alex

On 7/7/17, 12:48 PM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Team:
>I was trying to compile a SearchBox.mxml file in VS Code + Maven, after
>the compiler ran for 5 minutes (typically only takes a few seconds) the
>compiler hit a null pointer exception.  I don't know why but I guess it
>has something to do with
>import com.iwobanas.core.ISearchable;
>The reason for me to compile this MXML file is that I need to convert it
>from Flex 3 to FlexJS, I tried to use HContainer to replace HBox.  Could
>anyone take a look at my MXML file and advise how I can make it compile?
>Thanks,
>Allen
>
>
>xmlns:fx="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F
>ns.adobe.com%2Fmxml%2F2009=02%7C01%7C%7C3e87837b8bb140bf152208d4c5712
>b7b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636350537231426907=
>bUQrjzoYXl4XL5XNjRUUnsYBwZvgUPit%2FiYAN629XpY%3D=0"
>  xmlns:js="library://ns.apache.org/flexjs/basic"
>  xmlns:ns="library://ns.apache.org/flexjs/svg>
>
>
>
>
>change="{target.find(searchInput.text)}"
>backgroundColor="{!target.searchString || target.found ?
>0xff:0xff}"
>enter="{target.findNext()}"
>toolTip="Live search" width="207"/>
>label="" click="{target.findPrevious()}" toolTip="Previous" />
>label="" click="{target.findNext()}" toolTip="Next" />
>
>
>-Original Message-
>From: Allen YANG
>Sent: Friday, July 07, 2017 2:51 PM
>To: 'dev@flex.apache.org'
>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Yishay,
>
>I played further with your demo_for_presentation example, I realized that
>the source file panelview.as in src/beads is probably not used because I
>could remove it and rebuild without affecting the build and run.  Could
>you tell me what that file is for?
>
>Thanks,
>Allen
>
>
>
>
>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>contenir des informations sensibles et/ ou confidentielles ne devant pas
>être divulguées. Si vous n'êtes pas le destinataire de ce message (ou que
>vous recevez ce message par erreur), nous vous remercions de le notifier
>immédiatement à son expéditeur, et de détruire ce message. Toute copie,
>divulgation, modification, utilisation ou diffusion, non autorisée,
>directe ou indirecte, de tout ou partie de ce message, est strictement
>interdite.
>
>
>This e-mail, and any document attached hereby, may contain confidential
>and/or privileged information. If you are not the intended recipient (or
>have received this e-mail in error) please notify the sender immediately
>and destroy this e-mail. Any unauthorized, direct or indirect, copying,
>disclosure, distribution or other use of the material or parts thereof is
>strictly forbidden.



RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-07 Thread Allen YANG
Hi Team:
I was trying to compile a SearchBox.mxml file in VS Code + Maven, after the 
compiler ran for 5 minutes (typically only takes a few seconds) the compiler 
hit a null pointer exception.  I don't know why but I guess it has something to 
do with
import com.iwobanas.core.ISearchable;
The reason for me to compile this MXML file is that I need to convert it from 
Flex 3 to FlexJS, I tried to use HContainer to replace HBox.  Could anyone take 
a look at my MXML file and advise how I can make it compile?
Thanks,
Allen


http://ns.adobe.com/mxml/2009;
  xmlns:js="library://ns.apache.org/flexjs/basic"
  xmlns:ns="library://ns.apache.org/flexjs/svg>










RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-07 Thread Allen YANG
Hi Yishay,

I played further with your demo_for_presentation example, I realized that the 
source file panelview.as in src/beads is probably not used because I could 
remove it and rebuild without affecting the build and run.  Could you tell me 
what that file is for?

Thanks,
Allen




Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-07 Thread Allen YANG
Hi Alex,
Thanks for posting the link.  It does look a bit ugly now.
I used Maven to build the ASDoc example. Yes; it created a bunch of folders and 
files in them besides the 3 files I mentioned, including folders library, org, 
and valueObejcts with .js files inside and .map files for debugging.
Regards,
Allen

-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Friday, July 07, 2017 3:07 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

Looks like I forgot to post the link:

http://apacheflexbuild.cloudapp.net:8080/job/FlexJS_ASDoc_Example/lastSucce
ssfulBuild/artifact/examples/flexjs/ASDoc/bin/js-debug/index.html

You shouldn't have to build it yourself.  Did you use Maven or Ant to build it? 
 It might be that the Maven build won't create the data, but it should have 
created more than the 3 files you mentioned.

HTH,
-Alex

On 7/6/17, 6:08 PM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Alex,
>I googled FlexJS API reference and found the link:
>https://na01.safelinks.protection.outlook.com/?url=http:%2F%2Fpeople.ap
>ach
>e.org%2F~pent%2Fasdoc-flexjs%2F=02%7C01%7C%7C1892074ef45b4b216b000
>8d4
>c4d4c0d6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63634986543959151
>9
>data=URhCIE9J3QRiTcHmAP55MmkJwND8an8uNSimPtITORg%3D=0 Thanks
>for pointing out that ASDOC is probably out of date.
>I built examples/flexjs/ASDoc; the build was successful, it created in
>the target folder an index.html,  SummaryRenderer.js and
>SummaryRenderer.as.map.  How do I run this? If I just run index.html
>file the browser shows nothing.  Sorry, this may be a dumb question.
>Regards,
>Allen
>
>
>-Original Message-
>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>Sent: Thursday, July 06, 2017 6:44 PM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Allen,
>
>I just updated the FlexJS ASDoc link from our website.  Because FlexJS
>does some enhanced parsing of AS, the current ASDoc tools can't
>generate the usual ASDoc pages, so we are currently using a FlexJS
>example app to display ASDoc.  It is a bit ugly right now and
>volunteers are welcome to offer improvements.  The source code is in 
>examples/flexjs/ASDoc.
>
>Where did you find that link to people.apache.org?   That ASDoc is
>probably out of date.
>
>Thanks,
>-Alex
>
>On 7/6/17, 12:25 PM, "Allen YANG" <allen.y...@raritan.com> wrote:
>
>>Thanks, Yishay. I will look into these in the API reference.  Just
>>created my first panel.
>>Somehow I only see the Apache Flex 4.14.0 API reference in
>>https://na01.safelinks.protection.outlook.com/?url=http:%2F%2Fpeople.a
>>p
>>ach
>>e.org%2F~pent%2Fasdoc-flexjs%2F=02%7C01%7C%7Cea5814849fde49d0e639
>>0
>>8d4
>>c4a4ce1e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6363496594882464
>>5
>>7
>>data=Pfq4vVvp%2FmUtR9mOfRvWI3xmugKCJxlDH%2FDm8vwI%2Fxc%3D=0
>>when I search for FlexJS API reference. Hope this is correct page.
>>Regards,
>>Allen
>>
>>
>>-Original Message-
>>From: yishayw [mailto:yishayj...@hotmail.com]
>>Sent: Thursday, July 06, 2017 2:32 PM
>>To: dev@flex.apache.org
>>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project
>>to
>>HTML+JS
>>
>>I don't have code to share but as general pointers:
>>
>>- use Panel instead of TitleWindow
>>- use UIUtils instead of PopupManager
>>- user HContainer instead of HBox
>>
>>Hope this helps.
>>
>>
>>
>>--
>>View this message in context:
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache
>>-
>>fle
>>x-development.247.n4.nabble.com%2FFlexJS-question-about-porting-an
>>-
>>Ado
>>be-Flex-3-project-to-HTML-JS-tp62698p62886.html=02%7C01%7C%7Cea58
>>1
>>484
>>9fde49d0e63908d4c4a4ce1e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C
>>6
>>363
>>49659488246457=M83aDk0hR4a8n84eglO3nQuehM4IHXDol46FSVoqwBI%3D
>>s
>>erv
>>ed=0
>>Sent from the Apache Flex Development mailing list archive at Nabble.com.
>>
>>
>>
>>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>>contenir des informations sensibles et/ ou confidentielles ne devant
>>pas être divulguées. Si vous n'êtes pas le destinataire de ce message
>>(ou que vous recevez ce message par erreur), nous vous remercions de
>>le notifier immédiatement à son expéditeur, et de détruire ce message.
>>Toute copie, divulgation,

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-07 Thread Alex Harui
Hi Allen,

Looks like I forgot to post the link:

http://apacheflexbuild.cloudapp.net:8080/job/FlexJS_ASDoc_Example/lastSucce
ssfulBuild/artifact/examples/flexjs/ASDoc/bin/js-debug/index.html

You shouldn't have to build it yourself.  Did you use Maven or Ant to
build it?  It might be that the Maven build won't create the data, but it
should have created more than the 3 files you mentioned.

HTH,
-Alex

On 7/6/17, 6:08 PM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Alex,
>I googled FlexJS API reference and found the link:
>https://na01.safelinks.protection.outlook.com/?url=http:%2F%2Fpeople.apach
>e.org%2F~pent%2Fasdoc-flexjs%2F=02%7C01%7C%7C1892074ef45b4b216b0008d4
>c4d4c0d6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636349865439591519
>data=URhCIE9J3QRiTcHmAP55MmkJwND8an8uNSimPtITORg%3D=0 Thanks for
>pointing out that ASDOC is probably out of date.
>I built examples/flexjs/ASDoc; the build was successful, it created in
>the target folder an index.html,  SummaryRenderer.js and
>SummaryRenderer.as.map.  How do I run this? If I just run index.html file
>the browser shows nothing.  Sorry, this may be a dumb question.
>Regards,
>Allen
>
>
>-Original Message-
>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>Sent: Thursday, July 06, 2017 6:44 PM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Allen,
>
>I just updated the FlexJS ASDoc link from our website.  Because FlexJS
>does some enhanced parsing of AS, the current ASDoc tools can't generate
>the usual ASDoc pages, so we are currently using a FlexJS example app to
>display ASDoc.  It is a bit ugly right now and volunteers are welcome to
>offer improvements.  The source code is in examples/flexjs/ASDoc.
>
>Where did you find that link to people.apache.org?   That ASDoc is
>probably out of date.
>
>Thanks,
>-Alex
>
>On 7/6/17, 12:25 PM, "Allen YANG" <allen.y...@raritan.com> wrote:
>
>>Thanks, Yishay. I will look into these in the API reference.  Just
>>created my first panel.
>>Somehow I only see the Apache Flex 4.14.0 API reference in
>>https://na01.safelinks.protection.outlook.com/?url=http:%2F%2Fpeople.ap
>>ach
>>e.org%2F~pent%2Fasdoc-flexjs%2F=02%7C01%7C%7Cea5814849fde49d0e6390
>>8d4
>>c4a4ce1e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63634965948824645
>>7
>>data=Pfq4vVvp%2FmUtR9mOfRvWI3xmugKCJxlDH%2FDm8vwI%2Fxc%3D=0
>>when I search for FlexJS API reference. Hope this is correct page.
>>Regards,
>>Allen
>>
>>
>>-Original Message-
>>From: yishayw [mailto:yishayj...@hotmail.com]
>>Sent: Thursday, July 06, 2017 2:32 PM
>>To: dev@flex.apache.org
>>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>>HTML+JS
>>
>>I don't have code to share but as general pointers:
>>
>>- use Panel instead of TitleWindow
>>- use UIUtils instead of PopupManager
>>- user HContainer instead of HBox
>>
>>Hope this helps.
>>
>>
>>
>>--
>>View this message in context:
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-
>>fle
>>x-development.247.n4.nabble.com%2FFlexJS-question-about-porting-an-
>>Ado
>>be-Flex-3-project-to-HTML-JS-tp62698p62886.html=02%7C01%7C%7Cea581
>>484
>>9fde49d0e63908d4c4a4ce1e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>>363
>>49659488246457=M83aDk0hR4a8n84eglO3nQuehM4IHXDol46FSVoqwBI%3D
>>erv
>>ed=0
>>Sent from the Apache Flex Development mailing list archive at Nabble.com.
>>
>>
>>
>>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>>contenir des informations sensibles et/ ou confidentielles ne devant
>>pas être divulguées. Si vous n'êtes pas le destinataire de ce message
>>(ou que vous recevez ce message par erreur), nous vous remercions de le
>>notifier immédiatement à son expéditeur, et de détruire ce message.
>>Toute copie, divulgation, modification, utilisation ou diffusion, non
>>autorisée, directe ou indirecte, de tout ou partie de ce message, est
>>strictement interdite.
>>
>>
>>This e-mail, and any document attached hereby, may contain confidential
>>and/or privileged information. If you are not the intended recipient
>>(or have received this e-mail in error) please notify the sender
>>immediately and destroy this e-mail. Any unauthorized, direct or
>>indirect, copying, disclosure, distribution or other use of the
>>material or parts thereof is strictly forbidden.
>
>
>
>
>C

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-06 Thread Allen YANG
Hi Alex,
I googled FlexJS API reference and found the link: 
http://people.apache.org/~pent/asdoc-flexjs/ Thanks for pointing out that ASDOC 
is probably out of date.
I built examples/flexjs/ASDoc; the build was successful, it created in the 
target folder an index.html,  SummaryRenderer.js and SummaryRenderer.as.map.  
How do I run this? If I just run index.html file the browser shows nothing.  
Sorry, this may be a dumb question.
Regards,
Allen


-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Thursday, July 06, 2017 6:44 PM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

I just updated the FlexJS ASDoc link from our website.  Because FlexJS does 
some enhanced parsing of AS, the current ASDoc tools can't generate the usual 
ASDoc pages, so we are currently using a FlexJS example app to display ASDoc.  
It is a bit ugly right now and volunteers are welcome to offer improvements.  
The source code is in examples/flexjs/ASDoc.

Where did you find that link to people.apache.org?   That ASDoc is
probably out of date.

Thanks,
-Alex

On 7/6/17, 12:25 PM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Thanks, Yishay. I will look into these in the API reference.  Just
>created my first panel.
>Somehow I only see the Apache Flex 4.14.0 API reference in
>https://na01.safelinks.protection.outlook.com/?url=http:%2F%2Fpeople.ap
>ach
>e.org%2F~pent%2Fasdoc-flexjs%2F=02%7C01%7C%7Cea5814849fde49d0e6390
>8d4
>c4a4ce1e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63634965948824645
>7
>data=Pfq4vVvp%2FmUtR9mOfRvWI3xmugKCJxlDH%2FDm8vwI%2Fxc%3D=0
>when I search for FlexJS API reference. Hope this is correct page.
>Regards,
>Allen
>
>
>-Original Message-
>From: yishayw [mailto:yishayj...@hotmail.com]
>Sent: Thursday, July 06, 2017 2:32 PM
>To: dev@flex.apache.org
>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>I don't have code to share but as general pointers:
>
>- use Panel instead of TitleWindow
>- use UIUtils instead of PopupManager
>- user HContainer instead of HBox
>
>Hope this helps.
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-
>fle
>x-development.247.n4.nabble.com%2FFlexJS-question-about-porting-an-
>Ado
>be-Flex-3-project-to-HTML-JS-tp62698p62886.html=02%7C01%7C%7Cea581
>484
>9fde49d0e63908d4c4a4ce1e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>363
>49659488246457=M83aDk0hR4a8n84eglO3nQuehM4IHXDol46FSVoqwBI%3D
>erv
>ed=0
>Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>
>
>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>contenir des informations sensibles et/ ou confidentielles ne devant
>pas être divulguées. Si vous n'êtes pas le destinataire de ce message
>(ou que vous recevez ce message par erreur), nous vous remercions de le
>notifier immédiatement à son expéditeur, et de détruire ce message.
>Toute copie, divulgation, modification, utilisation ou diffusion, non
>autorisée, directe ou indirecte, de tout ou partie de ce message, est
>strictement interdite.
>
>
>This e-mail, and any document attached hereby, may contain confidential
>and/or privileged information. If you are not the intended recipient
>(or have received this e-mail in error) please notify the sender
>immediately and destroy this e-mail. Any unauthorized, direct or
>indirect, copying, disclosure, distribution or other use of the
>material or parts thereof is strictly forbidden.




Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-06 Thread Alex Harui
Hi Allen,

I just updated the FlexJS ASDoc link from our website.  Because FlexJS
does some enhanced parsing of AS, the current ASDoc tools can't generate
the usual ASDoc pages, so we are currently using a FlexJS example app to
display ASDoc.  It is a bit ugly right now and volunteers are welcome to
offer improvements.  The source code is in examples/flexjs/ASDoc.

Where did you find that link to people.apache.org?   That ASDoc is
probably out of date.

Thanks,
-Alex

On 7/6/17, 12:25 PM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Thanks, Yishay. I will look into these in the API reference.  Just
>created my first panel.
>Somehow I only see the Apache Flex 4.14.0 API reference in
>https://na01.safelinks.protection.outlook.com/?url=http:%2F%2Fpeople.apach
>e.org%2F~pent%2Fasdoc-flexjs%2F=02%7C01%7C%7Cea5814849fde49d0e63908d4
>c4a4ce1e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636349659488246457
>data=Pfq4vVvp%2FmUtR9mOfRvWI3xmugKCJxlDH%2FDm8vwI%2Fxc%3D=0 when
>I search for FlexJS API reference. Hope this is correct page.
>Regards,
>Allen
>
>
>-Original Message-
>From: yishayw [mailto:yishayj...@hotmail.com]
>Sent: Thursday, July 06, 2017 2:32 PM
>To: dev@flex.apache.org
>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>I don't have code to share but as general pointers:
>
>- use Panel instead of TitleWindow
>- use UIUtils instead of PopupManager
>- user HContainer instead of HBox
>
>Hope this helps.
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-development.247.n4.nabble.com%2FFlexJS-question-about-porting-an-Ado
>be-Flex-3-project-to-HTML-JS-tp62698p62886.html=02%7C01%7C%7Cea581484
>9fde49d0e63908d4c4a4ce1e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6363
>49659488246457=M83aDk0hR4a8n84eglO3nQuehM4IHXDol46FSVoqwBI%3D
>ed=0
>Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>
>
>Ce message, ainsi que tous les fichiers joints à ce message, peuvent
>contenir des informations sensibles et/ ou confidentielles ne devant pas
>être divulguées. Si vous n'êtes pas le destinataire de ce message (ou que
>vous recevez ce message par erreur), nous vous remercions de le notifier
>immédiatement à son expéditeur, et de détruire ce message. Toute copie,
>divulgation, modification, utilisation ou diffusion, non autorisée,
>directe ou indirecte, de tout ou partie de ce message, est strictement
>interdite.
>
>
>This e-mail, and any document attached hereby, may contain confidential
>and/or privileged information. If you are not the intended recipient (or
>have received this e-mail in error) please notify the sender immediately
>and destroy this e-mail. Any unauthorized, direct or indirect, copying,
>disclosure, distribution or other use of the material or parts thereof is
>strictly forbidden.



RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-06 Thread Allen YANG
Thanks, Yishay. I will look into these in the API reference.  Just created my 
first panel.
Somehow I only see the Apache Flex 4.14.0 API reference in 
http://people.apache.org/~pent/asdoc-flexjs/ when I search for FlexJS API 
reference. Hope this is correct page.
Regards,
Allen


-Original Message-
From: yishayw [mailto:yishayj...@hotmail.com]
Sent: Thursday, July 06, 2017 2:32 PM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

I don't have code to share but as general pointers:

- use Panel instead of TitleWindow
- use UIUtils instead of PopupManager
- user HContainer instead of HBox

Hope this helps.



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62886.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-06 Thread yishayw
I don't have code to share but as general pointers:

- use Panel instead of TitleWindow
- use UIUtils instead of PopupManager
- user HContainer instead of HBox

Hope this helps.



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62886.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-06 Thread Allen YANG
Hi PKumar,
Please share with me the examples on title windows, grid, panel and other 
controls; I need to convert them from a Flex 3 project built on Flash Builder 
3.6 to HTML+JS built with FlexJS 0.8.0 in my project.
Regards,
Allen

-Original Message-
From: PKumar [mailto:prashaku...@gmail.com]
Sent: Thursday, July 06, 2017 11:08 AM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

I will check the example shared. But if need more examples on title window, 
grid, panel , list and other controls. Just let me know I will share with you 
on GitHub.

On 06-Jul-2017 7:21 PM, "allenyyang [via Apache Flex Development]" <
ml+s247n62863...@n4.nabble.com> wrote:

> Hi PKumar,
>
> You are correct that I don't need to have Maven or Ant installed if I want
> to just use Flash Builder as the IDE.   was able to use Flash Builder 4.7
> and FlexJS to build and run the examples in the wiki successfully.  I
> just could not use FB to build Yishay's demo_for_presentation project
> successfully.  But I desired to get this demo working because the demo
> program is beyond "Hello World".  I just didn’t know that it would
> takes me longer time than I expected and still not fully getting it to
> work the way it should.
> After trying both FB and VS Code+Maven for a while, I think Flash
> Builder's error messages tend to be more cryptic.
>
> Hi Yishay,
> I followed Alex's suggestions and did the following steps to
> demo_for_presentation project:
> 1) In Project -> Properties -> Flex Build Path, removed airglobal,
> Core.swc and Basic.swc.
> 2) Shut down Flash Builder
> 3) Open the .actionScriptProperties file in a text editor and remove
> these two lines from excludedEntries:
>  path="${PROJECT_FRAMEWORKS}/libs/core.swc" useDefaultLinkType="false"/>
>path="${PROJECT_FRAMEWORKS}/libs/Basic.swc"
> useDefaultLinkType="false"/>
> 4) Use the file system to remove bin folder from the project folder.
> 5) Restart Flash Builder, clean and rebuild the project.
>
> These changes allowed me to build demo_for_presentation. And I now can
> run it by double-clicking index.html in both bin/js-debug and
> bin/js-release folders.
> But I am not sure that it runs correctly because the screen display
> always look like the following:
>
> boring
> my comp 0
> Button1 Button2
>
> Clicking Button1 should increment the count, but it doesn't change the
> display at all; and I believe clicking Button2 doesn't do anything
> according to the source code.  Could you help me  to correct the
> behavior of the demo program?
> I exported the fpx file on my Dropbox: https://www.dropbox.com/s/
> zknv0tj5kvvioph/demo_for_presentation.fxp?dl=0
>
> Hi Team:
> My original purpose of learning FlexJS is to convert my Flex 3 project
> so it will run without Flash Player. I am still far away from the
> goal.  If anyone could suggest what to do to rewrite my MXMLs that use
> TitleWindow and HBox that will be quite appreciated.
>
> Best regards,
> Allen
>
>
> -Original Message-
> From: PKumar [mailto:[hidden email]
> <http:///user/SendEmail.jtp?type=node=62863=0>]
> Sent: Thursday, July 06, 2017 2:26 AM
> To: [hidden email]
> <http:///user/SendEmail.jtp?type=node=62863=1>
> Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project
> to
> HTML+JS
>
> If you want to use FlexJS with Flash Builder 4.7 then no need to
> install  Ant and maven.
>
> just download latest version of FlexJs via SDK installer and add new
> FlexJS SDK under Flash Buildrler4.7 as you add regular flex SDK.
>
> After SDK setup . You need to import runtime command into Flash
> Builder so that u can compile Flex JS project.
>
> Apache Flex wiki have nice information on this. Please refer wiki.
>
> On 06-Jul-2017 5:17 AM, "allenyyang [via Apache Flex Development]" <
> [hidden email] <http:///user/SendEmail.jtp?type=node=62863=2>>
> wrote:
>
> > Hi Yishay,
> >
> > After trying for quite a while, I found that we might be talking
> > about two different things.  I informed Piotr that was able to use
> > Maven and VS Code to build and run Piotr's "Hello World" example 
> > successfully.
> > But I was unable to successfully run demo_for_presentation using
> > Flash
> Builder 4.7.
> > You might be thinking that I was talking about being able to use VS
> > Code and Maven to build and run demo_for_presentation successfully;
> > which is not the case for me yet.
> >
> > So I went back to your email on 07/01 and I installed Ant and added
> > it to PATH; I also set ANT

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-06 Thread Allen YANG
Hi Yishay,
After adding these to css, it works now.
Thanks  a lot!
Best Regards,
Allen

-Original Message-
From: yishayw [mailto:yishayj...@hotmail.com]
Sent: Thursday, July 06, 2017 1:15 PM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

allenyyang wrote
> These changes allowed me to build demo_for_presentation. And I now can
> run it by double-clicking index.html in both bin/js-debug and
> bin/js-release folders.
> But I am not sure that it runs correctly because the screen display
> always look like the following:
>
> boring
> my comp 0
> Button1 Button2
>
> Clicking Button1 should increment the count, but it doesn't change the
> display at all; and I believe clicking Button2 doesn't do anything
> according to the source code.  Could you help me  to correct the
> behavior of the demo program?

It looks like version 0.8.0 requires you to specify the states implementation.

I added the line below to main.css and button1 now changes state as expected.

global {
IStatesImpl:
ClassReference("org.apache.flex.core.SimpleStatesImpl");
}

BTW, clicking on 'my comp 0' is what causes the increment.




--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62874.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-06 Thread yishayw
allenyyang wrote
> These changes allowed me to build demo_for_presentation. And I now can run
> it by double-clicking index.html in both bin/js-debug and bin/js-release
> folders.
> But I am not sure that it runs correctly because the screen display always
> look like the following:
> 
> boring
> my comp 0
> Button1 Button2
> 
> Clicking Button1 should increment the count, but it doesn't change the
> display at all; and I believe clicking Button2 doesn't do anything
> according to the source code.  Could you help me  to correct the behavior
> of the demo program?

It looks like version 0.8.0 requires you to specify the states
implementation.

I added the line below to main.css and button1 now changes state as
expected.

global {
IStatesImpl:   
ClassReference("org.apache.flex.core.SimpleStatesImpl");
}
 
BTW, clicking on 'my comp 0' is what causes the increment.




--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62874.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-06 Thread Alex Harui
Hi Allen,

You can try other examples like FlexJSStore in the FlexJS SDK's examples
folder as the source for a FlexJS project in Flash Builder.

Or, create a new Flex/FlexJS project and copy the source from
demo_for_presentation.

HTH,
-Alex

On 7/6/17, 6:50 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi PKumar,
>
>You are correct that I don't need to have Maven or Ant installed if I
>want to just use Flash Builder as the IDE.   was able to use Flash
>Builder 4.7 and FlexJS to build and run the examples in the wiki
>successfully.  I just could not use FB to build Yishay's
>demo_for_presentation project successfully.  But I desired to get this
>demo working because the demo program is beyond "Hello World".  I just
>didn’t know that it would takes me longer time than I expected and still
>not fully getting it to work the way it should.
>After trying both FB and VS Code+Maven for a while, I think Flash
>Builder's error messages tend to be more cryptic.
>
>Hi Yishay,
>I followed Alex's suggestions and did the following steps to
>demo_for_presentation project:
>1) In Project -> Properties -> Flex Build Path, removed airglobal,
>Core.swc and Basic.swc.
>2) Shut down Flash Builder
>3) Open the .actionScriptProperties file in a text editor and remove
>these two lines from excludedEntries:
>path="${PROJECT_FRAMEWORKS}/libs/core.swc" useDefaultLinkType="false"/>
>  path="${PROJECT_FRAMEWORKS}/libs/Basic.swc" useDefaultLinkType="false"/>
>4) Use the file system to remove bin folder from the project folder.
>5) Restart Flash Builder, clean and rebuild the project.
>
>These changes allowed me to build demo_for_presentation. And I now can
>run it by double-clicking index.html in both bin/js-debug and
>bin/js-release folders.
>But I am not sure that it runs correctly because the screen display
>always look like the following:
>
>boring
>my comp 0
>Button1 Button2
>
>Clicking Button1 should increment the count, but it doesn't change the
>display at all; and I believe clicking Button2 doesn't do anything
>according to the source code.  Could you help me  to correct the behavior
>of the demo program?
>I exported the fpx file on my Dropbox:
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dropb
>ox.com%2Fs%2Fzknv0tj5kvvioph%2Fdemo_for_presentation.fxp%3Fdl%3D0=02%
>7C01%7C%7C8345d5754e0445ae749108d4c47606dd%7Cfa7b1b5a7b34438794aed2c178dec
>ee1%7C0%7C0%7C636349458587573300=GQuPEL%2F5L%2BIbBDA92SAbKDJeeLT3Eoc
>om26fULgT0xA%3D=0
>
>Hi Team:
>My original purpose of learning FlexJS is to convert my Flex 3 project so
>it will run without Flash Player. I am still far away from the goal.  If
>anyone could suggest what to do to rewrite my MXMLs that use TitleWindow
>and HBox that will be quite appreciated.
>
>Best regards,
>Allen
>
>
>-Original Message-
>From: PKumar [mailto:prashaku...@gmail.com]
>Sent: Thursday, July 06, 2017 2:26 AM
>To: dev@flex.apache.org
>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>If you want to use FlexJS with Flash Builder 4.7 then no need to install
>Ant and maven.
>
>just download latest version of FlexJs via SDK installer and add new
>FlexJS SDK under Flash Buildrler4.7 as you add regular flex SDK.
>
>After SDK setup . You need to import runtime command into Flash Builder
>so that u can compile Flex JS project.
>
>Apache Flex wiki have nice information on this. Please refer wiki.
>
>On 06-Jul-2017 5:17 AM, "allenyyang [via Apache Flex Development]" <
>ml+s247n62853...@n4.nabble.com> wrote:
>
>> Hi Yishay,
>>
>> After trying for quite a while, I found that we might be talking about
>> two different things.  I informed Piotr that was able to use Maven and
>> VS Code to build and run Piotr's "Hello World" example successfully.
>> But I was unable to successfully run demo_for_presentation using Flash
>>Builder 4.7.
>> You might be thinking that I was talking about being able to use VS
>> Code and Maven to build and run demo_for_presentation successfully;
>> which is not the case for me yet.
>>
>> So I went back to your email on 07/01 and I installed Ant and added it
>> to PATH; I also set ANT_HOME to where I installed Ant:
>> C:\apache-ant-1.10.1; and already have JAVA_HOME to its installation
>> folder: C:\Program
>> Files\Java\jdk1.8.0_131
>> At the folder demo_for_presentation where build.xml file resides, I
>> typed 'ant' in the cmd window.  I got the following error:
>> --
>> 
>>
>

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-06 Thread PKumar
I will check the example shared. But if need more examples on title window,
grid, panel , list and other controls. Just let me know I will share with
you on GitHub.

On 06-Jul-2017 7:21 PM, "allenyyang [via Apache Flex Development]" <
ml+s247n62863...@n4.nabble.com> wrote:

> Hi PKumar,
>
> You are correct that I don't need to have Maven or Ant installed if I want
> to just use Flash Builder as the IDE.   was able to use Flash Builder 4.7
> and FlexJS to build and run the examples in the wiki successfully.  I just
> could not use FB to build Yishay's demo_for_presentation project
> successfully.  But I desired to get this demo working because the demo
> program is beyond "Hello World".  I just didn’t know that it would takes me
> longer time than I expected and still not fully getting it to work the way
> it should.
> After trying both FB and VS Code+Maven for a while, I think Flash
> Builder's error messages tend to be more cryptic.
>
> Hi Yishay,
> I followed Alex's suggestions and did the following steps to
> demo_for_presentation project:
> 1) In Project -> Properties -> Flex Build Path, removed airglobal,
> Core.swc and Basic.swc.
> 2) Shut down Flash Builder
> 3) Open the .actionScriptProperties file in a text editor and remove these
> two lines from excludedEntries:
>  path="${PROJECT_FRAMEWORKS}/libs/core.swc" useDefaultLinkType="false"/>
>path="${PROJECT_FRAMEWORKS}/libs/Basic.swc" useDefaultLinkType="false"/>
> 4) Use the file system to remove bin folder from the project folder.
> 5) Restart Flash Builder, clean and rebuild the project.
>
> These changes allowed me to build demo_for_presentation. And I now can run
> it by double-clicking index.html in both bin/js-debug and bin/js-release
> folders.
> But I am not sure that it runs correctly because the screen display always
> look like the following:
>
> boring
> my comp 0
> Button1 Button2
>
> Clicking Button1 should increment the count, but it doesn't change the
> display at all; and I believe clicking Button2 doesn't do anything
> according to the source code.  Could you help me  to correct the behavior
> of the demo program?
> I exported the fpx file on my Dropbox: https://www.dropbox.com/s/
> zknv0tj5kvvioph/demo_for_presentation.fxp?dl=0
>
> Hi Team:
> My original purpose of learning FlexJS is to convert my Flex 3 project so
> it will run without Flash Player. I am still far away from the goal.  If
> anyone could suggest what to do to rewrite my MXMLs that use TitleWindow
> and HBox that will be quite appreciated.
>
> Best regards,
> Allen
>
>
> -Original Message-
> From: PKumar [mailto:[hidden email]
> <http:///user/SendEmail.jtp?type=node=62863=0>]
> Sent: Thursday, July 06, 2017 2:26 AM
> To: [hidden email] <http:///user/SendEmail.jtp?type=node=62863=1>
> Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
> HTML+JS
>
> If you want to use FlexJS with Flash Builder 4.7 then no need to install
>  Ant and maven.
>
> just download latest version of FlexJs via SDK installer and add new
> FlexJS SDK under Flash Buildrler4.7 as you add regular flex SDK.
>
> After SDK setup . You need to import runtime command into Flash Builder so
> that u can compile Flex JS project.
>
> Apache Flex wiki have nice information on this. Please refer wiki.
>
> On 06-Jul-2017 5:17 AM, "allenyyang [via Apache Flex Development]" <
> [hidden email] <http:///user/SendEmail.jtp?type=node=62863=2>>
> wrote:
>
> > Hi Yishay,
> >
> > After trying for quite a while, I found that we might be talking about
> > two different things.  I informed Piotr that was able to use Maven and
> > VS Code to build and run Piotr's "Hello World" example successfully.
> > But I was unable to successfully run demo_for_presentation using Flash
> Builder 4.7.
> > You might be thinking that I was talking about being able to use VS
> > Code and Maven to build and run demo_for_presentation successfully;
> > which is not the case for me yet.
> >
> > So I went back to your email on 07/01 and I installed Ant and added it
> > to PATH; I also set ANT_HOME to where I installed Ant:
> > C:\apache-ant-1.10.1; and already have JAVA_HOME to its installation
> > folder: C:\Program
> > Files\Java\jdk1.8.0_131
> > At the folder demo_for_presentation where build.xml file resides, I
> > typed 'ant' in the cmd window.  I got the following error:
> > --
> > 
> >
> > Buildfile: C:\Projects\demo_for_presentation\build.x

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-06 Thread Allen YANG
Hi PKumar,

You are correct that I don't need to have Maven or Ant installed if I want to 
just use Flash Builder as the IDE.   was able to use Flash Builder 4.7 and 
FlexJS to build and run the examples in the wiki successfully.  I just could 
not use FB to build Yishay's demo_for_presentation project successfully.  But I 
desired to get this demo working because the demo program is beyond "Hello 
World".  I just didn’t know that it would takes me longer time than I expected 
and still not fully getting it to work the way it should.
After trying both FB and VS Code+Maven for a while, I think Flash Builder's 
error messages tend to be more cryptic.

Hi Yishay,
I followed Alex's suggestions and did the following steps to 
demo_for_presentation project:
1) In Project -> Properties -> Flex Build Path, removed airglobal, Core.swc and 
Basic.swc.
2) Shut down Flash Builder
3) Open the .actionScriptProperties file in a text editor and remove these two 
lines from excludedEntries:

  
4) Use the file system to remove bin folder from the project folder.
5) Restart Flash Builder, clean and rebuild the project.

These changes allowed me to build demo_for_presentation. And I now can run it 
by double-clicking index.html in both bin/js-debug and bin/js-release folders.
But I am not sure that it runs correctly because the screen display always look 
like the following:

boring
my comp 0
Button1 Button2

Clicking Button1 should increment the count, but it doesn't change the display 
at all; and I believe clicking Button2 doesn't do anything according to the 
source code.  Could you help me  to correct the behavior of the demo program?
I exported the fpx file on my Dropbox: 
https://www.dropbox.com/s/zknv0tj5kvvioph/demo_for_presentation.fxp?dl=0

Hi Team:
My original purpose of learning FlexJS is to convert my Flex 3 project so it 
will run without Flash Player. I am still far away from the goal.  If anyone 
could suggest what to do to rewrite my MXMLs that use TitleWindow and HBox that 
will be quite appreciated.

Best regards,
Allen


-Original Message-
From: PKumar [mailto:prashaku...@gmail.com]
Sent: Thursday, July 06, 2017 2:26 AM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

If you want to use FlexJS with Flash Builder 4.7 then no need to install  Ant 
and maven.

just download latest version of FlexJs via SDK installer and add new FlexJS SDK 
under Flash Buildrler4.7 as you add regular flex SDK.

After SDK setup . You need to import runtime command into Flash Builder so that 
u can compile Flex JS project.

Apache Flex wiki have nice information on this. Please refer wiki.

On 06-Jul-2017 5:17 AM, "allenyyang [via Apache Flex Development]" <
ml+s247n62853...@n4.nabble.com> wrote:

> Hi Yishay,
>
> After trying for quite a while, I found that we might be talking about
> two different things.  I informed Piotr that was able to use Maven and
> VS Code to build and run Piotr's "Hello World" example successfully.
> But I was unable to successfully run demo_for_presentation using Flash 
> Builder 4.7.
> You might be thinking that I was talking about being able to use VS
> Code and Maven to build and run demo_for_presentation successfully;
> which is not the case for me yet.
>
> So I went back to your email on 07/01 and I installed Ant and added it
> to PATH; I also set ANT_HOME to where I installed Ant:
> C:\apache-ant-1.10.1; and already have JAVA_HOME to its installation
> folder: C:\Program
> Files\Java\jdk1.8.0_131
> At the folder demo_for_presentation where build.xml file resides, I
> typed 'ant' in the cmd window.  I got the following error:
> --
> 
>
> Buildfile: C:\Projects\demo_for_presentation\build.xml
>
> clean:
>
> build_example.compilejs:
>  [echo] Compiling demo_for_presentation.js
>  [echo] FLEX_HOME: ${env.FLEXJS_HOME}
>  [echo] FALCONJX_HOME: ${FALCONJX_HOME}
>  [echo] env GOOG_HOME: ${env.GOOG_HOME}
>  [echo] GOOG_HOME: ${GOOG_HOME}
>  [java] Error: Could not find or load main class ${mxmlc.jvm.args}
>  [java] Java Result: 1
>
> BUILD FAILED
> C:\Projects\demo_for_presentation\build_example.xml:124: code: 1
>
> Total time: 0 seconds
>
> Can you help me to see what's wrong?
>
> Thanks and Regards,
> Allen
> --
> ---
>
>
> -Original Message-
> From: yishayw [mailto:[hidden email]
> <http:///user/SendEmail.jtp?type=node=62853=0>]
> Sent: Wednesday, July 05, 2017 12:54 AM
> To: [hidden email]
> <http:///user/SendEmail.jtp?type=node=62853=1>
> Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project
> to
> HTML+JS

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-06 Thread yishayw
Hi Allen,

It looks like you’ve got VS Code and Maven working, so please don’t waste time 
on this unless you want to work on Flash Builder instead. VS Code and Maven are 
actually preferred by some developers over FB and Ant.

PKumar is correct that you shouldn’t really need Ant if you’re using FB, I was 
suggesting to use Ant as a workaround, but it looks like you have some 
environment variables missing.

I suggest you export your FB project as an fxp (in FB got to file->Export Flash 
Builder Project…) and share the fxp with us. That way we can try  to analyze 
why FB’s default build is failing for you, in an effort to make it smoother for 
future developers.

Thanks,
Yishay



From: allenyyang [via Apache Flex 
Development]<mailto:ml+s247n62853...@n4.nabble.com>
Sent: Thursday, July 6, 2017 2:47 AM
To: yishayw<mailto:yishayj...@hotmail.com>
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Yishay,

After trying for quite a while, I found that we might be talking about two 
different things.  I informed Piotr that was able to use Maven and VS Code to 
build and run Piotr's "Hello World" example successfully.  But I was unable to 
successfully run demo_for_presentation using Flash Builder 4.7.  You might be 
thinking that I was talking about being able to use VS Code and Maven to build 
and run demo_for_presentation successfully; which is not the case for me yet.

So I went back to your email on 07/01 and I installed Ant and added it to PATH; 
I also set ANT_HOME to where I installed Ant: C:\apache-ant-1.10.1; and already 
have JAVA_HOME to its installation folder: C:\Program Files\Java\jdk1.8.0_131
At the folder demo_for_presentation where build.xml file resides, I typed 'ant' 
in the cmd window.  I got the following error:
--
Buildfile: C:\Projects\demo_for_presentation\build.xml

clean:

build_example.compilejs:
 [echo] Compiling demo_for_presentation.js
 [echo] FLEX_HOME: ${env.FLEXJS_HOME}
 [echo] FALCONJX_HOME: ${FALCONJX_HOME}
 [echo] env GOOG_HOME: ${env.GOOG_HOME}
 [echo] GOOG_HOME: ${GOOG_HOME}
 [java] Error: Could not find or load main class ${mxmlc.jvm.args}
 [java] Java Result: 1

BUILD FAILED
C:\Projects\demo_for_presentation\build_example.xml:124: code: 1

Total time: 0 seconds

Can you help me to see what's wrong?

Thanks and Regards,
Allen
-

-Original Message-
From: yishayw [mailto:[hidden 
email]]
Sent: Wednesday, July 05, 2017 12:54 AM
To: [hidden email]
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

yishayw wrote
> Now assuming you have pom.xml and build.xml in your project you should
> be able to run Maven like this:

Should read:


Now assuming you have pom.xml and build.xml in your project you should be able 
to run Maven *or ant* like this:




--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62835.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


If you reply to this email, your message will be added to the discussion below:
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62853.html
To unsubscribe from [FlexJS] question about porting an Adobe Flex 3 project to 
HTML+JS, click 
here<http://apache-flex-development.247.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code=62698=eWlzaGF5am9ic0Bob3RtYWlsLmNvbXw2MjY5OHw4NjEzMzQyNTg=>.
NAML<http://apache-flex-development.247.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.n

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-06 Thread PKumar
If you want to use FlexJS with Flash Builder 4.7 then no need to install
 Ant and maven.

just download latest version of FlexJs via SDK installer and add new FlexJS
SDK under Flash Buildrler4.7 as you add regular flex SDK.

After SDK setup . You need to import runtime command into Flash Builder so
that u can compile Flex JS project.

Apache Flex wiki have nice information on this. Please refer wiki.

On 06-Jul-2017 5:17 AM, "allenyyang [via Apache Flex Development]" <
ml+s247n62853...@n4.nabble.com> wrote:

> Hi Yishay,
>
> After trying for quite a while, I found that we might be talking about two
> different things.  I informed Piotr that was able to use Maven and VS Code
> to build and run Piotr's "Hello World" example successfully.  But I was
> unable to successfully run demo_for_presentation using Flash Builder 4.7.
> You might be thinking that I was talking about being able to use VS Code
> and Maven to build and run demo_for_presentation successfully; which is not
> the case for me yet.
>
> So I went back to your email on 07/01 and I installed Ant and added it to
> PATH; I also set ANT_HOME to where I installed Ant: C:\apache-ant-1.10.1;
> and already have JAVA_HOME to its installation folder: C:\Program
> Files\Java\jdk1.8.0_131
> At the folder demo_for_presentation where build.xml file resides, I typed
> 'ant' in the cmd window.  I got the following error:
> --
>
> Buildfile: C:\Projects\demo_for_presentation\build.xml
>
> clean:
>
> build_example.compilejs:
>  [echo] Compiling demo_for_presentation.js
>  [echo] FLEX_HOME: ${env.FLEXJS_HOME}
>  [echo] FALCONJX_HOME: ${FALCONJX_HOME}
>  [echo] env GOOG_HOME: ${env.GOOG_HOME}
>  [echo] GOOG_HOME: ${GOOG_HOME}
>  [java] Error: Could not find or load main class ${mxmlc.jvm.args}
>  [java] Java Result: 1
>
> BUILD FAILED
> C:\Projects\demo_for_presentation\build_example.xml:124: code: 1
>
> Total time: 0 seconds
>
> Can you help me to see what's wrong?
>
> Thanks and Regards,
> Allen
> -
>
>
> -Original Message-
> From: yishayw [mailto:[hidden email]
> <http:///user/SendEmail.jtp?type=node=62853=0>]
> Sent: Wednesday, July 05, 2017 12:54 AM
> To: [hidden email] <http:///user/SendEmail.jtp?type=node=62853=1>
> Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
> HTML+JS
>
> yishayw wrote
> > Now assuming you have pom.xml and build.xml in your project you should
> > be able to run Maven like this:
>
> Should read:
>
>
> Now assuming you have pom.xml and build.xml in your project you should be
> able to run Maven *or ant* like this:
>
>
>
>
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-question-about-
> porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62835.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
> 
>
> Ce message, ainsi que tous les fichiers joints à ce message, peuvent
> contenir des informations sensibles et/ ou confidentielles ne devant pas
> être divulguées. Si vous n'êtes pas le destinataire de ce message (ou que
> vous recevez ce message par erreur), nous vous remercions de le notifier
> immédiatement à son expéditeur, et de détruire ce message. Toute copie,
> divulgation, modification, utilisation ou diffusion, non autorisée, directe
> ou indirecte, de tout ou partie de ce message, est strictement interdite.
>
>
> This e-mail, and any document attached hereby, may contain confidential
> and/or privileged information. If you are not the intended recipient (or
> have received this e-mail in error) please notify the sender immediately
> and destroy this e-mail. Any unauthorized, direct or indirect, copying,
> disclosure, distribution or other use of the material or parts thereof is
> strictly forbidden.
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-development.247.n4.nabble.
> com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-
> tp62698p62853.html
> To start a new topic under Apache Flex Development, email
> ml+s247n1...@n4.nabble.com
> To unsubscribe from Apache Flex Development, click here
> <http://apache-flex-development.247.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code=1=cHJhc2hha3VtYXJAZ21haWwuY29tfDF8LTU0MTcyMzE2NA==>
> .
> NAML
> <http://apache-flex-development.247.n4.nabble.com/template/NamlSer

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-05 Thread Allen YANG
Hi Yishay,

After trying for quite a while, I found that we might be talking about two 
different things.  I informed Piotr that was able to use Maven and VS Code to 
build and run Piotr's "Hello World" example successfully.  But I was unable to 
successfully run demo_for_presentation using Flash Builder 4.7.  You might be 
thinking that I was talking about being able to use VS Code and Maven to build 
and run demo_for_presentation successfully; which is not the case for me yet.

So I went back to your email on 07/01 and I installed Ant and added it to PATH; 
I also set ANT_HOME to where I installed Ant: C:\apache-ant-1.10.1; and already 
have JAVA_HOME to its installation folder: C:\Program Files\Java\jdk1.8.0_131
At the folder demo_for_presentation where build.xml file resides, I typed 'ant' 
in the cmd window.  I got the following error:
--
Buildfile: C:\Projects\demo_for_presentation\build.xml

clean:

build_example.compilejs:
 [echo] Compiling demo_for_presentation.js
 [echo] FLEX_HOME: ${env.FLEXJS_HOME}
 [echo] FALCONJX_HOME: ${FALCONJX_HOME}
 [echo] env GOOG_HOME: ${env.GOOG_HOME}
 [echo] GOOG_HOME: ${GOOG_HOME}
 [java] Error: Could not find or load main class ${mxmlc.jvm.args}
 [java] Java Result: 1

BUILD FAILED
C:\Projects\demo_for_presentation\build_example.xml:124: code: 1

Total time: 0 seconds

Can you help me to see what's wrong?

Thanks and Regards,
Allen
-

-Original Message-
From: yishayw [mailto:yishayj...@hotmail.com]
Sent: Wednesday, July 05, 2017 12:54 AM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

yishayw wrote
> Now assuming you have pom.xml and build.xml in your project you should
> be able to run Maven like this:

Should read:


Now assuming you have pom.xml and build.xml in your project you should be able 
to run Maven *or ant* like this:




--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62835.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-04 Thread yishayw
yishayw wrote
> Now assuming you have pom.xml and build.xml in your project you should be
> able to run Maven like this:

Should read:


Now assuming you have pom.xml and build.xml in your project you should be
able to run Maven *or ant* like this:




--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62835.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-04 Thread yishayw
Here [1] is how I run Maven an Ant from Flash Builder. To use this do the
following:

1) Download folder to your computer
2) in Flash Builder go to File->Import->Run/Debug->Launch Configurations
3) Select the folder you downloaded
4) Open up Run->External Tools (useful keyboard shortcut:  then 
then )
5) Go to External Tools Configuration
6) Under just_run_ant and just_run_maven adjust the 'Location:' field so it
matches where your installation directories.

Now assuming you have pom.xml and build.xml in your project you should be
able to run Maven like this:

 then  then  then select just_run_maven, or just_run_ant.

Let me know how it goes.



[1] https://1drv.ms/f/s!AgH-0pVQ5zPPshHHf1qtUuu7pIwc



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62834.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-04 Thread Allen YANG
Hi Yishay,
I will be happy to but I don't know how because I did this in VS Code with 
Maven, not in Flash Builder.  Can you tell me how?
Thanks,
Allen

-Original Message-
From: yishayw [mailto:yishayj...@hotmail.com]
Sent: Tuesday, July 04, 2017 2:02 PM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

I'm glad you got around this problem by using Maven. Can you export your 
project to fxp and post it somewhere so I can have a look? It would be good to 
know what's keeping the Flash Builder build from working.

Thanks,
Yishay




--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62830.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-04 Thread yishayw
Hi Allen,

I'm glad you got around this problem by using Maven. Can you export your
project to fxp and post it somewhere so I can have a look? It would be good
to know what's keeping the Flash Builder build from working.

Thanks,
Yishay




--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62830.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-02 Thread Allen YANG
Hi Alex,
After I following the 4 steps, then cleaned and rebuilt the project in Flash 
Builder, running demo_for_presentation still got the same errors.
Error 1079: "Native methods are not allowed in loaded code", and Error 1065: 
"variable demo_for_presentation is not defined".
I will move on from this for now.
Thanks and Regards,
Allen

-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Saturday, July 01, 2017 11:36 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen, Yishay,

Looks like the Flash Builder project was set up for Yishay's development 
environment and won't translate well to others.  As a workaround, try this:

1) In Project -> Properties -> Flex Build Path, remove airglobal

2) Shut down Flash Builder

3) Open the .actionScriptProperties file in a text editor and remove these two 
lines from excludedEntries:

  

4) Use the file system to remove bin folder from the project folder.


5) Restart Flash Builder, clean and rebuild the project.

HTH, it worked for me.

-Alex

On 6/30/17, 11:48 PM, "Alex Harui" <aha...@adobe.com.INVALID> wrote:

>Hi Allen,
>
>Hmm. I'm having the same problem.  Not sure why yet.  I'm looking into
>it, but I won't much time this weekend.
>
>-Alex
>
>On 6/30/17, 3:25 PM, "Allen YANG" <allen.y...@raritan.com> wrote:
>
>>Hi Alex,
>>After I was able to build the project without error; I checked running
>>demo_for_presentation from Flash Builder.   My default browser is Google
>>Chrome, I know that wouldn't work; so I downloaded the debug version
>>of Flash Player for Firefox and set the default browser to be Firefox
>>on Flash Builder.  Then I ran demo_for_presentation.  Firefox came up,
>>then I got "Error 1079: are not allowed in loaded code", and Error 1065:
>>variable demo_for_presentation is not defined".
>>Do you know of a way I can run this without Flash Player?
>>Best Regards,
>>Allen
>>
>>-----Original Message-----
>>From: Allen YANG [mailto:allen.y...@raritan.com]
>>Sent: Friday, June 30, 2017 5:22 PM
>>To: dev@flex.apache.org
>>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project
>>to
>>HTML+JS
>>
>>Hi Alex,
>>You are correct.  After deleting al the errors out of the error log
>>and cleaned and built and project, the error went away.
>>Thank you so much!
>>Best Regards,
>>Allen
>>
>>-Original Message-
>>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>>Sent: Friday, June 30, 2017 5:08 PM
>>To: dev@flex.apache.org
>>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project
>>to
>>HTML+JS
>>
>>Hi Allen,
>>
>>Delete all of the errors out of the error log so we know you are still
>>getting new ones.
>>
>>Go back to project properties to make sure Core and Basic were removed.
>>Maybe grab a screenshot of the dialog box and post a link to it.
>>
>>Then clean and build the project and in the Project Explorer, see if
>>the demo has a red X on it.  If it still does, reatart Flash Builder,
>>then repeat the above steps.  The errors went away for me.
>>
>>HTH,
>>-Alex
>>
>>
>>On 6/30/17, 2:03 PM, "Allen YANG" <allen.y...@raritan.com> wrote:
>>
>>>Hi Alex,
>>>Thanks for looking into this.  I removed  Core.swc and Basic.swc from
>>>Flex Build Path and cleaned the project and rebuilt.  The result is
>>>still the same.
>>>Best Regards,
>>>Allen
>>>
>>>-Original Message-
>>>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>>>Sent: Friday, June 30, 2017 4:48 PM
>>>To: dev@flex.apache.org
>>>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project
>>>to
>>>HTML+JS
>>>
>>>Hi Allen,
>>>
>>>Looks like you ran into a bug.  I will look into a fix for it.  As a
>>>workaround, go to the Project menu, choose Properties, then Flex
>>>Build Path.  Remove the Core.swc and Basic.swc.  Yishay probably had
>>>his own development versions of them but you can use the ones in the FlexJS 
>>>SDK.
>>>
>>>That should clear up the error.
>>>
>>>HTH,
>>>-Alex
>>>
>>>On 6/30/17, 11:50 AM, "Allen YANG" <allen.y...@raritan.com> wrote:
>>>
>>>>Hi Yishay,
>>>>Thank you for uploading the presentation demo to OneDrive.  After
>>>>downloading the demo for presentation demo.zip file a

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-02 Thread Allen YANG
Hi Piotr,
I followed your instructions and it worked.
Thank you very much!
Best,
Allen

-Original Message-
From: piotrz [mailto:piotrzarzyck...@gmail.com]
Sent: Sunday, July 02, 2017 5:46 PM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

I've prepared HelloWorld [1] app for you which is building by Maven. You need 
to make following things before you build it (Windows user):

1) Install Maven [2]
2) In my example you have file "settings.xml" - This file is simply telling 
where maven should look for artifacts (swc) in order to build your project.
- Copy this file to: "c:\Users\{your user}\.m2\"
3) Open folder with project in VSCode and hit Ctrl + Shift + B or Go to folder 
where pom.xml file is and type in console "mvn clean install" - Thanks to 
VSCode you can debug your app (Try to hit F5 - Maven build app and launch it in 
debugger mode)

That's all and you have totally IDE agnostic build. Take a look into the 
pom.xml - As you can see I did comment Express and MaterialDesignLite - If you 
use some of the components from those modules you have to un-comment it.
This build produce only JS version of application - Line:

JSFlex

It would be good idea also change org.apache to maybe some 
related to you company for example.

[1] https://1drv.ms/u/s!ApVpLyjpHDC20GzswOaytmRVWHMo
[2] https://maven.apache.org/install.html#

Good Luck with farther FlexJS exploring :)

Piotr




-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62762.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-02 Thread piotrz
Hi Allen,

I've prepared HelloWorld [1] app for you which is building by Maven. You
need to make following things before you build it (Windows user):

1) Install Maven [2] 
2) In my example you have file "settings.xml" - This file is simply telling
where maven should look for artifacts (swc) in order to build your project.
- Copy this file to: "c:\Users\{your user}\.m2\"
3) Open folder with project in VSCode and hit Ctrl + Shift + B or Go to
folder where pom.xml file is and type in console "mvn clean install" -
Thanks to VSCode you can debug your app (Try to hit F5 - Maven build app and
launch it in debugger mode)

That's all and you have totally IDE agnostic build. Take a look into the
pom.xml - As you can see I did comment Express and MaterialDesignLite - If
you use some of the components from those modules you have to un-comment it.
This build produce only JS version of application - Line:

JSFlex

It would be good idea also change org.apache to maybe
some related to you company for example.

[1] https://1drv.ms/u/s!ApVpLyjpHDC20GzswOaytmRVWHMo
[2] https://maven.apache.org/install.html#

Good Luck with farther FlexJS exploring :)

Piotr




-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62762.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-01 Thread Allen YANG
Hi Alex,
Thanks. I will look into the custom title bar for a Panel in the FlexJSStore 
example. Just did a grep on my MXML files; there are quite a few files with 
TitleWindow:-)
Best Regards,
Allen

-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Saturday, July 01, 2017 11:54 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

HI Allen,

In theory, you can popup a Panel and customize the title bar.  And maybe you or 
someone else will wrap all that up and call it TitleWindow.  It depends a bit 
on what you needed out of TitleWindow and PopUpManager.
There isn't a PopUpManager in FlexJS yet because nobody has really needed 
overlapping floating windows.  It turns out you don't need a PopUpManager if 
there is only one popup on screen at a time.  Someday someone will need 
floating windows and someone will volunteer a PopUpManager.  That's the PAYG 
(pay as you go ) and DAYG (do as you go) nature of FlexJS right now.
We are working our way towards better feature parity with Flex and implementing 
it via incremental functionality in beads.

I know Peter is on vacation for a week or so, so maybe someone else will find 
time to work on a TitleWindow or help you work through it.  There is a custom 
title bar for a Panel in the FlexJSStore example that may be of help.

HTH,
-Alex

On 7/1/17, 8:43 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Alex,
>Hope you are enjoying the holiday weekend! Thank you for the tips; I
>will try it later today. Now I am doing some experiment to
>convert/rewrite one MXML file in my Flex 3 project just to see how
>difficult it is.  I picked a pretty small MXML file. It's content is as
>below.  Immediately I could see mx:TitleWindow is flagged as a problem.
>I did replace the xmlns:mx= portion by what you suggested.  It appears
>that I need to find a replacement for pop-up window.  Any tips to help
>me convert/rewrite this MXML file will be appreciated.
>Best Regards,
>Allen
>
>UpdateCompetitor.mxml file contents:
>
>
>
>
>xmlns:mx="library://ns.adobe.com/flex/mx"
>title="Update Competitor" x="168" y="86"
>close="PopUpManager.removePopUp(this);"
>borderAlpha="0.75" width="422" height="223" fontSize="11"
>color="#000304">
>
>
>
>
>fontSize="9">
>
>
>dataProvider="{parentApplication.acCompetitor}"
> labelField="text" id="competitorlist1" doubleClickEnabled="true"
> doubleClick="func_addcompetitor(event)"
> fontWeight="normal" width="160" fontSize="10">
>
>
>click="func_addcompetitor(event)" toolTip="Add">
>  
>click="func_removecompetitor(event)" toolTip="Remove">
>
>
>dataProvider="{parentApplication.acDealCompetitor}"
>id="DealCompetitor1" fontWeight="normal" width="160"
>doubleClickEnabled="true" doubleClick="func_removecompetitor(event)"
>fontSize="10">
>
>
>fontSize="10"/>
>y="131"/>
>
>
>
>
>
>-Original Message-
>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>Sent: Friday, June 30, 2017 11:20 AM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Allen,
>
>Unlike Flex 3, where the only set of framework components was the MX
>components, in FlexJS 0.8.0 we introduced a new set called Express.
>Sounds like you've read about beads and strands.  The "Basic" set of
>components that is the foundation of FlexJS and what Harbs and Yishay
>are using is an "assemble-it-yourself" collection of beads and strands.
>The "Express" set comes pre-assembled.  This should make it much easier
>to use although the tradeoff is that your app will be fatter for any
>bead that comes pre-packaged that you don't end up using.
>
>There isn't much documentation explicitly written for Express.  It will
>just require less adding of beads than using the Basic set.  But that
>does remind me to correct one thing I said earlier.  You will want to
>replace:
>
>  import mx.controls
>
>With:
>
>  import org.apache.flex.express
>
>Good luck,
>-Alex
>
>
>On 6/30/17, 8:02 AM, "Allen YANG" <allen.y...@raritan.com> wrote:
>
>>Hi Alex and Josh,
>>Sorry for my dumb question below:  I immediately googled FlexJS
>>Express when I saw Josh's answer; but

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-01 Thread Yishay Weiss
Thanks Alex. These lines were necessary for the last part of the presentation 
where I show how to change stuff in the framework. I commented them out in the 
uploaded zip.

From: Alex Harui-2 [via Apache Flex 
Development]<mailto:ml+s247n62747...@n4.nabble.com>
Sent: Saturday, July 1, 2017 6:36 PM
To: yishayw<mailto:yishayj...@hotmail.com>
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen, Yishay,

Looks like the Flash Builder project was set up for Yishay's development
environment and won't translate well to others.  As a workaround, try this:

1) In Project -> Properties -> Flex Build Path, remove airglobal

2) Shut down Flash Builder

3) Open the .actionScriptProperties file in a text editor and remove these
two lines from excludedEntries:

  

4) Use the file system to remove bin folder from the project folder.


5) Restart Flash Builder, clean and rebuild the project.

HTH, it worked for me.

-Alex

On 6/30/17, 11:48 PM, "Alex Harui" <[hidden 
email]> wrote:

>Hi Allen,
>
>Hmm. I'm having the same problem.  Not sure why yet.  I'm looking into it,
>but I won't much time this weekend.
>
>-Alex
>
>On 6/30/17, 3:25 PM, "Allen YANG" <[hidden 
>email]> wrote:
>
>>Hi Alex,
>>After I was able to build the project without error; I checked running
>>demo_for_presentation from Flash Builder.   My default browser is Google
>>Chrome, I know that wouldn't work; so I downloaded the debug version of
>>Flash Player for Firefox and set the default browser to be Firefox on
>>Flash Builder.  Then I ran demo_for_presentation.  Firefox came up, then
>>I got "Error 1079: are not allowed in loaded code", and Error 1065:
>>variable demo_for_presentation is not defined".
>>Do you know of a way I can run this without Flash Player?
>>Best Regards,
>>Allen
>>
>>-Original Message-
>>From: Allen YANG [mailto:[hidden 
>>email]]
>>Sent: Friday, June 30, 2017 5:22 PM
>>To: [hidden email]
>>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>>HTML+JS
>>
>>Hi Alex,
>>You are correct.  After deleting al the errors out of the error log and
>>cleaned and built and project, the error went away.
>>Thank you so much!
>>Best Regards,
>>Allen
>>
>>-Original Message-
>>From: Alex Harui [mailto:[hidden 
>>email]]
>>Sent: Friday, June 30, 2017 5:08 PM
>>To: [hidden email]
>>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>>HTML+JS
>>
>>Hi Allen,
>>
>>Delete all of the errors out of the error log so we know you are still
>>getting new ones.
>>
>>Go back to project properties to make sure Core and Basic were removed.
>>Maybe grab a screenshot of the dialog box and post a link to it.
>>
>>Then clean and build the project and in the Project Explorer, see if the
>>demo has a red X on it.  If it still does, reatart Flash Builder, then
>>repeat the above steps.  The errors went away for me.
>>
>>HTH,
>>-Alex
>>
>>
>>On 6/30/17, 2:03 PM, "Allen YANG" <[hidden 
>>email]> wrote:
>>
>>>Hi Alex,
>>>Thanks for looking into this.  I removed  Core.swc and Basic.swc from
>>>Flex Build Path and cleaned the project and rebuilt.  The result is
>>>still the same.
>>>Best Regards,
>>>Allen
>>>
>>>-Original Message-
>>>From: Alex Harui [mailto:[hidden 
>>>email]]
>>>Sent: Friday, June 30, 2017 4:48 PM
>>>To: [hidden email]
>>>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>>>HTML+JS
>>>
>>>Hi Allen,
>>>
>>>Looks like you ran into a bug.  I will look into a fix for it.  As a
>>>workaround, go to the Project menu, choose Properties, then Flex Build
>>>Path.  Remove the Core.swc and Basic.swc.  Yishay probably had his own
>>>development versions of them but you can use the ones in the FlexJS SDK.
>>>
>>>That should clear up the error.
>>>
>>>HTH,
>>>-Alex
>>>
>>>On 6/30/17, 11:50 AM, "Allen YANG" <[hidden 
>>>email]> wrote:
>>>
>>>>Hi Yishay,
>>>>Thank you for uploading the presentation demo to OneDrive.  After
>>>>downloading the demo for presentation demo.zip file and importing that
>>>>to my Flash Builder 4.7, I made sure the SDK is set to FlexJS, then I
>>>>did a build and got an error: "An internal error has occurred, see
>>>>error log for

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-01 Thread Alex Harui
HI Allen,

In theory, you can popup a Panel and customize the title bar.  And maybe
you or someone else will wrap all that up and call it TitleWindow.  It
depends a bit on what you needed out of TitleWindow and PopUpManager.
There isn't a PopUpManager in FlexJS yet because nobody has really needed
overlapping floating windows.  It turns out you don't need a PopUpManager
if there is only one popup on screen at a time.  Someday someone will need
floating windows and someone will volunteer a PopUpManager.  That's the
PAYG (pay as you go ) and DAYG (do as you go) nature of FlexJS right now.
We are working our way towards better feature parity with Flex and
implementing it via incremental functionality in beads.

I know Peter is on vacation for a week or so, so maybe someone else will
find time to work on a TitleWindow or help you work through it.  There is
a custom title bar for a Panel in the FlexJSStore example that may be of
help.

HTH,
-Alex

On 7/1/17, 8:43 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Alex,
>Hope you are enjoying the holiday weekend! Thank you for the tips; I will
>try it later today. Now I am doing some experiment to convert/rewrite one
>MXML file in my Flex 3 project just to see how difficult it is.  I picked
>a pretty small MXML file. It's content is as below.  Immediately I could
>see mx:TitleWindow is flagged as a problem.  I did replace the xmlns:mx=
>portion by what you suggested.  It appears that I need to find a
>replacement for pop-up window.  Any tips to help me convert/rewrite this
>MXML file will be appreciated.
>Best Regards,
>Allen
>
>UpdateCompetitor.mxml file contents:
>
>
>
>
>xmlns:mx="library://ns.adobe.com/flex/mx"
>title="Update Competitor" x="168" y="86"
>close="PopUpManager.removePopUp(this);"
>borderAlpha="0.75" width="422" height="223" fontSize="11"
>color="#000304">
>
>
>
>
>fontSize="9">
>
>
>dataProvider="{parentApplication.acCompetitor}"
> labelField="text" id="competitorlist1" doubleClickEnabled="true"
> doubleClick="func_addcompetitor(event)"
> fontWeight="normal" width="160" fontSize="10">
>
>
>click="func_addcompetitor(event)" toolTip="Add">
>  
>click="func_removecompetitor(event)" toolTip="Remove">
>
>
>dataProvider="{parentApplication.acDealCompetitor}"
>id="DealCompetitor1" fontWeight="normal" width="160"
>doubleClickEnabled="true" doubleClick="func_removecompetitor(event)"
>fontSize="10">
>
>
>fontSize="10"/>
>y="131"/>
>
>
>
>
>
>-Original Message-
>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>Sent: Friday, June 30, 2017 11:20 AM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Allen,
>
>Unlike Flex 3, where the only set of framework components was the MX
>components, in FlexJS 0.8.0 we introduced a new set called Express.
>Sounds like you've read about beads and strands.  The "Basic" set of
>components that is the foundation of FlexJS and what Harbs and Yishay are
>using is an "assemble-it-yourself" collection of beads and strands.  The
>"Express" set comes pre-assembled.  This should make it much easier to
>use although the tradeoff is that your app will be fatter for any bead
>that comes pre-packaged that you don't end up using.
>
>There isn't much documentation explicitly written for Express.  It will
>just require less adding of beads than using the Basic set.  But that
>does remind me to correct one thing I said earlier.  You will want to
>replace:
>
>  import mx.controls
>
>With:
>
>  import org.apache.flex.express
>
>Good luck,
>-Alex
>
>
>On 6/30/17, 8:02 AM, "Allen YANG" <allen.y...@raritan.com> wrote:
>
>>Hi Alex and Josh,
>>Sorry for my dumb question below:  I immediately googled FlexJS Express
>>when I saw Josh's answer; but I didn't find something can explains what
>>Express is.  Could you give me an URL where I can learn about it?
>>Best Regards,
>>Allen
>>
>>-Original Message-
>>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>>Sent: Friday, June 30, 2017 10:58 AM
>>To: dev@flex.apache.org
>>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 proj

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-01 Thread Allen YANG
Hi Alex,
Hope you are enjoying the holiday weekend! Thank you for the tips; I will try 
it later today. Now I am doing some experiment to convert/rewrite one MXML file 
in my Flex 3 project just to see how difficult it is.  I picked a pretty small 
MXML file. It's content is as below.  Immediately I could see mx:TitleWindow is 
flagged as a problem.  I did replace the xmlns:mx= portion by what you 
suggested.  It appears that I need to find a replacement for pop-up window.  
Any tips to help me convert/rewrite this MXML file will be appreciated.
Best Regards,
Allen

UpdateCompetitor.mxml file contents:
















  













-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Friday, June 30, 2017 11:20 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

Unlike Flex 3, where the only set of framework components was the MX 
components, in FlexJS 0.8.0 we introduced a new set called Express.
Sounds like you've read about beads and strands.  The "Basic" set of components 
that is the foundation of FlexJS and what Harbs and Yishay are using is an 
"assemble-it-yourself" collection of beads and strands.  The "Express" set 
comes pre-assembled.  This should make it much easier to use although the 
tradeoff is that your app will be fatter for any bead that comes pre-packaged 
that you don't end up using.

There isn't much documentation explicitly written for Express.  It will just 
require less adding of beads than using the Basic set.  But that does remind me 
to correct one thing I said earlier.  You will want to replace:

  import mx.controls

With:

  import org.apache.flex.express

Good luck,
-Alex


On 6/30/17, 8:02 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Alex and Josh,
>Sorry for my dumb question below:  I immediately googled FlexJS Express
>when I saw Josh's answer; but I didn't find something can explains what
>Express is.  Could you give me an URL where I can learn about it?
>Best Regards,
>Allen
>
>-Original Message-
>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>Sent: Friday, June 30, 2017 10:58 AM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>That's a great suggestion.  It would be great to see what the learning
>curve is when using Express.
>
>In theory, Allen should be able to replace:
>
>   xmlns:mx="http://www.adobe.com/2006/mxml;
>
>
>With these two lines:
>
>
>xmlns:fx="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F
>%2F
>ns.adobe.com%2Fmxml%2F2009=02%7C01%7C%7Cbf1b8d82c5da4061324f08d4bf
>c91
>6e1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636344317780413120
>ta= vvq%2BasFtKQg3jZuUxH1gsRR2%2FQzQv7PCvWg3qNHpuCU%3D=0"
>   xmlns:mx="library://ns.apache.org/flexjs/express"
>
>
>And replace:
>
>   mx:Script
>
>With:
>
>   fx:Script
>
>Same for any mx:Styles.
>And also replace:
>
>   import mx.controls
>
>With:
>
>   import org.apache.flex.html
>
>Then just try to compile it.  There might be a lot of errors, but then
>we can discuss how to migrate to resolve those errors.
>
>-Alex
>
>On 6/30/17, 6:36 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:
>
>>If you use the new Express components in FlexJS 0.8, binding beads
>>should be added automatically, so that's one place where things might
>>not necessarily be too different!
>>
>>- Josh
>>
>>On Fri, Jun 30, 2017 at 5:48 AM, Harbs <harbs.li...@gmail.com> wrote:
>>
>>> I suggest you watch the getting started video by Yishay and the VS
>>> Code video by Josh.
>>>
>>> Don’t try to port to Flex 4 first. It should not be significantly
>>>different porting from Flex 3 or Flex 4. If anything, porting from
>>>Flex
>>>3
>>> should be more straight-forward because the architecture is simpler.
>>>
>>> To set some expectations:
>>>
>>> You cannot expect to just copy your UI code as-is. You will need to
>>>rewrite your view using FlexJS components. Many of them will be
>>>simple replacements (i.e.  instead of  etc. but
>>>the event  subsystem is different, and binding is different (you need
>>>to declare which  kind of binding you need), skinning is different
>>>and much of the  functionality is different. Layout is definitely
>>>different.
>>>
>>> You will need to wrap your head around strands and beads.
>>>(Basically, you  have a list of beads which defines what

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-01 Thread Alex Harui
Hi Allen, Yishay,

Looks like the Flash Builder project was set up for Yishay's development
environment and won't translate well to others.  As a workaround, try this:

1) In Project -> Properties -> Flex Build Path, remove airglobal

2) Shut down Flash Builder

3) Open the .actionScriptProperties file in a text editor and remove these
two lines from excludedEntries:

  

4) Use the file system to remove bin folder from the project folder.


5) Restart Flash Builder, clean and rebuild the project.

HTH, it worked for me.

-Alex

On 6/30/17, 11:48 PM, "Alex Harui" <aha...@adobe.com.INVALID> wrote:

>Hi Allen,
>
>Hmm. I'm having the same problem.  Not sure why yet.  I'm looking into it,
>but I won't much time this weekend.
>
>-Alex
>
>On 6/30/17, 3:25 PM, "Allen YANG" <allen.y...@raritan.com> wrote:
>
>>Hi Alex,
>>After I was able to build the project without error; I checked running
>>demo_for_presentation from Flash Builder.   My default browser is Google
>>Chrome, I know that wouldn't work; so I downloaded the debug version of
>>Flash Player for Firefox and set the default browser to be Firefox on
>>Flash Builder.  Then I ran demo_for_presentation.  Firefox came up, then
>>I got "Error 1079: are not allowed in loaded code", and Error 1065:
>>variable demo_for_presentation is not defined".
>>Do you know of a way I can run this without Flash Player?
>>Best Regards,
>>Allen
>>
>>-Original Message-----
>>From: Allen YANG [mailto:allen.y...@raritan.com]
>>Sent: Friday, June 30, 2017 5:22 PM
>>To: dev@flex.apache.org
>>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>>HTML+JS
>>
>>Hi Alex,
>>You are correct.  After deleting al the errors out of the error log and
>>cleaned and built and project, the error went away.
>>Thank you so much!
>>Best Regards,
>>Allen
>>
>>-Original Message-
>>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>>Sent: Friday, June 30, 2017 5:08 PM
>>To: dev@flex.apache.org
>>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>>HTML+JS
>>
>>Hi Allen,
>>
>>Delete all of the errors out of the error log so we know you are still
>>getting new ones.
>>
>>Go back to project properties to make sure Core and Basic were removed.
>>Maybe grab a screenshot of the dialog box and post a link to it.
>>
>>Then clean and build the project and in the Project Explorer, see if the
>>demo has a red X on it.  If it still does, reatart Flash Builder, then
>>repeat the above steps.  The errors went away for me.
>>
>>HTH,
>>-Alex
>>
>>
>>On 6/30/17, 2:03 PM, "Allen YANG" <allen.y...@raritan.com> wrote:
>>
>>>Hi Alex,
>>>Thanks for looking into this.  I removed  Core.swc and Basic.swc from
>>>Flex Build Path and cleaned the project and rebuilt.  The result is
>>>still the same.
>>>Best Regards,
>>>Allen
>>>
>>>-Original Message-
>>>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>>>Sent: Friday, June 30, 2017 4:48 PM
>>>To: dev@flex.apache.org
>>>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>>>HTML+JS
>>>
>>>Hi Allen,
>>>
>>>Looks like you ran into a bug.  I will look into a fix for it.  As a
>>>workaround, go to the Project menu, choose Properties, then Flex Build
>>>Path.  Remove the Core.swc and Basic.swc.  Yishay probably had his own
>>>development versions of them but you can use the ones in the FlexJS SDK.
>>>
>>>That should clear up the error.
>>>
>>>HTH,
>>>-Alex
>>>
>>>On 6/30/17, 11:50 AM, "Allen YANG" <allen.y...@raritan.com> wrote:
>>>
>>>>Hi Yishay,
>>>>Thank you for uploading the presentation demo to OneDrive.  After
>>>>downloading the demo for presentation demo.zip file and importing that
>>>>to my Flash Builder 4.7, I made sure the SDK is set to FlexJS, then I
>>>>did a build and got an error: "An internal error has occurred, see
>>>>error log for more information" in plug-in
>>>>"com.adobe.flexbuilder.project"
>>>>Could you help to shed some light?
>>>>Thanks,
>>>>Allen
>>>>
>>>>The stack trace is as follows:
>>>>--
>>>>-
>>>>---
>>>>-

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-01 Thread piotrz
Great that you moved forward :) Maven can be your alternative for building
your application - it's totally IDE agnostic. I will prepare such example
Hello World. 
I'm using maven as a main build even in VSCode.
Good Luck with debugger!

Piotr 



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62746.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-01 Thread Allen YANG
Hi Piotr,
I am using Flash Builder 4.7 now; and I learned a bit about Visual Studio Code 
last night and built two examples successfully with VS Code, also tried to 
debug in it but haven't got the hang of it yet.
I don't have experience in Maven but never mind learning it.
Regards,
Allen

-Original Message-
From: piotrz [mailto:piotrzarzyck...@gmail.com]
Sent: Saturday, July 01, 2017 3:22 AM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

Do you have some experience with Maven? I can provide you on Sunday Hello World 
app - which you will be able to build by Maven. Additionally it can be build 
using Moonshine and Visual Studio Code (in this IDE you can debug).

Thanks,
Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62742.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-01 Thread piotrz
Hi Allen,

Do you have some experience with Maven? I can provide you on Sunday Hello
World app - which you will be able to build by Maven. Additionally it can be
build using Moonshine and Visual Studio Code (in this IDE you can debug).

Thanks,
Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62742.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-01 Thread Alex Harui
Hi Allen,

Hmm. I'm having the same problem.  Not sure why yet.  I'm looking into it,
but I won't much time this weekend.

-Alex

On 6/30/17, 3:25 PM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Alex,
>After I was able to build the project without error; I checked running
>demo_for_presentation from Flash Builder.   My default browser is Google
>Chrome, I know that wouldn't work; so I downloaded the debug version of
>Flash Player for Firefox and set the default browser to be Firefox on
>Flash Builder.  Then I ran demo_for_presentation.  Firefox came up, then
>I got "Error 1079: are not allowed in loaded code", and Error 1065:
>variable demo_for_presentation is not defined".
>Do you know of a way I can run this without Flash Player?
>Best Regards,
>Allen
>
>-Original Message-
>From: Allen YANG [mailto:allen.y...@raritan.com]
>Sent: Friday, June 30, 2017 5:22 PM
>To: dev@flex.apache.org
>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Alex,
>You are correct.  After deleting al the errors out of the error log and
>cleaned and built and project, the error went away.
>Thank you so much!
>Best Regards,
>Allen
>
>-Original Message-
>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>Sent: Friday, June 30, 2017 5:08 PM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Allen,
>
>Delete all of the errors out of the error log so we know you are still
>getting new ones.
>
>Go back to project properties to make sure Core and Basic were removed.
>Maybe grab a screenshot of the dialog box and post a link to it.
>
>Then clean and build the project and in the Project Explorer, see if the
>demo has a red X on it.  If it still does, reatart Flash Builder, then
>repeat the above steps.  The errors went away for me.
>
>HTH,
>-Alex
>
>
>On 6/30/17, 2:03 PM, "Allen YANG" <allen.y...@raritan.com> wrote:
>
>>Hi Alex,
>>Thanks for looking into this.  I removed  Core.swc and Basic.swc from
>>Flex Build Path and cleaned the project and rebuilt.  The result is
>>still the same.
>>Best Regards,
>>Allen
>>
>>-Original Message-
>>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>>Sent: Friday, June 30, 2017 4:48 PM
>>To: dev@flex.apache.org
>>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>>HTML+JS
>>
>>Hi Allen,
>>
>>Looks like you ran into a bug.  I will look into a fix for it.  As a
>>workaround, go to the Project menu, choose Properties, then Flex Build
>>Path.  Remove the Core.swc and Basic.swc.  Yishay probably had his own
>>development versions of them but you can use the ones in the FlexJS SDK.
>>
>>That should clear up the error.
>>
>>HTH,
>>-Alex
>>
>>On 6/30/17, 11:50 AM, "Allen YANG" <allen.y...@raritan.com> wrote:
>>
>>>Hi Yishay,
>>>Thank you for uploading the presentation demo to OneDrive.  After
>>>downloading the demo for presentation demo.zip file and importing that
>>>to my Flash Builder 4.7, I made sure the SDK is set to FlexJS, then I
>>>did a build and got an error: "An internal error has occurred, see
>>>error log for more information" in plug-in
>>>"com.adobe.flexbuilder.project"
>>>Could you help to shed some light?
>>>Thanks,
>>>Allen
>>>
>>>The stack trace is as follows:
>>>--
>>>-
>>>---
>>>--
>>>java.lang.NullPointerException
>>>at
>>>flex2.tools.oem.Application.processMXMLCReport(Application.java:681)
>>>at flex2.tools.oem.Application.compile(Application.java:644)
>>>at
>>>flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.
>>>j
>>>ava
>>>:366)
>>>at
>>>com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$
>>>M
>>>yBu
>>>ilder.mybuild(ASApplicationBuilder.java:309)
>>>at
>>>com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder.
>>>b
>>>uil
>>>d(ASApplicationBuilder.java:128)
>>>at
>>>com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.build(ASBui
>>>l
>>>der
>>>.java:203)
>>>at
>>>com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build(A
>>>S
>>>Ite
>>>mBuilder.java:93)
>>>at

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread yishayw
That's assuming you have ant installed and in path.



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62740.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread yishayw
Hi Allen,

In my project there's an ant script that you can use. So if you open your
cmd or shell and change directory to where build.xml is, you can type 'ant'
and the project should build.

Let me know how it goes.




--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62739.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Allen YANG
Hi Alex,
After I was able to build the project without error; I checked running 
demo_for_presentation from Flash Builder.   My default browser is Google 
Chrome, I know that wouldn't work; so I downloaded the debug version of Flash 
Player for Firefox and set the default browser to be Firefox on Flash Builder.  
Then I ran demo_for_presentation.  Firefox came up, then I got "Error 1079: are 
not allowed in loaded code", and Error 1065: variable demo_for_presentation is 
not defined".
Do you know of a way I can run this without Flash Player?
Best Regards,
Allen

-Original Message-
From: Allen YANG [mailto:allen.y...@raritan.com]
Sent: Friday, June 30, 2017 5:22 PM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Alex,
You are correct.  After deleting al the errors out of the error log and cleaned 
and built and project, the error went away.
Thank you so much!
Best Regards,
Allen

-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Friday, June 30, 2017 5:08 PM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

Delete all of the errors out of the error log so we know you are still getting 
new ones.

Go back to project properties to make sure Core and Basic were removed.
Maybe grab a screenshot of the dialog box and post a link to it.

Then clean and build the project and in the Project Explorer, see if the demo 
has a red X on it.  If it still does, reatart Flash Builder, then repeat the 
above steps.  The errors went away for me.

HTH,
-Alex


On 6/30/17, 2:03 PM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Alex,
>Thanks for looking into this.  I removed  Core.swc and Basic.swc from
>Flex Build Path and cleaned the project and rebuilt.  The result is
>still the same.
>Best Regards,
>Allen
>
>-Original Message-
>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>Sent: Friday, June 30, 2017 4:48 PM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Allen,
>
>Looks like you ran into a bug.  I will look into a fix for it.  As a
>workaround, go to the Project menu, choose Properties, then Flex Build
>Path.  Remove the Core.swc and Basic.swc.  Yishay probably had his own
>development versions of them but you can use the ones in the FlexJS SDK.
>
>That should clear up the error.
>
>HTH,
>-Alex
>
>On 6/30/17, 11:50 AM, "Allen YANG" <allen.y...@raritan.com> wrote:
>
>>Hi Yishay,
>>Thank you for uploading the presentation demo to OneDrive.  After
>>downloading the demo for presentation demo.zip file and importing that
>>to my Flash Builder 4.7, I made sure the SDK is set to FlexJS, then I
>>did a build and got an error: "An internal error has occurred, see
>>error log for more information" in plug-in
>>"com.adobe.flexbuilder.project"
>>Could you help to shed some light?
>>Thanks,
>>Allen
>>
>>The stack trace is as follows:
>>--
>>-
>>---
>>--
>>java.lang.NullPointerException
>>at
>>flex2.tools.oem.Application.processMXMLCReport(Application.java:681)
>>at flex2.tools.oem.Application.compile(Application.java:644)
>>at
>>flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.
>>j
>>ava
>>:366)
>>at
>>com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$
>>M
>>yBu
>>ilder.mybuild(ASApplicationBuilder.java:309)
>>at
>>com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder.
>>b
>>uil
>>d(ASApplicationBuilder.java:128)
>>at
>>com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.build(ASBui
>>l
>>der
>>.java:203)
>>at
>>com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build(A
>>S
>>Ite
>>mBuilder.java:93)
>>at
>>com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.bui
>>l
>>dIt
>>em(FlexProjectBuilder.java:708)
>>at
>>com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.bui
>>l
>>d(F
>>lexProjectBuilder.java:412)
>>at
>>com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.
>>bui
>>ld(FlexIncrementalBuilder.java:171)
>>at
>>org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:
>>7
>>28) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>at
>>org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.
>&g

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Allen YANG
Hi Alex,
You are correct.  After deleting al the errors out of the error log and cleaned 
and built and project, the error went away.
Thank you so much!
Best Regards,
Allen

-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Friday, June 30, 2017 5:08 PM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

Delete all of the errors out of the error log so we know you are still getting 
new ones.

Go back to project properties to make sure Core and Basic were removed.
Maybe grab a screenshot of the dialog box and post a link to it.

Then clean and build the project and in the Project Explorer, see if the demo 
has a red X on it.  If it still does, reatart Flash Builder, then repeat the 
above steps.  The errors went away for me.

HTH,
-Alex


On 6/30/17, 2:03 PM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Alex,
>Thanks for looking into this.  I removed  Core.swc and Basic.swc from
>Flex Build Path and cleaned the project and rebuilt.  The result is
>still the same.
>Best Regards,
>Allen
>
>-Original Message-
>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>Sent: Friday, June 30, 2017 4:48 PM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Allen,
>
>Looks like you ran into a bug.  I will look into a fix for it.  As a
>workaround, go to the Project menu, choose Properties, then Flex Build
>Path.  Remove the Core.swc and Basic.swc.  Yishay probably had his own
>development versions of them but you can use the ones in the FlexJS SDK.
>
>That should clear up the error.
>
>HTH,
>-Alex
>
>On 6/30/17, 11:50 AM, "Allen YANG" <allen.y...@raritan.com> wrote:
>
>>Hi Yishay,
>>Thank you for uploading the presentation demo to OneDrive.  After
>>downloading the demo for presentation demo.zip file and importing that
>>to my Flash Builder 4.7, I made sure the SDK is set to FlexJS, then I
>>did a build and got an error: "An internal error has occurred, see
>>error log for more information" in plug-in
>>"com.adobe.flexbuilder.project"
>>Could you help to shed some light?
>>Thanks,
>>Allen
>>
>>The stack trace is as follows:
>>--
>>-
>>---
>>--
>>java.lang.NullPointerException
>>at
>>flex2.tools.oem.Application.processMXMLCReport(Application.java:681)
>>at flex2.tools.oem.Application.compile(Application.java:644)
>>at
>>flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.
>>j
>>ava
>>:366)
>>at
>>com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$
>>M
>>yBu
>>ilder.mybuild(ASApplicationBuilder.java:309)
>>at
>>com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder.
>>b
>>uil
>>d(ASApplicationBuilder.java:128)
>>at
>>com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.build(ASBui
>>l
>>der
>>.java:203)
>>at
>>com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build(A
>>S
>>Ite
>>mBuilder.java:93)
>>at
>>com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.bui
>>l
>>dIt
>>em(FlexProjectBuilder.java:708)
>>at
>>com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.bui
>>l
>>d(F
>>lexProjectBuilder.java:412)
>>at
>>com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.
>>bui
>>ld(FlexIncrementalBuilder.java:171)
>>at
>>org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:
>>7
>>28) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>at
>>org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.
>>j
>>ava
>>:199)
>>at
>>org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.
>>j
>>ava
>>:239)
>>at
>>org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:
>>2
>>92) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>at
>>org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.
>>j
>>ava
>>:295)
>>at
>>org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildMana
>>ger
>>.
>>java:351)
>>at
>>org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
>>3
>>74)
>>at
>>org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.
>>j
>>

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Alex Harui
Hi Allen,

Delete all of the errors out of the error log so we know you are still
getting new ones.

Go back to project properties to make sure Core and Basic were removed.
Maybe grab a screenshot of the dialog box and post a link to it.

Then clean and build the project and in the Project Explorer, see if the
demo has a red X on it.  If it still does, reatart Flash Builder, then
repeat the above steps.  The errors went away for me.

HTH,
-Alex


On 6/30/17, 2:03 PM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Alex,
>Thanks for looking into this.  I removed  Core.swc and Basic.swc from
>Flex Build Path and cleaned the project and rebuilt.  The result is still
>the same.
>Best Regards,
>Allen
>
>-Original Message-
>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>Sent: Friday, June 30, 2017 4:48 PM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Allen,
>
>Looks like you ran into a bug.  I will look into a fix for it.  As a
>workaround, go to the Project menu, choose Properties, then Flex Build
>Path.  Remove the Core.swc and Basic.swc.  Yishay probably had his own
>development versions of them but you can use the ones in the FlexJS SDK.
>
>That should clear up the error.
>
>HTH,
>-Alex
>
>On 6/30/17, 11:50 AM, "Allen YANG" <allen.y...@raritan.com> wrote:
>
>>Hi Yishay,
>>Thank you for uploading the presentation demo to OneDrive.  After
>>downloading the demo for presentation demo.zip file and importing that
>>to my Flash Builder 4.7, I made sure the SDK is set to FlexJS, then I
>>did a build and got an error: "An internal error has occurred, see
>>error log for more information" in plug-in
>>"com.adobe.flexbuilder.project"
>>Could you help to shed some light?
>>Thanks,
>>Allen
>>
>>The stack trace is as follows:
>>---
>>---
>>--
>>java.lang.NullPointerException
>>at flex2.tools.oem.Application.processMXMLCReport(Application.java:681)
>>at flex2.tools.oem.Application.compile(Application.java:644)
>>at
>>flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.j
>>ava
>>:366)
>>at
>>com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$M
>>yBu
>>ilder.mybuild(ASApplicationBuilder.java:309)
>>at
>>com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder.b
>>uil
>>d(ASApplicationBuilder.java:128)
>>at
>>com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.build(ASBuil
>>der
>>.java:203)
>>at
>>com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build(AS
>>Ite
>>mBuilder.java:93)
>>at
>>com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buil
>>dIt
>>em(FlexProjectBuilder.java:708)
>>at
>>com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buil
>>d(F
>>lexProjectBuilder.java:412)
>>at
>>com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.
>>bui
>>ld(FlexIncrementalBuilder.java:171)
>>at
>>org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:7
>>28) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>at
>>org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.j
>>ava
>>:199)
>>at
>>org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.j
>>ava
>>:239)
>>at
>>org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:2
>>92) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>at
>>org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.j
>>ava
>>:295)
>>at
>>org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager
>>.
>>java:351)
>>at
>>org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:3
>>74)
>>at
>>org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.j
>>ava
>>:513)
>>at
>>org.eclipse.core.internal.resources.Workspace.build(Workspace.java:432)
>>at
>>org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:30
>>5)
>>at
>>org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWo
>>rks
>>paceJob.java:38)
>>at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>>
>>Session Data is:
>>---
>>---
>>

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Allen YANG
Hi Alex,
Thanks for looking into this.  I removed  Core.swc and Basic.swc from Flex 
Build Path and cleaned the project and rebuilt.  The result is still the same.
Best Regards,
Allen

-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Friday, June 30, 2017 4:48 PM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

Looks like you ran into a bug.  I will look into a fix for it.  As a 
workaround, go to the Project menu, choose Properties, then Flex Build Path.  
Remove the Core.swc and Basic.swc.  Yishay probably had his own development 
versions of them but you can use the ones in the FlexJS SDK.

That should clear up the error.

HTH,
-Alex

On 6/30/17, 11:50 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Yishay,
>Thank you for uploading the presentation demo to OneDrive.  After
>downloading the demo for presentation demo.zip file and importing that
>to my Flash Builder 4.7, I made sure the SDK is set to FlexJS, then I
>did a build and got an error: "An internal error has occurred, see
>error log for more information" in plug-in "com.adobe.flexbuilder.project"
>Could you help to shed some light?
>Thanks,
>Allen
>
>The stack trace is as follows:
>---
>---
>--
>java.lang.NullPointerException
>at flex2.tools.oem.Application.processMXMLCReport(Application.java:681)
>at flex2.tools.oem.Application.compile(Application.java:644)
>at
>flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.j
>ava
>:366)
>at
>com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$M
>yBu
>ilder.mybuild(ASApplicationBuilder.java:309)
>at
>com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder.b
>uil
>d(ASApplicationBuilder.java:128)
>at
>com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.build(ASBuil
>der
>.java:203)
>at
>com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build(AS
>Ite
>mBuilder.java:93)
>at
>com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buil
>dIt
>em(FlexProjectBuilder.java:708)
>at
>com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buil
>d(F
>lexProjectBuilder.java:412)
>at
>com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.
>bui
>ld(FlexIncrementalBuilder.java:171)
>at
>org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:7
>28) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>at
>org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.j
>ava
>:199)
>at
>org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.j
>ava
>:239)
>at
>org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:2
>92) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>at
>org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.j
>ava
>:295)
>at
>org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.
>java:351)
>at
>org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:3
>74)
>at
>org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.j
>ava
>:513)
>at
>org.eclipse.core.internal.resources.Workspace.build(Workspace.java:432)
>at
>org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:30
>5)
>at
>org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWo
>rks
>paceJob.java:38)
>at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
>Session Data is:
>---
>---
>-
>eclipse.buildId=M20110909-1335
>java.version=1.8.0_131
>java.vendor=Oracle Corporation
>BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
>Command-line arguments:  -os win32 -ws win32 -arch x86_64
>
>
>-Original Message-
>From: yishayw [mailto:yishayj...@hotmail.com]
>Sent: Friday, June 30, 2017 1:32 PM
>To: dev@flex.apache.org
>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>allenyyang wrote
>> However, the source code texts on YouTube video are a bit blurred
>> when Yishay went through the example MXML code (Unlike Josh's VS Code
>> video on which the texts are clear most of the time)
>
>I uploaded [1] the example project to my OneDrive. It doesn't contain
>the example framework bead, but that will be more relevant for when
>(and if) you start developing the framework itself.
>
>[1]
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fonedrive.
>live.

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Alex Harui
Hi Allen,

Looks like you ran into a bug.  I will look into a fix for it.  As a
workaround, go to the Project menu, choose Properties, then Flex Build
Path.  Remove the Core.swc and Basic.swc.  Yishay probably had his own
development versions of them but you can use the ones in the FlexJS SDK.

That should clear up the error.

HTH,
-Alex

On 6/30/17, 11:50 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Yishay,
>Thank you for uploading the presentation demo to OneDrive.  After
>downloading the demo for presentation demo.zip file and importing that to
>my Flash Builder 4.7, I made sure the SDK is set to FlexJS, then I did a
>build and got an error: "An internal error has occurred, see error log
>for more information" in plug-in "com.adobe.flexbuilder.project"
>Could you help to shed some light?
>Thanks,
>Allen
>
>The stack trace is as follows:
>--
>--
>java.lang.NullPointerException
>at flex2.tools.oem.Application.processMXMLCReport(Application.java:681)
>at flex2.tools.oem.Application.compile(Application.java:644)
>at 
>flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java
>:366)
>at 
>com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$MyBu
>ilder.mybuild(ASApplicationBuilder.java:309)
>at 
>com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder.buil
>d(ASApplicationBuilder.java:128)
>at 
>com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.build(ASBuilder
>.java:203)
>at 
>com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build(ASIte
>mBuilder.java:93)
>at 
>com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildIt
>em(FlexProjectBuilder.java:708)
>at 
>com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(F
>lexProjectBuilder.java:412)
>at 
>com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.bui
>ld(FlexIncrementalBuilder.java:171)
>at 
>org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
>at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>at 
>org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java
>:199)
>at 
>org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java
>:239)
>at 
>org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
>at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>at 
>org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java
>:295)
>at 
>org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.
>java:351)
>at 
>org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
>at 
>org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java
>:513)
>at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:432)
>at 
>org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:305)
>at 
>org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorks
>paceJob.java:38)
>at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
>Session Data is:
>--
>-
>eclipse.buildId=M20110909-1335
>java.version=1.8.0_131
>java.vendor=Oracle Corporation
>BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
>Command-line arguments:  -os win32 -ws win32 -arch x86_64
>
>
>-Original Message-
>From: yishayw [mailto:yishayj...@hotmail.com]
>Sent: Friday, June 30, 2017 1:32 PM
>To: dev@flex.apache.org
>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>allenyyang wrote
>> However, the source code texts on YouTube video are a bit blurred when
>> Yishay went through the example MXML code (Unlike Josh's VS Code video
>> on which the texts are clear most of the time)
>
>I uploaded [1] the example project to my OneDrive. It doesn't contain the
>example framework bead, but that will be more relevant for when (and if)
>you start developing the framework itself.
>
>[1]
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fonedrive.
>live.com%2F%3Fauthkey%3D%2521AISXR8DhFELsS0E%26cid%3DCF33E75095D2FE01%26id
>%3DCF33E75095D2FE01%25216416%26parId%3Droot%26action%3Dlocate=02%7C01
>%7C%7C5123db3feb464cfddd4008d4bfe8ddfb%7Cfa7b1b5a7b34438794aed2c178decee1%
>7C0%7C0%7C636344454264115269=nArOcztbEqZoE2cTNy8C%2FL%2BBCl8kaHYY936
>mclZVfdo%3D=0
>
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fap

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Allen YANG
Hi Yishay,
Thank you for uploading the presentation demo to OneDrive.  After downloading 
the demo for presentation demo.zip file and importing that to my Flash Builder 
4.7, I made sure the SDK is set to FlexJS, then I did a build and got an error: 
"An internal error has occurred, see error log for more information" in plug-in 
"com.adobe.flexbuilder.project"
Could you help to shed some light?
Thanks,
Allen

The stack trace is as follows:

java.lang.NullPointerException
at flex2.tools.oem.Application.processMXMLCReport(Application.java:681)
at flex2.tools.oem.Application.compile(Application.java:644)
at 
flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java:366)
at 
com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$MyBuilder.mybuild(ASApplicationBuilder.java:309)
at 
com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder.build(ASApplicationBuilder.java:128)
at 
com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.build(ASBuilder.java:203)
at 
com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build(ASItemBuilder.java:93)
at 
com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildItem(FlexProjectBuilder.java:708)
at 
com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuilder.java:412)
at 
com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncrementalBuilder.java:171)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at 
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at 
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at 
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at 
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at 
org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)
at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:432)
at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:305)
at 
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Session Data is:
---
eclipse.buildId=M20110909-1335
java.version=1.8.0_131
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64


-Original Message-
From: yishayw [mailto:yishayj...@hotmail.com]
Sent: Friday, June 30, 2017 1:32 PM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

allenyyang wrote
> However, the source code texts on YouTube video are a bit blurred when
> Yishay went through the example MXML code (Unlike Josh's VS Code video
> on which the texts are clear most of the time)

I uploaded [1] the example project to my OneDrive. It doesn't contain the 
example framework bead, but that will be more relevant for when (and if) you 
start developing the framework itself.

[1]
https://onedrive.live.com/?authkey=%21AISXR8DhFELsS0E=CF33E75095D2FE01=CF33E75095D2FE01%216416=root=locate




--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62726.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread yishayw
allenyyang wrote
> However, the source code texts on YouTube video are a bit blurred when
> Yishay went through the example MXML code (Unlike Josh's VS Code video on
> which the texts are clear most of the time)

I uploaded [1] the example project to my OneDrive. It doesn't contain the
example framework bead, but that will be more relevant for when (and if) you
start developing the framework itself.

[1]
https://onedrive.live.com/?authkey=%21AISXR8DhFELsS0E=CF33E75095D2FE01=CF33E75095D2FE01%216416=root=locate




--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62726.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread piotrz
It's worth to mention that we have following modules

Basic - Basic set of components you can find list of them in framework code
[1]
Express - mentioned by Josh which utilize some beads [2]
MaterialDesignLight - Wrap all google components [3][4]

[1]
https://github.com/apache/flex-asjs/tree/apache-flex-flexjs-0.8.0/frameworks/projects/Basic/src/main/flex/org/apache/flex/html
[2]
https://github.com/apache/flex-asjs/tree/apache-flex-flexjs-0.8.0/frameworks/projects/Express/src/main/flex/org/apache/flex/express
[3]
https://github.com/apache/flex-asjs/tree/apache-flex-flexjs-0.8.0/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl
[4] https://getmdl.io/components/index.html

Piotr





-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62717.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Alex Harui
Hi Allen,

Unlike Flex 3, where the only set of framework components was the MX
components, in FlexJS 0.8.0 we introduced a new set called Express.
Sounds like you've read about beads and strands.  The "Basic" set of
components that is the foundation of FlexJS and what Harbs and Yishay are
using is an "assemble-it-yourself" collection of beads and strands.  The
"Express" set comes pre-assembled.  This should make it much easier to use
although the tradeoff is that your app will be fatter for any bead that
comes pre-packaged that you don't end up using.

There isn't much documentation explicitly written for Express.  It will
just require less adding of beads than using the Basic set.  But that does
remind me to correct one thing I said earlier.  You will want to replace:

  import mx.controls

With:

  import org.apache.flex.express

Good luck,
-Alex


On 6/30/17, 8:02 AM, "Allen YANG" <allen.y...@raritan.com> wrote:

>Hi Alex and Josh,
>Sorry for my dumb question below:  I immediately googled FlexJS Express
>when I saw Josh's answer; but I didn't find something can explains what
>Express is.  Could you give me an URL where I can learn about it?
>Best Regards,
>Allen
>
>-Original Message-
>From: Alex Harui [mailto:aha...@adobe.com.INVALID]
>Sent: Friday, June 30, 2017 10:58 AM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>That's a great suggestion.  It would be great to see what the learning
>curve is when using Express.
>
>In theory, Allen should be able to replace:
>
>   xmlns:mx="http://www.adobe.com/2006/mxml;
>
>
>With these two lines:
>
>   
>xmlns:fx="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F
>ns.adobe.com%2Fmxml%2F2009=02%7C01%7C%7Cbf1b8d82c5da4061324f08d4bfc91
>6e1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636344317780413120=
>vvq%2BasFtKQg3jZuUxH1gsRR2%2FQzQv7PCvWg3qNHpuCU%3D=0"
>   xmlns:mx="library://ns.apache.org/flexjs/express"
>
>
>And replace:
>
>   mx:Script
>
>With:
>
>   fx:Script
>
>Same for any mx:Styles.
>And also replace:
>
>   import mx.controls
>
>With:
>
>   import org.apache.flex.html
>
>Then just try to compile it.  There might be a lot of errors, but then we
>can discuss how to migrate to resolve those errors.
>
>-Alex
>
>On 6/30/17, 6:36 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:
>
>>If you use the new Express components in FlexJS 0.8, binding beads
>>should be added automatically, so that's one place where things might
>>not necessarily be too different!
>>
>>- Josh
>>
>>On Fri, Jun 30, 2017 at 5:48 AM, Harbs <harbs.li...@gmail.com> wrote:
>>
>>> I suggest you watch the getting started video by Yishay and the VS
>>> Code video by Josh.
>>>
>>> Don’t try to port to Flex 4 first. It should not be significantly
>>>different porting from Flex 3 or Flex 4. If anything, porting from
>>>Flex
>>>3
>>> should be more straight-forward because the architecture is simpler.
>>>
>>> To set some expectations:
>>>
>>> You cannot expect to just copy your UI code as-is. You will need to
>>>rewrite your view using FlexJS components. Many of them will be simple
>>>replacements (i.e.  instead of  etc. but the
>>>event  subsystem is different, and binding is different (you need to
>>>declare which  kind of binding you need), skinning is different and
>>>much of the  functionality is different. Layout is definitely
>>>different.
>>>
>>> You will need to wrap your head around strands and beads. (Basically,
>>>you  have a list of beads which defines what look and behavior your
>>>components
>>> have.)
>>>
>>> We’re here to help.
>>>
>>> Good luck!
>>> Harbs
>>>
>>> > On Jun 30, 2017, at 3:19 PM, Allen YANG <allen.y...@raritan.com>
>>>wrote:
>>> >
>>> > Hi Team,
>>> > I have a Flex 3 project that was built on Adobe Flash Builder 3.6
>>> > (SDK
>>> Flex 3.6A); it needs to be ported to support a non-flash environment.
>>>This
>>> program was not originally written by me; but I have software
>>>development  experience.
>>> > I installed a trial version of Flash Builder 4.7 on my Windows 7
>>> machine, then installed JDK 1.8.0_131 and replaced the Flash
>>>Builder's JRE  with the new JRE version; installed FlexJS 0.8.0 using
>>>FlexFlex SDK  installer, and successfully built and ran the e

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Harbs
They have build scripts for both Ant and Maven.

You can probably build them using any one of the other build chains, but those 
are the only build scripts included.

Harbs

> On Jun 30, 2017, at 6:07 PM, Allen YANG <allen.y...@raritan.com> wrote:
> 
> Piotr,
> Thank you.  Are these examples all built on Maven?
> Best Regards,
> Allen
> 
> -Original Message-
> From: piotrz [mailto:piotrzarzyck...@gmail.com]
> Sent: Friday, June 30, 2017 10:45 AM
> To: dev@flex.apache.org
> Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to 
> HTML+JS
> 
> Allen,
> 
> A lot of examples you can find on our github[1]
> 
> [1]
> https://github.com/apache/flex-asjs/tree/apache-flex-flexjs-0.8.0/examples/flexjs
> 
> Piotr
> 
> 
> 
> -
> Apache Flex PMC
> piotrzarzyck...@gmail.com
> --
> View this message in context: 
> http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62711.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
> 
> 
> 
> Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
> des informations sensibles et/ ou confidentielles ne devant pas être 
> divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
> recevez ce message par erreur), nous vous remercions de le notifier 
> immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
> divulgation, modification, utilisation ou diffusion, non autorisée, directe 
> ou indirecte, de tout ou partie de ce message, est strictement interdite.
> 
> 
> This e-mail, and any document attached hereby, may contain confidential 
> and/or privileged information. If you are not the intended recipient (or have 
> received this e-mail in error) please notify the sender immediately and 
> destroy this e-mail. Any unauthorized, direct or indirect, copying, 
> disclosure, distribution or other use of the material or parts thereof is 
> strictly forbidden.



RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Allen YANG
Piotr,
Thank you.  Are these examples all built on Maven?
Best Regards,
Allen

-Original Message-
From: piotrz [mailto:piotrzarzyck...@gmail.com]
Sent: Friday, June 30, 2017 10:45 AM
To: dev@flex.apache.org
Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Allen,

A lot of examples you can find on our github[1]

[1]
https://github.com/apache/flex-asjs/tree/apache-flex-flexjs-0.8.0/examples/flexjs

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62711.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Allen YANG
Hi Alex and Josh,
Sorry for my dumb question below:  I immediately googled FlexJS Express when I 
saw Josh's answer; but I didn't find something can explains what Express is.  
Could you give me an URL where I can learn about it?
Best Regards,
Allen

-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Friday, June 30, 2017 10:58 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

That's a great suggestion.  It would be great to see what the learning curve is 
when using Express.

In theory, Allen should be able to replace:

   xmlns:mx="http://www.adobe.com/2006/mxml;


With these two lines:

   xmlns:fx="http://ns.adobe.com/mxml/2009;
   xmlns:mx="library://ns.apache.org/flexjs/express"


And replace:

   mx:Script

With:

   fx:Script

Same for any mx:Styles.
And also replace:

   import mx.controls

With:

   import org.apache.flex.html

Then just try to compile it.  There might be a lot of errors, but then we can 
discuss how to migrate to resolve those errors.

-Alex

On 6/30/17, 6:36 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:

>If you use the new Express components in FlexJS 0.8, binding beads
>should be added automatically, so that's one place where things might
>not necessarily be too different!
>
>- Josh
>
>On Fri, Jun 30, 2017 at 5:48 AM, Harbs <harbs.li...@gmail.com> wrote:
>
>> I suggest you watch the getting started video by Yishay and the VS
>> Code video by Josh.
>>
>> Don’t try to port to Flex 4 first. It should not be significantly
>>different porting from Flex 3 or Flex 4. If anything, porting from
>>Flex
>>3
>> should be more straight-forward because the architecture is simpler.
>>
>> To set some expectations:
>>
>> You cannot expect to just copy your UI code as-is. You will need to
>>rewrite your view using FlexJS components. Many of them will be simple
>>replacements (i.e.  instead of  etc. but the
>>event  subsystem is different, and binding is different (you need to
>>declare which  kind of binding you need), skinning is different and
>>much of the  functionality is different. Layout is definitely
>>different.
>>
>> You will need to wrap your head around strands and beads. (Basically,
>>you  have a list of beads which defines what look and behavior your
>>components
>> have.)
>>
>> We’re here to help.
>>
>> Good luck!
>> Harbs
>>
>> > On Jun 30, 2017, at 3:19 PM, Allen YANG <allen.y...@raritan.com>
>>wrote:
>> >
>> > Hi Team,
>> > I have a Flex 3 project that was built on Adobe Flash Builder 3.6
>> > (SDK
>> Flex 3.6A); it needs to be ported to support a non-flash environment.
>>This
>> program was not originally written by me; but I have software
>>development  experience.
>> > I installed a trial version of Flash Builder 4.7 on my Windows 7
>> machine, then installed JDK 1.8.0_131 and replaced the Flash
>>Builder's JRE  with the new JRE version; installed FlexJS 0.8.0 using
>>FlexFlex SDK  installer, and successfully built and ran the example
>>project, thanks to  Alex Harui's  [Using FlexJS with Adobe Flash
>>Builder]<
>>
>>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki
>>.ap
>>ache.org%2Fconfluence%2Fdisplay%2FFLEX%2F=02%7C01%7C%7Cdb3892d732
>>684
>>44b90b308d4bfbd1e8d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63634
>>426
>>6362069929=IQRMFcTFZ6aF5jO1OXvH8%2F7DDniLk18oZflTZ%2FZ4ZJ8%3D
>>ser
>>ved=0
>> Using+FlexJS+with+Adobe+Flash+Builder> wiki page.  I have also gone
>> Using+FlexJS+with+Adobe+Flash+Builder> over
>> the Youtube video of [Migrating from Flex to
>>FlexJS<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%
>>2Fw
>>ww.youtube=02%7C01%7C%7Cdb3892d73268444b90b308d4bfbd1e8d%7Cfa7b1b
>>5a7
>>b34438794aed2c178decee1%7C0%7C0%7C636344266362069929=R5ZXrvVdPaU
>>Uxy WrUYHXyVB5xpWpq1qPlmdUEUW3%2Fek%3D=0.
>> com/watch?v=-FcLs0O-BWQ=PLbzoR-pLrL6pLDCyPxByWQwYT>] by Harbs (I
>>have to admit that video is a bit over my head now)
>> >
>> > I am looking for advices what will be the best approach for me to
>> > do
>>the
>> porting. Questions I have are:
>> >
>> > (a)Should I start by converting the project from Flex 3 to Flex 4
>> first using Flash Builder 4.7's own Flex 4.6.0 SDK; and if it is
>>successful, then convert the Flex 4 project to HTML+JS using FlexJS SDK?
>> Or it is better to directly migrate from Flex 3 to HTML+JS using
>>FlexJS SDK?
>> >
>> >

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread piotrz
Allen,

A lot of examples you can find on our github[1]

[1]
https://github.com/apache/flex-asjs/tree/apache-flex-flexjs-0.8.0/examples/flexjs

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62711.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Alex Harui
That's a great suggestion.  It would be great to see what the learning
curve is when using Express.

In theory, Allen should be able to replace:

   xmlns:mx="http://www.adobe.com/2006/mxml;


With these two lines:

   xmlns:fx="http://ns.adobe.com/mxml/2009;
   xmlns:mx="library://ns.apache.org/flexjs/express"


And replace:

   mx:Script

With:

   fx:Script

Same for any mx:Styles.
And also replace:

   import mx.controls

With:

   import org.apache.flex.html

Then just try to compile it.  There might be a lot of errors, but then we
can discuss how to migrate to resolve those errors.

-Alex

On 6/30/17, 6:36 AM, "Josh Tynjala"  wrote:

>If you use the new Express components in FlexJS 0.8, binding beads should
>be added automatically, so that's one place where things might not
>necessarily be too different!
>
>- Josh
>
>On Fri, Jun 30, 2017 at 5:48 AM, Harbs  wrote:
>
>> I suggest you watch the getting started video by Yishay and the VS Code
>> video by Josh.
>>
>> Don’t try to port to Flex 4 first. It should not be significantly
>> different porting from Flex 3 or Flex 4. If anything, porting from Flex
>>3
>> should be more straight-forward because the architecture is simpler.
>>
>> To set some expectations:
>>
>> You cannot expect to just copy your UI code as-is. You will need to
>> rewrite your view using FlexJS components. Many of them will be simple
>> replacements (i.e.  instead of  etc. but the event
>> subsystem is different, and binding is different (you need to declare
>>which
>> kind of binding you need), skinning is different and much of the
>> functionality is different. Layout is definitely different.
>>
>> You will need to wrap your head around strands and beads. (Basically,
>>you
>> have a list of beads which defines what look and behavior your
>>components
>> have.)
>>
>> We’re here to help.
>>
>> Good luck!
>> Harbs
>>
>> > On Jun 30, 2017, at 3:19 PM, Allen YANG 
>>wrote:
>> >
>> > Hi Team,
>> > I have a Flex 3 project that was built on Adobe Flash Builder 3.6 (SDK
>> Flex 3.6A); it needs to be ported to support a non-flash environment.
>>This
>> program was not originally written by me; but I have software
>>development
>> experience.
>> > I installed a trial version of Flash Builder 4.7 on my Windows 7
>> machine, then installed JDK 1.8.0_131 and replaced the Flash Builder's
>>JRE
>> with the new JRE version; installed FlexJS 0.8.0 using FlexFlex SDK
>> installer, and successfully built and ran the example project, thanks to
>> Alex Harui's  [Using FlexJS with Adobe Flash Builder]<
>> 
>>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.ap
>>ache.org%2Fconfluence%2Fdisplay%2FFLEX%2F=02%7C01%7C%7Cdb3892d732684
>>44b90b308d4bfbd1e8d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63634426
>>6362069929=IQRMFcTFZ6aF5jO1OXvH8%2F7DDniLk18oZflTZ%2FZ4ZJ8%3D
>>ved=0
>> Using+FlexJS+with+Adobe+Flash+Builder> wiki page.  I have also gone over
>> the Youtube video of [Migrating from Flex to
>>FlexJS>ww.youtube=02%7C01%7C%7Cdb3892d73268444b90b308d4bfbd1e8d%7Cfa7b1b5a7
>>b34438794aed2c178decee1%7C0%7C0%7C636344266362069929=R5ZXrvVdPaUUxy
>>WrUYHXyVB5xpWpq1qPlmdUEUW3%2Fek%3D=0.
>> com/watch?v=-FcLs0O-BWQ=PLbzoR-pLrL6pLDCyPxByWQwYT>] by Harbs (I
>> have to admit that video is a bit over my head now)
>> >
>> > I am looking for advices what will be the best approach for me to do
>>the
>> porting. Questions I have are:
>> >
>> > (a)Should I start by converting the project from Flex 3 to Flex 4
>> first using Flash Builder 4.7's own Flex 4.6.0 SDK; and if it is
>> successful, then convert the Flex 4 project to HTML+JS using FlexJS SDK?
>> Or it is better to directly migrate from Flex 3 to HTML+JS using FlexJS
>>SDK?
>> >
>> > (b)If I convert to Flex 4 first, then I am trying to prepare my
>> browsers for debugging in a Flash environment. My most frequently used
>> browser is Google Chrome.  I found that there is no easy way to replace
>> Chrome's flash player, starting Chrome version 57, by the debug version
>> downloadable from Adobe.  Could anyone advise me how to set that up for
>> debugging?
>> >
>> > (c)Could someone recommend the URLs that will help me to get
>> prepared and educated about porting an existing Flex project by FlexJS,
>> especially regarding the name spaces and comboBox.
>> >
>> > One of my MXML files looks like:
>> > 
>> > http://www.adobe.com/2006/mxml;
>> >   xmlns:net="flash.net.*"
>> >   verticalAlign="middle" horizontalAlign="center"
>>layout="absolute"
>> >   xmlns:dropdown="components.*"
>> >   xmlns:controls="com.iwobanas.controls.*"
>> >   xmlns:local="*"
>> >xmlns:dataGridClasses="com.iwobanas.controls.dataGridClasses.*"
>> >applicationComplete="appInit();">
>> >
>> > 
>> >   
>> > 
>> > ...
>> >
>> > Thanks and Regards,
>> > Allen
>> >
>> > Allen Yang
>> > Raritan, Inc.

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Allen YANG
Hi Harbs,
Thank you!  I went over FlexJS wiki [Creating Components] to get a better 
understanding of strands and beads. It was quite helpful.  Watching Yishay's 
video helped to get myself further familiar with this subject.  However, the 
source code texts on YouTube video are a bit blurred when Yishay went through 
the example MXML code (Unlike Josh's VS Code video on which the texts are clear 
most of the time)  Is there somewhere this example code can be downloaded?
Thanks and Regards,
Allen

-Original Message-
From: Harbs [mailto:harbs.li...@gmail.com]
Sent: Friday, June 30, 2017 8:49 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

I suggest you watch the getting started video by Yishay and the VS Code video 
by Josh.

Don’t try to port to Flex 4 first. It should not be significantly different 
porting from Flex 3 or Flex 4. If anything, porting from Flex 3 should be more 
straight-forward because the architecture is simpler.

To set some expectations:

You cannot expect to just copy your UI code as-is. You will need to rewrite 
your view using FlexJS components. Many of them will be simple replacements 
(i.e.  instead of  etc. but the event subsystem is 
different, and binding is different (you need to declare which kind of binding 
you need), skinning is different and much of the functionality is different. 
Layout is definitely different.

You will need to wrap your head around strands and beads. (Basically, you have 
a list of beads which defines what look and behavior your components have.)

We’re here to help.

Good luck!
Harbs

> On Jun 30, 2017, at 3:19 PM, Allen YANG <allen.y...@raritan.com> wrote:
>
> Hi Team,
> I have a Flex 3 project that was built on Adobe Flash Builder 3.6 (SDK Flex 
> 3.6A); it needs to be ported to support a non-flash environment.  This 
> program was not originally written by me; but I have software development 
> experience.
> I installed a trial version of Flash Builder 4.7 on my Windows 7
> machine, then installed JDK 1.8.0_131 and replaced the Flash Builder's
> JRE with the new JRE version; installed FlexJS 0.8.0 using FlexFlex
> SDK installer, and successfully built and ran the example project,
> thanks to Alex Harui's  [Using FlexJS with Adobe Flash
> Builder]<https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS
> +with+Adobe+Flash+Builder> wiki page.  I have also gone over the
> Youtube video of [Migrating from Flex to
> FlexJS<https://www.youtube.com/watch?v=-FcLs0O-BWQ=PLbzoR-pLrL6pL
> DCyPxByWQwYT>] by Harbs (I have to admit that video is a bit over my
> head now)
>
> I am looking for advices what will be the best approach for me to do the 
> porting. Questions I have are:
>
> (a)Should I start by converting the project from Flex 3 to Flex 4 first 
> using Flash Builder 4.7's own Flex 4.6.0 SDK; and if it is successful, then 
> convert the Flex 4 project to HTML+JS using FlexJS SDK?  Or it is better to 
> directly migrate from Flex 3 to HTML+JS using FlexJS SDK?
>
> (b)If I convert to Flex 4 first, then I am trying to prepare my browsers 
> for debugging in a Flash environment. My most frequently used browser is 
> Google Chrome.  I found that there is no easy way to replace Chrome's flash 
> player, starting Chrome version 57, by the debug version downloadable from 
> Adobe.  Could anyone advise me how to set that up for debugging?
>
> (c)Could someone recommend the URLs that will help me to get prepared and 
> educated about porting an existing Flex project by FlexJS, especially 
> regarding the name spaces and comboBox.
>
> One of my MXML files looks like:
>   xmlns:mx="http://www.adobe.com/2006/mxml;
>   xmlns:net="flash.net.*"
>   verticalAlign="middle" horizontalAlign="center" layout="absolute"
>   xmlns:dropdown="components.*"
>   xmlns:controls="com.iwobanas.controls.*"
>   xmlns:local="*"
>xmlns:dataGridClasses="com.iwobanas.controls.dataGridClasses.*"
>applicationComplete="appInit();">
>
> 
>   
> 
> ...
>
> Thanks and Regards,
> Allen
>
> Allen Yang
> Raritan, Inc.
>
>
>
>
>
> 
>
> Ce message, ainsi que tous les fichiers joints ? ce message, peuvent contenir 
> des informations sensibles et/ ou confidentielles ne devant pas ?tre 
> divulgu?es. Si vous n'?tes pas le destinataire de ce message (ou que vous 
> recevez ce message par erreur), nous vous remercions de le notifier 
> imm?diatement ? son exp?diteur, et de d?truire ce message. Toute copie, 
> divulgation, modification, utilisation ou diffusion, non autoris?e, directe 
> ou indirecte, de tout ou partie de ce m

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Josh Tynjala
If you use the new Express components in FlexJS 0.8, binding beads should
be added automatically, so that's one place where things might not
necessarily be too different!

- Josh

On Fri, Jun 30, 2017 at 5:48 AM, Harbs  wrote:

> I suggest you watch the getting started video by Yishay and the VS Code
> video by Josh.
>
> Don’t try to port to Flex 4 first. It should not be significantly
> different porting from Flex 3 or Flex 4. If anything, porting from Flex 3
> should be more straight-forward because the architecture is simpler.
>
> To set some expectations:
>
> You cannot expect to just copy your UI code as-is. You will need to
> rewrite your view using FlexJS components. Many of them will be simple
> replacements (i.e.  instead of  etc. but the event
> subsystem is different, and binding is different (you need to declare which
> kind of binding you need), skinning is different and much of the
> functionality is different. Layout is definitely different.
>
> You will need to wrap your head around strands and beads. (Basically, you
> have a list of beads which defines what look and behavior your components
> have.)
>
> We’re here to help.
>
> Good luck!
> Harbs
>
> > On Jun 30, 2017, at 3:19 PM, Allen YANG  wrote:
> >
> > Hi Team,
> > I have a Flex 3 project that was built on Adobe Flash Builder 3.6 (SDK
> Flex 3.6A); it needs to be ported to support a non-flash environment.  This
> program was not originally written by me; but I have software development
> experience.
> > I installed a trial version of Flash Builder 4.7 on my Windows 7
> machine, then installed JDK 1.8.0_131 and replaced the Flash Builder's JRE
> with the new JRE version; installed FlexJS 0.8.0 using FlexFlex SDK
> installer, and successfully built and ran the example project, thanks to
> Alex Harui's  [Using FlexJS with Adobe Flash Builder]<
> https://cwiki.apache.org/confluence/display/FLEX/
> Using+FlexJS+with+Adobe+Flash+Builder> wiki page.  I have also gone over
> the Youtube video of [Migrating from Flex to FlexJS com/watch?v=-FcLs0O-BWQ=PLbzoR-pLrL6pLDCyPxByWQwYT>] by Harbs (I
> have to admit that video is a bit over my head now)
> >
> > I am looking for advices what will be the best approach for me to do the
> porting. Questions I have are:
> >
> > (a)Should I start by converting the project from Flex 3 to Flex 4
> first using Flash Builder 4.7's own Flex 4.6.0 SDK; and if it is
> successful, then convert the Flex 4 project to HTML+JS using FlexJS SDK?
> Or it is better to directly migrate from Flex 3 to HTML+JS using FlexJS SDK?
> >
> > (b)If I convert to Flex 4 first, then I am trying to prepare my
> browsers for debugging in a Flash environment. My most frequently used
> browser is Google Chrome.  I found that there is no easy way to replace
> Chrome's flash player, starting Chrome version 57, by the debug version
> downloadable from Adobe.  Could anyone advise me how to set that up for
> debugging?
> >
> > (c)Could someone recommend the URLs that will help me to get
> prepared and educated about porting an existing Flex project by FlexJS,
> especially regarding the name spaces and comboBox.
> >
> > One of my MXML files looks like:
> > 
> > http://www.adobe.com/2006/mxml;
> >   xmlns:net="flash.net.*"
> >   verticalAlign="middle" horizontalAlign="center" layout="absolute"
> >   xmlns:dropdown="components.*"
> >   xmlns:controls="com.iwobanas.controls.*"
> >   xmlns:local="*"
> >xmlns:dataGridClasses="com.iwobanas.controls.dataGridClasses.*"
> >applicationComplete="appInit();">
> >
> > 
> >   
> > 
> > ...
> >
> > Thanks and Regards,
> > Allen
> >
> > Allen Yang
> > Raritan, Inc.
> >
> >
> >
> >
> >
> > 
> >
> > Ce message, ainsi que tous les fichiers joints ? ce message, peuvent
> contenir des informations sensibles et/ ou confidentielles ne devant pas
> ?tre divulgu?es. Si vous n'?tes pas le destinataire de ce message (ou que
> vous recevez ce message par erreur), nous vous remercions de le notifier
> imm?diatement ? son exp?diteur, et de d?truire ce message. Toute copie,
> divulgation, modification, utilisation ou diffusion, non autoris?e, directe
> ou indirecte, de tout ou partie de ce message, est strictement interdite.
> >
> >
> > This e-mail, and any document attached hereby, may contain confidential
> and/or privileged information. If you are not the intended recipient (or
> have received this e-mail in error) please notify the sender immediately
> and destroy this e-mail. Any unauthorized, direct or indirect, copying,
> disclosure, distribution or other use of the material or parts thereof is
> strictly forbidden.
>
>


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Josh Tynjala
The documentation for the VSCode extension explains how to launch a SWF
embedded in HTML in a specific web browser:

https://github.com/BowlerHatLLC/vscode-nextgenas/wiki/Debug-a-SWF-embedded-in-HTML-with-Visual-Studio-Code

- Josh

On Fri, Jun 30, 2017 at 5:56 AM, yishayw  wrote:

> allenyyang wrote
> > (b)If I convert to Flex 4 first, then I am trying to prepare my
> > browsers for debugging in a Flash environment. My most frequently used
> > browser is Google Chrome.  I found that there is no easy way to replace
> > Chrome's flash player, starting Chrome version 57, by the debug version
> > downloadable from Adobe.  Could anyone advise me how to set that up for
> > debugging?
>
> I gave up on Chrome's flash debugger. It just seems to be simpler to debug
> flash with Firefox. If, like me, you're using Flash Builder, there's an
> option to set the default browser so your apps are debugged in your browser
> of preference. I'm not sure how that would work in VS Code, but others on
> this list will be able to help you with that.
>
> As others have indicated, the transition to FlexJS won't be all smooth, but
> at this stage it shouldn't be too complicated either. Any questions that
> you
> have, even if they seem dumb, I would suggest to post on the Users list.
> That would give the community a good sense of what it feels like for a new
> user to start using FlexJS. In my opinion, that would be very valuable.
>
>
>
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-question-about-
> porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62702.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread yishayw
allenyyang wrote
> (b)If I convert to Flex 4 first, then I am trying to prepare my
> browsers for debugging in a Flash environment. My most frequently used
> browser is Google Chrome.  I found that there is no easy way to replace
> Chrome's flash player, starting Chrome version 57, by the debug version
> downloadable from Adobe.  Could anyone advise me how to set that up for
> debugging?

I gave up on Chrome's flash debugger. It just seems to be simpler to debug
flash with Firefox. If, like me, you're using Flash Builder, there's an
option to set the default browser so your apps are debugged in your browser
of preference. I'm not sure how that would work in VS Code, but others on
this list will be able to help you with that.

As others have indicated, the transition to FlexJS won't be all smooth, but
at this stage it shouldn't be too complicated either. Any questions that you
have, even if they seem dumb, I would suggest to post on the Users list.
That would give the community a good sense of what it feels like for a new
user to start using FlexJS. In my opinion, that would be very valuable.



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62702.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Allen YANG
Hi Piotr,
Thanks for your prompt answer.  Your answer and Alex's answer saved me lots of 
time by not trying to convert to Flex 4 first.
I will go over the links you provided and the videos Alex's recommended.
Thanks again to the team for all your help.  Really appreciated!
Best Regards,
Allen

-Original Message-
From: piotrz [mailto:piotrzarzyck...@gmail.com]
Sent: Friday, June 30, 2017 8:22 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

Great to hear that you are trying FlexJS! :) Answering briefly to your
questions:

I think you shouldn't port your Flex 3 application to Flex 4, cause no matter 
what you do you will have to rewrite from scratch your UI at the end.

The thing which you can do and will speed up your work is maybe extract from 
your logic everything what is not tight to Flash. Maybe you already have your 
logic in some swc - which doing for you something and doesn't have any 
dependency to flash - That part you will be able compile using FlexJS 
straightforward.

I gave some advice related to this on on users forum to Carlos [1] - Talk from 
Josh is describing how to start with VSCode and debug.

[1]
http://apache-flex-users.246.n4.nabble.com/Adobe-Flex-Buider-to-FlexJS-td15377.html

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62699.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.



Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.


Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread Harbs
I suggest you watch the getting started video by Yishay and the VS Code video 
by Josh.

Don’t try to port to Flex 4 first. It should not be significantly different 
porting from Flex 3 or Flex 4. If anything, porting from Flex 3 should be more 
straight-forward because the architecture is simpler.

To set some expectations:

You cannot expect to just copy your UI code as-is. You will need to rewrite 
your view using FlexJS components. Many of them will be simple replacements 
(i.e.  instead of  etc. but the event subsystem is 
different, and binding is different (you need to declare which kind of binding 
you need), skinning is different and much of the functionality is different. 
Layout is definitely different.

You will need to wrap your head around strands and beads. (Basically, you have 
a list of beads which defines what look and behavior your components have.)

We’re here to help.

Good luck!
Harbs

> On Jun 30, 2017, at 3:19 PM, Allen YANG  wrote:
> 
> Hi Team,
> I have a Flex 3 project that was built on Adobe Flash Builder 3.6 (SDK Flex 
> 3.6A); it needs to be ported to support a non-flash environment.  This 
> program was not originally written by me; but I have software development 
> experience.
> I installed a trial version of Flash Builder 4.7 on my Windows 7 machine, 
> then installed JDK 1.8.0_131 and replaced the Flash Builder's JRE with the 
> new JRE version; installed FlexJS 0.8.0 using FlexFlex SDK installer, and 
> successfully built and ran the example project, thanks to Alex Harui's  
> [Using FlexJS with Adobe Flash 
> Builder]
>  wiki page.  I have also gone over the Youtube video of [Migrating from Flex 
> to 
> FlexJS]
>  by Harbs (I have to admit that video is a bit over my head now)
> 
> I am looking for advices what will be the best approach for me to do the 
> porting. Questions I have are:
> 
> (a)Should I start by converting the project from Flex 3 to Flex 4 first 
> using Flash Builder 4.7's own Flex 4.6.0 SDK; and if it is successful, then 
> convert the Flex 4 project to HTML+JS using FlexJS SDK?  Or it is better to 
> directly migrate from Flex 3 to HTML+JS using FlexJS SDK?
> 
> (b)If I convert to Flex 4 first, then I am trying to prepare my browsers 
> for debugging in a Flash environment. My most frequently used browser is 
> Google Chrome.  I found that there is no easy way to replace Chrome's flash 
> player, starting Chrome version 57, by the debug version downloadable from 
> Adobe.  Could anyone advise me how to set that up for debugging?
> 
> (c)Could someone recommend the URLs that will help me to get prepared and 
> educated about porting an existing Flex project by FlexJS, especially 
> regarding the name spaces and comboBox.
> 
> One of my MXML files looks like:
> 
> http://www.adobe.com/2006/mxml;
>   xmlns:net="flash.net.*"
>   verticalAlign="middle" horizontalAlign="center" layout="absolute"
>   xmlns:dropdown="components.*"
>   xmlns:controls="com.iwobanas.controls.*"
>   xmlns:local="*"
>xmlns:dataGridClasses="com.iwobanas.controls.dataGridClasses.*"
>applicationComplete="appInit();">
> 
> 
>   
> 
> ...
> 
> Thanks and Regards,
> Allen
> 
> Allen Yang
> Raritan, Inc.
> 
> 
> 
> 
> 
> 
> 
> Ce message, ainsi que tous les fichiers joints ? ce message, peuvent contenir 
> des informations sensibles et/ ou confidentielles ne devant pas ?tre 
> divulgu?es. Si vous n'?tes pas le destinataire de ce message (ou que vous 
> recevez ce message par erreur), nous vous remercions de le notifier 
> imm?diatement ? son exp?diteur, et de d?truire ce message. Toute copie, 
> divulgation, modification, utilisation ou diffusion, non autoris?e, directe 
> ou indirecte, de tout ou partie de ce message, est strictement interdite.
> 
> 
> This e-mail, and any document attached hereby, may contain confidential 
> and/or privileged information. If you are not the intended recipient (or have 
> received this e-mail in error) please notify the sender immediately and 
> destroy this e-mail. Any unauthorized, direct or indirect, copying, 
> disclosure, distribution or other use of the material or parts thereof is 
> strictly forbidden.



Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-06-30 Thread piotrz
Hi Allen,

Great to hear that you are trying FlexJS! :) Answering briefly to your
questions:

I think you shouldn't port your Flex 3 application to Flex 4, cause no
matter what you do you will have to rewrite from scratch your UI at the end.

The thing which you can do and will speed up your work is maybe extract from
your logic everything what is not tight to Flash. Maybe you already have
your logic in some swc - which doing for you something and doesn't have any
dependency to flash - That part you will be able compile using FlexJS
straightforward.

I gave some advice related to this on on users forum to Carlos [1] - Talk
from Josh is describing how to start with VSCode and debug. 

[1]
http://apache-flex-users.246.n4.nabble.com/Adobe-Flex-Buider-to-FlexJS-td15377.html

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62699.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.