markup example

2020-01-21 Thread Takeshita Shoichiro
The following markup works.  For your information.
Please replace the png names to your png/jpg before running.

I'm not sure how to use  related tags, by the way.

==

http://ns.adobe.com/mxml/2009;
   xmlns:mx   = "library://ns.apache.org/royale/mx"
   xmlns:s= "library://ns.apache.org/royale/spark"
   xmlns:js   = "library://ns.apache.org/royale/basic"
   initialize = "onInit">






































Re: missing mxmlc.jar

2020-01-21 Thread Carlos Rovira
Hi,

just let you know that Maven SDK distribution was fixed today, so you can
use SDK built with maven and the IDE should recognize it to compile.
More info here:

https://github.com/apache/royale-asjs/wiki/Build-Apache-Royale-with-Maven

El jue., 11 abr. 2019 a las 12:52, Carlos Rovira ()
escribió:

> Hi Tiaan,
>
> What I and other use to do in Mac and Windows is to have a script (I can
> share it with you for Mac if you want since it should be easily converted
> to linux by you). This script build with maven the 3 repos and then create
> a fresh valid Royale SDK for use in IDEs. Then we point our IDEs to that
> daily sdk and build with maven our project then run on a browser.
>
> HTH,
>
> Carlos
>
>
> El jue., 11 abr. 2019 a las 12:23, Tiaan () escribió:
>
>> Hi Carlos,
>>
>> No, I want to run mxmlc from GNU make but when running from shell prompt
>> it complains as below. When I search for the missing jar it is nowhere to
>> be found in royale when I'm done building it.
>>
>> I've learnt however from other respondents that the way I built it is
>> useful only when maven is used and I need to rebuild with ant; then the
>> missing jar would hopefully appear.
>>
>> Thanks
>>
>>
>> Hi Tiaan
>>
>> maybe I'm not understanding ok, but are you referring to the need of set
>> the path in your environment vars to call mxmlc from anywhere?
>>
>>
>> El lun., 8 abr. 2019 a las 16:15, Tiaan () escribió:
>>
>>> Hi,
>>>
>>> I have managed to get Royale fully compiled with the helpful people on
>>> this list. Or let me say, I can see no errors anymore when compiling and
>>> all shows success.
>>>
>>> However, when trying to run mxmlc I get a missing mxmlc.jar
>>>
>>> [tiaan@nsdv64 royale-asjs]$ ./js/bin/mxmlc --help
>>> Using Royale Compiler codebase: ./js/bin/../..
>>> Using Royale SDK: ./js/bin/../..
>>> Error: Unable to access jarfile ./js/bin/../lib/mxmlc.jar
>>>
>>> Trying to find this file in any of compiler, typedefs or asjs yields
>>> nothing though. Does anyone have some insights on this ?
>>>
>>> Thanks
>>>
>>> --
>>> NetSys International
>>> Tel: +27 12 349-2056
>>> Fax: +27 12 349-2757
>>> http://www.netsys.aero
>>>
>>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>>
>> --
>> NetSys International
>> Tel: +27 12 349-2056
>> Fax: +27 12 349-2757http://www.netsys.aero
>>
>>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

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


Re: Maven Distribution SDK fixed and working for IDEs

2020-01-21 Thread Carlos Rovira
Hi Piotr, good idea :)

This is what we have in the wiki. Notice that you can use maven wrapper
(mvnw) if you does not have maven installed locally (it will handle all
foro you). This will build all with tests, examples and distribution SDK:

#!/bin/bashexport
FLASHPLAYER_DEBUGGER="/Users/christofer.dutz/Devtools/Adobe/Flash/FlashPlayer-32.0/Flash
Player.app/Contents/MacOS/Flash Player Debugger"cd royale-compiler
./mvnw installcd ../royale-typedefs
./mvnw installcd ../royale-asjs
./mvnw install -P
with-examples,with-distribution,with-ui-testsuite,option-with-swf
-Dwebdriver.gecko.driver=/Users/christofer.dutz/Downloads/geckodriver


TO BUILD JUST SDK
=

*distribution requires "option-with-swf"* (one thing to improve would be to
remove swf dependency to create a js-only sdk), so the minimum will be:

*mvn clean install -P with-distribution,option-with-swf
-DdistributionTargetFolder=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-sdk*

(notice that here I added a target sdk folder to create SDK in that folder
for convenience).

finally if you have maven updated and just want to create distribution you
can just do:

*cd /distribution*

mvn clean install
-DdistributionTargetFolder=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven

This will just execute the creation of the SDK.

HTH.

Carlos


El mar., 21 ene. 2020 a las 12:15, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> Hi Carlos,
>
> Congrats! Could you provide on mailing list command to build framework
> with distribution, so users could know how to do that.
>
> Thanks,
> Piotr
>
> wt., 21 sty 2020 o 12:12 Carlos Rovira 
> napisał(a):
>
>> Hi,
>>
>> just fixed the maven distribution, and now it creates a valid SDK that
>> can be used with IDEs. I think this is a long awaited fix.
>>
>> So with the new maven distribution the generated SDK allows you to get
>> code intelligence and IDEs can find compilers and use it to get a valid
>> compilation. I tried only VSCode with Josh AS3 extension, hope others
>> using Moonshine can provide feedback.
>>
>> Additionally you get the normal maven way of build with "mvn install"
>> that will be more near to your deploy needs.
>>
>> So people using Maven does not need to use ANT anymore to generate a
>> valid SDK, and we get finally to have two independent ways of building
>> separated one from the other.
>>
>> I'll be doing some refining this days with classpaths since I left some
>> versions hardcoded that I want to remove to make it valid as we change
>> versions.
>>
>> I'll be upgrading maven docs to reflect this change.
>>
>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> *
>


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


Re: Maven Distribution SDK fixed and working for IDEs

2020-01-21 Thread Piotr Zarzycki
Hi Carlos,

Congrats! Could you provide on mailing list command to build framework with
distribution, so users could know how to do that.

Thanks,
Piotr

wt., 21 sty 2020 o 12:12 Carlos Rovira  napisał(a):

> Hi,
>
> just fixed the maven distribution, and now it creates a valid SDK that can
> be used with IDEs. I think this is a long awaited fix.
>
> So with the new maven distribution the generated SDK allows you to get
> code intelligence and IDEs can find compilers and use it to get a valid
> compilation. I tried only VSCode with Josh AS3 extension, hope others
> using Moonshine can provide feedback.
>
> Additionally you get the normal maven way of build with "mvn install" that
> will be more near to your deploy needs.
>
> So people using Maven does not need to use ANT anymore to generate a valid
> SDK, and we get finally to have two independent ways of building separated
> one from the other.
>
> I'll be doing some refining this days with classpaths since I left some
> versions hardcoded that I want to remove to make it valid as we change
> versions.
>
> I'll be upgrading maven docs to reflect this change.
>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
*


Maven Distribution SDK fixed and working for IDEs

2020-01-21 Thread Carlos Rovira
Hi,

just fixed the maven distribution, and now it creates a valid SDK that can
be used with IDEs. I think this is a long awaited fix.

So with the new maven distribution the generated SDK allows you to get code
intelligence and IDEs can find compilers and use it to get a valid
compilation. I tried only VSCode with Josh AS3 extension, hope others
using Moonshine can provide feedback.

Additionally you get the normal maven way of build with "mvn install" that
will be more near to your deploy needs.

So people using Maven does not need to use ANT anymore to generate a valid
SDK, and we get finally to have two independent ways of building separated
one from the other.

I'll be doing some refining this days with classpaths since I left some
versions hardcoded that I want to remove to make it valid as we change
versions.

I'll be upgrading maven docs to reflect this change.



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