Re: HTML pass through

2016-10-25 Thread jude
FYI I don't know if it's common knowledge but the HTMLLoader /
FlexHTMLLoader has the HTML core class types listed at runtime. Here is the
window property (http://pasteboard.co/jseULM6lS.png).



At runtime the window property is of type __HTMLScriptObject. At compile
time it's Object. I couldn't find __HTMLScriptObject class anywhere.
​

On Tue, Oct 25, 2016 at 10:20 PM, jude  wrote:

> First question. This is sort of a third use case. John is a developer at
> Mozilla and he doesn't like using  or  tags (case 1) and
> doesn't want to use wrapper components (case 2). He wants to use the fully
> qualified class names in MXML with auto complete and syntax checking.
> Everything else is the same as the first two cases.
>
> Could he declare the HTML markup in MXML like so:
>
> 
>  app level property
> }
>
> Wasn't there a core HTML swc that we use to get type checking in FlexJS?
> Or was that another project?
>
> Currently the compiler converts MXML to AS3 when you use -keep. But what
> if that MXML would be converted straight out to markup:
>
> This:
>
> 
> 
> 
>
>
>
> On Tue, Oct 25, 2016 at 7:29 PM, Alex Harui  wrote:
>
>> Interesting.  Comments inline...
>>
>> On 10/25/16, 4:26 PM, "jude"  wrote:
>>
>> >Alex,
>> >
>> >I've been encountering two situations that don't quite fit into the
>> FlexJS
>> >paradigm but may fit somewhere.
>> >
>> >*Use Case 1:*
>> >I'm a web developer who likes to write all my HTML by hand or I already
>> >have a project in HTML and the markup and CSS cannot be changed. But I've
>> >heard about FlexJS and AS3 and how it will benefit my project. Is there a
>> >way I can place or pull in my own HTML/CSS with FlexJS?
>>
>> If you want to create a component called HTMLPassthrough, it shouldn't be
>> that hard.  It should just be a subclass of UIBase with an "html" property
>> that sets the innerHTML property on a div.  We just recently made it
>> possible to put arbitrary HTML as the content of the "html" property of
>> any component.  You have to use the XHTML namespace for now though.
>>
>> >
>> >My FlexJS finished application may look something like this (
>> >http://pastebin.com/ga0Gq8C6):
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>>
>> In regular HTML/JS/CSS, I believe the id does not become a property like
>> it does in MXML.  Instead, I think you use document.getElementById.  And
>> that should "just work".  I suppose we could have the compiler scan
>> embedded HTML for ids and make slots.  Any runtime injection of HTML
>> probably "shouldn't" make slots in a sealed-class model like ActionScript
>> has by default, but I suppose you could declare your class as dynamic.
>> Sort of defeats the point of AS though.
>>
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>>
>> CDATA shouldn't be needed for XHTML tags.  It should be possible just to
>> write:
>>
>>   
>> 
>>   
>> 
>>   
>>
>> Again, up on the top tag, you have to add:
>> xmlns="http://www.w3.org/1999/xhtml";
>>
>>
>> IMO, the most interesting part wasn't in your example, which is having
>> event handlers in the HTML call out to AS in the rest of your app.  Right
>> now, we wouldn't pull out handlers and put them in the instance scope.  I
>> think they'd all be in the global scope, which is different than other
>> event handlers in other MXML tags.
>>
>> >
>> >*Use Case 2: *
>> >
>> >I'm a web developer who likes to write my own native HTML Elements in the
>> >body tag but I would like to write it in XML. Is there a way I write type
>> >safe HTML markup? My FlexJS application may look something like this (
>> >http://pastebin.com/e0WybNXc):
>>
>> It should be possible to create a set of components that simply expose the
>> HTMLElements, except for maybe  since Application is currently
>> assigned to .  UIBase supports the style-as-string syntax already.
>>
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >   
>> >   
>> >
>> >   
>> >
>> >   
>> >   
>> >   
>> >
>> >   text
>> >
>> >   
>> >
>> >
>> >
>> >
>>
>> This example would have all event handlers in the instance scope, but the
>> trade off is that way more code would run to set up the same DOM as
>> setting the innerHTML directly in the first example.
>>
>> IMO, there is no right way.  I have no problem with providing people with
>> both options.
>>
>> >
>> >How hard would it be for FlexJS be made to fit these two cases? I think I
>> >know how to do the second case if it's not done already but would have
>> >questions.
>>
>> Shouldn't be that hard.  I encourage you to try to make it happen.  We'll
>> try to answer questions and fix compiler issues as they come up.
>>
>> -Alex
>>
>>
>


Re: HTML pass through

2016-10-25 Thread jude
First question. This is sort of a third use case. John is a developer at
Mozilla and he doesn't like using  or  tags (case 1) and
doesn't want to use wrapper components (case 2). He wants to use the fully
qualified class names in MXML with auto complete and syntax checking.
Everything else is the same as the first two cases.

Could he declare the HTML markup in MXML like so:








On Tue, Oct 25, 2016 at 7:29 PM, Alex Harui  wrote:

> Interesting.  Comments inline...
>
> On 10/25/16, 4:26 PM, "jude"  wrote:
>
> >Alex,
> >
> >I've been encountering two situations that don't quite fit into the FlexJS
> >paradigm but may fit somewhere.
> >
> >*Use Case 1:*
> >I'm a web developer who likes to write all my HTML by hand or I already
> >have a project in HTML and the markup and CSS cannot be changed. But I've
> >heard about FlexJS and AS3 and how it will benefit my project. Is there a
> >way I can place or pull in my own HTML/CSS with FlexJS?
>
> If you want to create a component called HTMLPassthrough, it shouldn't be
> that hard.  It should just be a subclass of UIBase with an "html" property
> that sets the innerHTML property on a div.  We just recently made it
> possible to put arbitrary HTML as the content of the "html" property of
> any component.  You have to use the XHTML namespace for now though.
>
> >
> >My FlexJS finished application may look something like this (
> >http://pastebin.com/ga0Gq8C6):
> >
> >
> >
> >
> >
> >
> >
> >
>
> In regular HTML/JS/CSS, I believe the id does not become a property like
> it does in MXML.  Instead, I think you use document.getElementById.  And
> that should "just work".  I suppose we could have the compiler scan
> embedded HTML for ids and make slots.  Any runtime injection of HTML
> probably "shouldn't" make slots in a sealed-class model like ActionScript
> has by default, but I suppose you could declare your class as dynamic.
> Sort of defeats the point of AS though.
>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> CDATA shouldn't be needed for XHTML tags.  It should be possible just to
> write:
>
>   
> 
>   
> 
>   
>
> Again, up on the top tag, you have to add:
> xmlns="http://www.w3.org/1999/xhtml";
>
>
> IMO, the most interesting part wasn't in your example, which is having
> event handlers in the HTML call out to AS in the rest of your app.  Right
> now, we wouldn't pull out handlers and put them in the instance scope.  I
> think they'd all be in the global scope, which is different than other
> event handlers in other MXML tags.
>
> >
> >*Use Case 2: *
> >
> >I'm a web developer who likes to write my own native HTML Elements in the
> >body tag but I would like to write it in XML. Is there a way I write type
> >safe HTML markup? My FlexJS application may look something like this (
> >http://pastebin.com/e0WybNXc):
>
> It should be possible to create a set of components that simply expose the
> HTMLElements, except for maybe  since Application is currently
> assigned to .  UIBase supports the style-as-string syntax already.
>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >   
> >   
> >
> >   
> >
> >   
> >   
> >   
> >
> >   text
> >
> >   
> >
> >
> >
> >
>
> This example would have all event handlers in the instance scope, but the
> trade off is that way more code would run to set up the same DOM as
> setting the innerHTML directly in the first example.
>
> IMO, there is no right way.  I have no problem with providing people with
> both options.
>
> >
> >How hard would it be for FlexJS be made to fit these two cases? I think I
> >know how to do the second case if it's not done already but would have
> >questions.
>
> Shouldn't be that hard.  I encourage you to try to make it happen.  We'll
> try to answer questions and fix compiler issues as they come up.
>
> -Alex
>
>


How to make InlineGraphicElements display a hand cursor

2016-10-25 Thread jude
I've been trying to figure out the TLF way to show a hand cursor on roll
over on InlineGraphicElement and it seems the FlowElementMouseEventManager
is preventing that with the _needsCtrlKey flag. This is set automatically
by ContainerController when in edit mode in line ~3200:

var needsCtrlKey:Boolean = (interactionManager != null &&
interactionManager.editingMode == EditingMode.READ_WRITE);

It looks like it wasn't meant to handle much else except LinkElements. So
I've been trying to come up with alternatives and maybe a long term
solution.

First, I tried to add an event mirror to the IGE to set the Mouse cursor
manually:

inlineGraphicElement = editManager.insertInlineGraphic(source, null, null,
options, operationState);
var eventMirror:IEventDispatcher =
inlineGraphicElement.tlf_internal::getEventMirror();

eventMirror.addEventListener(FlowElementMouseEvent.ROLL_OVER,
flowElementRollOver);

protected function flowElementRollOver(event:Event):void {
Mouse.cursor = MouseCursor.BUTTON;
}

But the FlowElementMouseEventManager class dispatchFlowElementMouseEvent
method prevents roll over events from being dispatched unless the CTRL key
is down:

tlf_internal function dispatchFlowElementMouseEvent(type:String,
originalEvent:MouseEvent):Boolean
{
// Mimick old behavior, and emit only rollOut events if Ctrl
key is not down
if (_needsCtrlKey && !originalEvent.ctrlKey && type !=
FlowElementMouseEvent.ROLL_OUT)
return false;

}

I'm thinking maybe that a property on FlowElement such as
currentElement.interactiveInEditMode property. This would be false by
default but if true then the CTRL is not necessary. Then we can check that
and continue to dispatch all events. In the event listeners we would set
the Mouse.cursor how we like. This sort of feels hacky though as you'll see
from LinkElement. It places the cursor control outside of a FlowElement's
class.

Is it a bug that it's not dispatching events I've attached listeners too?
Should the CTRL key condition be removed? It seems like it's a work around
for link elements and it shouldn't affect non link elements.

The other approach is to mimic how LinkElement handles it.

/** @private
 * The ElementMouseEventManager calls this method directly. Note
that the mouse
 * coordinates are unrelated to any coordinate in the container or
this element.
 */
tlf_internal function
mouseOverHandler(mgr:FlowElementMouseEventManager, evt:MouseEvent):void
{
mgr.setHandCursor(true);
setToState(evt.buttonDown ? LinkState.ACTIVE : LinkState.HOVER);
}

But the code in FlowElementMouseEventManager is specific to LinkElement. It
checks if the element is of type LinkElement and if not it exits out. It's
not setup to handle generic element types.

I then thought if I can edit or extend FlowElementMouseEventManager to
handle generic types then we can extend InlineGraphicElement with the same
handlers as LinkElement. But IGE are created by ParaEdit class createImage
method that hard codes the instance class to an InlineGraphicElement.

Next I tried to access the FlowElementMouseEventManager instance to see if
I could extend it, assign my own but it's marked private in
ContainerController. So no other element types can set the Mouse cursor.

Should it be accessible in the textFlow like the interaction manager?
Anyway, any ideas appreciated.


HTML pass through

2016-10-25 Thread jude
Alex,

I've been encountering two situations that don't quite fit into the FlexJS
paradigm but may fit somewhere.

*Use Case 1:*
I'm a web developer who likes to write all my HTML by hand or I already
have a project in HTML and the markup and CSS cannot be changed. But I've
heard about FlexJS and AS3 and how it will benefit my project. Is there a
way I can place or pull in my own HTML/CSS with FlexJS?

My FlexJS finished application may look something like this (
http://pastebin.com/ga0Gq8C6):



























In this scenario I would be responsible for managing all my HTML markup and
CSS styling. FlexJS would handle the rest.

*Use Case 2: *

I'm a web developer who likes to write my own native HTML Elements in the
body tag but I would like to write it in XML. Is there a way I write type
safe HTML markup? My FlexJS application may look something like this (
http://pastebin.com/e0WybNXc):




















text







How hard would it be for FlexJS be made to fit these two cases? I think I
know how to do the second case if it's not done already but would have
questions.


Re: Flex news site and rss feed

2016-10-25 Thread jude
That's how I understand it too. With Twitter you subscribe to accounts that
are usually a person or a business. There are subject based accounts that
post on a specific topic but they are few and far between. And those
accounts content is generated by them manually searching for news and then
posting about it or seeing someone else post and reposting it.

You can create lists that let show the posts of multiple accounts but that
doesn't mean you'll get content about that subject. For example, you can
add an account of a Flash developer but that's no guarantee they will be
posting about Flash.

If Twitter could pull in RSS feeds that would solve part of the problem. If
the ApacheFlex account had a list of RSS feeds it pulled from and then
posted about daily or hourly then it would work. It would still need a way
for users to post their own content or have someone repost it when someone
mentions them.

An alternative would be to setup the news mailing list for user generated
news. Then setup an RSS aggregator for web based news and integrate the
news mailing list in it.


On Tue, Oct 25, 2016 at 12:47 PM, Alex Harui  wrote:

> On 10/25/16, 9:48 AM, "jude"  wrote:
>
> >The feed Adobe had back in the day was good. I don't know who uses RSS
> >feeds anymore (well I do in my bookmarks). Mainly I was thinking, I have
> >some Flash / Flex related news and want to share / wouldn't it be great to
> >see everyone's news all in one place.
> >
> >In a perfect world it would be news containing Josh's updates on as3 to js
> >project, Alex's and Peter's updates on FlexJS, maven updates, new ANE's,
> >new components, new posts from flash / AS3 forums, new flash/as3 stack
> >overflow questions, etc.
> >
> >I haven't seen the FlashDaily's site in a while. It looks like it might
> >work if we post to it. It doesn't look like they have a RSS feed but
> >that's
> >not a deal breaker.
>
> I'm not cool enough to know this, but has twitter replaced RSS feeds?
>
> IMO, at Apache, there is is private, not-so-private, and public
> information.  The Apache Flex PMC discusses security issues, people issues
> and certain trademark issues on the private@ list.  News about un-released
> software is supposed to be on dev@.  News about released software goes on
> users@.  We aren't really supposed to encourage folks who only follow us
> on users@ to get the nightly builds.
>
> I personally don't have any problem with users@ being used for
> Flex-related news from non-ASF places.  We could also ask for a news@
> mailing list, I suppose.  But all of that is "pushed" by the author.
> There still won't be a server polling blogs and other places.
>
> I also don't have an issue with the ApacheFlex twitter account following
> more Flex-related folks although sometimes these folks use Twitter for
> non-Flex things.  But I think if I'm only following ApacheFlex that
> someone who can log in as ApacheFlex as to retweet news so I would see it.
>  I don't know if there is an automatic RT feature.
>
> Thoughts?
> -Alex
>
> >
> >On Tue, Oct 25, 2016 at 2:09 AM, Justin Mclean 
> >wrote:
> >
> >> Hi,
> >>
> >> Adobe back in the day had a blog aggregator [1] which was a copy of the
> >> "full as a goog” blog aggregator. Both are no longer running.
> >>
> >> What is it that we want to actually aggregate? Do we have a list of
> >> sites/feeds?
> >>
> >> Thanks,
> >> Justin
> >>
> >> 1. http://feeds.adobe.com
>
>


Re: Flex news site and rss feed

2016-10-25 Thread jude
The feed Adobe had back in the day was good. I don't know who uses RSS
feeds anymore (well I do in my bookmarks). Mainly I was thinking, I have
some Flash / Flex related news and want to share / wouldn't it be great to
see everyone's news all in one place.

In a perfect world it would be news containing Josh's updates on as3 to js
project, Alex's and Peter's updates on FlexJS, maven updates, new ANE's,
new components, new posts from flash / AS3 forums, new flash/as3 stack
overflow questions, etc.

I haven't seen the FlashDaily's site in a while. It looks like it might
work if we post to it. It doesn't look like they have a RSS feed but that's
not a deal breaker.

On Tue, Oct 25, 2016 at 2:09 AM, Justin Mclean 
wrote:

> Hi,
>
> Adobe back in the day had a blog aggregator [1] which was a copy of the
> "full as a goog” blog aggregator. Both are no longer running.
>
> What is it that we want to actually aggregate? Do we have a list of
> sites/feeds?
>
> Thanks,
> Justin
>
> 1. http://feeds.adobe.com


Demystifying internal workings of AS3

2016-10-23 Thread jude
Have you ever clicked on an internal Flash class and got the message,
"Source could not be found for [className] in airglobal.swc"? Well, now if
you ever wanted to learn about how core Flash API works you can do so here
. The source was added
to GitHub a few years ago without much fanfare but it's new to me.

For example, if you wanted to learn how the AS3 JSON class works you can
read the class here
. The code looks
like it's in C, C++ or a form of AS3 that uses keywords like native and
metadata.

A bit earlier than that the Flex SDK design docs were released here
.

There's also a project setup that may make it possible to package an
updated WebKit in your AIR projects here
.


Flex news site and rss feed

2016-10-22 Thread jude
Do we have a Flex news site with RSS feed? I think it would be good to have
a place we can go to hear about new Flex projects, Flex SDK updates, Flash
and AIR updates and so on for checking out news without diving into the
mailing list.

Jude


Re: [FlexJS][Falcon] Some final moving around of stuff :-)

2016-07-08 Thread jude
to me externs have no context bc I've never heard it before it was
mentioned on this list. if you want to move it to the frameworks directory
that would make more sense. other folder names that would fit would be
"libraries" or "bin". something along the lines of what they are used for
like,
"../autocomplete/libraries/"
On Jul 8, 2016 4:05 PM, "Christofer Dutz"  wrote:

> Hi,
>
>
> ok in order to prepare the stage for a 0.7.0 release of Falcon and ASJS, I
> would like to propose some final moving around of things. I would like to
> move the "externs" to the ASJS project. For me the ASJS project is sort of
> a synonym for "framework"
>
>
> The reason for this is actually two:
>
> 1. For me Falcon is the "compiler" and Externs are somewhat the output of
> the compiler. For me the externs are just part of the "framework" (After
> all they are located in the "framework" directory in the end)
>
> 2. It makes the Build and hereby the Maven release process a lot easier as
> it could performed in one instead of two separate steps (first the compiler
> and then the externs)
>
>
> If we move the externs to the "framework" then we will be in the position
> to do a simple "mvn clean install" in the "compiler" to build the compiler
> and all that belongs to it and we could to a "mvn clean install" in the
> "framework" to build the SWCs and assemble a useable SDK.
>
>
> The reason for me investing a little more in this, is that in contrast to
> having a binary release in our repo, as soon as we do a Maven release,
> taking it back isn't possible anymore. So I'd like to have things clean and
> not push stuff that we know will have to change soon. Especially if these
> changes are easy to implement now.
>
>
> I am not really happy with the names of the artifacts in the compiler
> module, but I'd be happy for now if we could do this untangling of the
> "externs".
>
>
> What do the others think? Do you agree that the Externs should be moved to
> the "framework"?
>
>
> Chris
>


Re: [FlexJS] Launch configs

2016-07-06 Thread jude
That was a typo. I meant to say, is there a config to run only a debug OR
release compilation.

I was looking for a "debug only" config so I'll check the nightly.
On Jul 6, 2016 3:11 PM, "Alex Harui"  wrote:



On 7/6/16, 12:41 PM, "jude"  wrote:

>Is there a way to run only a debug and release compile using the external
>launch config?

Not sure I understood the question.

In the nightly build there should be an option for debug only as well as
the "debug and release".  There isn't a launch config for "release only"
but we could set one up.  A "release only" still uses files in js-debug
but does not re-generate the js-debug folder, allowing you to hand-edit
the files first.

-Alex


[FlexJS] Launch configs

2016-07-06 Thread jude
Is there a way to run only a debug and release compile using the external
launch config?

I looked into the launch config at (/Applications/Adobe Flash Builder
4.7/sdks/FlexJS/ide/flashbuilder) and I don't see any option to configure
which is run (both are run currently):


 
 
 
 
 
 
 



Re: flexjs init the int =0

2016-07-03 Thread jude
in as3 if you sign an object to an int an error is thrown. in js the
variable would be assigned to the object and would no longer be an int. so
maybe, when the time comes, simply casting it as int would be enough.
On Jul 3, 2016 1:50 AM, "Alex Harui"  wrote:

>
>
> On 7/1/16, 1:44 PM, "jude"  wrote:
>
> >ihzi is correct. to clarify, the compiler should initialize integers to
> >zero when they are defined. and it should probably wrap any code that
> >assigns a value to an int with parseInt().
>
> IMO, it should be easy to initialize integers to zero, but I'm concerned
> about the overhead of having to do all of the automatic type conversions
> that AS does and JS doesn't, so injecting code like parseInt will probably
> have to wait.
>
> -Alex
>
>


Re: flexjs init the int =0

2016-07-01 Thread jude
ihzi is correct. to clarify, the compiler should initialize integers to
zero when they are defined. and it should probably wrap any code that
assigns a value to an int with parseInt().

On Jul 1, 2016 3:38 PM, "jude"  wrote:
>
> in as3
>
> var i:int; // i equals 0
>
> in JavaScript i is undefined because we don't know what type it is
>
> var i; // null, undefined or NaN
>
> therefore we need to initialize every integer as zero when it's defined.
>
> On Jun 30, 2016 10:35 PM, "lizhi"  wrote:
>>
>> and i++ in as i=1
>> but js i= NaN
>>
>>
>>
>> --
>> View this message in context:
http://apache-flex-development.247.n4.nabble.com/flexjs-init-the-int-0-tp53569p53570.html
>> Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: flexjs init the int =0

2016-07-01 Thread jude
in as3

var i:int; // i equals 0

in JavaScript i is undefined because we don't know what type it is

var i; // null, undefined or NaN

therefore we need to initialize every integer as zero when it's defined.
On Jun 30, 2016 10:35 PM, "lizhi"  wrote:

> and i++ in as i=1
> but js i= NaN
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/flexjs-init-the-int-0-tp53569p53570.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: TextInput

2016-06-15 Thread jude
For some languages you may need to set the IME mode. But that seems to be
only for specific languages. I haven't used IME mode before but it looks
like you may need to set those properties. Harbs may know more about this.

http://flex.apache.org/asdoc/spark/components/supportClasses/SkinnableTextBase.html#imeMode

You can try using the mobile skin StageText skin or using an mx TextInput
and see if you get different results.

On Wed, Jun 15, 2016 at 3:35 PM, Alex Harui  wrote:

> RichEditableText is a lot of code, but if you want to keep debugging, try
> following whether it is getting the keyDown event or not and what happens
> to it after it gets it.
>
> -Alex
>
> On 6/15/16, 1:21 PM, "Anton Bondarenko"  wrote:
>
> >i watched all i use and found that in textinputskin im using
> >richeditabletext
> >
> >2016-06-16 0:15 GMT+04:00 Alex Harui :
> >
> >> I couldn't find any mention of this problem on the internet so I don't
> >> think it is a known issue.  If you want to debug into it, try putting
> >> keyDown, keyUp, and textInput event listeners and see what happens.
> >>
> >> -Alex
> >>
> >> On 6/15/16, 12:46 PM, "Anton Bondarenko"  wrote:
> >>
> >> >forgot to add than on PC works fine. thats problem on android device
> >>and i
> >> >didnt test on ios device
> >> >
> >> >2016-06-15 23:36 GMT+04:00 Anton Bondarenko :
> >> >
> >> >> 1. Russian letters are showed in soft keyboard.
> >> >> 2. if im using input.text = "{%russian text%}" than all is fine.
> >> >> 3. when i want to enter text from softkeyboard letters are animated
> >>by
> >> >> click but no text adding to input. if i change soft keyboard locale
> >>to
> >> >> english letters are adding to input correct. numbers works too.
> >> >> 4. i try to use embedded font and default font. The behaviour is the
> >> >>same.
> >> >>
> >> >> i want to add video but your host return error
> >> >> so thats the URL for video
> >> >> https://cloud.mail.ru/public/5M3L/d8oUsfGMe
> >> >>
> >> >> 2016-06-15 22:15 GMT+04:00 Alex Harui :
> >> >>
> >> >>>
> >> >>>
> >> >>> On 6/15/16, 11:03 AM, "Anton Bondarenko" 
> wrote:
> >> >>>
> >> >>> >Hey guys!
> >> >>> >I have a question on Apache Flex. The problem is next. Simple
> >> >>> >spark.componentes.TextInput didnt understand utf letters. I mean
> >>that
> >> >>>i
> >> >>> >can
> >> >>> >enter only numbers and english letters from softkeyboard. but from
> >> >>>other
> >> >>> >languages i cant, for example russian letters. there are no
> >> >>>restrictions.
> >> >>> >letters pressed but textinput is empty.
> >> >>> >I found that there are a problem with utf letters but i cant fix
> >>it.
> >> >>> >what u think about it?
> >> >>>
> >> >>> I'm not quite clear:  Did the Russian letters show up on the soft
> >> >>>keyboard
> >> >>> or not?  If they showed up on the soft keyboard but not in the
> >> >>>TextInput,
> >> >>> the first thing to check would be the font used for the TextInput.
> >>You
> >> >>> could also run tests on the length of the string or the charCodes of
> >> >>>each
> >> >>> character in the string.  Or do other tests with the APIs here [1].
> >> >>>But
> >> >>> if the font doesn't have the glyphs for the Russian letters then it
> >> >>>won't
> >> >>> be displayed.
> >> >>>
> >> >>> [1]
> >> >>>
> >> >>>
> >> >>>
> >>
> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash
> >> >>>/te
> >> >>> xt/Font.html
> >> >>>
> >> >>><
> >> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flas
> >> >>>h/text/Font.html>
> >> >>>
> >> >>> HTH,
> >> >>> -Alex
> >> >>>
> >> >>>
> >> >>
> >> >>
> >> >> --
> >> >> //-
> >> >> Best Regards,
> >> >> Anton Bondarenko
> >> >>
> >> >
> >> >
> >> >
> >> >--
> >> >//-
> >> >Best Regards,
> >> >Anton Bondarenko
> >>
> >>
> >
> >
> >--
> >//-
> >Best Regards,
> >Anton Bondarenko
>
>


Re: [FlexJS] Applying Styles

2016-06-15 Thread jude
What I ran into with the drop in themes is that they sometimes change the
size and shape of the components. I had a project where I dropped in FlatUI
and the elements were all cut off because the width and height were
explicitly set. It wasn't hard to fix after the fact but some things
weren't sized and positioned where as I expected. The only thing I can add
to this is to make sure the UI in the SWF and HTML match as closely as
possible.

On Tue, Jun 14, 2016 at 6:03 PM, Alex Harui  wrote:

>
>
> On 6/14/16, 3:25 PM, "jude"  wrote:
>
> >If you're using the default HTML elements I would have no expectation. I
> >would expect the developer or designer to add their own skin set like
> >FlatUI at a later time.
> >
> >But if you want a default style I would think there might be a happy
> >medium
> >with SVG skins. A while back Om made a SVG skin that looked identical to
> >the Spark Button skin. It wouldn't be as much work as a full skinning set
> >because the components aren't aware of them (they are backgrounds) but
> >it's
> >easy to see what was going on and how to change them.
> >
> >Pseudo states
> >https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes
> >
> >Is the goal for the SWF and the HTML UI to look exactly the same?
>
> Yes, it is a goal.
>
> Seems like we should try to do Material, but in my quick reading, it
> allows for lots of different implementations, which is good because maybe
> we can create a simple enough version for our current CSS support.  Looks
> like there are a bunch of different Material UI frameworks out there.
> Supporting them out-of-the-box would be cool, but in looking at a few
> github repos, it looks like they are also not relying on simple/single
> HTMLElements.  In general, Material and Bootstrap designers want to style
> a few things that CSS doesn't allow you to style such as the actual radio
> or check visuals in radio buttons and check boxes, so they wrap a radio or
> check with a bunch of other stuff to make it work.  What I think we want
> for our basic set is the nicest possible look you can get without all of
> that wrapping.  Is the browser-native radio and check in violation of the
> Material spec?  If so, we may need to do some "approximating".
>
> Supporting Material as SVG might also be cool, but IMO, loading all of
> those background doesn't make for the minimal set.  But definitely worth
> pursuing as a separate theme/component set.
>
> -Alex
>
>


Re: [FlexJS] Applying Styles

2016-06-14 Thread jude
If you're using the default HTML elements I would have no expectation. I
would expect the developer or designer to add their own skin set like
FlatUI at a later time.

But if you want a default style I would think there might be a happy medium
with SVG skins. A while back Om made a SVG skin that looked identical to
the Spark Button skin. It wouldn't be as much work as a full skinning set
because the components aren't aware of them (they are backgrounds) but it's
easy to see what was going on and how to change them.

.myButton { /* normal */
background: url("button.svg") no-repeat top left;
   background-size: contain;
}
.myButton:active { /* mouse down */
background: url("button_down.svg") no-repeat top left;
   background-size: contain;
}
.myButton:hover { /* mouse over */
background: v("button_over.svg") no-repeat top left;
   background-size: contain;
}
.myButton:disabled { /* disabled */
background: url("button_disabled.svg") no-repeat top left;
   background-size: contain;
}
.myCheckBox:checked { /* checked */
background: url("checkbox_selected.svg") no-repeat top left;
   background-size: contain;
}

SVG also has takes advantage of the shadow DOM.

You can also export the SVG for each state easily from Illustrator from the
Flex SDK design files.

Pseudo states
https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes

Is the goal for the SWF and the HTML UI to look exactly the same?

On Tue, Jun 14, 2016 at 2:53 PM, OmPrakash Muppirala 
wrote:

> I think Material is probably a better option.  Bootstrap is kind of a thing
> of the past these days, at least the default look and feel.
>
> Almost all frameworks (Angular 1/2, React, etc.) have some level support
> for Material Design.
>
> Thanks,
> Om
>
> On Tue, Jun 14, 2016 at 12:37 PM, Alex Harui  wrote:
>
> > Good ideas, however, our CSS implementation on the SWF side isn't yet
> > capable of the advanced CSS in Bootstrap, and the component
> > implementations for Bootstrap are more than a single HTMLElement.  I
> think
> > we are looking for someone to help with improving the look of our simple
> > implementations.  We can try to approximate BootStrap, FlatUI, Material
> if
> > folks think that would be good enough.
> >
> > -Alex
> >
> > On 6/14/16, 12:30 PM, "Harbs"  wrote:
> >
> > >I think the styles should closely match Bootstrap (or maybe use
> > >Bootstrap).
> > >Material Design is another good target.
> > >
> > >On Jun 14, 2016, at 8:34 PM, Peter Ent  wrote:
> > >
> > >> Hi,
> > >>
> > >> I'm working on making the FlexJS examples look better via CSS. I'll
> > >>most likely check in a separate branch, but I thought I'd ask you all
> > >>what your expectations would be.
> > >>
> > >> Keep in mind that the basic (HTML project) component set is meant to
> > >>provide ActionScript wrapping for HTML elements - for the most part.
> For
> > >>example,  yields a  and  yields 
> > >>elements. These HTML elements are easily styled with CSS, so the
> styling
> > >>objective here is CSS.
> > >>
> > >> Skinning, or more advanced styling, would be accomplished with a more
> > >>complex component set. Those skins might be SVG for instance. But the
> > >>version I'm working on is the basic set using simply CSS styling.
> > >>
> > >> Reply to this thread to get the discussion going. If we come with a
> > >>nice looking style sheet, we can make that the default for FlexJS.
> > >>
> > >> Regards,
> > >> Peter Ent
> > >> Adobe Systems/Apache Flex Project
> > >>
> > >>
> > >
> >
> >
>


Re: AW: AW: [Falcon] Declaring defines in config xml doesn't seem to work

2016-06-09 Thread jude
+1 for COMPILE::SWF

On Thu, Jun 9, 2016 at 10:10 AM, Alex Harui  wrote:

>
>
> On 6/9/16, 1:49 AM, "Christofer Dutz"  wrote:
>
> >
> >Hi Alex,
> >
> >
> >you were right ... the strange thing was that I looked at your "this
> >instead of that" and couldn't notice the difference. Had to look at it 3
> >or 4 times to notice the missing "3"
>
> Yeah, I didn't notice it right away either.  FWIW, I've thought about
> replacing COMPILE::AS3 with COMPILE::SWF since all the code is really AS3
> and the flag maybe should dictate the output.  And then it would also
> cause fewer folks to miss the '3'.  Thoughts?
>
> -Alex
>
>


Re: [FLEXJS] Named Configs for JS, JQuery, Node, and CreateJS

2016-06-09 Thread jude
Is it possible to use local config files? So using your example, we could
create a ../src/jquery-cordova-googlemaps-config.xml config in your project?

On Thu, Jun 9, 2016 at 10:22 AM, Josh Tynjala  wrote:

> It occurred to me too that a separate SWC for browser APIs would make
> sense, since Node should only need a subset of JS types from js.swc. I
> think it's a good idea.
>
> - Josh
>
> On Thu, Jun 9, 2016 at 8:17 AM, Alex Harui  wrote:
>
> >
> >
> > On 6/9/16, 4:25 AM, "Harbs"  wrote:
> >
> > >Nice.
> > >
> > >This should make things much easier. Good direction!
> >
> > Thanks.  There are some limitations because the naming scheme is
> > one-dimensional.  For example, I did not create a cordova-config.xml
> > because you might actually use Jquery as the UI framework in a Cordova
> app
> > and/or Google Maps in the same app and then we'd need every combination
> of
> > configname (jquery-cordova-googlemaps-config.xml)
> >
> > Also, it occurred to me that now that we have named configs, we can
> > re-think some of how the externs SWCs are configured.  For example, the
> > node-config.xml references js.swc, but I'm now wondering if we should
> > break out the browser APIs from js.swc into a browser.swc so anyone doing
> > node work won't be offered Window/Document/MouseEvent in the
> > code-assistance.  Then we can make such changes behind the named-configs
> > and affect fewer people.
> >
> > Thoughts?
> > -Alex
> >
> >
>


[FlexJS] Monkey patching support

2016-06-07 Thread jude
Does FlexJS support monkey patching? I copied UIBase into my project, added
properties to it and then tried to build or compile (FlexJS (FalconJX Debug
and Release Build)) and I've been getting errors:


When no compiler arguments before build
   Errors (350 items) ...

When -define=COMPILE::AS3,true -define=COMPILE::JS,true
   Errors (158 items) ...

When -define=COMPILE::AS3,false -define=COMPILE::JS,true
   Errors (96 items)
   DescriptionResourcePathLocationType
   1024: Overriding a function that is not marked for override
UIBase.as/FlexJSProject/src/org/apache/flex/coreline 348Flex
Problem
   1044: interface method element in interface IUIBase not implemented by
class UIBaseUIBase.as/FlexJSProject/src/org/apache/flex/core
line 141Flex Problem
...

When -define=COMPILE::AS3,true -define=COMPILE::JS,false
   Errors (0 items)

   Runtime Error:
   File not found: org.apache.flex.core.StageProxy

   java.lang.RuntimeException: Unable to find JavaScript filePath for
class: org.apache.flex.core.StageProxy
   at
org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:179)


Re: [FlexJS]Layout

2016-06-06 Thread jude
I was looking to add some default styles to the HTML page and it looks like
Falcon JX is creating it dynamically
<https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Developer+Setup>,
"The FalconJX compiler will generate an index.html file and a single
minified .js file in bin/js-release and a debug version with many .js files
in bin/js-debug."

Is there a way we can set it up to use a template?

On Mon, Jun 6, 2016 at 1:20 PM, Alex Harui  wrote:

>
>
> On 6/6/16, 10:49 AM, "jude"  wrote:
>
> >I think for HTML5 we want to set the html and body width and height to
> >100%. That should enable elements on the body to be constrained to the
> >edge
> >of the browser window.
> >
> >Peter, on the layout containers, I think we may be able to use a single
> >container if we don't have any chrome but still want scroll bars. We would
> >set the overflow to auto and that should clip the content and add scroll
> >bars. There may be other use cases that that won't work.
>
> Yep, that optimization is awaiting a volunteer to code up.  Any volunteers?
>
> Thanks,
> -Alex
>
>


Re: [FlexJS]Layout

2016-06-06 Thread jude
I think for HTML5 we want to set the html and body width and height to
100%. That should enable elements on the body to be constrained to the edge
of the browser window.

Peter, on the layout containers, I think we may be able to use a single
container if we don't have any chrome but still want scroll bars. We would
set the overflow to auto and that should clip the content and add scroll
bars. There may be other use cases that that won't work.

While there's constraints in HTML through styles we still need to support
them in the swf side. I don't think the simple CSS class does that. Will
have to check.
On Jun 6, 2016 12:28 PM, "Harbs"  wrote:

> Next question:
>
> Is there a canned way to trigger a re-layout on a browser window resize?
>
> CSS constraints only work if the parent element is big enough.
>
> On Jun 6, 2016, at 12:41 PM, Harbs  wrote:
>
> > Never mind. I see you answered this question in the other discussion:
> >
> >   
> > 
> >   
> >
> > This seems to work well.
> >
> > I could definitely get used to this.
> >
> > On Jun 6, 2016, at 11:48 AM, Harbs  wrote:
> >
> >> If I’m understanding correctly, the constraints are already working as
> css for both browser and Flash. Correct?
> >>
> >> What’s the right way to go about declaring these values? Assuming I
> have some markup like this:
> >>  
> >>  
> >>  
> >>  
> >>  
> >>  
> >>   
> >>   
> >>  
> >>
> >> and I want my container to be inset from its container by 10 pixels or
> attached to the right side, what’s the best way to declare that?
> >>
> >> Right now, I think what FlexJS is missing the most is good
> documentation and IDE autocomplete tools to make the features more
> discoverable.
> >>
> >> On Jun 6, 2016, at 10:55 AM, Alex Harui  wrote:
> >>
> >>>
> >>>
> >>> On 6/6/16, 6:02 AM, "Harbs"  wrote:
> >>>
>  Well, constraint layout is really important. I’m fine with using css
> for
>  JS output, but that’s not going to help for a swf first workflow.
> >>>
> >>> What do you mean by "constraint layout"?  The Spark layout with
> >>> ConstraintColumns and ConstraintRows?  IIRC, it used a lot of compute
> >>> cycles.
> >>>
> >>> CSS is intended to work for SWF-first workflows as well.  The goal for
> the
> >>> Basic component set is to eventually support all of CSS.  The Basic
> >>> component set is trying to emulate what the browsers do, not the other
> way
> >>> around.  That way, the output JS is as lightweight and low-overhead as
> >>> possible.  So, if you specify in CSS that left=0, the same thing should
> >>> happen in the SWF as in the browser.
> >>>
>  I’m a bit confused.
> 
>  In BasicLayout.layout() there’s the following code:
> 
>  var left:Number = ValuesManager.valuesImpl.getValue(child, "left");
> >>>
> >>> The ValuesManager abstracts CSS (and other non-CSS values).  On the JS
> >>> side, the code doesn't have to query ValuesManager nearly as often
> since
> >>> the browser is just going to deal with it, but when the code we write
> >>> needs to know what the CSS is that the theme/developer specified, we
> use
> >>> ValuesManager to get it.  And, like I said, the goal in the code we
> write
> >>> is to replicate what the browser will do.
> >>>
> >>> HTH,
> >>> -Alex
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >
>
>


Re: Open declaration on FlexJS classes not navigating

2016-06-06 Thread jude
I'm using FlexJS 0.6.0.

CSS should get LTRB support for free on the HTML side. The horizontal and
vertical positioning is possible but you have to use transforms and
possibly ensure some other specific conditions. I was going to look into
how the layout is working to see how difficult it would be to add. It looks
like Harbs asked about layout as well in another thread. I've been trying
to stress test FlexJS on the HTML side by creating some layouts and the
constraints was the first thing I ran into that I thought I might be able
to help. Constraints in this case referring to left, top, right, bottom,
verticalCenter, horizontalCenter, baseline instead of the Cartesian
<https://en.wikipedia.org/wiki/Cartesian_coordinate_system> coordinate
system.

Does code navigation work for you when you enter the paths? I thought I
could live without it by opening the classes through the file system but if
I need to debug and step through the code it will be helpful to know why
it's not finding it.

On Sun, Jun 5, 2016 at 12:42 AM, Alex Harui  wrote:

>
> On 6/4/16, 4:41 PM, "jude"  wrote:
>
> >Thanks. Does this path look right, "/Applications/Adobe Flash Builder
> >4.7/sdks/FlexJS2/frameworks/projects/Core/src"? BTW FlexJS folder is
> >FlexJS2.  and tried and it still doesn't find it. I tried cleaning and
> >restarting FB to no change. I'm on Mac.
>
> Which version of FlexjS are you using?
>
>
> >Also, what are your thoughts on adding top, left, bottom, right, vertical
> >center or horizontal center? I was looking into adding those to UIBase.
>
> Not sure.  Would we add all other CSS style properties as regular
> properties?  I think that would bloat the class sizes.  We did already do
> that for width/height, but I'd rather not keep adding more.  It gets
> really tricky for FlexJS since we want to support all valid CSS values for
> those properties, not just Numbers.  We'll see how much demand there is
> for it.  Also, some other component set can have LTRB properties, no need
> to force it on everyone.
>
> Also, there is no CSS verticalCenter/horizontalCenter properties.  We want
> the Basic component set to thinly wrap HTMLElements and support CSS per
> the spec (as much as possible).
>
> HTH,
> -Alex
>
>


Re: Open declaration on FlexJS classes not navigating

2016-06-04 Thread jude
Thanks. Does this path look right, "/Applications/Adobe Flash Builder
4.7/sdks/FlexJS2/frameworks/projects/Core/src"? BTW FlexJS folder is
FlexJS2.  and tried and it still doesn't find it. I tried cleaning and
restarting FB to no change. I'm on Mac.

It's not a big issue since I can access the files in the SDK directory but
if a launch config can set that up automatically it would help new
developers learning the source.

Also, what are your thoughts on adding top, left, bottom, right, vertical
center or horizontal center? I was looking into adding those to UIBase.

On Thu, Jun 2, 2016 at 11:35 PM, Alex Harui  wrote:

>
>
> On 6/2/16, 4:48 PM, "jude"  wrote:
>
> >I'm using FB and I have the DataBindingTest project open and I'm trying to
> >open the declaration of the classes but they are not being found.
> >
> >Code Navigation Error
> >Source could not be found for org.apache.flex.core.ViewBase in
> >/Applications/Adobe Flash Builder
> >4.7/sdks/FlexJS2/frameworks/libs/core.swc
> >
> >How do I resolve this? And also, when I create a swc for some of my
> >library
> >projects is the source not being included for them as well?
>
> AIUI, there is no way to package the SWCs so that FB automatically knows
> the source for those SWCs.  FB had a special case for mx.swc and spark.swc
> and the other Flex SDK swcs.
>
> Instead, any SWC must have source attached to the SWC by the
> end-user/developer after they've included the SWC in the project.  I've
> thought about creating a launch config to try to update the project files
> with source attachments, but that's still not a great solution either.  To
> attach source, go to the Project menu, choose Properties, then Flex Build
> Path.  Expand the Apache FlexJS SDK, then expand each SWC, double-click on
> source attachment, and enter the path to the source.
>
> I hope the other IDE vendors do a better job of that.
>
> HTH,
> -Alex
>
>


Open declaration on FlexJS classes not navigating

2016-06-02 Thread jude
I'm using FB and I have the DataBindingTest project open and I'm trying to
open the declaration of the classes but they are not being found.

Code Navigation Error
Source could not be found for org.apache.flex.core.ViewBase in
/Applications/Adobe Flash Builder 4.7/sdks/FlexJS2/frameworks/libs/core.swc

How do I resolve this? And also, when I create a swc for some of my library
projects is the source not being included for them as well?


Re: Moonshine-IDE.com -- FlexJS, Flex, and ActionScript focused open source IDE -- contribution to Apache FlexJS

2016-06-02 Thread jude
Congratulations! The more barriers we can remove for developers to start
using FlexJS the better! Will direct people to it.

On Thu, Jun 2, 2016 at 4:32 PM, Vulcansoft  wrote:

> Hi Justin,
>
> sounds very interesting! Downloaded it and tried a new FlexJS project, but
> got the following error:
>
> : /bin/bash: /Users/cpg/devFlex/_sdks/FlexJS06/bin/mxmlc: /bin/sh: bad
> interpreter: Operation not permitted
>
> Thanks,
> Christian
>
>
>
>
> > On Jun 2, 2016, at 7:43 AM, Justin M. Hill  wrote:
> >
> >
> > Hello Apache FlexJS Team,
> >
> > I am pleased to report progress on the open source Moonshine IDE for
> Flex,
> > FlexJS, and ActionScript that Dhwani discussed at the FlexJS World Tour
> in
> > early April in San Francisco.
> >
> > We have now released it through the Apple Mac App Store:
> > https://itunes.apple.com/us/app/moonshine/id1099109346?mt=12
> >
> > There is still a lot we want to add -- and we could really use some help
> > from some of the more brilliant developers on the list.  The debugger,
> > auto-completion, and other aspects need attention which may be beyond the
> > scope of our skill set to develop in a reasonable time frame.
> >
> > If anyone is interested in helping us in these areas, I would greatly
> > appreciate hearing from you.  Please reach me on Skype or Twitter at
> > JustinProminic so I don't miss any replies on the list.
> >
> > For those of you with limited time, if you could take a quick download of
> > the app and maybe write a fair but reasonably positive review on the App
> > Store that would be appreciated.  Again, we know it is not perfect and it
> > needs work, and our goal is to make the FlexJS ecosystem very easy for
> > someone to get started with.  So example programs, tutorials, etc. are
> high
> > on our list of inclusion along with build scripts to quickly get a new
> > developer releasing their first HTML/Javascript, Windows, Mac, iOS, and
> > Android build including App Store ready builds without having to dig
> > through lots of information like the rest of us have had to do over the
> > years.
> >
> > Thank you,
> >
> > Justin Hill
> > My Apache Flex community contribution is working on the open source
> > Moonshine-IDE.com for FlexJS.
>
>


Re: why can not open this code?

2016-05-26 Thread jude
lizhi,
i and others may be able to help you if we knew how to setup the projects.
i've got flexjs setup correctly but i don't know how to run your project or
library. maybe if you were able to create a wiki page like this one

that might help us know how to setup and run your project (i use flash
builder). then again, it might be obvious to everyone else how to test this
project.

On Wed, May 25, 2016 at 8:44 PM, lizhi  wrote:

> yes,i will try.but i do not know.why no debug theyself of flexjs sdk
> developer?
> why not do not like check out the spriteflexjs code.and debug.
>
> it is a sdk bug,look at the bug,will improte the flexjs sdk.
>
> why not it just useful for myself?
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/why-can-not-open-this-code-tp53169p53205.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: [FLEXJS] POC MXML "Live" Editing

2016-05-13 Thread jude
Thanks. I'll look into it. I think what that's doing is working with an
existing instance and checking for changes to it. I think I have to parse a
string into a new XML instance each time and then do a compare.

On Fri, May 13, 2016 at 2:52 AM, Harbs  wrote:

> Is this useful?
>
> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/utils/XMLNotifier.html#watchXML%28%29
>
> On May 13, 2016, at 9:18 AM, jude  wrote:
>
> > Is the MXMLLiveEditAgent.mxml the only place those methods are from? I
> > thought I read somewhere that you copied those methods from somewhere
> else.
> > I'm trying to find the class that those methods were originally in to
> learn
> > how to parse an XML tree and then track it's changes as if a user was
> > updating it constantly in an editor. I looked at the MXMLDataInterpreter
> > but that looks like it's for importing.
> >
> > OK, I think here is where I got the idea. The comments are from
> > MXMLLiveEditAgent.mxml:
> >
> > // we go deep first because that's how the Falcon compiler
> > // generates IDs for tags that don't have id attributes set.
> >
> > I'm guessing that the methods are from or inspired from a class in
> Falcon?
> > That class or code is what I'm trying to find and learn from.
> >
> >
> > On Thu, May 12, 2016 at 11:08 PM, Alex Harui  wrote:
> >
> >>
> >>
> >> On 5/12/16, 5:31 PM, "jude"  wrote:
> >>
> >>> I read somewhere, and it might have been the code comments, that you
> used
> >>> some code from mxmlc or maybe it was an class used in Eclipse MXML
> class
> >>> to
> >>> parse the MXML and compute the changes for your live MXML PoC. I'm
> trying
> >>> to find the class that had the following functions:
> >>>
> >>> parseFile();
> >>> computeChanges();
> >>> applyChanges();
> >>
> >> In my POC, the MXMLLiveEditAgent has those methods.
> >>
> >> The MXML parsing is done by the XML class.
> >>
> >> I think you may be thinking of the MXMLDataInterpreter, and how the
> Falcon
> >> compiler outputs MXML as an array to be interpreted by the
> >> MXMLDataInterpreter (as well as the MXMLLiveEditPlugin) instead of a
> pile
> >> of one-off methods that are not manipulatable at runtime.
> >>
> >> -Alex
> >>
> >>
>
>


Re: [FLEXJS] POC MXML "Live" Editing

2016-05-12 Thread jude
Is the MXMLLiveEditAgent.mxml the only place those methods are from? I
thought I read somewhere that you copied those methods from somewhere else.
I'm trying to find the class that those methods were originally in to learn
how to parse an XML tree and then track it's changes as if a user was
updating it constantly in an editor. I looked at the MXMLDataInterpreter
but that looks like it's for importing.

OK, I think here is where I got the idea. The comments are from
MXMLLiveEditAgent.mxml:

// we go deep first because that's how the Falcon compiler
// generates IDs for tags that don't have id attributes set.

I'm guessing that the methods are from or inspired from a class in Falcon?
That class or code is what I'm trying to find and learn from.


On Thu, May 12, 2016 at 11:08 PM, Alex Harui  wrote:

>
>
> On 5/12/16, 5:31 PM, "jude"  wrote:
>
> >I read somewhere, and it might have been the code comments, that you used
> >some code from mxmlc or maybe it was an class used in Eclipse MXML class
> >to
> >parse the MXML and compute the changes for your live MXML PoC. I'm trying
> >to find the class that had the following functions:
> >
> > parseFile();
> > computeChanges();
> > applyChanges();
>
> In my POC, the MXMLLiveEditAgent has those methods.
>
> The MXML parsing is done by the XML class.
>
> I think you may be thinking of the MXMLDataInterpreter, and how the Falcon
> compiler outputs MXML as an array to be interpreted by the
> MXMLDataInterpreter (as well as the MXMLLiveEditPlugin) instead of a pile
> of one-off methods that are not manipulatable at runtime.
>
> -Alex
>
>


Re: [FLEXJS] POC MXML "Live" Editing

2016-05-12 Thread jude
I read somewhere, and it might have been the code comments, that you used
some code from mxmlc or maybe it was an class used in Eclipse MXML class to
parse the MXML and compute the changes for your live MXML PoC. I'm trying
to find the class that had the following functions:

 parseFile();
 computeChanges();
 applyChanges();

The PoC you made works supports computing the changes for adding, modifying
and removing attributes. That make sense. Now I'm trying to figure out how
to tell if an XML element has been added or removed. I have some theories
but would like to confirm them before starting anything.

On Wed, May 11, 2016 at 9:46 PM, Alex Harui  wrote:

>
>
> On 5/11/16, 5:13 PM, "jude"  wrote:
>
> >What is the class that you used that parses the XML? is that in the flex
> >sdk directory as plain text?
>
> Pretty sure we just use XML(String) to parse the XML.  Or am I not
> understanding the question?
>
> -Alex
>
>


Re: [FLEXJS] POC MXML "Live" Editing

2016-05-11 Thread jude
What is the class that you used that parses the XML? is that in the flex
sdk directory as plain text?
On Jan 14, 2016 1:34 PM, "Alex Harui"  wrote:

> Hi,
>
> I spend the last few days creating a proof-of-concept that FlexJS and the
> Falcon compiler can support limited "live" editing of MXML.  I've never
> used Design View in FB, but when tweaking the UI for Flex apps, I often
> find myself in a cycle of:  edit some values in the mxml, save it, reload
> the app, make more edits, etc.  Each time, the app has to be reloaded to
> see the changes.  "Live" editing allows you to see certain changes without
> reloading the app.  The POC handles a few scenarios that involve MXML
> states.
>
> It is kind of hard to demo, but I think these are the steps:
>
> 0. Download Apache FlexJS 0.5.0 (or the 0.6.0 nightly) and install it as
> an SDK in FB.
> 1. Download this FB project:
> http://home.apache.org/~aharui/MXMLLiveEditing/DataBindingTest.fxp
> 2. Download this FB project:
> http://home.apache.org/~aharui/MXMLLiveEditing/MXMLLiveEditAgent.fxp
>
> 3. Import both projects into FB.
> 4. Run MXMLLiveEditAgent.
> 5. In the MXMLLiveEditAgent UI, select the MyInitialView.mxml file from
> the DataBindingTest project.
> 6. Hit the Watch button.
> 7. Run DataBindingTest.
> 8. Make and save a change to MyInitialView.mxml
>
> When the file is saved, a few seconds later, the changes should be
> reflected in DataBindingTest.  This POC has a white list of properties, so
> you can edit width, height, x, y, label, text and style properties.  And
> you can edit state-bound properties like height.showAll in the TextArea
> tag.
>
> Remember that styles in FlexJS are like HTML styles, so you can add, for
> example, style="marginLeft:90" to one of the tags.
>
> This is just for tweaking the visuals of your app.  You can't edit binding
> expressions or event handlers or add or remove new components.  If you do
> the POC will fail.  A more robust version would probably detect such
> changes and tell you to refresh the app.  Also, if you save illegal XML,
> the POC will fail.  A more robust version would also watch the output SWF
> to see if it changes in order to know the MXML edit didn't have syntax
> errors.
>
> The way this works is that there is a plugin added to MyInitialView that
> communicates with the MXMLLiveEditAgent.  The MXMLLiveEditAgent is
> monitoring the last-modified date on the file.  When it changes, it loads
> the MXML and compares it to the last copy and transmits changes to the
> plugin that applies them to the app.  Certain scenarios like state-bound
> properties and state-bound components can be handled in because the Falcon
> compiler converts a lot of the MXML into data structures that the plugin
> can find and modify.  It isn't clear that you could do this in the regular
> Flex SDK without finishing up Falcon compiler support in the regular Flex
> SDK.
>
> Also, none of this really requires FB.  You can unzip the FXP files, build
> everything yourself and edit the MXML with a text editor and it still all
> works.
>
> Future work (hopefully by other volunteers) would be to handle changes to
> CSS syntax, watch multiple files at once, and swap out the LocalConnection
> to use sockets so you could "live" edit an mobile app on a device, or have
> an IDE communicate directly with the running app.
>
> Anyway, let me know what you think.  I'm off to work on other things.
>
> Thanks,
> -Alex
>
>


Re: [FlexJS]TimerEvent

2016-05-09 Thread jude
If we're rethinking the Event class is there a way to prevent the loss of
strong typing with currentTarget and target? Could we have a
event.targetType or event.currentTargetType property? Even maybe a
valueType. Then you could at compile time or runtime check that the value
that is set in the target, currentTarget or data property are of the
aforementioned type.

If you take a performance hit for looking up the class hierarchy to find
constants what if they're moved to a separate class entirely like
UIComponentConstants. The problem with that is that every class that
extends UIComponent would have to add constants there or in their own
ButtonConstants class.

I suppose if we're in charge of the compiler then could we duplicate the
constants all the way to the chain? So all constants on UIComponent would
be copied to Button that extends UIComponent.

I like simplifying events but with something like an AcceleratorEvent

instance you'll get the 4 Number fields for X, Y, Z and timestamp. Would
creating an object with those four properties cost more? From what I've
read creating objects can be expensive. OTOH if everything is a generic
Event you can setup an object pool and reuse events.

If it's possible though, there are other methods besides events that might
be faster like signals or function hooks. Where you setup functions to call
without creating any event objects. If there were a way to allow for both
event listeners or signal listeners that would let people choose the best
choice for them.

myEventDispatcher.addSignalListener(myHandler);
funtction myHandler(myParameter:Object):void {}

On Mon, May 9, 2016 at 11:31 AM, Josh Tynjala  wrote:

> You may find that defining constants on the class that uses them doesn't
> scale well, especially with UI components. That's something I found in
> Feathers.
>
> If you or someone else creates a subclass, what to do with any constants on
> the base class? Should they get duplicated in the subclass? Or will users
> be forced to look up the class hierarchy to figure out where to find a
> constant? Both approaches have downsides. In Feathers, I ended up
> duplicating the constants because I saw people getting confused about where
> to find them. Then, I found myself occasionally forgetting to duplicate
> some constants when I created subclasses, and things just became messy and
> potentially even more confusing.
>
> That wasn't for event constants in Feathers, though. It was for other types
> of constants that the components used. However, I think this advice still
> applies.
>
> In Starling, the main Event class works similarly to what you describe. It
> has a data property that can be used to pass pretty much anything with the
> event. In Feathers, I ended up creating a FeathersEventType class that
> defined common event constants so that I could dispatch
> starling.events.Event instances. This proved to be a nice approach. I could
> see something like a FlexEventType class for constants, or more specific
> names for different categories of event constants.
>
> - Josh
>
> On Sun, May 8, 2016 at 10:36 PM, Alex Harui  wrote:
>
> >
> >
> > On 5/8/16, 2:36 PM, "Harbs"  wrote:
> >
> > >I’m going through Flash code and converting it to FlexJS…
> > >
> > >Is there any reason there’s no flex.utils.TimerEvent for Timer event
> > >constants? If not, I’ll add it…
> >
> > Well, one thing I wanted to do differently in FlexJS vs Flex was have
> > fewer event classes.  Each Event subclass takes up download and
> > initialization time.  So my plan for FlexJS was to only have "generic"
> > event classes like Event and ValueEvent and ValueChangeEvent and
> hopefully
> > fewer other subclasses where the number of other payload properties and
> > names of those payload properties would be important, and specify
> > constants in the classes that generate the event.  So, in short: no
> > TimerEvent class, but you are correct that we don't have a const to use
> so
> > we should add a TIMER constant to the Timer class itself (and use it
> > within).
> >
> > More detail:
> >
> > In Flex, there are lots of Event subclasses, with Event constants, and
> > other properties, but often, those properties are not really needed on
> the
> > event object.  Most folks can safely take a CHANGE event and examine the
> > selectedItem in the DataGrid.  It wastes cycles to copy the selectedItem
> > into the Event and pass it around if you can just check the
> > event.target.selectedItem.  Sure, it isn't a lot of cycles, but it might
> > all add up, especially when events are flying around like crazy at
> > startup.  So, in FlexJS, I would like to try not copying properties to
> the
> > Event object if it is "stable".
> >
> > Now, the oldValue of a ValueChangeEvent is not "stable" because there is
> > no way to examine the event.target to find the oldValue, so yes, you have
> > to at least have an Even

Re: Moonshine-IDE.com -- FlexJS, Flex, and ActionScript focused open source IDE -- contribution to Apache FlexJS ?

2016-05-03 Thread jude
1 and 4 is Apache license 2.0
2. and the others should be listed in attributions


Wordpress themes are usually based off existing templates or forks. In this
case the vanilla theme is a copy of Twenty Twelve. It could be any theme
though. I'm not a WordPress expert though and it could be a plugin rather
than a theme. The code I wrote is my own and I can attribute a Apache
License to it. It's located in the header and not that integrated with the
rest of the theme. It is mainly a PoC.

The way it is now I declare all the licenses in this

file. What do I do in the cases where the license is not compatible? Does
it prevent the application from using that library or does it mean we
simply can't host the binaries? We can move this to another thread or
answer off list.


On Fri, Apr 29, 2016 at 9:19 PM, Justin Mclean 
wrote:

> HI,
>
> > Thanks. Could you look at this installation guide
> > <
> https://cwiki.apache.org/confluence/display/FLEX/Setting+up+the+Radii8+Development+Environment
> >
> > and tell me if we can get things fully setup at Apache?
>
> Form a quick look:
> - What license are these repos [1][2][4] under?
> - The FTP library looks like it comes from here [3] and is BSD licensed so
> that’s shovel be OK.
> - Is the vanilla theme is based on/or contains the word press twenty
> twelve theme? If so that will be an issue as it is GPL licenses which is
> Category X. See [5][6] Is there any other Word Press code in the
> repo/dependancies?
>
> Thanks,
> Justin
>
> 1. https://github.com/monkeypunch3/flexcapacitor
> 2. https://github.com/marc-hughes/ObjectHandles
> 3 https://code.google.com/archive/p/fl-ftp/
> 4. https://github.com/monkeypunch3/JSON-API-Plus
> 5. https://wordpress.org/about/license/
> 6
> http://wordpress.stackexchange.com/questions/9935/can-i-sell-a-theme-based-off-of-twentyten
>
>


Is animation in Flex snapping to pixels?

2016-04-30 Thread jude
In my comparisons the animation in a Flash movieclip is usually much more
fluid than animation in Flex yet I can't figure out why. Does Flex snap to
pixel values while animating? If so is this something that's part of the
Animate classes we can fix? The last time I looked into it we were using
Number not int but that might have been Flex 3.

I found this short video

on how using translate in HTML is better than animating the top / left
values. In the video the object that is animated using the top and left is
updated by stepping from pixel to pixel on the CPU while the object that
uses translate uses subpixel images on the GPU. If it's a case of simply
using GPU mode instead of auto, which IIUC auto almost always chooses CPU,
then are there any downsides to switching to GPU? Or is there something we
can change in the Flash Player to animate on subpixels?

The alternative is that Flex invalidation architecture is causing some
issues but I have no proof. I'm guessing there might be syncing issues the
way the refresh rate on a monitor that is different than the framerate of
an animation causes issues. But the difference in Starling animations (all
GPU?) and movieclips from Flash (CPU) both seem much more smooth than Flex
animation.

Another alternative is that Flex is trying to do too much. If you have a
container that has 50 elements in it and then you use animate the height
from 0 to 100 or the other way around, each element is actually getting
invalidated. Then, the question would be is there a way to turn off
invalidation while resizing and just do something like resize of a bitmap
snapshot.

FYI Sorry if we had this discussion before but I can't find how to search
the mailing lists.


Searching the mailing lists

2016-04-30 Thread jude
Is there a way we can search the mailing lists? I went to our page here,
http://flex.apache.org/community-mailinglists.html and clicked on the
markmail 
link and the page was blank. I also went to the apache - old
 - new
 pages but didn't see a
way to search.


Re: Moonshine-IDE.com -- FlexJS, Flex, and ActionScript focused open source IDE -- contribution to Apache FlexJS ?

2016-04-28 Thread jude
Justin,

Thanks. Could you look at this installation guide

and tell me if we can get things fully setup at Apache? I don't want to
start down the path of donation to have certain libraries become an issue
later on. Here's my attributions list
and
license for most if not all of the libraries.

On Sat, Apr 2, 2016 at 6:25 PM, Justin Mclean  wrote:

> Hi,
>
> > In the process I learned that projects at Apache that rely on other
> > libraries cannot be hosted on the site.
>
> That not correct, Apache Flex for example hosts both source and binary
> release that contain code from 3rd parties. The catch is however it needs
> to be code that has an Apache comparable license. Most common open source
> licenses (with the exception of GPL) are comparable. [1][2]
>
> > It seems to be a place for singular type of projects.
>
> There are many examples of Apache software that bundle a large amount of
> 3rd party code. For instance Apache Mynewt (in incubation) bundles source
> code from around 20 projects. There’s probably more 3rd party code in it
> repo than ASF licensed code.  It also made a release with a GPL dependancy
> (after asking for permission, but has since removed that code). Another
> incubating project MADLib has a dozen or so Apache licensed files, and
> 100’s of BSD licensed files.  Generally none of this is too much of an
> issue to get around.
>
> Thanks,
> Justin
>
> 1. http://www.apache.org/legal/resolved.html#category-a <
> http://www.apache.org/legal/resolved.html#category-a>
> 2. http://www.apache.org/legal/resolved.html#category-x <
> http://www.apache.org/legal/resolved.html#category-x>
>
>
>


Re: [FLEXJS] POC MXML "Live" Editing

2016-04-28 Thread jude
Once I have some more of it decoupled I'll work on folding that code back
in. I'll provide another update when that happens.

It looks like the screenshots didn't go through. http://imgur.com/a/aKp2U
The first is codepen with html, css and js window and rendering on the
bottom. The second image is Radiate with rendering on the top and page
html, layout html and css on the bottom. The rendering area is not showing
the rendering of the html as it normally does since I'm doing a refactor.
The third image is the Live MXML Editor showing a rendering area on top and
a problems view and mxml editor on bottom.

The live editor code is here,
https://github.com/monkeypunch3/Radii8/blob/master/Radii8Desktop/src/LiveMXMLEditor.mxml.
The setup instructions are here if anyone wants to try and get it working,
https://cwiki.apache.org/confluence/display/FLEX/Setting+up+the+Radii8+Development+Environment.


Note: It looks like developers on Windows are getting a less than stellar
experience than if you run it on a Mac. In the browser it's always just
worked but I found out that Native menus are only a Mac thing so a bunch of
errors were popping up when launching it on the desktop. Hopefully, the
next update will alleviate those issues.

If you wanted you could adapt the MiniInspector
<https://github.com/monkeypunch3/flexcapacitor/blob/master/MainLibrary/src/com/flexcapacitor/utils/MiniInspector.as>
class to work with FlexJS. You add it to your project in declarations and
then at runtime when you hold down cmd and click it finds the object under
the mouse pointer. It finds the top most item in the display list and
isolates it. Then you click on the label and it gives you a property and
value text inputs. You can then change the values at runtime. Any changed
values are traced to the console so you can update your MXML as you change
values in the runtime swf. http://imgur.com/a/3ipJE


On Thu, Apr 28, 2016 at 1:44 PM, Alex Harui  wrote:

> Sounds very promising.
>
> It might be time to check the MXMLLIveEditing code into a repo, maybe the
> radii8 repo.  That will make it easier for folks to share and help
> delineate what code has been donated to the ASF and what is intended for
> your IDE product and hasn't been donated to the ASF.  You have the latest
> copy and committer rights so please do that if you agree.
>
> Thanks,
> -Alex
>
>
> From: jude mailto:flexcapaci...@gmail.com>>
> Reply-To: "dev@flex.apache.org<mailto:dev@flex.apache.org>" <
> dev@flex.apache.org<mailto:dev@flex.apache.org>>
> Date: Thursday, April 28, 2016 at 7:19 AM
> To: "dev@flex.apache.org<mailto:dev@flex.apache.org>"  <mailto:dev@flex.apache.org>>
> Subject: Re: [FLEXJS] POC MXML "Live" Editing
>
> I've been digging into the MXML live agent and have some feedback and
> updates to some of the comments. I've been studying the examples that check
> for changes in the MXML / XML and have some progress there but it seems
> it's been built mainly for Flex JS. I'm converting some of those changes
> over to also work with Flex. I've attached a screenshot:
>
> [cid:ii_injc0ghn0_1545978fb7d04745]
>
> What I have working (some of this is old news):
> * updating the view with MXML live
> * checking if the xml is valid (i'm using an internal browser control in
> AIR to load the xml parser and get a row and line number of any errors)
> * converting a XML node into a class instance (i have dictionary of
> supported classes)
> * checking the attributes to see if they are a valid style, event or
> property
> * providing errors if they are not valid and annotations
>
> Based on your example what I have partially working is (see the
> screenshot):
> * getting the attribute that was changed (working)
> * getting the value that it was changed to (working)
> * getting the list of attributes that were removed (working)
>
> Still to do:
> * getting the instance that is related to the xml node
> * verifying that the attribute is a member of the class created from the
> xml node
> * updating just the instance instead of rerendering the document on each
> change
> ​
> Once I get the last few items working it's possible to make code
> completion work in the text editor. I'd also be able to provide inline
> documentation for each component and class member so new developers can
> learn as they go.
>
> Once that's working we can do the following:
>
> * make an online MXML renderer in the browser like http://codepen.io for
> testing, education and sharing
> * connect that to a list of community examples online
> * make a default html page and swf that is strictly to render MXML (no
> editor)
> * create a sort of live design rendering for IDE&#x

Re: [FLEXJS] POC MXML "Live" Editing

2016-04-28 Thread jude
I've been digging into the MXML live agent and have some feedback and
updates to some of the comments. I've been studying the examples that check
for changes in the MXML / XML and have some progress there but it seems
it's been built mainly for Flex JS. I'm converting some of those changes
over to also work with Flex. I've attached a screenshot:



What I have working (some of this is old news):
* updating the view with MXML live
* checking if the xml is valid (i'm using an internal browser control in
AIR to load the xml parser and get a row and line number of any errors)
* converting a XML node into a class instance (i have dictionary of
supported classes)
* checking the attributes to see if they are a valid style, event or
property
* providing errors if they are not valid and annotations

Based on your example what I have partially working is (see the
screenshot):
* getting the attribute that was changed (working)
* getting the value that it was changed to (working)
* getting the list of attributes that were removed (working)

Still to do:
* getting the instance that is related to the xml node
* verifying that the attribute is a member of the class created from the
xml node
* updating just the instance instead of rerendering the document on each
change
​
Once I get the last few items working it's possible to make code completion
work in the text editor. I'd also be able to provide inline documentation
for each component and class member so new developers can learn as they go.

Once that's working we can do the following:

* make an online MXML renderer in the browser like http://codepen.io for
testing, education and sharing
* connect that to a list of community examples online
* make a default html page and swf that is strictly to render MXML (no
editor)
* create a sort of live design rendering for IDE's based on the MXML

As for a sort of http://www.jsfiddle.net / http://codepen.io
 editor I have something like that
working for rendering HTML / CSS editor now in Radiate and rendering MXML
in the LiveMXMLEditor. In the screenshot you can see the MXML rendering.
You can switch to the HTML markup below. The template, HTML markup and CSS
is all generated from the HTMLDocumentExporter but it can be modifed in
real time. It's then reassembled into an HTML page and passed to the
internal browser. In the screen shot there is a live editing checkbox below
(see screenshot) and changes are rendered live in an HTML tab (not shown
since I'm refactoring it - centering is troublesome).


​

Still to do is decouple the DocumentImporter classes from the Radiate.as
class. Right now it's pulling in a lot of extra classes. The desktop
application is around 6MB. I'm hoping to get it down to 2MB or less.

After that we can make a simple application.swf with default linked in
classes or references that will interpret the plain text MXML at runtime
from a URL or directly from an HTML page:





   



or something like:

- http://www.domain.com/render_page.html?page=myApp.mxml


where myApp.mxml is a plain text file.

After that is setup anyone can make a FlexJSDocumentImporter using
MXMLDocumentImporter as a reference and it should all just work since it
uses reflection. You could have a sortof codepen.io for FlexJS. You'd have
a basic rendered view, problems view, editor with code completion and
linked documentation.

If anyone wants to help they're welcome to join in. If you don't have time
but want to help I'm considering setting up a Patreon which would help move
things along.

This is different than the POC because that watches a file. For it to run
in the browser we'd have to make some adjustments which is what the
DocumentTranscoder classes are about.

I'm providing this update because people on this list have asked for
updates.

Disclaimer:
Radii8 = donated project to Apache Flex. hosted at apache
Radiate (name subject to change) = project based on Radii8 with product
releases, blog updates, etc. hosted at github and radii8.com (domain name
subject to change).

FYI My goal has been to promote and build the Flash, Flex Platforms and web
development tool chain with projects like I've described above.

On Sat, Jan 16, 2016 at 9:43 AM, Alex Harui  wrote:

> I made the change I suggested below and updated the fxp file at [1].  See
> if it makes things better for you.  I think there is always the
> probability that at the moment the editor tries to save the file that the
> watcher will have the file locked to check its modification date, but that
> shouldn't lock the file forever.  Hitting save again should save the file.
>
> It would be much more robust if an IDE/editor integrated the agent code so
> it didn't require polling.  It might also be possible to write an ANE that
> watches for changes in a way that doesn't lock the file.
>
> -Alex
>
> [1] http://home.apache.org/~aharui/MXMLLiveEditing/MXMLLiveEditAgent.fxp
>
> On 1/15/16, 11

Re: FlexJS identity crisis. was: [Discuss]Accept donation of drawing APIs

2016-04-22 Thread jude
Flex JS conveys Flex as JavaScript framework but it's a hybrid really.
Could we reflect that Flex JS is a hybrid someway?

Flex js is a sort of refactor. maybe:

Flex Reactor
ReFlex
Flexo
Flex Nano
Flex Red
Flex Inc
Flexenstein
Flex Int
Flex passport
Flex Axiom
Flex Ion
Flex Action

I don't know.

There used to be a graph that showed how everything related to everything
else. But with Falcon, FlexJS, Falcon JX and so on it which have been added
after those graphs it can be confusing. Anyone want to draw something
updated under the new Apache Flex Platform?

On Apr 21, 2016 9:41 AM, "Harbs"  wrote:
>
> I think we’re all in agreement that FalconJX without the rest is an
important part even on its own. That’s what I meant by #1.
>
> I do think that naming is important. It helps “brand” a product.
Something like MXMLC2.0 is way too techie to be a “product”.
>
> I’ve been thinking of different ways to “brand” this, and I think I have
an idea which might work:
>
> Falcon and FalconJX and related toolchain which compiles AS and
optionally MXML into swc, swf and js could be branded as “FlexJS Core”.
>
> Everything else which is really about components and UI could be branded
as “FlexJS UI”.
>
> This is really similar to how JQuery did it with JQuery and JQuery UI.
>
> This would give a central brand, while preserving the concept that you
can use the compiler without the component sets (or even MXML at all).
>
> Harbs
>
> On Apr 20, 2016, at 8:02 AM, Alex Harui  wrote:
>
> > Good thoughts in this thread.
> >
> > My current thinking is this:
> >
> > FalconJX is a code name for the cross-compiler, but because there is an
> > Apache Falcon project, we need a better product name, and consider that
> > Falcon may someday compile SWFs for the Flex SDK.  Adobe already used
> > ASC2.0, plus our version of Falcon handles MXML.  We could use MXMLC2.0,
> > but I'm not a huge fan of that.
> >
> > IMO, FlexJS has become a tool chain.  It takes in MXML and AS and
outputs
> > SWFs or HTML/JS/CSS.  We want to draw in every JS framework community to
> > MXML-enable their components.  Peter is hoping to finish a demo soon of
> > how much easier it is to learn and use CreateJS with MXML than with the
> > current CreateJS tutorials in JS.  Maybe that will get the ball rolling
> > downhill.
> >
> > We will still build out a Basic component set for lowest-level
> > smallest-footprint apps.  And we hope to build out MX and Spark-like
> > component sets to ease migration pain for existing Flex code bases.
> >
> > Yes, we have CreateJS, Jquery and GoogleMaps SWCs now, mostly as
> > proofs-of-concept.  I hope to see the respective communities take over
> > development of these SWCs and expect them to do it outside of our repos,
> > and have independent release schedules.
> >
> > So that's why I'm not sure a component set that targets Stage3D and
> > Starling has to be part of this community.  It can certainly be a
customer
> > of the FlexJS tool chain, and we want it to be a customer, but we want
all
> > JS component set communities to be customers of FlexJS whether they
build
> > for SWF-first workflows or direct-to-JS workflows.
> >
> > Further down the road, once FlexJS grows to support distributed
> > development, we will be able to more clearly show the benefit of
SWF-first
> > workflows for those who need it.  But that's for another thread someday.
> >
> > My 2 cents,
> > -Alex
> >
> > On 4/19/16, 4:52 PM, "Josh Tynjala"  wrote:
> >
> >> I agree that FalconJX without the FlexJS framework is an important use
> >> case. That's basically why I'm here contributing to the project. I
want to
> >> champion the ActionScript language, and show how FalconJX will let you
use
> >> ActionScript anywhere that JavaScript is supported. That means (now or
> >> eventually) working with HTML, Node.js, Electron, and extensibility
APIs
> >> the like CEP panels that Harbs mentioned.
> >>
> >> For this use case, I think it's all about focusing on building a solid
> >> compiler.
> >>
> >> - Josh
> >>
> >> On Tue, Apr 19, 2016 at 4:04 PM, OmPrakash Muppirala
> >> 
> >> wrote:
> >>
> >>> We have an equally important component that is FalconJX.  I envision
> >>> lot of
> >>> demand to work on non-FlexJS, pure FalconJX work.
> >>>
> >>> I think the Starling port falls under the category of pure FalconJX
work
> >>> and not FlexJS.  We already have a game company working on making a
game
> >>> using the FalconJX compiler.
> >>>
> >>> Any thoughts on how we want to handle this use case?
> >>>
> >>> Thanks,
> >>> Om
> >>>
> >>> On Tue, Apr 19, 2016 at 3:44 PM, Harbs  wrote:
> >>>
>  I missed a fifth item in my list of things we need:
>  5. We need tooling to pull in external swcs (externs and
> >>> cross-copiling
>  ones) when compiling to Javascript.
> 
>  (I think we also need a naming convention for the two types of swcs.
>  "definition swcs" and "code swcs”?)
> 
>  On Apr 20, 2016, at 1:37 AM, Harbs  wrote:
> 
> > Alex and

Re: [Discuss]Accept donation of drawing APIs

2016-04-19 Thread jude
But Flex is based on the Flash runtime and underlying API. Without the
drawing commands, the interactive layer, point classes, event management,
byte array, birthday data, mouse events, etc Flex and other frameworks
wouldn't be possible.

The Flash layer and related classes are what Flex is built on.

The point of Flex JS is to run on both Flash and the browser so it's not
entirely new. Flash is the foundation for one of those targets. we know
what to expect from it. With Flex js the goal is to build the exact same
house visually and functionally on two aspirate foundations. one is tried
and true and the new one we're still building from the ground up. But for
this to work those two foundations need to be identical IMHO.

I wouldn't be opposed to having Apache Flex projects using external
libraries from Github. But in some capacity we would need the same quality
control, testing and licensing. I don't know if you can do that with an
external library.

I wouldn't worry about expectations and that shouldn't be an excuse. We
deal with them all the time anyway.

Apache was kind enough to give us a canned response, "If you have an itch
scratch it yourself. If it's broke fix it yourself." since we aren't a
corporate identity we can easily add a disclaimer, "this project is run by
volunteers. The full Flash api is not supported. The project is open
source. feel free to jump in and add missing pieces"

on another note, this project could benefit from corporate sponsors and
endorsements. feature and bug fixing bounties could help bring in the
freelancer crowd. filling in the missing api would be quickly solved. ...
if anyone knows how to do this or know someone that does then we need to
get them on board. ...side tracked again, but I bring this up bc I know
developers who would help this project along given endorsements,
sponsorship, branding, etc. in the same way angular is popular even though
it has so many issues. The main reason it is is because Google endorses it.
On Apr 19, 2016 10:40 AM, "Josh Tynjala"  wrote:

> I've always thought that someone implementing the Flash classes is a good
> idea, but that it makes the most sense as an external project. In other
> words, not included with Apache FlexJS. There's nothing wrong with external
> projects. In fact, they're a sign of a healthy community! We should be
> encouraging them and promoting them.
>
> I agree with Alex's points that including the Flash classes in FlexJS will
> set expectations of compatibility that may not be desirable from our side.
> It also keeps FlexJS bound to the legacy of Flash, instead of showing that
> the project is evolving into something new and interesting.
>
> - Josh
>
> On Tue, Apr 19, 2016 at 8:05 AM, Alex Harui  wrote:
>
> >
> >
> > On 4/19/16, 12:01 AM, "Harbs"  wrote:
> >
> > >webgl is not a very good name, because a lot of the code is actually
> > >canvas rather than webgl.
> >
> > OK.  I realized that Lizhi has been calling it SpriteFlexJS.  So that
> > could be in the package name.
> >
> > Actually this might be a good time to discuss names in terms of business
> > models.  Lizhi, I want to make sure you are aware that whatever name we
> > put on your code base will belong to Apache and you won't be able to sell
> > software using that name.  This is a public mailing list, so feel free to
> > not answer or write me directly, but an important point is this: I'm not
> > sure how you plan to keep contributing to the SpriteFlexJS code, but if
> it
> > involves selling the software what most people do is come up with two
> > names, one for the for-profit software and one for the open source code
> > base.  For example, the Apache Subversion project doesn't let other
> > for-profit products be called Subversion, but they can use SVN.  Adobe
> > PhoneGap is a for-profit product based on Apache Cordova.
> >
> > >
> > >What might make more sense would be to keep all the flash packages as
> > >experimental, and if we can identify robust piece of the package, we can
> > >repurpose some of the code to be in separate packages.
> >
> > Another option is that we don't bring in all of this code right away.
> > Didn't this thread start based on interest in Lizhi's ByteArray?  Lizhi
> > could donate that one file and we could use it under a different package
> > name.
> >
> > >
> > >I see value in keeping the flash packages as such, because it will
> likely
> > >help spur more people who want complete “flash-like” APIs to do work on
> > >it. As Lizhi points out, there are incomplete areas in his code.
> > >
> > >As far as demand for Flash and Starling goes: I expect that folks who
> > >want more support will have to help out in improving it. Again, I hope
> > >this will help attract more people to work on it.
> >
> > In short, I'm just wondering if the work on Flash and Starling is Flex.
> > Should it have its own community?  FlexJS will hopefully have many
> > customers and not all of their code should be in our code base.
> >
> > -Alex
> 

Re: [Discuss]Accept donation of drawing APIs

2016-04-18 Thread jude
I appreciate it. I think just rewording it might fix some issues. An
example response I would have liked to hear would have been,

We appreciate the offer you are making to donate or maintain your project
at Apache Flex. We know you've worked hard on your project and know your
desire is for it to benefit the greater Flex, Flash and web Platform
community. Before we can accept your donation we need to make sure of the
following things:

A. The code being donated is good in legal aspects.
C. The code is related to the platform in some way, shape or form.
B. The code being donated has some documentation, some examples and if
possible the author is accessible to answer questions

I understand that in some projects you don't want someone to "dump" a
project on you that you won't maintain. But in this sense, in the developer
community, a lot of things are a work in progress and under go many
revisions. Flex is roughly on it's 8th major revision if you count the
original two Flash component sets, Flex 1-4 and one or two major revisions
of FlexJS / Falcon, not counting Starling, Feathers and other related
revisions.

So the components Tink donated years ago IIRC weren't completely finished
(from what I read at the time they were still in progress) or that he may
not even be part of the community anymore to maintain it. I still would
have liked to have his and others work integrated into a sub swc whether
they completely fit or not. Plus it's important to remember that people
move on, change jobs, change careers whatever.

Alex wrote:
> So to be more clear, I am interested in collecting things related to Flex
that the community wants to maintain and improve.  AS3Commons, SWIZ,
Parsley, and all of those other 3rd party things that lots of folks use
and are afraid the server that serves them might go away.  But only if we
have folks here willing to help maintain and create releases for that
code, which is why there will be votes on each one.

I agree. I can't tell you how many sites are down that used to host Flash
and Flex code (all because of bad marketing Flash muckraking). But even if
the projects are dead the least we could do is provide a graveyard here so
if we ever need to dig up their rotting corpses we can do so ...ok bad
analogy (I read too much hellboy).

@Mark & @Chris & @Justin
When I said vetting, I meant going through the legal process. I agree on
that part. I agree we need to make sure it's something we can all use
without worrying about copyright issues.

On Mon, Apr 18, 2016 at 12:01 PM, OmPrakash Muppirala 
wrote:

> Jude,
>
> First off, I am truly sorry that you had a bad experience at Apache Flex,
> especially when you were trying to do good to the community by donating
> something that you had put your heart and soul into.
>
> We are all learning here.  Instead of saying let's not do this at all,
> perhaps you can propose a better way of doing things.   Where we don't look
> like dicks, at the same time we make sure that
> A. The code being donated is good in legal aspects.
> B. The code being donated is something that the community needs/wants
> C. The code being donated is not just getting dumped because no one else
> wants to deal with it.
>
> You are in the system now.  Be the change you want to see in the world.
>
> Thanks,
> Om
> On Apr 18, 2016 4:35 AM, "jude"  wrote:
>
> > Slightly off topic, but if someone is kind enough to give you a gift, the
> > proper response is to say thank you and accept it. What you do after you
> > accept it is another story.
> >
> > The Apache process of discussing if we should accept said gift is kind
> of a
> > dick move. No offence, but IMHO this behaviour has to stop. And this is
> not
> > directed at you Harbs or anyone in particular.
> >
> > I'm not saying we don't need to vet a donation, or decide if it should go
> > into core or be setup as a side project. But if someone wants to donate
> > code they own or built and it's legal then accept it and move on.
> >
> > People, and myself thought that Apache Flex was going to be the place
> where
> > we make Flash and Flex thrive again. I thought we'd have plenty of
> donated
> > components and projects but you hear someone offer to donate something
> and
> > then it seems to die and you don't hear from them again.
> >
> > It's a huge turn off to work on a project, want to donate it and then
> hear
> > your  community start talking about if they should accept your donation
> or
> > not. That's not progress is suppression.
> >
> > IIRC Alex once said he's interested in collecting everything related to
> > Flex (and the Flash Platform?) here. So am I. And that's go

Re: [Discuss]Accept donation of drawing APIs

2016-04-18 Thread jude
If the only reason to not use the flash namespace is because it has a
pejorative term to some ignorant media types and competing web developers
than that's not a good case.

If someone doesn't want to use FlexJS because they see the term "flash"
somewhere then they can go find another tool.

But if you change it, you're creating problems later when someone wants to
use to use things like getDefinitionByName("flash.*.*");

Maybe it looks solvable from your end. I'll leave that up to you. But if
you leave it as is then, you also have the possibility of taking existing
flash code examples found online, use the same code and get the same
results without changing the names.

What about if we have both? We have a flash.*.* and the compiler clones the
same classes but under flex.*.*. You could use either and it'd be backward
compatible.

On Mon, Apr 18, 2016 at 1:24 PM, Harbs  wrote:

> My point is that if someone is using a swf-first workflow, they can’t just
> use flex.* packages.
>
> If we do some magic depending on whether it’s JS or AS, that might work.
>
> On Apr 18, 2016, at 9:17 PM, Alex Harui  wrote:
>
> >
> >
> > On 4/18/16, 11:01 AM, "Harbs"  wrote:
> >
> >>
> >> On Apr 18, 2016, at 6:44 PM, Alex Harui  wrote:
> >>
> >>>
> >>>
> >>> On 4/18/16, 6:24 AM, "Harbs"  wrote:
> 
>  2. Assuming we accept it, what should the package naming be? I think
>  there’s a strong case for leaving it as-is.
> >>>
> >>> IMO, I would rename "flash" to "flex".  I'd like our FlexJS code to not
> >>> mention Flash at all, regardless of whether there is some
> >>> legal/copyright
> >>> issue.  It just helps make it clear that this stuff doesn't really use
> >>> Flash, it helps us get out of the expectation that this code will
> >>> somehow
> >>> perfectly replicate what Flash does, and it helps users migrating to
> see
> >>> what flash dependencies they have in their code.
> >>>
> >>> IMO, it isn't that hard to replace flash.*.* with flex.*.*, and I've
> >>> been
> >>> pondering a compile flag that automatically looks for a flex.*.* when
> it
> >>> sees flash.*.*.
> >>
> >> Lizhi siad there’s a problem with changing the package so it can run
> >> Starling.
> >>
> >> I’m not 100% sure what this means, but my understanding is that changing
> >> the package names would require a lot of code changes to redirect to the
> >> Flash packages in playerglobal.swc.
> >> So, for example:
> >> public class TextField extends InteractiveObject
> >> {
> >> }
> >
> > Maybe I have to go look at his code. My assumption is that he has a class
> > called flash.text.TextField that emulates the Flash TextField in WebGL.
> I
> > think we should rename that class to flex.text.TextField in our code
> base.
> >
> > Folks who are migrating code that references flash.text.TextField would
> > have a choice.  One is to manually change the "import
> > flash.text.TextField" at the top of each file that uses it.  That way
> they
> > see which flash classes they are depending on that may not be fully
> > implemented yet.  Or we'll add a compiler flag so that every "import
> > flash.text.TextField" causes the compiler to think you've written
> > "flex.text.TextField" instead.
> >
> >> would have to become:
> >> COMPILE::AS3{
> >> public class TextField extends flash.text.TextField
> >> {
> >> }
> >> }
> >> COMPILE::JS{
> >> public class TextField extends InteractiveObject
> >> {
> >> …
> >> }
> >> }
> >>
> >> I’m not sure if just making all the AS3 classes extend the Flash ones is
> >> enough.
> >
> > I'm not sure I understand which classes you are talking about here.
> >
> >>
> >>>
> 
>  3. How should it be structured in the source? Should all the code go
>  into
>  a single “Flash” project? Should it be split into multiple projects
>  (possibly one for each of the flash top-level packages)?
> >>>
> >>> I haven't looked at the code, but if it is essentially the
> >>> implementation
> >>> behind playerglobal.swc, so it would be one SWC project in
> >>> flex-asjs/frameworks/projects.
> >>
> >> Is there a performance/code size concern with putting everything in a
> >> single SWC? Am I correct in assuming only the necessary code will be
> >> compiled into JS/SWF?
> >
> > I expect that most apps are going to pull in a lot of this code anyway,
> > but yes, only classes needed are included in the output.
> >
> > -Alex
>
>


Re: [Discuss]Accept donation of drawing APIs

2016-04-18 Thread jude
Slightly off topic, but if someone is kind enough to give you a gift, the
proper response is to say thank you and accept it. What you do after you
accept it is another story.

The Apache process of discussing if we should accept said gift is kind of a
dick move. No offence, but IMHO this behaviour has to stop. And this is not
directed at you Harbs or anyone in particular.

I'm not saying we don't need to vet a donation, or decide if it should go
into core or be setup as a side project. But if someone wants to donate
code they own or built and it's legal then accept it and move on.

People, and myself thought that Apache Flex was going to be the place where
we make Flash and Flex thrive again. I thought we'd have plenty of donated
components and projects but you hear someone offer to donate something and
then it seems to die and you don't hear from them again.

It's a huge turn off to work on a project, want to donate it and then hear
your  community start talking about if they should accept your donation or
not. That's not progress is suppression.

IIRC Alex once said he's interested in collecting everything related to
Flex (and the Flash Platform?) here. So am I. And that's good enough for
me.

>From my perspective, Apache has some anti social processes and procedures
in practice. But the guidelines say quite clearly that a community can run
itself how it seems fit. So, something needs to change in my opinion.
Sorry, if I'm ranting.

Anyway, I want to include lihzi's code and keep the package name the same
for the reasons Harbs mentioned and if any future projects are cross
compiled we avoid problems by that as well.

I also suggest we adopt a process to accept license compatible platform
related future donations automatically and let our discussions focus on
whether they should be in core or in a secondary location.
On Apr 17, 2016 6:06 AM, "Harbs"  wrote:

> Lizhi has put together some impressive classes to implement the Flash
> drawing APIs for FlexJS using Canvas.[1]
>
> Lizhi has offered to donate the code[2] and I believe has just filed an
> ICLA.
>
> The question now remains whether we want to include the code. I personally
> see a lot of value in the code as it offers a lot of functionality users
> are used to out of the box using the same APIs.
>
> I do have some questions about accepting the code:
> 1. Whether to keep the packages as they are. Currently, they use the
> flash.* packages to match the ones in playerglobal. One the one hand, this
> makes a lot of sense in terms of migrating code because everything stays
> exactly the same. On the other hand, the package names are misleading as
> it’s not “Flash” packages. The alternate would be to wrap things in apache
> flex packages, but that would add a lot of work in terms of conditional
> compilation and redirection. I also don’t know if there are legal issues
> with using the “flash” package. I can’t imagine what they might be, but
> INOL…
>
> 2. How should these files be organized in FlexJS? This might be related to
> the package names, but might not. I assume this is not “core”. Should it
> all go into a single project, or should it be split up into multiple
> projects?
>
> Harbs
>
> [1]https://github.com/matrix3d/spriteflexjs
> [2]http://mail-archives.apache.org/mod_mbox/flex-dev/201604.mbox/browser


Re: [FlexJS]ByteArray and Dictionary

2016-04-16 Thread jude
fantastic!
On Apr 16, 2016 10:40 AM, "Josh Tynjala"  wrote:

> My first tutorial about Apache FlexJS shows a very simple example of how to
> interact with HTML from ActionScript:
>
>
> http://nextgenactionscript.com/tutorials/hello-world-transpile-actionscript-apache-flexjs/
>
> I'll be working on a much more detailed tutorial about ActionScript and
> HTML soon.
>
> - Josh
> On Apr 16, 2016 2:02 AM, "jude"  wrote:
>
> > I should know this but there are so many moving parts so help me
> understand
> > this. The ByteArray class looks like ActionScript but is creating and
> > referencing JavaScript objects.
> >
> > I'm guessing this is FalconJX wizardry?
> >
> > With Radii 8 I have an exporter that is in generating HTML from the
> visual
> > Flex component tree which is created at runtime. It exports HTML markup,
> > CSS inside a style block (or separately as a CSS file) and places that
> > markup and those styles inside an HTML template or file of your choice.
> I'm
> > doing nothing with JavaScript code tho and don't really want to.
> >
> > But I would like to be able to take ActionScript like this and connect it
> > somehow.
> >
> > FYI the way I keep things organized is to give every exported HTML
> element
> > a unique id on export if it doesn't have one already.
> >
> > If I already have an HTML web page with all the elements already created
> > with known ids, how would I go from an ActionScript file like this to
> > JavaScript that could talk to those elements?
> >
> > We might have gone over this already but my guess is it's something like
> > this:
> >
> > 1. download the installer
> > 2. download flex sdk (has falcon?)
> > 3. open fb and create an ActionScript project
> > 4. create an ActionScript class
> > 5. include a HTML.swc
> > 6. use a specific ant target to compile that class into JavaScript
> > 7. add a script reference the
> > to the exported js file in the html page
> >
> > does that look right? because it looks like these classes are doing that.
> >
> > ok, hear me out on this, is it possible that we could give Falcon jx an
> > HTML page (or php, etc) that had ActionScript in it, and have that
> > converted to JavaScript? Let's say the AS3 is all inside a script block
> for
> > simplicity.
> >
> > for example,
> >
> > var button:HTMLElement = document.getElementById("myButton");
> > button.label = "test";
> >
> > I ask because for some HTML developers they may see the advantage of
> > strongly typed JavaScript. Falcon JX may offer that to them for sites and
> > projects they've already created using mixed tool sets and frameworks.
> > On Apr 15, 2016 3:17 AM, "Harbs"  wrote:
> >
> > > Yes. You are right:
> > >
> > >
> >
> https://github.com/matrix3d/spriteflexjs/blob/master/src/flash/utils/ByteArray.as
> > >
> > >
> >
> https://github.com/matrix3d/spriteflexjs/blob/master/src/flash/utils/Dictionary.as
> > >
> > > The ByteArray implementation looks pretty complete, but the Dictionary
> > > implementation assumes that keys are strings.
> > >
> > > Lizhi,
> > >
> > > Are you interested in donating your code?
> > >
> > > On Apr 15, 2016, at 11:13 AM, jude  wrote:
> > >
> > > > I vaguely remember itzhi had converted a lot of the Flash classes to
> > > > JavaScript in his Github repo to get startling transpiled. on mobile
> > so I
> > > > don't have links.
> > > > On Apr 15, 2016 2:54 AM, "Harbs"  wrote:
> > > >
> > > >> These are two features used a lot in Flash apps which do not have a
> > > simple
> > > >> mapping in Javascript. Has anyone done any work on this front yet?
> > > >>
> > > >> I was about to add UIDUtil to FlexJS core, but I realized it uses
> both
> > > of
> > > >> these.
> > > >>
> > > >> Harbs
> > >
> > >
> >
>


Re: [FlexJS]ByteArray and Dictionary

2016-04-16 Thread jude
I should know this but there are so many moving parts so help me understand
this. The ByteArray class looks like ActionScript but is creating and
referencing JavaScript objects.

I'm guessing this is FalconJX wizardry?

With Radii 8 I have an exporter that is in generating HTML from the visual
Flex component tree which is created at runtime. It exports HTML markup,
CSS inside a style block (or separately as a CSS file) and places that
markup and those styles inside an HTML template or file of your choice. I'm
doing nothing with JavaScript code tho and don't really want to.

But I would like to be able to take ActionScript like this and connect it
somehow.

FYI the way I keep things organized is to give every exported HTML element
a unique id on export if it doesn't have one already.

If I already have an HTML web page with all the elements already created
with known ids, how would I go from an ActionScript file like this to
JavaScript that could talk to those elements?

We might have gone over this already but my guess is it's something like
this:

1. download the installer
2. download flex sdk (has falcon?)
3. open fb and create an ActionScript project
4. create an ActionScript class
5. include a HTML.swc
6. use a specific ant target to compile that class into JavaScript
7. add a script reference the
to the exported js file in the html page

does that look right? because it looks like these classes are doing that.

ok, hear me out on this, is it possible that we could give Falcon jx an
HTML page (or php, etc) that had ActionScript in it, and have that
converted to JavaScript? Let's say the AS3 is all inside a script block for
simplicity.

for example,

var button:HTMLElement = document.getElementById("myButton");
button.label = "test";

I ask because for some HTML developers they may see the advantage of
strongly typed JavaScript. Falcon JX may offer that to them for sites and
projects they've already created using mixed tool sets and frameworks.
On Apr 15, 2016 3:17 AM, "Harbs"  wrote:

> Yes. You are right:
>
> https://github.com/matrix3d/spriteflexjs/blob/master/src/flash/utils/ByteArray.as
>
> https://github.com/matrix3d/spriteflexjs/blob/master/src/flash/utils/Dictionary.as
>
> The ByteArray implementation looks pretty complete, but the Dictionary
> implementation assumes that keys are strings.
>
> Lizhi,
>
> Are you interested in donating your code?
>
> On Apr 15, 2016, at 11:13 AM, jude  wrote:
>
> > I vaguely remember itzhi had converted a lot of the Flash classes to
> > JavaScript in his Github repo to get startling transpiled. on mobile so I
> > don't have links.
> > On Apr 15, 2016 2:54 AM, "Harbs"  wrote:
> >
> >> These are two features used a lot in Flash apps which do not have a
> simple
> >> mapping in Javascript. Has anyone done any work on this front yet?
> >>
> >> I was about to add UIDUtil to FlexJS core, but I realized it uses both
> of
> >> these.
> >>
> >> Harbs
>
>


Re: [FlexJS]ByteArray and Dictionary

2016-04-15 Thread jude
I vaguely remember itzhi had converted a lot of the Flash classes to
JavaScript in his Github repo to get startling transpiled. on mobile so I
don't have links.
On Apr 15, 2016 2:54 AM, "Harbs"  wrote:

> These are two features used a lot in Flash apps which do not have a simple
> mapping in Javascript. Has anyone done any work on this front yet?
>
> I was about to add UIDUtil to FlexJS core, but I realized it uses both of
> these.
>
> Harbs


Re: Easy way to convert a property to a style

2016-04-15 Thread jude
thanks, I was concerned if there was anything special or if it was about
the metadata.

I might add patches for these and maybe a visibleInLayout property that
sets both the visible and includeInLayout at the same time.
On Apr 14, 2016 11:20 PM, "Alex Harui"  wrote:



On 4/14/16, 8:07 PM, "jude"  wrote:

>In the Flex SDK we have some styles like top, left, right, bottom that we
>can define as styles. These also happen to be available as properties on
>UIComponent.
>
>I'd like to be able to set the properties like visible, includeInLayout
>and
>includeIn as styles as well. This is so we can create a sort of
>"responsive" design that changes the visibility or state was the size of
>the application changes.
>
>My question is, if I want to be able to change the state as the size of
>the
>application changes and make some of the properties change via styles how
>would I go about doing this?

You can copy how left, right, top and bottom are coded up in UIComponent.

HTH,
-Alex


Easy way to convert a property to a style

2016-04-14 Thread jude
In the Flex SDK we have some styles like top, left, right, bottom that we
can define as styles. These also happen to be available as properties on
UIComponent.

I'd like to be able to set the properties like visible, includeInLayout and
includeIn as styles as well. This is so we can create a sort of
"responsive" design that changes the visibility or state was the size of
the application changes.

My question is, if I want to be able to change the state as the size of the
application changes and make some of the properties change via styles how
would I go about doing this?


Re: Moonshine-IDE.com -- FlexJS, Flex, and ActionScript focused open source IDE -- contribution to Apache FlexJS ?

2016-04-02 Thread jude
Hi Justin,

Good to hear from you again. I looked at Moonshine a few years ago and it
didn't look like anyone was working on it. I'm glad someone has started it
back up.

I have some suggestions based on your questions. A while ago I donated
Radii8 (www.radii8.com) to Apache for a few reasons.

1. To give the community a tool that lets you create a design
2. Let's you add use Flex components to create that layout
3. Let's you use inspectors to set properties and styles
4. Generate the MXML properties and styles
5. Create and share your MXML documents for educational and instructional
purposes
6. Publish and share that online
7. To get the community involved working on that tool

In the process I learned that projects at Apache that rely on other
libraries cannot be hosted on the site. It seems that mainly, the benefit
of an Apache project, is that you can be confident you can use it in your
own projects without any copyright issues. It doesn't seem to be the best
place if you need to use libraries hosted on other websites, libraries of
other licenses, binaries, graphics of any sort (even royalty free) and so
on. It seems to be a place for singular type of projects. My case is that
we have had to create an installer that gets all parts from all over for
the Flex SDK to run.

What I was hoping was for the community to be more involved. But that
didn't seem to happen. The Apache atmosphere has a nobody is in charge,
everybody is in charge perspective. So if you have an issue it's up to you
to "scratch your own itch". It also has a no vision, any vision perspective
and a no roadmap, any roadmap perspective. After some discussion, many
times it's been repeated Apache is about community more than code.

It's clear that looking back, you need someone to take charge, like Alex
did with FlexJS, like Mike did with Falcon compiler work, like Josh is
doing with Feathers MXML, like you did with the Moonshine project, and many
others. But, that nobody running things, everybody running things also
means that there are or were 4 or more different efforts to make Flex
output to HTML; FlexJS, AS2JS, FalconJX, Radii8 Flex to HTML export, itzhi
Starling conversion, etc. Sorry, I don't know if I got the names right but
I remember the projects.

A while ago but some time after I donated Radii8 I started working on it
again but it was hosted on github. Over the last month I've been talking
with Alex about trying to merge the changes back into Apache Flex repo but
to do so I would or may have to strip out many of the libraries I use to
make it all work. Pieces would be hosted all over the place and it's
looking complicated.

My point and my question is, what do you really want? Do you want community
involvement? Do you want Apache and Apache Flex community blessing,
whatever that means? Do you want it at Apache so it can be all bundled
together for easier distribution?

If that's the case, I would suggest that the community bless it as a side
project. Allow it to be discussed on this list. Give it a discussion tag
name [moonshine]. Maybe use JIRA here. But I would not be so quick to host
it here. Host it at Github IMHO. I don't know if this breaks any Apache
policy but if Apache is really about community more than code than IMHO let
it be discussed here but hosted wherever it will make the most progress.

BTW I looked at Moonshine possibly before you were working on it and would
have liked to use it in Radii8 but I was attempting to create web based
design view and Moonshine was much too integrated with the file system.
I've been using Ace Editor  for syntax highlighting
(JavaScript code editor in a HTML loader). It's an open source project on
Github and they may have some code that you could use to help with some of
the issues you mentioned including code completion, etc.

Also, I would like to add many developers are still using the main Flex SDK
and so I suggest don't limit Moonshine to just FlexJS.

PS Great to see it being worked on again! :)

On Sat, Apr 2, 2016 at 12:51 AM, Alex Harui  wrote:

> Hi Justin Hill,
>
> Justin McLean is factually correct, but I have a slightly different
> viewpoint.
>
> Before you start signing ICLAs and Software Grants, I would first consider
> the financial aspects:  how will you and your team find the time (which
> usually means money) to continue to contribute to Moonshine if you donate
> it to the Apache Software Foundation?  Apache software releases cannot be
> sold for money.  And product names and trademarks are supposed to be
> assigned to the ASF as well, so if you donate Moonshine, then you can't
> decide later to try to make a non-free version and still call it Moonshine
>
> I have seen two different ways that Apache projects have for-profit
> ecosystems:
> 1) The Apache Subversion project somehow decided that for-profits can use
> the SVN acronym in product names, but not "Subversion" itself.  Apache
> Subversion is command-line and free, and SmartSVN, TortoiseS

Re: Minimum amount of files to compile a Flex or FlexJS application

2016-02-26 Thread jude
the first one is when you try to connect with a local connection and it
hasn't been closed previously. line 35 of MXMLLiveEditPlugin.as:

commandconnection.connect("_MXMLLiveEditPluginCommands");

from what i've read online, even on my own blog, there is no fix but to
close all flash instances on your pc (or restart). to prevent it you're
supposed to close the connection before you try to connect again. so the
first time i closed either the live agent or the data binding test. and
from then on that connection using that string can't be made again afaik.
it's supposed to be a bug in fp that looks like it wasn't fixed. i
recommend some way to close previous connections or make the connection
mutable (if a new connection call comes in close the old one). let the
developer decide to make their connections closable.

the second one happened when i clicked on the scroll bar up button on the
flex js flash app of the databinding example.

TypeError: Error #1034: Type Coercion failed: cannot convert
org.apache.flex.events::MouseEvent@2d51b0218941 to
org.apache.flex.events.Event.
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
org.apache.flex.events.utils::MouseEventConverter$/mouseEventConverter()[c:\Jenkins\workspace\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\events\utils\MouseEventConverter.as:92]

1. launch the databinding test
2. click the show all data checkbox
3. click the up arrow

On Thu, Feb 25, 2016 at 11:50 PM, Alex Harui  wrote:

>
>
> On 2/25/16, 7:10 PM, "jude"  wrote:
> >fyi flexjs is awesome. first time running it. but i encountered a couple
> >of
> >errors in the demo i'm sure you're already aware of.
> >
> >#2082: Connect failed because the object is already connected.
> >TypeError: Error #1034: Type Coercion failed: cannot convert
> >flash.events::MouseEvent@2d51aff84c11 to
> >org.apache.flex.events.MouseEvent.
>
> I haven't seen these.  Do you have more info on how to reproduce it?
>
> -Alex
>
>


Re: update on radiate

2016-02-25 Thread jude
i've posted the road map and code here
<https://github.com/monkeypunch3/Radii8/blob/master/README.md>.

On Thu, Feb 25, 2016 at 7:48 PM, jude  wrote:

> i've posted the change log here <https://www.radii8.com/blog/?p=1078>.
> you can now use your own site (domain) for creating projects. it connects
> to a wordpress instance to save the mxml documents. it also uses wordpress
> as a publishing platform. any document you design can be used as a "theme"
> for wordpress. so for example, if you make a gallery page, save it, set the
> document status to publish and then open the wordpress post in the browser.
> instead of seeing a theme page you'll see your design exported as html
> through the wordpress theme. you can add tokens to import wordpress the
> wordpress post content, title and so on.
>
> also, i've add property inspectors for about 10 more components. this is
> one of the goals of the project, as sort of property explorer. the most
> surprising thing i found out is how awesome the TileGroup is. it has some
> really nice layout options. it can easily be used like a table using
> numerous columns or form using two columns. i also found a lot of
> properties on familiar components i didn't know about. i'm guessing they
> might have been added in in apache releases?
>
> there are numerous other changes, including some initial support for live
> mxml editing <https://www.radii8.com/blog/?p=1083>. using some of the
> falcon code Alex used in his prototype, we could support live delta
> updates. currently, on each change all the components are removed and then
> readded. in the poc you can set it to update on change or save. by default
> you have to use command + s or ctrl + s. with delta updates you'd only
> update the specific component and specific property or style. each
> component takes about 50 - 100ms to render in my tests. there are numerous
> places where the performance could be improved. right now, it's coupled
> with the radiate.as class. moving that will make the file size much
> smaller. caching more metadata calls would help as well.
>
> i really think we need to add runtime mxml support. for designers, for
> developers who don't want to use html and just as an alternative to not
> just html but to everything else out there. html frameworks are reinvented
> every week and they are coming up with solutions flex has had for years. if
> they see mxml at least they can use it as an example to base off or use
> flex in general.
>


update on radiate

2016-02-25 Thread jude
i've posted the change log here . you
can now use your own site (domain) for creating projects. it connects to a
wordpress instance to save the mxml documents. it also uses wordpress as a
publishing platform. any document you design can be used as a "theme" for
wordpress. so for example, if you make a gallery page, save it, set the
document status to publish and then open the wordpress post in the browser.
instead of seeing a theme page you'll see your design exported as html
through the wordpress theme. you can add tokens to import wordpress the
wordpress post content, title and so on.

also, i've add property inspectors for about 10 more components. this is
one of the goals of the project, as sort of property explorer. the most
surprising thing i found out is how awesome the TileGroup is. it has some
really nice layout options. it can easily be used like a table using
numerous columns or form using two columns. i also found a lot of
properties on familiar components i didn't know about. i'm guessing they
might have been added in in apache releases?

there are numerous other changes, including some initial support for live
mxml editing . using some of the
falcon code Alex used in his prototype, we could support live delta
updates. currently, on each change all the components are removed and then
readded. in the poc you can set it to update on change or save. by default
you have to use command + s or ctrl + s. with delta updates you'd only
update the specific component and specific property or style. each
component takes about 50 - 100ms to render in my tests. there are numerous
places where the performance could be improved. right now, it's coupled
with the radiate.as class. moving that will make the file size much
smaller. caching more metadata calls would help as well.

i really think we need to add runtime mxml support. for designers, for
developers who don't want to use html and just as an alternative to not
just html but to everything else out there. html frameworks are reinvented
every week and they are coming up with solutions flex has had for years. if
they see mxml at least they can use it as an example to base off or use
flex in general.


Re: Minimum amount of files to compile a Flex or FlexJS application

2016-02-25 Thread jude
that's pretty slick. i posted a poc of a live mxml renderer here
<https://www.radii8.com/blog/?p=1083>. you can see changes live by setting
it to update on change. after you add a few components updating live
becomes slow. if we used that falcon code we could apply delta changes. it
could be a viable option for real time live preview in or out of the
browser.

using reflection it would even be possible to add code completion or code
suggestion.

fyi flexjs is awesome. first time running it. but i encountered a couple of
errors in the demo i'm sure you're already aware of.

#2082: Connect failed because the object is already connected.
TypeError: Error #1034: Type Coercion failed: cannot convert
flash.events::MouseEvent@2d51aff84c11 to org.apache.flex.events.MouseEvent.

On Sun, Feb 14, 2016 at 11:31 PM, Alex Harui  wrote:

>
>
> On 2/14/16, 10:44 PM, "jude"  wrote:
>
> >I haven't had a chance to check it out although I'm intrigued. Is it
> >online
> >anywhere?
>
> I can't quite visualize a quick way to make an online version of this.
> Original instructions are here [1].
>
> HTH,
> -Alex
>
> [1]
> http://mail-archives.apache.org/mod_mbox/flex-dev/201601.mbox/%3cD2BD3819.6
> 07e7%25aha...@adobe.com%3e
>
>


Re: [FlexJS] Tree Component

2016-02-22 Thread jude
+1 great work

On Fri, Feb 19, 2016 at 10:31 AM, Peter Ent  wrote:

> Hi,
>
> I've just finished adding a new component to the FlexJS HTML package:
> Tree. The Tree component is completely based on List and uses a new data
> model, HierarchicalData, found in the FlexJS Collections package.
>
> You can read more about Tree on the FlexJS Wiki (
> https://cwiki.apache.org/confluence/display/FLEX/Tree) as well as try it
> using the FlexJS example, TreeExample, found in the flex-asjs/examples,
> repository.
>
> The itemRenderer for the Tree is fairly basic, but should provide you with
> enough to make something more complex.
>
> Regards,
> Peter Ent
> Adobe Systems/Apache Flex Project
>


Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-02-21 Thread jude
I don't but let's say Ant does something that AIR doesn't. You can call
just that one behavior. Get download or unzip file. You would have a single
function target.

I don't think it has to be installed. So you can bundle ant with the app.
Just put it in a subdirectory and then call ant /path/to/build.xml
name_of_target.

On Thu, Feb 18, 2016 at 9:54 PM, Alex Harui  wrote:

>
>
> On 2/18/16, 11:30 AM, "jude"  wrote:
>
> >it's possible to call ant using native process though. so you could fall
> >back on those few cases that ant is required.'
>
> Sure, that's possible, but I thought you didn't want to use Ant syntax in
> the first place.  And even if you do, you have to deal with making sure
> Ant is properly installed.
>
> -Alex
>
>


Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-02-18 Thread jude
it's possible to call ant using native process though. so you could fall
back on those few cases that ant is required.
On Feb 17, 2016 10:50 PM, "Alex Harui"  wrote:

>
>
> On 2/17/16, 10:34 PM, "Justin Mclean"  wrote:
>
> >Hi,
> >
> >> But Windows doesn't even have native processes for grep and sed and
> >> requiring CygWin or GitBash doesn't seem like a good idea.
> >
> >ActionScript has RegExp support [1] so an AIR grep wouldn’t be too hard
> >to create. Remind me what do the build scripts use grep for?
>
> I don't think our builds call out to grep explicitly, but we do use the
> ReplaceRegExp Ant task in some cases and I'm not sure we have AntOnAIR
> fully equivalent.
>
> AntOnAIR currently has enough to run the installer.xml scripts, but I
> think it is missing stuff we use in our build.xml and download.xml files.
> Tar/Jar also come to mind.  And, of course, it is still mimic-ing Ant,
> which some folks don't like.
>
> The AntOnAIR project has a tests/AntOnAIR.mxml which in theory you can
> feed the command line "-f " and see how far it gets with
> our build.xml files.
>
> -Alex
>
>
>
>


Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-02-17 Thread jude
If AIR has a comparable API use that, if it doesn't then use native
process. And instead of environment variables use GUI and save those values
to a shared object.


On 2/15/16, 5:17 PM, "jude"  wrote:

>some ideas: the first time I used ant I loved it but as soon as i asked it
>to do anything complex it became a major pain, imo.
>
>when I was helping harbs with TLF it took me a week and a lot of patience
>to get it setup.
>
>I understand why there are build engineers now. I'm really hesitant to try
>and make ant work with any project.

So what do you use instead of Ant?

>
>but for people like me, and others the process has to be easier to set up.
>I'm not saying that's for you to do but I think it would be better to use
>actionscript instead. why not create an AIR app? use as3 to check for
>environment variables, ask for directories, use those with the file class
>to copy things where they need to go. have a build button. maybe it's not
>possible. idk.

IMO, Ant and Maven take care of a lot of cross-platform stuff that AIR
doesn't (grep, sed, etc).  We have emulated a significant number of Ant
tasks in AS already, but some of the hard ones are missing.  And if I
deploy and AIR app, it needs its own release cycle.  IMO, too much work
for the benefit for me to want to stop feature development to work on it.
But definitely give it a try if you are so inclined.

I'm not saying it isn't complex, and I do wish it was easier, but this is
the 4th time I've devoted at least a day to trying to make it easier.  And
so far, it hasn't seemed to move the needle.  Maybe it will this time.

-Alex


Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-02-15 Thread jude
some ideas: the first time I used ant I loved it but as soon as i asked it
to do anything complex it became a major pain, imo.

when I was helping harbs with TLF it took me a week and a lot of patience
to get it setup.

I understand why there are build engineers now. I'm really hesitant to try
and make ant work with any project.

but for people like me, and others the process has to be easier to set up.
I'm not saying that's for you to do but I think it would be better to use
actionscript instead. why not create an AIR app? use as3 to check for
environment variables, ask for directories, use those with the file class
to copy things where they need to go. have a build button. maybe it's not
possible. idk.

I'm not saying this is for you to do but if install and run was an as3 app
any of us could debug it and even write parts if it. just an idea. in fact,
I might be able to help on it. I'll see if I can get something started this
week if there's interest.
On Feb 15, 2016 2:38 PM, "Alex Harui"  wrote:

> I have not seen anyone offer to make a fix.  I am mostly done with a
> change. Hopefully it will go in tonight.
>
>
> Sent from my LG G3, an AT&T 4G LTE smartphone
>
>
> -- Original message--
>
> From: OmPrakash Muppirala
>
> Date: Mon, Feb 15, 2016 1:55 PM
>
> To: dev@flex.apache.org;
>
> Subject:Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)
>
>
> Alex,
>
> The way I am reading this thread, I don't think folks are asking you to
> make the changes.  They are generally asking if it is okay to make these
> kind of changes.  It would be good if you are okay with the changes since
> you are one of the affected parties.
>
> Thanks,
> Om
>
> On Mon, Feb 15, 2016 at 1:36 PM, Alex Harui  wrote:
>
> >
> >
> > On 2/15/16, 1:32 PM, "Michael Schmalle" 
> wrote:
> >
> > >Alex, if I had time I wouldn't do it. :) I hate build stuff and this is
> > >exactly why I set that template file up.
> >
> > Well, I'm glad it worked for you, and it worked for me, but now I am
> > spending time trying to implement something else to make others happy.
> > Yes, we want to make it easier for others to contribute, but I don't like
> > it that it always falls on me to try to figure it out for others.
> >
> > -Alex
> >
> >
>


Re: Minimum amount of files to compile a Flex or FlexJS application

2016-02-14 Thread jude
I haven't had a chance to check it out although I'm intrigued. Is it online
anywhere?
On Feb 14, 2016 9:29 PM, "Alex Harui"  wrote:

>
>
> On 2/14/16, 2:21 PM, "jude"  wrote:
>
> >I meant download size not file count. Without knowing all the issues I'm
> >thinking of what it will cost in bandwidth to bundle the compiler(s). For
> >example, if I want someone to be able to compile a single page MXML (flex
> >or flex js) on their desktop, but they don't need anything else but what
> >it
> >takes to compile that MXML application.
> >
> >The objective I'm trying to find out is to try to get a compiler to the
> >client *user* (not developer) to compile mxml on demand, creating a swf on
> >the client side.
>
> Are there any limitations on what kinds of MXML the "user" can write?  As
> I said in another thread, I have a prototype of "live-editing" certain
> MXML properties.  And it doesn't require a compiler to handle such changes.
>
> -Alex
>
>


Re: Minimum amount of files to compile a Flex or FlexJS application

2016-02-14 Thread jude
I meant download size not file count. Without knowing all the issues I'm
thinking of what it will cost in bandwidth to bundle the compiler(s). For
example, if I want someone to be able to compile a single page MXML (flex
or flex js) on their desktop, but they don't need anything else but what it
takes to compile that MXML application.

The objective I'm trying to find out is to try to get a compiler to the
client *user* (not developer) to compile mxml on demand, creating a swf on
the client side.

On Sun, Feb 14, 2016 at 7:15 AM, Alex Harui  wrote:

> Why do you want to know about files instead of download size?  If I break
> up UIComponent's 13000 lines into 13 files then number of files isn't
> really a fair metric?
>
> -Alex
>
> On 2/14/16, 5:59 AM, "jude"  wrote:
>
> >FlexJS clocks in at about 500MB
> >Flex 4.15 is at 587MB
> >
> >Is all of that needed?
> >
> >What is the least amount of files needed to compile an Spark and FlexJS
> >Application?
>
>


Minimum amount of files to compile a Flex or FlexJS application

2016-02-14 Thread jude
FlexJS clocks in at about 500MB
Flex 4.15 is at 587MB

Is all of that needed?

What is the least amount of files needed to compile an Spark and FlexJS
Application?


Re: [FLEXJS][FALCONJX] Reflection/Metadata

2016-02-02 Thread jude
+1

Is this function available on every class?

How would you access it?

MyClass.FLEXJS_CLASS_INFO();

Is it removed in the JS but kept in in the AS3? Is there a flag you can use
to keep the reflection data?
Hi,

I just pushed changes to try to support reflection and metadata in FlexJS
via a new Reflection.swc and new generated code from FalconJX.  You should
be able to use org.apache.flex.reflection.describeType() to get a data
structure (instead of XML like in the regular Flex SDK) and retrieve
metadata that way.  I think there are still bugs in the implementation,
especially dealing with static vs instance properties, but simple tests
are working for me.  I'll be using this in the Spark-like component set
I'm playing with for FlexJS.

One interesting thing about the way I've currently coded this:  FalconJX
now outputs a FLEXJS_REFLECTION_INFO function() as well as the
FLEXJS_CLASS_INFO structure on every class.  By generating
FLEXJS_REFLECTION_INFO as a function instead of a structure, the Google
Closure Compiler seems to be able to tell if you are using reflection in
the app and optimizes out the function and all of its related data so you
only pay the cost of that extra function and data if you are using it.

-Alex


Re: AW: Updating the Website with the new ASF logo?

2016-01-29 Thread jude
Image didn't come through, here is a link, http://imgur.com/oCp9axD
added to that is the Mozilla EME plugin and Apple (Safari) has QuickTime

On Fri, Jan 29, 2016 at 3:22 AM, jude  wrote:

> not really.. one of the news media outlets that reported about the Java
> plugin being removed said in the first line of their article, "Now that
> Chrome, Firefox, Edge & Safari don't support plug-ins anymore...". the
> article later made a clarification.
>
> all browsers support plugins. and almost all of them have their own
> plugins running including Apple, Google, Microsoft, and Mozilla.
>
> I don't know if this image will come through but they all use plugins, and
> some or all are making new controversial plugins
> <https://hacks.mozilla.org/2014/05/reconciling-mozillas-mission-and-w3c-eme/>
> for DRM content. i don't know but i think they might have been trying to
> intentionally get rid of plugins not just for traditional reasons but
> possibly for advertising and possibly to control online video piracy / DRM.
> read the article above. mozilla is actually against one of their own
> plugins (linked above) but included it anyway.
>
>
> ​
>
> On Fri, Jan 29, 2016 at 1:31 AM, OK  wrote:
>
>> > did anybody notice that Flex was specifically called out in the
>> press-release as "best in class software
>> > project"?
>> If best-in-class means "browser/plug-in based", "RichClient" or call it
>> whatever it seems that Flash is the only one that survive.
>> Silverlight is dead with Microsoft Edge and Oracle announced this week,
>> that
>> they will remove
>> the Java browser plugin from future JDK/JRE versions.
>> https://blogs.oracle.com/java-platform-group/entry/moving_to_a_plugin_free
>>
>> Olaf
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-flex-development.247.n4.nabble.com/Updating-the-Website-with-the-new-ASF-logo-tp51376p51383.html
>> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>>
>
>


Re: AW: Updating the Website with the new ASF logo?

2016-01-29 Thread jude
not really.. one of the news media outlets that reported about the Java
plugin being removed said in the first line of their article, "Now that
Chrome, Firefox, Edge & Safari don't support plug-ins anymore...". the
article later made a clarification.

all browsers support plugins. and almost all of them have their own plugins
running including Apple, Google, Microsoft, and Mozilla.

I don't know if this image will come through but they all use plugins, and
some or all are making new controversial plugins

for DRM content. i don't know but i think they might have been trying to
intentionally get rid of plugins not just for traditional reasons but
possibly for advertising and possibly to control online video piracy / DRM.
read the article above. mozilla is actually against one of their own
plugins (linked above) but included it anyway.


​

On Fri, Jan 29, 2016 at 1:31 AM, OK  wrote:

> > did anybody notice that Flex was specifically called out in the
> press-release as "best in class software
> > project"?
> If best-in-class means "browser/plug-in based", "RichClient" or call it
> whatever it seems that Flash is the only one that survive.
> Silverlight is dead with Microsoft Edge and Oracle announced this week,
> that
> they will remove
> the Java browser plugin from future JDK/JRE versions.
> https://blogs.oracle.com/java-platform-group/entry/moving_to_a_plugin_free
>
> Olaf
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/Updating-the-Website-with-the-new-ASF-logo-tp51376p51383.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: flexjs game hugryhero

2016-01-21 Thread jude
Even if the initial download size is bigger it can actually load faster.
This is because:

*Fetching resources over the network is both slow and expensive: the
download may require multiple roundtrips between the client and server,
which delays processing and may block rendering of page content, and also
incurs data costs for the visitor. [1]*

So using data uri's can get you a faster TOF (time of flight) page render.
Not sure if I'm using that right but it sounds cool. The downside is that
if you reload the page nothing is in the cache. But then again, if you plan
it right you should only be downloading the changed content (a small JSON
object).

I'm using data URI's in a few places and for small graphics like lines and
boxes and it's only a few lines of content. The reason I'm doing this is to
translate an SVG graphic into something older browsers can render, for
example, the webkit in AIR does not render SVG (in my tests) so converting
those to data URI allows the page to render as expected.

Google has some good info but the information shouldn't be taken as gospel.
They are still catching up to things we are used to. For example, Angular
JS is being rewritten from the ground up.
 [1]
https://developers.google.com/speed/docs/insights/LeverageBrowserCaching

On Thu, Jan 21, 2016 at 8:53 AM, OmPrakash Muppirala 
wrote:

> Any reason we want to embed images?  It makes sense in a swf because it is
> a compact file format.
>
> For the HTML version if we stick a big base 64 image in the minified code,
> we are unnecessarily making the initial download size bigger.
>
> A better approach would be to use spritesheets when dealing with image
> data.   These spritesheets should be downloaded on demand like all other
> assets.
>
> Thanks,
> Om
> On Jan 21, 2016 8:43 AM, "Alex Harui"  wrote:
>
> >
> >
> > On 1/21/16, 8:24 AM, "Michael Schmalle" 
> wrote:
> >
> > >If/when you have time, could you make a JIRA that sort of outlined the
> > >process for the base64 encoding? I am good at somethings but something
> > >like
> > >this I really don't have any experience, I know the hooks in the
> compiler
> > >and such but what would actually be involved in getting the bytes to
> emit
> > >out.
> >
> > I would have to do research as well.  Maybe Josh can provide more detail.
> > My concern is, if overused, embeds could make the html file really huge.
> >
> > -Alex
> >
> >
>


Names for FlexJS MXML

2016-01-19 Thread jude
Alex, et al,

Is there a name or 3-4 letter acronym we can use for FlexJS MXML to
differentiate it from Flex MXML? I'm drawing a blank and these don't seem
to fit:

FXML
FXJSML
FxJsML
FalconML

I don't think the JS part of the name fits because FlexJS also outputs SWF.
It's a hybrid of Flex, MXML, AS with two different target platforms SWF and
transpiled HTML / JS.

For example, we have HTML, MXML, XAML but what would sound good for FlexJS?


Re: FlexJS metadata / reflection

2016-01-16 Thread jude
I'm talking about a live preview that's created from the MXML markup. It
doesn't pay attention to any of the AS. The components are created on the
fly from the XML. There would be no interaction.

With your live coding example, you start coding and when you save you
create a new swf. That swf is watched (or would be watched) and it's then
reloaded when the date has changed. Now you reload it and you have a fully
debug swf you can interact with.

The difference between the two approaches is that the time it takes to get
to see that first preview. Based on Flex MXL project compile times for me
range from 1 - 20 seconds. I don't know what FlexJS compile times are.

If you only need to preview one MXML page at a time and it doesn't have to
be interactive, it might be much faster to parse the MXML of that page on
the fly.

Let me be clear, creating a compiled fully interactive SWF is preferable
and what I'm talking about has clear disadvantages, but if we want to have
something that someone can try in the browser, that doesn't require access
to a compiler, it's possible to parse the FlexJS markup and create the
layout. If someone can setup the FlexJS compiler on the server then you
wouldn't need what I'm suggesting.


On Sat, Jan 16, 2016 at 10:13 PM, Alex Harui  wrote:

> I'm not sure I understood all of that, and it sounds interesting, but I'm
> not clear how you can "assemble" the code that glues the UI together at
> runtime without a compiler.  For example, if I want to click on something
> to change from state A to state B, that is usually done in ActionScript.
>
> -Alex
>
> On 1/16/16, 5:20 PM, "jude"  wrote:
>
> >If you do we can do some runtime live rendering without using a compiler.
> >I'm doing that now for MXML using only metadata and doing it live for HTML
> >markup.
> >
> >For MXML import there are two passes, one is to check for valid XML and if
> >not valid return any errors, then if it is valid, we pass it to the
> >MXMLDocumentImporter where it looks up definitions and builds the page
> >dynamically from the source code.
> >
> >For HTML, each keypress, the new source is assembled (arranged) into a
> >complete HTML page. It's then sent to the HTML Loader instance and it's
> >able to render on the fly. Changes happen almost instantly for layout and
> >few seconds if you use images.
> >
> >For MXML I haven't tried it for live editing. I'll run some tests but I
> >think it may render / update in a few seconds. I imagine this would be the
> >same for FlexJS. There are certainly things that could speed up rendering
> >further.
> >
> >But, for it to work it needs metadata. Then, you would write an
> >FlexJSDocumentImporter class and register the FlexJS components /
> >definitions that you want to import.
> >
> >I'll put these classes in the public FC library and, if no one else gets
> >to
> >it before I do, they can assemble a (alternative) runtime FlexJS editor /
> >viewer. The alternative is to support a in the browser renderer where the
> >compiler is not available (client side only) that Om was talking about. It
> >wouldn't support the AS3 though.
> >
> >On Fri, Jan 15, 2016 at 9:45 PM, Alex Harui  wrote:
> >
> >>
> >>
> >> On 1/15/16, 8:39 PM, "jude"  wrote:
> >>
> >> >Does FlexJS support a reflection like describeType method? Is there
> >>Flex
> >> >like metadata in it?
> >>
> >> We haven't implemented that yet.  I was just about to start in on some
> >>of
> >> the framework-related code for some of it.  It is needed to do a more
> >> Spark-like component set.
> >>
> >> -Alex
> >>
> >>
>
>


Re: FlexJS metadata / reflection

2016-01-16 Thread jude
If you do we can do some runtime live rendering without using a compiler.
I'm doing that now for MXML using only metadata and doing it live for HTML
markup.

For MXML import there are two passes, one is to check for valid XML and if
not valid return any errors, then if it is valid, we pass it to the
MXMLDocumentImporter where it looks up definitions and builds the page
dynamically from the source code.

For HTML, each keypress, the new source is assembled (arranged) into a
complete HTML page. It's then sent to the HTML Loader instance and it's
able to render on the fly. Changes happen almost instantly for layout and
few seconds if you use images.

For MXML I haven't tried it for live editing. I'll run some tests but I
think it may render / update in a few seconds. I imagine this would be the
same for FlexJS. There are certainly things that could speed up rendering
further.

But, for it to work it needs metadata. Then, you would write an
FlexJSDocumentImporter class and register the FlexJS components /
definitions that you want to import.

I'll put these classes in the public FC library and, if no one else gets to
it before I do, they can assemble a (alternative) runtime FlexJS editor /
viewer. The alternative is to support a in the browser renderer where the
compiler is not available (client side only) that Om was talking about. It
wouldn't support the AS3 though.

On Fri, Jan 15, 2016 at 9:45 PM, Alex Harui  wrote:

>
>
> On 1/15/16, 8:39 PM, "jude"  wrote:
>
> >Does FlexJS support a reflection like describeType method? Is there Flex
> >like metadata in it?
>
> We haven't implemented that yet.  I was just about to start in on some of
> the framework-related code for some of it.  It is needed to do a more
> Spark-like component set.
>
> -Alex
>
>


FlexJS metadata / reflection

2016-01-15 Thread jude
Does FlexJS support a reflection like describeType method? Is there Flex
like metadata in it?


Re: [FALCONJX][FLEXJS] "as" keyword handling

2016-01-08 Thread jude
I would expect it to keep the same behavior and take a performance hit in
exchange. You can always add the option to "speed up" the JS version by
removing any of the casting methods. Have you tested the difference with it
and without it in JS?


*"...but the Google Closure Compiler implies that you should have
goog.require statements for all dependencies in an output file, and then
complains about circular dependencies if you do."*
It seems like the problem is with the Google Closure Compiler. That sounds
broken to me.

On Fri, Jan 8, 2016 at 12:42 PM, Andy Dufilie 
wrote:

> I understand what you're trying to do, and I want the same things.  The
> greatest thing about FlexJS is that I am able to easily port my large
> project (seven years of development work) with minimal change.  However,
> since my project relies heavily on the exact behavior of every AS language
> feature, I need it to behave exactly the same after cross-compiling, or I
> end up having to do painful runtime debugging of the JS output to find out
> where the cross-compiler changed the behavior of my code.  I'm willing to
> take a performance hit if it means I can get things up and running sooner,
> knowing that I can always go back and optimize the code later and/or play
> with the optimization settings.  I understand that if you make it easy to
> put it back to the default behavior that it's not so bad, but keep in mind
> that new users will expect things to "just work" and may not know about the
> the compiler options or directives.
>
> On Fri, Jan 8, 2016 at 3:20 PM, Alex Harui  wrote:
>
> >
> >
> > On 1/8/16, 12:11 PM, "Josh Tynjala"  wrote:
> >
> > >I should add that I strongly agree with Andy that we shouldn't change
> the
> > >default behavior of the existing forms of casting. That's why I made the
> > >above proposal for a special function that the emitter would know to
> strip
> > >away. It would allow us preserve the existing casting behavior, while
> > >providing a separate option that simply makes the compiler and IDEs
> happy.
> > >It's something additional to learn instead of discovering that what you
> > >already learned is now completely wrong. I think that's safer and less
> > >likely to make people angry and frustrated.
> >
> > I don't feel like I'm changing behavior.  I think I'm trying to implement
> > some compiler optimizations via hinting.  For sure I will make sure there
> > are enough knobs so the compiler doesn't try to optimize at all.  And
> when
> > you set the flag to not remove circular requires, then we'll see how
> folks
> > feel about re-writing their code to deal with it.  I think the feedback
> > we've received so far is that we need to do some of this stuff because
> > some folks don't want to massage their code that much.  The more they
> have
> > to massage, the more likely they are to just port to some other
> > framework/language.
> >
> > -Alex
> >
> >
>


Re: Bug in mxmlc script

2016-01-04 Thread jude
I use FB for browser based apps but I dislike how it overwrites the
template when switching SDK versions. IIRC FB hard codes the template to
"index.template.html". So it always gets overwritten. I think it should
come with a default template file but let you specify your own template
through a compiler argument.



On Mon, Jan 4, 2016 at 8:49 PM, Alex Harui  wrote:

> Well, the compiler could be upgraded to process a template like Flash
> Builder currently does.  I'm curious to know how many folks use Flash
> Builder and/or Ant tasks to process the html templates for SWFs vs
> plugging in some custom thing in their workflow.
>
> But IMO, the main reason to have an option is so folks can save a step in
> getting the SDK and trying it out.
>
> -Alex
>
> On 1/4/16, 7:56 PM, "Josh Tynjala"  wrote:
>
> >I should add that I'm not opposed to adding some kind of optional flag to
> >asjsc that tells it to generate an HTML file similar to how mxmlc does it.
> >That HTML file just doesn't seem especially useful to me, as I consider
> >what it would be like to use asjsc in a real-world project. So I'm trying
> >to get a better understanding of your perspective.
> >
> >- Josh
> >
> >On Mon, Jan 4, 2016 at 7:49 PM, Josh Tynjala 
> >wrote:
> >
> >> Is it actually necessary for the compiler to create some kind of
> >> boilerplate HTML for you? It may be a little useful for quick demos,
> >>I'll
> >> concede, but many real world projects will need highly customized HTML
> >> files. Many need things like analytics, CSS, and other static HTML
> >>content
> >> that isn't purely generated by JavaScript (for SEO and things).
> >>
> >> In fact, the compiler isn't really set up for customizing the HTML that
> >>it
> >> currently generates with mxmlc. You can see it is mostly hard-coded in
> >> JSGoogPublisher.java. It's actually very simple markup. Probably too
> >>simple
> >> to use in production for most people, especially if they want to use
> >>asjsc
> >> and integrate it into the rest of their web development workflow.
> >>
> >> - Josh
> >>
> >> On Mon, Jan 4, 2016 at 5:14 PM, OmPrakash Muppirala
> >>
> >> wrote:
> >>
> >>> On Mon, Jan 4, 2016 at 4:47 PM, Alex Harui  wrote:
> >>>
> >>> > If you diff asjsc vs mxmlc you'll see the difference.
> >>> >
> >>>
> >>> This is the difference I see:
> >>>
> >>> asjsc:   -js-output-type=jsc
> >>> -external-library-path="$SCRIPT_HOME/../libs/js.swc"
> >>> mxmlc: -js-output-type=FLEXJS
> >>> -sdk-js-lib="$FLEX_HOME/frameworks/js/FlexJS/src"
> >>>
> >>>
> >>> So, -js-output-type=FLEXJS instead of jsc should do the trick of
> >>>creating
> >>> the index.html file?
> >>>
> >>>
> >>> > IMO, I wouldn't call a new script mxmlcnpm because others may want an
> >>> auto
> >>> > generated hmtl as well.  Give it a more generic name.
> >>> >
> >>>
> >>> Here are the current use cases:
> >>>
> >>> 1.  Convert AS3 (targeting HTML DOM) to JS -> use asjsc
> >>> 2.  Convert AS3 + MXML (targeting FlexJS) to JS + HTML > use mxmlc
> >>>
> >>> The use case we need to add is
> >>> Convert AS3 (targeting HTML DOM) to JS + HTML
> >>>
> >>> Something like asjshtmlc?  In that case, shouldn't mxmlc be renamed to
> >>> mxmlcjshtmlc as well, for the sake of consistency?
> >>>
> >>> Or am I overthinking this?  What would you suggest?
> >>>
> >>> Thanks,
> >>> Om
> >>>
> >>>
> >>> >
> >>> > -Alex
> >>> >
> >>> > On 1/4/16, 4:28 PM, "omup...@gmail.com on behalf of OmPrakash
> >>> Muppirala"
> >>> >  wrote:
> >>> >
> >>> > >I think I get it.
> >>> > >
> >>> > >I thought that the source code for js.swc was in
> >>> > >$FLEX_HOME/frameworks/js/FlexJS/src.
> >>> > >I guess that is not true?
> >>> > >
> >>> > >The original problem was that asjsc does not create the index.html
> >>> file.
> >>> > >I
> >>> > >was asked to use mxmlc for that.  (Refer to the npm install flexjs
> >>> thread)
> >>> > >
> >>> > >When I used the script in {installed_flexjs}/js/bin/mxmlc, it blew
> >>>up
> >>> > >because it could not find the definitions for HTMLElement,
> >>>SVGElement
> >>> etc.
> >>> > >because they are in js.swc.  I don't think it blew up because of the
> >>> > >missing /frameworks/js/FlexJS/src folder.  Adding the external
> >>>library
> >>> > >path
> >>> > >to js.swc fixed this issue.
> >>> > >
> >>> > >The way I did this was to create a new mxmlcnpm script and add this
> >>> js.swc
> >>> > >library path in that.  Is that okay?
> >>> > >
> >>> > >I guess another question is: what would be the best way to add
> >>>ability
> >>> to
> >>> > >create index.html capability to asjsc?
> >>> > >
> >>> > >Thanks,
> >>> > >Om
> >>> > >
> >>> > >
> >>> > >On Mon, Jan 4, 2016 at 4:16 PM, Alex Harui 
> wrote:
> >>> > >
> >>> > >>
> >>> > >>
> >>> > >> On 1/4/16, 4:09 PM, "omup...@gmail.com on behalf of OmPrakash
> >>> > Muppirala"
> >>> > >>  wrote:
> >>> > >>
> >>> > >> >In the flexjs/js/bin/mxmlc script, I see that we are referencing
> >>> the '
> >>> > >> >*/frameworks/js/FlexJS/src*' folder.
> >>> > >>
> >>> > >> This folder is intended

Re: [FlexJS] No more JS!

2015-12-18 Thread jude
Amazing! Way to go!

On Thu, Dec 17, 2015 at 10:59 PM, OK  wrote:

> Cause of to less FlexJS knowledge I can't estimate the dimension of this
> milestone but it sounds very great ;-)
> Thanks to all of you for this work!
>
> Olaf
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/FlexJS-No-more-JS-tp50667p50699.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: Is there a API for CPU usage of an app?

2015-12-10 Thread jude
Scout is more for developers when you have access to the running instance.
I'm looking for something the customer can use at runtime on a non debug
instance.

I found this mysterious property while I was looking for memory usage in
flash.system.System:

flash.system.System.processCPUUsage();

But I can't find any documentation on it and it returns 0. I think I can
write a pretty efficient app but zero CPU is just wishful thinking.



On Thu, Dec 10, 2015 at 5:46 PM, Jason Taylor  wrote:

> isn't that what Scout is for?  turn on advanced telemetry and pop open
> adobe scout
>
> -Original Message-
> From: Alex Harui [mailto:aha...@adobe.com]
> Sent: Thursday, December 10, 2015 3:49 PM
> To: dev@flex.apache.org
> Subject: Re: Is there a API for CPU usage of an app?
>
> I don't know of any way to get that from Flash.
>
> On 12/10/15, 2:23 PM, "jude"  wrote:
>
> >Is there a API for checking the CPU usage of my AIR app (or Flex)? It's
> >been suggested to check the FPS and see if they drop but that's not
> >what I'm looking for.
> >
> >Background:
> >I was sitting with someone who was using an app I wrote and it was
> >going really slow. It was not a brand new computer. But I wanted to
> >know if it was my app. Because the laptop was in front of me I could
> >open Task Manager
> >(PC) or Activity Monitor (Mac) and check but I'm not always going to
> >have that convenience. So if I'm able to check periodically my app CPU
> >usage and it is hitting 100% or more than a threshold I can, from
> >within the app, check what process is going on or what the activity the
> >user is doing.
>
>


Is there a API for CPU usage of an app?

2015-12-10 Thread jude
Is there a API for checking the CPU usage of my AIR app (or Flex)? It's
been suggested to check the FPS and see if they drop but that's not what
I'm looking for.

Background:
I was sitting with someone who was using an app I wrote and it was going
really slow. It was not a brand new computer. But I wanted to know if it
was my app. Because the laptop was in front of me I could open Task Manager
(PC) or Activity Monitor (Mac) and check but I'm not always going to have
that convenience. So if I'm able to check periodically my app CPU usage and
it is hitting 100% or more than a threshold I can, from within the app,
check what process is going on or what the activity the user is doing.


Re: [DISCUSS] Adopting AS3Commons

2015-12-05 Thread jude
If someone will help me with that I'll do it. What I'm thinking is when you
create a new Flex project you get all of the SWC's by default.

So in this case we have something like this:

[image: Inline image 1]

We need to add the new components set in there, the as3commons in there and
the other packages we have but aren't including. Some of the new Spark
components should be put into the Spark project folders. "But they may not
be perfect!" Put. them. in. People will finally find them for once, then
use them, then we can get some bug reports and fix things as they come up.
PUT THEM IN. It may make one tough release but we'll be working towards a
feature complete spark release and we'll successfully have integrated an
external project (as3commons) into the main project.

On Sat, Dec 5, 2015 at 12:33 AM, OmPrakash Muppirala 
wrote:

> Hey, you committer ;-) You have all the power to drag those components and
> put them in.  I like your idea.
>
> Thanks,
> Om
>
> On Sat, Dec 5, 2015 at 12:27 AM, jude  wrote:
>
> > Since Flex was open sourced it's felt like to me it's stagnated. We had
> all
> > of these new components donated or proposed to be donated proposed to be
> > worked on and I haven't seen any of them. I think it's because it's in
> some
> > white board somewhere. I hate that. Put them in the main branch. Put it
> in.
> > Then we can see them in code completion. Then we can start getting bug
> > reports as their being used.
> >
> > Put as3commons into our.main.branch.utils. If that's org.apache.utils
> then
> > fine. I also figure if someone is upgrading their SDK and we've renamed
> the
> > package then there is no conflict. They can remove the link to
> > as3commons.swc and all the API's will cause errors. Then they just go in
> > and use the new packages.
> >
> >
> > On Fri, Dec 4, 2015 at 1:36 PM, Michael Schmalle <
> > teotigraphix...@gmail.com>
> > wrote:
> >
> > > IIRC most of the projects have some pretty thorough unit tests as well.
> > >
> > > Mike
> > >
> > > On Fri, Dec 4, 2015 at 2:14 PM, jude  wrote:
> > >
> > > > +1 for renaming it. make it part of the main package. that way we
> have
> > to
> > > > commit to it. if we put it off to the side there's more "it's a side
> > > > project. we don't need to maintain it."
> > > >
> > > > On Fri, Dec 4, 2015 at 10:26 AM, Kessler CTR Mark J <
> > > > mark.kessler@usmc.mil> wrote:
> > > >
> > > > > Good point, we should keep it the same then.  However if we do have
> > to
> > > > > reorganize it in the future, we can go over options then.
> > > > >
> > > > > -Mark
> > > > >
> > > > > -Original Message-
> > > > > From: Alex Harui [mailto:aha...@adobe.com]
> > > > > Sent: Friday, December 04, 2015 10:52 AM
> > > > > To: dev@flex.apache.org
> > > > > Subject: Re: [DISCUSS] Adopting AS3Commons
> > > > >
> > > > >
> > > > > I'd either leave it as is:  org.as3commons
> > > > > Or add apache: org.apache.as3commons
> > > > > Or add apache.flex: org.apache.flex.as3commons
> > > > > Or hint at Apache Commons: org.apache.commons.as3
> > > > >
> > > > > There is backward compatibility to be considered, so if we rename
> the
> > > > > packages folks would have to change their source code to use it, so
> > I'd
> > > > > probably lean towards leaving it as is.
> > > > >
> > > > > -Alex
> > > > >
> > > > >
> > > >
> > >
> >
>


Re: [DISCUSS] Adopting AS3Commons

2015-12-05 Thread jude
Since Flex was open sourced it's felt like to me it's stagnated. We had all
of these new components donated or proposed to be donated proposed to be
worked on and I haven't seen any of them. I think it's because it's in some
white board somewhere. I hate that. Put them in the main branch. Put it in.
Then we can see them in code completion. Then we can start getting bug
reports as their being used.

Put as3commons into our.main.branch.utils. If that's org.apache.utils then
fine. I also figure if someone is upgrading their SDK and we've renamed the
package then there is no conflict. They can remove the link to
as3commons.swc and all the API's will cause errors. Then they just go in
and use the new packages.


On Fri, Dec 4, 2015 at 1:36 PM, Michael Schmalle 
wrote:

> IIRC most of the projects have some pretty thorough unit tests as well.
>
> Mike
>
> On Fri, Dec 4, 2015 at 2:14 PM, jude  wrote:
>
> > +1 for renaming it. make it part of the main package. that way we have to
> > commit to it. if we put it off to the side there's more "it's a side
> > project. we don't need to maintain it."
> >
> > On Fri, Dec 4, 2015 at 10:26 AM, Kessler CTR Mark J <
> > mark.kessler@usmc.mil> wrote:
> >
> > > Good point, we should keep it the same then.  However if we do have to
> > > reorganize it in the future, we can go over options then.
> > >
> > > -Mark
> > >
> > > -Original Message-
> > > From: Alex Harui [mailto:aha...@adobe.com]
> > > Sent: Friday, December 04, 2015 10:52 AM
> > > To: dev@flex.apache.org
> > > Subject: Re: [DISCUSS] Adopting AS3Commons
> > >
> > >
> > > I'd either leave it as is:  org.as3commons
> > > Or add apache: org.apache.as3commons
> > > Or add apache.flex: org.apache.flex.as3commons
> > > Or hint at Apache Commons: org.apache.commons.as3
> > >
> > > There is backward compatibility to be considered, so if we rename the
> > > packages folks would have to change their source code to use it, so I'd
> > > probably lean towards leaving it as is.
> > >
> > > -Alex
> > >
> > >
> >
>


Re: [DISCUSS] Adopting AS3Commons

2015-12-04 Thread jude
+1 for renaming it. make it part of the main package. that way we have to
commit to it. if we put it off to the side there's more "it's a side
project. we don't need to maintain it."

On Fri, Dec 4, 2015 at 10:26 AM, Kessler CTR Mark J <
mark.kessler@usmc.mil> wrote:

> Good point, we should keep it the same then.  However if we do have to
> reorganize it in the future, we can go over options then.
>
> -Mark
>
> -Original Message-
> From: Alex Harui [mailto:aha...@adobe.com]
> Sent: Friday, December 04, 2015 10:52 AM
> To: dev@flex.apache.org
> Subject: Re: [DISCUSS] Adopting AS3Commons
>
>
> I'd either leave it as is:  org.as3commons
> Or add apache: org.apache.as3commons
> Or add apache.flex: org.apache.flex.as3commons
> Or hint at Apache Commons: org.apache.commons.as3
>
> There is backward compatibility to be considered, so if we rename the
> packages folks would have to change their source code to use it, so I'd
> probably lean towards leaving it as is.
>
> -Alex
>
>


Re: AIR Badge Installer Cookies and SSL

2015-12-03 Thread jude
I looked into that page but don't know where I should use this URL. I think
the Flash badge.swf is making a direct call to the URL. If that's true then
we need a new swf that will call the "https" URL not the "http". I don't
see a similar URL in any of the
https://www.radii8.com/updates/badge_installer.html source.

On Thu, Dec 3, 2015 at 2:07 AM, Marcus Fritze 
wrote:

> This link should work
>
> https://fpdownload.adobe.com/air/browserapi/air.swf
>
> explained here:
>
> https://forums.adobe.com/thread/1098726
>
>
> Greetings
>
> Marcus
>
> Am 03.12.2015 um 10:37 schrieb jude :
>
> A few posts ago I linked to the download page for Radiate. I purchased SSL
> on it a few months ago but when viewing the download page Firefox is
> showing warnings. None of the images were to blame so I checked the
> embedded badge_installer.html
> <https://www.radii8.com/updates/badge_installer.html> iframe and found it
> was causing the issues. I went through everything on the page (because
> obviously I want a secure connection) and changed every URL to use "https://";.
> It still generated an warning so I checked the net connection and found it
> is pulling in "http://airdownload.adobe.com/air/browserapi/air.swf";.
>
>
>
> It also contains a cookie that has my name and other details in clear
> text. I removed all the values:
>
> s_vi=;
> s_pers= s_fid=;
> s_vs=;
> gpv=adobe.com%3Aflashplatform%3Areference%3Aactionscript%3A3%3Aair%3Adesktop%3Aurlfilepromise;
>
> s_nr=;;
> ADMS_ID=;
> UID=;
> AMCV_@AdobeOrg=;
> mbox=session#1234#PC#1234#1234;
> s_fid=;
> dtLatC=-la;
> dtPC=-;
> SCREENNAME=Full Name was here;
> s_cc=;
> dtCookie=;
> FLASHPLAYER_AB=live;
> AIR_AB=live
> DNT
> 1
>
> The page is here, https://www.radii8.com/updates/badge_installer.html.
> You can view source. I'm sure this is just analytics but the fact that my
> full name, my location, my pc id and other unknown information was sent in
> clear text over an unsecured "http" network call is a major issue in my
> book. Is there anyway I can fix this? First make the connection secure, and
> second, remove or limit the tracking cookies?
>
> NOTE: In addition this file was not available over https, "
> http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab";.
> It throws a 404.
> PS If you had wanted to try Radiate and don't want to use the badge
> installer there are direct links to the files on the download page.
>
>
>
>


Re: FlexJS Usergroup Talk Request for Slides and Summary

2015-12-03 Thread jude
Lol great thanks. :)

On Thu, Dec 3, 2015 at 1:11 AM, OmPrakash Muppirala 
wrote:

> Here are the slides for a talk I did in Oct 2014:
> http://www.slideshare.net/bigosmallm/flexjs-an-introduction
> Here are slides from a more recent one - Oct 2015:
> http://www.slideshare.net/bigosmallm/flexjs-apachecon-2015
>
> They have some overlapping content, but are mostly different.  Please feel
> free to use them as is or create a mashup presentation of your own based on
> both contents.
>
> I don't have rap battle lyrics, but here is a rap battle meme just for you:
> http://i.imgur.com/AyYtoh5.jpg Feel free to use this in your presentation
> as well ;-)
>
> Thanks,
> Om
>
> On Thu, Dec 3, 2015 at 12:56 AM, jude  wrote:
>
> > We have a local group in OC that has said we can do a Flex JS talk. They
> > want to know more information. I know a few people here have given talks
> > already.
> >
> > Does someone have an template for FlexJS usergroup summary I can send to
> > the UserGroup manager (I've added an example below)? If you would like to
> > present let me know. If not I'll be glad to present. Of course, I'm still
> > learning it so any existing presentation slides would be great. If this
> > becomes a major thing we'll startup a Flex usergroup.
> >
> > FlexJS Introduction (example)
> > Learn how to create websites and web applications with Flex JS framework.
> > FlexJS is one million times faster than Angular and CreateJS [dis other
> > competitors here].
> > [possibly insert archaic overused rap battle lyrics] ... I don't know how
> > to write these.
> >
>


AIR Badge Installer Cookies and SSL

2015-12-03 Thread jude
A few posts ago I linked to the download page for Radiate. I purchased SSL
on it a few months ago but when viewing the download page Firefox is
showing warnings. None of the images were to blame so I checked the
embedded badge_installer.html
 iframe and found it
was causing the issues. I went through everything on the page (because
obviously I want a secure connection) and changed every URL to use "https://";.
It still generated an warning so I checked the net connection and found it
is pulling in "http://airdownload.adobe.com/air/browserapi/air.swf";.

[image: Inline image 1]

It also contains a cookie that has my name and other details in clear text.
I removed all the values:

s_vi=;
s_pers= s_fid=;
s_vs=;
gpv=adobe.com%3Aflashplatform%3Areference%3Aactionscript%3A3%3Aair%3Adesktop%3Aurlfilepromise;

s_nr=;;
ADMS_ID=;
UID=;
AMCV_@AdobeOrg=;
mbox=session#1234#PC#1234#1234;
s_fid=;
dtLatC=-la;
dtPC=-;
SCREENNAME=Full Name was here;
s_cc=;
dtCookie=;
FLASHPLAYER_AB=live;
AIR_AB=live
DNT
1

The page is here, https://www.radii8.com/updates/badge_installer.html. You
can view source. I'm sure this is just analytics but the fact that my full
name, my location, my pc id and other unknown information was sent in clear
text over an unsecured "http" network call is a major issue in my book. Is
there anyway I can fix this? First make the connection secure, and second,
remove or limit the tracking cookies?

NOTE: In addition this file was not available over https, "
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab";. It
throws a 404.
PS If you had wanted to try Radiate and don't want to use the badge
installer there are direct links to the files on the download page.


Re: Node.js support

2015-12-03 Thread jude
Sorry to interject but how do I get a link to this thread? I've seen them
in footers before but not this one.

On Wed, Dec 2, 2015 at 3:29 PM, Josh Tynjala  wrote:

> Got it. So if I were trying to hide a require() call, @flexjsignorecoercion
> could be used in my code without requiring users to do anything. I think I
> may be able to work with that. I'll play around with it, when I have a
> moment.
>
> - Josh
>
> On Wed, Dec 2, 2015 at 3:10 PM, Alex Harui  wrote:
>
> > Currently it works at the method's ASDoc, not at the class level.
> >
> > Here's an excerpt:
> >
> >
> > /**
> >  * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
> >  * @flexjsignorecoercion HTMLBodyElement
> >  */
> > COMPILE::JS
> > override public function start():void
> > {
> > var body:HTMLBodyElement;
> >
> > // For createjs, the application is the same as the canvas
> > // and it provides convenient access to the stage.
> >
> > element = document.createElement('canvas') as
> > WrappedHTMLElement;
> > element.id = 'flexjsCanvas';
> > element.width = 700;
> > element.height = 500;
> >
> > body = document.getElementsByTagName('body')[0] as
> > HTMLBodyElement;
> > body.appendChild(this.element);
> >
> > ...
> >
> >
> >
> >
> >
> > On 12/2/15, 3:07 PM, "Josh Tynjala"  wrote:
> >
> > >Interesting... I didn't know about that. How would @flexjsignorecoercion
> > >be
> > >used? In the asdocs for a class, like this?
> > >
> > >/**
> > > * @flexjsignorecoercion
> > > */
> > >public class MyClass {}
> > >
> > >If I'm understanding your correctly, when using this tag, the JS output
> > >would not pass the value to Language.as()?
> > >
> > >//as
> > >var test = something as MyClass;
> > >
> > >//js
> > >var test = something; //instead of Language.as(something)
> > >
> > >If that's how it works, I think it might be good enough for my needs.
> > >
> > >- Josh
> > >
> > >
> > >On Wed, Dec 2, 2015 at 2:51 PM, Alex Harui  wrote:
> > >
> > >>
> > >>
> > >> On 12/2/15, 2:37 PM, "Josh Tynjala"  wrote:
> > >>
> > >> >Oh, I see. I didn't realize that you were thinking that users would
> > >>import
> > >> >something and also manually call require(). In that case, yes, you
> > >>could
> > >> >still potentially have proper type checking.
> > >> >
> > >> >I like the idea of using some kind of wrapper class to hide the
> > >>require()
> > >> >call. It's kind of messy to both import and call require(), so I
> really
> > >> >would prefer to hide one or the other, if possible.
> > >>
> > >> It's up to you or whoever writes this code.  A wrapper adds a layer of
> > >> function calls but does let you hide some ugliness.
> > >>
> > >> >
> > >> >There's one thing that seems like an issue to me, though. Using an as
> > >>cast
> > >> >with require() will probably result in a null result because what is
> > >> >returned by require("fs") doesn't actually extend an FS class (or
> > >> >implement
> > >> >an FS interface).
> > >> >
> > >> >var fs:FS = require("fs") as FS;
> > >>
> > >> We have this problem already.  There is a special ASDoc tag called
> > >> @flexjsignorecoercion that suppresses "as" code in the cross-compiled
> > >> output.  I've considered trying to get the compiler to automatically
> > >> suppress the "as" code for any "as" usage that references a class in
> an
> > >> external-library-path SWC.  That seems like it could fail you in some
> > >> distributed development cases where you have other code that does
> > >>support
> > >> AS in an external-library-path SWC.  We could add file-level
> suppression
> > >> as well, or have a config option that lists certain coercions to
> always
> > >> suppress.  Definitely open to ideas on this, but the fact is, the
> > >>compiler
> > >> will not let you have type-checking without using "as" so you sort of
> > >>have
> > >> to have a scheme to deal with it.
> > >>
> > >> -Alex
> > >>
> > >>
> >
> >
>


FlexJS Usergroup Talk Request for Slides and Summary

2015-12-03 Thread jude
We have a local group in OC that has said we can do a Flex JS talk. They
want to know more information. I know a few people here have given talks
already.

Does someone have an template for FlexJS usergroup summary I can send to
the UserGroup manager (I've added an example below)? If you would like to
present let me know. If not I'll be glad to present. Of course, I'm still
learning it so any existing presentation slides would be great. If this
becomes a major thing we'll startup a Flex usergroup.

FlexJS Introduction (example)
Learn how to create websites and web applications with Flex JS framework.
FlexJS is one million times faster than Angular and CreateJS [dis other
competitors here].
[possibly insert archaic overused rap battle lyrics] ... I don't know how
to write these.


Re: FlexJS Brand Positioning

2015-12-03 Thread jude
Thanks I need to communicate more. I've been updating the blog around twice
a month now but haven't posted updates here.
I was pretty burnt out at the time I had donated the code. I didn't want to
look at it again and I didn't for months. I went back to school because I
didn't have enough debt in my life. Actually, to study graphic design. That
was educational but the school I was going to required me to take 3 non
graphic design classes which left only 1 actual design class to receive
financial aid. Yay for community college! But a long time friend at my
school passed (alcohol poisoning). TMI but I couldn't go into the school
and focus. So that and lack of financial aid (in the US they do not cover
what you need 1/2 to 3/4ths) and I had to drop out. Sorry for over sharing
but not sharing at all has caused more  problems than I care to mention.

I read about the Visual Studio and that's amazing news. IIUC Visual Studio
is not yet on the Mac but they have a new editor called Visual Studio Code,
https://www.visualstudio.com/en-us/products/code-vs.aspx. It's a good
start. I still think the way they are doing it is patch upon patch... but
then again there hasn't been an alternative that that crowd has accepted
yet. I have many thoughts on that I'll save for another time.

I read up on Eclipse plugin integration, bought a book on it and made an
example plugin but that was before I even started Radiate and design view
still existed. It was really tough to try and do layouts with it in Java
after using MXML. It isn't as big a deal now as it was back then. If you
really want to integrate it with Eclipse or local Flex projects email me or
post on the list and I'll do what I can to help. There are some huge
advantages to it integrating with real Flex projects. I've been putting
some placeholders in the code for that use case. There are other priorities
I feel are more important that I have to do first. If that's really
something you want to see happen you'll want to work with updated code. And
if someone really wants to help I'm putting parts in my github you can
modify and I can pull them in. I would love to work on a larger scale but I
don't know how to do that, what people would expect for helping, what
people expect to be open or close sourced, if it should be free etc. It's
takes a lot from my mental real estate.

BTW If people want to help they can try the latest desktop version and give
feedback, https://www.radii8.com/blog/?page_id=799. When you start it it
will check for updates so you can keep up to date that way.

Harbs, there was the spoon project but I don't think they ever raised any
money for development. This is something as a community we really need to
figure out...

On Tue, Dec 1, 2015 at 1:13 AM, OmPrakash Muppirala 
wrote:

> Jude,
>
> Nice work on Radiate so far.  I really hope the commercial version takes
> off!
>
> I read through your rant, all the way to the end.  I probably should have
> posted this earlier, but I spent a long time trying to fit the donated
> Radiate code into an Eclipse plugin.  I have done similar flash content
> based Eclipse plugins in the past and thought I could do something similar
> with Radiate - i.e. try to make Radiate work with Flash Builder.
>
> Unfortunately, I dint (dont) have a lot of time to tinker with these
> projects and kind of dropped that experiment a while ago.  I should have at
> least posted a note about my effort on the dev list.  At least to show that
> there is still interest in your cool design view.  My bad :-(
>
> On your side, periodic updates (which you have started doing of late) on
> the dev mailing list would be useful.  Something along the lines of "I've
> added these new features, can someone please try it out and post
> feedback".  In my experience, sending these emails out are very useful to
> have the code tested and also to get the attention of potential
> contributors.
>
> I am still hoping to pick up my Radiate-as-Eclipse-plugin experiment soon.
> I am also considering the recently open sourced Visual Studio as a
> potential target to plug in Radiate [1]
>
> I really hope others join you in your effort to build a great visual design
> tool for Flex and FlexJS.
>
> Thanks,
> Om
>
> [1]
> https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx
>
> On Tue, Dec 1, 2015 at 12:35 AM, jude  wrote:
>
> > BTW I do plan to help on Flex JS when the time is right. That is when
> it's
> > more stable, when it has a few more design and development features to
> it.
> >
> > In Radiate I have Import and Export transpilers. For MXML it's been easy
> to
> > import and export (sortof). For HTML export it's been hell and the bain
> of
> > my exist

Re: FlexJS Brand Positioning

2015-12-02 Thread jude
This post bounced for me because of the image attachments. So I'm not sure
if the original message made it through. But here's the email from
yesterday:

Oh and I meant to post these images (below). Most of you won't care because
you can write MXML UI faster than in a GUI but for the designers in us and
your designer friends that ask you to build them a website for the fiftieth
time please send them to this project.

And the main thing I hear from hard core developers about the FB designer
was it sucked. Well, yeah, we all knew it needed work and wasn't getting
any attention or improvements. But a lot of our software sucks too if we
don't work at it. If we were able to dedicate time and energy to it it
would be a different story. So rant over. Today was a bad day so I'm
venting I don't care.

Here are the screenshots:
http://imgur.com/2y3PVW3
http://i.imgur.com/booD25Z.png
http://imgur.com/CivASZL




On Tue, Dec 1, 2015 at 12:35 AM, jude  wrote:

> BTW I do plan to help on Flex JS when the time is right. That is when it's
> more stable, when it has a few more design and development features to it.
>
> In Radiate I have Import and Export transpilers. For MXML it's been easy
> to import and export (sortof). For HTML export it's been hell and the bain
> of my existence. For Android XML markup it's as easy as MXML.
>
> With FlexJS it shouldn't be too much harder to generate FlexJS compatible
> MXML than regular MXML export. FYI Radiate exports markup layouts in the
> language of your choice from the design view. Each component on the stage
> has an associated component descriptor object that has properties, styles,
> events and a reference to the instance. Using this information you can
> export to whatever language you like.
>
> Relatively recently, I switched to working on a desktop "IDE" rather than
> the web "design view". mainly because no one wants to work in a browser.
> Well maybe but the numbers weren't there and people would ask for features
> that weren't possible in a browser. So I created a desktop version in a few
> days, yay for AIR cross-platform, and just for kicks enabled AceEditor
> <https://github.com/monkeypunch3/flexcapacitor/blob/master/MainLibrary/src/com/flexcapacitor/controls/AceEditor.as>
> which I tried to integrate in the past but wouldn't work with Flash. The
> new version worked and now it has a real editor <http://ace.c9.io/> in
> it.
>
> So since R8 is running on the desktop and it has a real editor it's
> possible to talk to the compilers and get error reporting and warnings. I
> don't know how to do code completion but AceEditor has a code completion
> API. As you type you can pass JSON objects of possible autocomplete words.
> I know how to do the examples but I don't know how to do it with FlexJS,
> Flex, etc. CSS and HTML have code completion out of the box.
>
> Anyway, whatever Josh, Alex, Harbs, et all do not do I hope to do. I plan
> to add some support for FlexJS code generation (and possibly compiler
> integration). Create new projects, edit them and compile them. Again, I
> don't know how to do code completion with AS3, Flex, FlexJS, etc.
>
> BTW I am open sourcing parts of it as I go such as the importers and
> exporters, new components and other classes. So if you don't like how I
> export the MXML or HTML you can go to FlexCapacitor,
> https://github.com/monkeypunch3/flexcapacitor, make some changes and then
> submit a pull request.
>
> Do not read this next part unless you want to hear me ranting and
> complaining. But because it's unclear to some people I'm mentioning this
> project I'm going to clarify some things. I donated the radiate code more
> than a year ago to apache. There was a huge amount of overhead and legal
> bureaucracy to accomplish it. I thought people would want it but there was
> resistance. "Was it good enough? Do we want it? Does it fit at apache" - to
> me I was almost felt like saying saying, "f*@0 you guys" I made this for
> you as a gift and you don't know if you want it?
>  I worked on the project in my free time for years and couldn't believe
> what I was hearing. It was not a good month. A few people supported me
> donating it and I thought the Flex community might care about having a
> design view again at some point in the future. Since it was donated I
> didn't hear anyone working on it or any interest in taking it farther. Not
> on this list. In my personal email a few people were happy to see something
> but didn't have the time or resources to help. I wasn't too upset because
> to be honest parts of it were shit but those parts had to be written
> quickly so th

Re: FlexJS Brand Positioning

2015-12-01 Thread jude
her ones are getting resources, popularity in the biased
asshole media. The company that shall not be named was horrible and still
is horrible at marketing. I made a list and they are the number one worst
company for marketing. So my point is we have to change or get better at
this. If the media attacks it rip these assholes apart. IE defend it with a
vengeance.

Sorry rant over. If legal gets in the way F* them too. Justin, keep
watching our back but if all the legal is prevent releases or progress FUCK
IT. Just get shit out. ok rant really over now.


On Mon, Nov 30, 2015 at 4:32 PM, jude  wrote:

> I saw this on Twitter, ""Introducing NextGen ActionScript" via @
> *joshtynjala* <https://twitter.com/joshtynjala> => http://
> joshblog.net/2015/introducing-nextgen-actionscript/ …
> <https://t.co/AnMp1Vw7p7>"
>
> Not to be nitpicky but I think it's misleading. I'm stoked about the new
> website and tutorials. In fact everything, but when I read, "NextGen
> ActionScript" I thought of the NextGen AS3 project that Adobe started and
> then abandoned. Knowing that it wasn't the Adobe project but knowing what
> you've been working on I immediately did believe AS3 was going to be
> getting new features. I didn't want to get my hopes up that it was an AS3.5
> or AS4 type of project but after reading the blog post I was still
> disappointed even with all of the good news in it.
>
> To me the title is misleading and other AS3 devs may respond the same way
> when they read it. While we are trying to announce the good news about F-JS
> we might want to make clearer the distinction. BTW If these things are
> planned and or I've misunderstood let me know.
>
>
>
> On Sun, Nov 29, 2015 at 9:13 AM, Josh Tynjala 
> wrote:
>
>> Thanks for the reminder. I'll get the trademark attribution cleaned up
>> this
>> week.
>>
>> Would it be acceptable to create a specific legal page, linked from the
>> footer, that displays the Apache Flex trademark attribution text? I should
>> probably acknowledge some Adobe trademarks too, just to be safe, so that's
>> going to be a lot to add to the footer. The page you linked seems to imply
>> that's allowed, as long as all trademark attribution is in the same place,
>> but I figured I'd check.
>>
>> - Josh
>> On Nov 29, 2015 2:10 AM, "Justin Mclean"  wrote:
>>
>> > Hi,
>> >
>> > We have to be a little careful here  to not be seen to endorse 3rd
>> parties
>> > from our official site.
>> >
>> > Currently that code is "Copyright 2015 Bowler Hat LLC” and not under any
>> > obvious license, it would be nice if that was made clearer.
>> >
>> > Josh it would also be good if you attribute Apache trademarks correctly
>> > [1] and if you could and link back to the Apache Flex web site. Just
>> adding
>> > a TM to the first mention and  a line in the footer is all that is
>> needed.
>> >
>> > Thanks,
>> > Justin
>> >
>> > 1. http://www.apache.org/foundation/marks/#guidelines
>>
>
>


Re: FlexJS Brand Positioning

2015-11-30 Thread jude
I saw this on Twitter, ""Introducing NextGen ActionScript" via @
*joshtynjala*  => http://
joshblog.net/2015/introducing-nextgen-actionscript/ …
"

Not to be nitpicky but I think it's misleading. I'm stoked about the new
website and tutorials. In fact everything, but when I read, "NextGen
ActionScript" I thought of the NextGen AS3 project that Adobe started and
then abandoned. Knowing that it wasn't the Adobe project but knowing what
you've been working on I immediately did believe AS3 was going to be
getting new features. I didn't want to get my hopes up that it was an AS3.5
or AS4 type of project but after reading the blog post I was still
disappointed even with all of the good news in it.

To me the title is misleading and other AS3 devs may respond the same way
when they read it. While we are trying to announce the good news about F-JS
we might want to make clearer the distinction. BTW If these things are
planned and or I've misunderstood let me know.


On Sun, Nov 29, 2015 at 9:13 AM, Josh Tynjala  wrote:

> Thanks for the reminder. I'll get the trademark attribution cleaned up this
> week.
>
> Would it be acceptable to create a specific legal page, linked from the
> footer, that displays the Apache Flex trademark attribution text? I should
> probably acknowledge some Adobe trademarks too, just to be safe, so that's
> going to be a lot to add to the footer. The page you linked seems to imply
> that's allowed, as long as all trademark attribution is in the same place,
> but I figured I'd check.
>
> - Josh
> On Nov 29, 2015 2:10 AM, "Justin Mclean"  wrote:
>
> > Hi,
> >
> > We have to be a little careful here  to not be seen to endorse 3rd
> parties
> > from our official site.
> >
> > Currently that code is "Copyright 2015 Bowler Hat LLC” and not under any
> > obvious license, it would be nice if that was made clearer.
> >
> > Josh it would also be good if you attribute Apache trademarks correctly
> > [1] and if you could and link back to the Apache Flex web site. Just
> adding
> > a TM to the first mention and  a line in the footer is all that is
> needed.
> >
> > Thanks,
> > Justin
> >
> > 1. http://www.apache.org/foundation/marks/#guidelines
>


Re: [FLEXJS] TextLayout (was Re: Debugging (was [DISCUSS] Release Apache FlexJS 0.5.0))

2015-11-18 Thread jude
BTW one benefit of SVG is that it has a shadow dom. That means it is
shielded from tampering unwanted CSS styling. This is one of the problems
web devs face using web components. So if you have a web component,
"MyButton" and it has it's using the regular DOM using div, img and spans
to make the button, all that markup is affected by CSS selectors and
inheriting styles. When a shadow dom is enabled it tells the browser to not
apply any CSS to it's content. The HTML5 video player uses shadow dom. If
you add it to a page none of your CSS changes the look or feel of the
buttons, slider, and so on. Browser manufacturers have agreed to expose
this feature to web developers which is great but it will be years before
it can be used solely. SVG has had shadow dom for almost ten years. Anyway,
food for thought.

On Sat, Nov 7, 2015 at 12:27 PM, Harbs  wrote:

> BTW, another data point is that FOP implemented the KP algorithm. I don’t
> know how practical it would be to adapt that code, but it’s an Apache
> project, so licensing should be a non-issue.
>
> On Nov 7, 2015, at 10:00 PM, Harbs  wrote:
>
> >
> > On Nov 6, 2015, at 8:55 PM, Alex Harui  wrote:
> >
> >> That was an awesome list!  Thanks.  Just curious, can text layout end up
> >> affecting more than two lines back?
> >
> > Yes. Assuming we’re dealing with paragraph composition, text anywhere in
> the paragraph can effect the entire line breaking sequence. The line breaks
> are determined by different penalties and glue. A single line can cause all
> the other lines to break differently.
> > There’s lots of good links on the algorithm on the wikipedia page I
> linked to earlier. Bram Stein did an implementation of the algorithm in
> Javascript as well.[1] What’s interesting on his page is that he has a
> comparison between default browser rendering and using the algorithm.
> >
> >> I still think it boils down to rectangles on a path but the path may
> not be a straight horizontal line or always going left-to-right, and you
> sometimes have to go back a bit.
> >
> > Yes. That’s true. It’s rectangles on a path, but I would not call it
> simple… ;-)
> >
> > [1]https://github.com/bramstein/typeset/
>
>


Re: FlexJS - unable to open spark.css with falcon compiler

2015-11-11 Thread jude
Suggestion: let's show those by default and add "dev builds" in parenthesis
next to the name.

On Wednesday, November 11, 2015, Alex Harui  wrote:

> And to use the Apache Flex SDK Installer, run the installer, right-click
> and choose “Show Dev Builds” and the list of versions should now include
> Apache FlexJS 0.5.0 RC1
>
> Thanks,
> -Alex
>
> On 11/11/15, 7:22 AM, "Alex Harui" >
> wrote:
>
> >
> >
> >On 11/11/15, 12:55 AM, "Buranello Alan"  > wrote:
> >
> >>Hello I wanted to know why when I launch the falcon compiler appears
> >>on the console eclipse :
> >>C : \ Development \ search \ Luna \ defaults
> >>Error : unable to open ' ...\apache - flexJS - 0.0.2 \ frameworks \
> >>themes \ Spark \ spark.css ' .
> >>defaults (line : -1 )
> >>I'm using version 0.0.2 flexjs with Flash Builder 4.7 and eclipse the
> >>moon , then I wanted to know how do i compile and run the test
> >>application?  Thanks
> >
> >BTW, you can try upgrading to the 0.5.0 RC1.  It should be an official
> >release soon.
> >
> >The release candidate can be found here;
> >https://dist.apache.org/repos/dist/dev/flex/flexjs/0.5.0/rc1/
> >
> >-Alex
> >
>
>


Re: [DISCUSS] Release Apache FlexJS 0.5.0

2015-11-06 Thread jude
I said this in another thread but since you asked I would say this would be
the perfect workflow for me (for both Flex and FlexJS):

1. Provide URL to source on Github (the project would have to be on github
obviously)
2. I create a local repository from that
3. I open FB and import a default *existing project* that is in the local
repository*
   -- in my project i add a spark Button
   -- I then open spark.Button.as and make changes
4. I compile the project and run it. I see the changes immediately
5. I commit those changes locally and push them up to the main branch to be
accepted or rejected.

*No environment variables to setup, no projects to setup, etc. It should be
bog standard 2 step process: import repo locally, begin work.

I put a lot of work in one of my AS3 / Flex libraries and it bothers me
that that work is not in the Flex SDK. It may not be as high quality as
some code out there but that can be fixed by other community members
reviewing it and making it better.

We have AS3corelib, tons of AS3 libraries and components on github and
google code and maybe not all of them, but a majority of them would give
the Flex SDK an amazing API to do just about anything. And I believe if
they were in the main repository they would be getting more use and
improved upon daily.

On Fri, Nov 6, 2015 at 9:52 AM, Alex Harui  wrote:

> Let me see if I can summarize these various “simplify the build threads
> here”.
>
> For me, I have to go by what I read on our mailing lists.  Maybe there is
> some silent faction waiting for simpler builds, but I am going to reward
> those who speak up by trying to work on their issues.  It doesn’t seem
> right to tell someone who reports a bug that it will be several weeks
> before I can fix it because I am worried about attracting people who we
> don’t know exists.  Go back through the archives.  I rarely see new
> potential committers complaining about how to get started writing FlexJS
> code, especially after the recent changes I made to try to make that
> simpler which was in response to the last flurry of “simplify the build”
> emails from several of our current committers.  Strangely, when I
> completed that work and asked folks to test it, I got no responses.  For
> example, I didn’t see any responses from folks who could be in the silent
> faction saying that it made it better, so that’s why I’m just not sure how
> important it is to make it simpler than it is now.
>
> Harbs had issues getting started and IIRC, mostly it was environment
> variables so maybe all of these emails boils down to the need to try to
> reduce the reliance on environment variables.  I’m definitely open to
> spending some of my time on that.
>
> I believe Maven is important, but I do not wish stop working on other
> stuff to learn Maven and do the heavy lifting on it.  I hope Chris will
> stick around to do it and that others can help them.  I will try to help
> with refactoring needed to make Maven work better.  Those changes usually
> help make sure we have the loose-coupling we need between modules.  I’m
> not that interested in refactoring the Flex SDK.   I am interested in the
> notion of slicing off any Flex SDK dependencies in the Falcon code base so
> we can Mavenize FlexJS without dealing with the Flex SDK first.  And I’m
> actually looking forward to seeing the Mavenizing of FlexJS.  Maybe I’ll
> learn more about Maven by watching those commits.
>
> I’m sure in the early days of FlexJS and Falcon, going away for a while
> and coming back probably didn’t work.  But is that still true?  And if so,
> can you just blow away your repos and re-grab flex-asjs and run “ant all”
> and get back up and running?
>
> And for folks reading this who are in the silent faction:  Please speak
> up.  Or write me off-list if there is something you have to say that you
> don’t want to say on these lists.  And tell me/us why you have been
> silent.  Is there something we are doing or should be doing to make it
> easier for you to speak up?
>
> So, my takeaway is that we should fork off two actionable threads.  One
> about eliminating environment variables for Flash/AIR, and the other about
> folder restructuring in flex-asjs to make Mavenizing easier?  Did I miss
> anything?
>
> Meanwhile, I am trying to upgrade the build scripts to fix issues found in
> the FalconJX packages so that we can get releases out faster in the future
> by catching issues sooner.
>
> If you are still having problems with this FlexJS release candidate,
> please provide more detail.
>
> Thanks,
> -Alex
>
> On 11/6/15, 1:08 AM, "Justin Mclean"  wrote:
>
> >HI,
> >
> >> Nobody is saying simpler builds wouldn’t help.  But how much?
> >
> >A lot I think. Developer are unable to contribute if they can’t compile
> >and test their changes.
> >
> >>  More than a more functional DataGrid?  Or a more Spark and/or MX-like
> >>component set
> >> that reduces migration time for your app?  Or being able to write your
> >>JS
> >> using AS?
> >
> >I

Re: WG: Loosing my drive ...

2015-11-06 Thread jude
When I was working on TLF and Flex SDK it took about 3 days to a week to
get the "sources" setup. I documented all the steps in the wiki and have
went back to them ~3 times to get things setup again. It shouldn't be that
hard.

I could download and setup a new Flex SDK binary for Flash Builder easily
enough with the SDK but I still don't know how to contribute into the main
Flex branch. The thought of putting the SDK on GitHub and requesting a
local library seems like clear blue skys compared to the options we have
now. And it may be that I feel like all the legal garbage about binaries
and source and so on on Apache have hindered nearly all our progress. If we
can't get a better setup going for maven or ant (where there are 10
different download locations) let's put it all up on Github and ask for
permission to include what we need (maven may solve this). Or send a
request to notify, "We need this binary and plan to put it up. If this is
not ok reply in the next week." There's too many restrictions to get
anything done. If Apache has too many restrictions for setup then let's
move it.


On Fri, Nov 6, 2015 at 9:14 AM, Alex Harui  wrote:

>
>
> On 11/6/15, 2:06 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
>  wrote:
>
> >I don't think there should be a problem with this.  Unless there are some
> >technical issues with your restructuring proposal, we all should be able
> >to
> >come to a consensus and move ahead.
> >
> >I believe the best time to do this would be - right after the FlexJS 0.5
> >release.
>
> Well, there’s also restructuring going on inside frameworks/projects as we
> do the back port from JS to AS, so I’d prefer that folks pitch in to help
> finish that, then we execute on the restructuring.
>
> But I would like to see a proposal for the restructuring now.  Or did I
> miss it somewhere?
>
> Thanks,
> -Alex
>
>


Re: Loosing my drive ...

2015-11-06 Thread jude
What needs to change? Please list things out here. I started working on a
very small UI that's goal is to help install FlexJS, create new project and
compile that project (and return errors and warnings). Right now it's just
calling out to the ant build and running different targets on it. I don't
know yet how to set the environment up to make all those targets work. But
we have the same goal to make it easier. I can just as easily work with
maven. Let me know what you need and how to help.

On Thu, Nov 5, 2015 at 10:35 PM, Christofer Dutz 
wrote:

> Moving this thread to public dev list ...
>
> Adding my statement from the initial thread, that from now on I will stop
> contributing to things not built by a sensible build (doesn't have to be
> Maven even if I strongly suggest it).
>
> Chris
>
> -Ursprüngliche Nachricht-
> Von: Alex Harui [mailto:aha...@adobe.com]
> Gesendet: Donnerstag, 5. November 2015 23:07
> An: priv...@flex.apache.org
> Betreff: Re: Loosing my drive ...
>
> Chris, can we re-start or move this thread to dev@?  I don’t think it
> should be private.  It’s ok for the community to know you are frustrated.
> If not, can we at least start a poll on dev@ about Maven?
>
> I have more to say, but I’d rather wait until the thread is public.
>
> Thanks,
> -Alex
>
> On 11/5/15, 1:59 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
>  wrote:
>
> >Chris,
> >
> >I really hope you don't lose drive.  Think of this as a marathon and
> >not a sprint, if that helps :-)
> >
> >Building with maven is a great thing to have for Flex and FlexJS.  The
> >main problem is that lots of folks don't know what Maven is, much less
> >go inside and make it work.  I believe you are one of the very few in
> >the world who can do this.
> >
> >Maybe, you can start by describing the problems you are seeing, explain
> >why they need to be solved and ask others to help out.  It would be
> >beneficial if you a live wiki page where you list a set of issues you
> >are working on and invite people to help out.  Smaller the chunks, the
> >easier it is for others to help out.
> >
> >When I was working on the Android 4.x and iOS7+ skins, it seemed
> >overwhelming at the beginning.  Then I asked people for help and few
> >folks helped out which inspired me to work and really helped out the
> >project as a whole.
> >
> >Here are the wiki pages I had going during that project:
> >https://cwiki.apache.org/confluence/display/FLEX/Progress+info+for+Andr
> >oid
> >+4.x+skins
> >https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=466337
> >47
> >
> >Hope this helps.
> >
> >Thanks for all the great work you have been doing all these years.
> >
> >Regards,
> >Om
> >
> >On Thu, Nov 5, 2015 at 1:40 PM, Harbs  wrote:
> >
> >> Hi Chris,
> >>
> >> We definitely don’t want you to lose your drive. (At least I don’t…)
> >>
> >> Personally, until recently I knew nothing about build processes.
> >> Sure, I’ve run ant from the command line, but I had no clue what I was
> doing.
> >>
> >> To me, Maven is just a word. I got to the point where I have an idea
> >>how  ant works, although I can’t say I’m really proficient at using
> >>it. I know  nothing about Maven besides the fact that you believe very
> >>strongly that  it’s the way to go. I’d be willing to learn if you’re
> >>willing to teach.
> >>
> >> I do agree with you that the build process is pretty complex (or at
> >>least  it feels that way), but I don’t know if that’s by necessity or
> >>not. To me  it seems like a mess of ant scripts dependent on each
> >>other where the  dependencies are very hard to follow. Maybe even a
> >>document which spells  out the dependencies and the order of them (if
> >>the order matters) would be  helpful.
> >>
> >> On Nov 5, 2015, at 11:31 PM, Christofer Dutz
> >> 
> >> wrote:
> >>
> >> > Taking this to another thread ...
> >> >
> >> > The problem is that for the last 3 or 4 years I have done nothing
> >> > else
> >> than clean up behind others. I want to create great things, but all I
> >>do  all the time is clean up. Why? Cause none else seems to care and
> >>if I don't  do it none will. But I'm dramatically loosing my drive.
> >>Especially if I  motivate myself to get things done and then I have to
> >>wait till that drive  goes away due to politics, legal discussions,
> >>simple understanding issues  or other restraints. Other people seem to
> >>have similar issues, but I can't  tell cause I have stopped reading
> >>the FlexJS and Falcon release threads a  while ago as they only seemed
> >>to contain people having problems.
> >> >
> >> > With Maven, no matter what project I have come across, all you
> >> > needed
> >>to
> >> do is, checkout and run "mvn clean install" ... no matter what
> >>project, it  just works and I can concentrate on what I want to do ...
> >>cause it's  definitely not me wanting to be the caretaker of a build
> >>someone puked into  the repository (I am not talking about the Flex
> >>build being build-puke,  i

Re: [DISCUSS] Release Apache FlexJS 0.5.0

2015-11-05 Thread jude
Yep, that's the plan. I'm still trying to catch up on what web developers
are doing these days and I haven't heard IDE's come up much (anyone wishing
to share I would appreciate it). It seems like people are using code
editors like Brackets and vim. There are some tools that run preprocessing
or post processing on CSS, others that minify JS, others that do other
stuff. Some people have terminal open watching a directory to run these
things. I wish I could tell you more. So, to me it would be nice to create
the Flex JS project directory, then have a button to compile or watch the
project. Maybe a launch button or something.

By contrast, if we were writing HTML you would edit the page, cmd + s and
then refresh in the browser. With FlexJS we have edit, save, compile,
refresh. There's that one extra step. With a lightweight FlexJS app we
could compile on a different thread in the background and return errors and
warnings. They could still use the same workflow. It wouldn't be much but
something someone can use to get started.

People would use their own editors. I'm not sure if I mentioned it but
there is a wrapper class
<https://github.com/monkeypunch3/flexcapacitor/blob/master/MainLibrary/src/com/flexcapacitor/controls/AceEditor.as>
for the Ace editor <http://ace.c9.io/>. You can embed that in your AIR
apps. There is also a web version. We could use that for view source. Check
it out. There's a lot you can do with it. It's possible to support AS3 and
MXML code completion but someone has to write the language files for it or
at least hook into the code completion extension points dynamically. I
looked into it briefly and it was over my head. FYI I haven't supported the
full Ace API but it's getting there. It was half, now it's about 3/4. It's
not hard to add more just other priorities. There's an example project that
shows how to use it. I might be able to post it here if we can post zips.
For now, I would be focusing on just making a few buttons create, compile
and launch projects (maybe also install).

I'm glad to hear the Apache Installer takes care of installing FlexJS. Can
someone post a link to the ant build file (that compiles a project) I
should be studying and nightly source for the Apache installer (that has
the ant build that installs FJS)?


On Thu, Nov 5, 2015 at 5:10 PM, Alex Harui  wrote:

> Jude,
>
> Are you envisioning some sort of a mini-IDE?  One button creates a new
> project, another button compiles it, another button cross-compiles it?
> That would be cool.  Especially for folks who don’t have FB or IntelliJ.
> Not sure what to do about code editing and debugging though.
>
> Another related idea that has been in the back of my mind is that we don’t
> have a way to do “Source View” without an IDE.  Of course, you can see the
> output JS in any browser debugger, but I wonder if packaging and viewing
> the MXML and AS for the app would help with adoption.  IMO, the compiler
> should be mostly capable of doing it by adding a new emitter so that’s a
> project for anyone wanting to code in Java, but on the other hand, if a we
> didn’t package up annotated HTML of the MXML and AS and had some sort of
> AIR app that would colorize the source automatically, that would be cool
> too, but you would need some sort of AST to do it, I think.
>
> -Alex
>
> On 11/5/15, 4:52 PM, "Josh Tynjala"  wrote:
>
> >As Alex said, most people who want to try out FlexJS 0.5.0 will simply use
> >the Apache Flex SDK Installer. It'll be super easy for them. In fact, you
> >can already install the nightlies and RC1 using the installer if you
> >right-click and choose Show Dev Builds. Once 0.5.0 is released, the build
> >will show up on the regular list, obviously.
> >
> >People who are having trouble with building are trying to build from the
> >source distribution and/or the Git repository. Things are a little more
> >complicated that way, but the vast majority of people won't need to deal
> >with that type of build.
> >
> >- Josh
> >
> >On Thu, Nov 5, 2015 at 3:21 PM, jude  wrote:
> >
> >> Alex,
> >> I'm going to go ahead and put together an app so that you can install
> >> FlexJS with one click and compile. I want it to be as simple as possible
> >> for anyone (new web developers). I've downloaded the build script and
> >> looked over it but there is some code in it for voting and release. I'm
> >> sure you will be repeating yourself again but here's my requirements:
> >>
> >> • button to validate FlexJS requirements (paths, etc)
> >> • button to set paths for the user
> >> • one button to download FlexJS
> >> • another button to run FlexJS

Re: [DISCUSS] Release Apache FlexJS 0.5.0

2015-11-05 Thread jude
Ok, the reason why I was so confused is because it's "ApproveFlexJS" build.
:P I thought it was the install and run script. Is there a another ant
build file?

On Thu, Nov 5, 2015 at 3:21 PM, jude  wrote:

> Alex,
> I'm going to go ahead and put together an app so that you can install
> FlexJS with one click and compile. I want it to be as simple as possible
> for anyone (new web developers). I've downloaded the build script and
> looked over it but there is some code in it for voting and release. I'm
> sure you will be repeating yourself again but here's my requirements:
>
> • button to validate FlexJS requirements (paths, etc)
> • button to set paths for the user
> • one button to download FlexJS
> • another button to run FlexJS on a project app (without an IDE)
>
> Are there targets to do each of these (or where should I start)? Since
> it's an AIR app I want to run each target independently. BTW I'm bundling
> ant with the app so that the user doesn't have to install anything extra.
> If someone has FB or IntelliJ installed does the install directory need to
> change? I'll put the project on github or post it to the group as soon as
> it's usable.
>
>
> On Thu, Nov 5, 2015 at 6:32 AM, Alex Harui  wrote:
>
>>
>>
>> On 11/5/15, 3:56 AM, "Harbs"  wrote:
>>
>> >I’m a bit confused about the release process.
>> >
>> >I thought we were creating release branches in git for each release to
>> >“freeze” the code, so we do not have a wildly moving target. It does not
>> >seem like that’s happening, so I’m not sure if I just misunderstood.
>>
>> You understand correctly.  I’m cheating right now because it is just more
>> work to set up release branches, and there isn’t a lot of non-critical
>> work going on the develop branch.  Peter and I are working on the back
>> port from JS to AS in a separate branch.  Only important fixes are being
>> pushed to develop.  If we had more folks contributing more often, then I
>> would have used a release branch.
>>
>> Even release branches have historically moved because folks don’t start
>> testing until late in the game and find important bugs.
>>
>> -Alex
>>
>> >
>> >Harbs
>> >
>> >On Nov 3, 2015, at 12:04 AM, Alex Harui  wrote:
>> >
>> >>
>> >>
>> >> On 10/30/15, 3:19 PM, "Justin Mclean" 
>> wrote:
>> >>
>> >>> Hi,
>> >>>
>> >>>> Hmm, I was hoping more PMC folks would respond.  Remember that,
>> >>>> according
>> >>>> to the release process, the PMC folks planning to vote are supposed
>> to
>> >>>> be
>> >>>> running tests now. In theory, the only new test to be run  after we
>> >>>> start
>> >>>> the vote is whether the PGP signature is valid.
>> >>>
>> >>> We’re continually trying to test a moving target which involves a
>> >>>greater
>> >>> time commitment that I currently have available. You’ve never quite
>> >>>sure
>> >>> if the version you testing is going to be the version in the release
>> >>> candidate and unless you very carefully follow all of the commits it’s
>> >>> not obvious what needs to be retested at two different time intervals.
>> >>
>> >> Hmm, pleading is working so maybe I’ll try guilt-tripping.
>> >>
>> >> Yes, the nightly builds are a moving target.  IMO, we all want to grow
>> >>the
>> >> community by attracting customers and hopefully convert a few to be
>> >> committers and the only way I know to do it is to keep making the code
>> >> better and releasing the best release we can in the most efficient
>> >>manner.
>> >> IMO, freezing a branch and not allowing important bug fixes that might
>> >> make a difference in whether someone becomes more active in our
>> >>community
>> >> doesn’t make sense.  Taking the time to build out an RC and post it and
>> >> start a vote thread in order to finally get some testing isn’t very
>> >> efficient either.
>> >>
>> >> Historically, when we produced an RC and immediately started a release
>> >> vote, bugs would be found and we’d cancel the RC and roll out another
>> >>one.
>> >> The goal of the release process we voted in, IMO, was to reduce this
>> >> overhead of posting RCs, opening and closing vot

Re: [DISCUSS] Release Apache FlexJS 0.5.0

2015-11-05 Thread jude
Alex,
I'm going to go ahead and put together an app so that you can install
FlexJS with one click and compile. I want it to be as simple as possible
for anyone (new web developers). I've downloaded the build script and
looked over it but there is some code in it for voting and release. I'm
sure you will be repeating yourself again but here's my requirements:

• button to validate FlexJS requirements (paths, etc)
• button to set paths for the user
• one button to download FlexJS
• another button to run FlexJS on a project app (without an IDE)

Are there targets to do each of these (or where should I start)? Since it's
an AIR app I want to run each target independently. BTW I'm bundling ant
with the app so that the user doesn't have to install anything extra. If
someone has FB or IntelliJ installed does the install directory need to
change? I'll put the project on github or post it to the group as soon as
it's usable.


On Thu, Nov 5, 2015 at 6:32 AM, Alex Harui  wrote:

>
>
> On 11/5/15, 3:56 AM, "Harbs"  wrote:
>
> >I’m a bit confused about the release process.
> >
> >I thought we were creating release branches in git for each release to
> >“freeze” the code, so we do not have a wildly moving target. It does not
> >seem like that’s happening, so I’m not sure if I just misunderstood.
>
> You understand correctly.  I’m cheating right now because it is just more
> work to set up release branches, and there isn’t a lot of non-critical
> work going on the develop branch.  Peter and I are working on the back
> port from JS to AS in a separate branch.  Only important fixes are being
> pushed to develop.  If we had more folks contributing more often, then I
> would have used a release branch.
>
> Even release branches have historically moved because folks don’t start
> testing until late in the game and find important bugs.
>
> -Alex
>
> >
> >Harbs
> >
> >On Nov 3, 2015, at 12:04 AM, Alex Harui  wrote:
> >
> >>
> >>
> >> On 10/30/15, 3:19 PM, "Justin Mclean"  wrote:
> >>
> >>> Hi,
> >>>
>  Hmm, I was hoping more PMC folks would respond.  Remember that,
>  according
>  to the release process, the PMC folks planning to vote are supposed to
>  be
>  running tests now. In theory, the only new test to be run  after we
>  start
>  the vote is whether the PGP signature is valid.
> >>>
> >>> We’re continually trying to test a moving target which involves a
> >>>greater
> >>> time commitment that I currently have available. You’ve never quite
> >>>sure
> >>> if the version you testing is going to be the version in the release
> >>> candidate and unless you very carefully follow all of the commits it’s
> >>> not obvious what needs to be retested at two different time intervals.
> >>
> >> Hmm, pleading is working so maybe I’ll try guilt-tripping.
> >>
> >> Yes, the nightly builds are a moving target.  IMO, we all want to grow
> >>the
> >> community by attracting customers and hopefully convert a few to be
> >> committers and the only way I know to do it is to keep making the code
> >> better and releasing the best release we can in the most efficient
> >>manner.
> >> IMO, freezing a branch and not allowing important bug fixes that might
> >> make a difference in whether someone becomes more active in our
> >>community
> >> doesn’t make sense.  Taking the time to build out an RC and post it and
> >> start a vote thread in order to finally get some testing isn’t very
> >> efficient either.
> >>
> >> Historically, when we produced an RC and immediately started a release
> >> vote, bugs would be found and we’d cancel the RC and roll out another
> >>one.
> >> The goal of the release process we voted in, IMO, was to reduce this
> >> overhead of posting RCs, opening and closing vote threads, etc. so we
> >>can
> >> more efficiently achieve the goal of serving our customers and
> >>attracting
> >> some of them to becoming committers so we can have more people find bugs
> >> sooner by working with the develop branch.
> >>
> >> Recently, I’ve spent several days on improving build and approval
> >>scripts
> >> so testing what is in development takes less time.  In theory, you can
> >>now
> >> start up the approval script which will pull down the bits, answer a few
> >> questions, then go do something else for 5 to 25 minutes and then come
> >> back and poke at it.  I would have rather spent that time on features
> >>for
> >> our customers, but I gambled that this would help us get the release out
> >> sooner.  I’m not sure that paid off.
> >>
> >>
> >> I don’t have any other ideas on how to make it easier for those of you
> >>who
> >> contribute in your spare time to stay up on the commits and bugs.  It
> >> should be ok to take any nightly build and run it through your tests and
> >> report your findings.  Ideally, you would be up to date on the commits
> >>and
> >> bugs and other discussions to know whether what you find is a duplicate
> >>or
> >> not, but at this point, I don’t care if you report a duplic

Re: [FLEXJS] TextLayout (was Re: Debugging (was [DISCUSS] Release Apache FlexJS 0.5.0))

2015-11-05 Thread jude
Alex, I'm proud to say I have worked on TLF with Harbs and so I know a lot
on this subject. Well, that's not true, Harbs did all the work while I
poked and prodded and wrote code he had to rewrite. :P However, in my
opinion it was one of the more difficult frameworks I've seen because of a
lot of new concepts. It was like learning Flex from scratch without any
immediate payoff.

It's doable in my opinion but it will take a major amount of work. I was
reading up on tinytlf and one of the points the author made was that TLF
was written by the InDesign guys. It was made to reproduce print on the
web. At many points it was difficult to extend or modify which is why he
wrote TinyTLF. Having worked with TLF it clicked one day and it is possible
to extend and improve but it would take some work.

The international parts are where it gets difficult for me. I'm familiar
with typography (took classes on it) Ligitures, ascenders, descenders, etc
but it's non en_us that I don't know where you would get training on this.
How did the TLF engineers figure this out? Things like RTL, LTR, hebrew,
japanese vertical. What tests can you run to verify that what you do won't
break it? Mustella?

I think there needs to be an effort to make it work with across browsers.
We need a team on this. I think maybe we should start a #pixelperfecttext
project. It could take a year to fully research and then start to convert
over into the browsers. Maybe Adobe could see value in translating TLF to
HTML5. That's from my perspective. Someone else might be more optimistic.
If we could get the font outlines, do the measurements and then draw out
the fonts on a canvas, webgl layer, svg or something similar we could
probably start there.

I've done some work exporting to SVG and FXG and I was able to export
nearly pixel perfect SVG text but it was simple text formatting.

Like Harbs said, there are:

1. canvas 2d context
2. webgl
3. svg
4. dom

One possible simple hack is writing to the dom and then doing a pixel
comparison. See how much the difference is and then adjusting for that in
css. In one case I found a value that I needed to multiply by to get the
text to line up. I then applied a margin-top:-3px; and the text lined up.
It was something like fontsize*thisvalue but it didn't always work the math
was off a bit. If we talked to the browser manufacturers we might be able
to find out how they are handling positioning text. Maybe they could add a
mode that matches FTE?

In my opinion SVG would be the best but from what I've read there are some
things it doesn't quite support.

On Thursday, November 5, 2015, Harbs  wrote:

> I’m planning on trying to make txtjs work for me. I like the fact that it
> has complete control of font loading, and text effects is an important
> feature for me.
>
> It would be an interesting exercise to compare performance of the various
> rendering methods. txtjs has some performance testing, and it works OK, but
> based on my preliminary testing, performance on old tablet devices starts
> to break down with a lot of text.
>
> Either way, I have a lot of work before me before I really get into the
> nitty gritty of javascript text rendering…
>
> On Nov 5, 2015, at 6:05 PM, Alex Harui  wrote:
>
> > Thanks Harbs.
> >
> > That’s a really great set of information.  It is one reason we are trying
> > not to lock FlexJS to any particular text rendering mechanism.  Can you
> > tell us more about which choice you are going to make for your apps?
> >
> > -Alex
> >
> > On 11/5/15, 5:06 AM, "Harbs"  wrote:
> >
> >> There’s two parts to performance. With Flash TLF, the bottleneck is
> >> really in the TLF code. The FTE composition is pretty low level. With
> JS,
> >> everything is going to be high level. It remains to be seen how the
> >> performance of the FTE part will be in javascript. Of course, there’s
> the
> >> chance that things can be improved in TLF as well.
> >>
> >> Anyway, as far as rendering of text goes, there’s 4 options that I know
> >> of:
> >> 1. Native DOM
> >> 2. DOM manipulation
> >> 3. SVG manipulation
> >> 4. Canvas manipulation
> >>
> >> Each approach has pros and cons.
> >>
> >> 1:
> >> For at least 90% of use cases, native DOM should be fine. By native DOM,
> >> I mean simple HTML markup inside a div using standard CSS for
> formatting.
> >> Some edge cases might need a bit of javascript for browser differences,
> >> but by-and-large, you get good optimized internationalized rendering of
> >> text out the box. This is fine for any text which does not need to be
> >> pixel perfect and some text reflow is okay. This should include: labels,
> >> basic text areas, normal item renderers, etc. AFAIK, standard DOM text
> >> falls short in two/three applications. One is text with effects. While
> >> it’s possible to apply simple effects to DOM text, you do not have the
> >> level that we’re used to in Flesh. To get really fancy, you need Canvas.
> >> The second issue is text which must render in a completely 

Re: Building FlexJS from source

2015-10-22 Thread jude
Off topic but related question: Why aren't we using AS3 and AIR extended
profile to check for env variables and download and setup of FlexJS, etc?

I've issues with ant and it doesn't always seem like a faster approach
after using it for so long. Then again, AIR didn't have extendedDesktop
until relatively recently. FYI extendedDesktop let's you call commands
(command line) from your AIR app. So we could run command line tools from
our Flex app and check for environment variables, download and more. Plus
everyone on this list knows AS3 while ant is a mystery.

The only advantage to ANT is that it's somewhat cross platform (Win/Mac)
and has a some builtin API's.

I even have a native process effect that can help you run native processes,
https://github.com/monkeypunch3/flexcapacitor/blob/master/MainLibrary/src/com/flexcapacitor/effects/nativeProcess/RunProcess.as.


If someone had a list of the processes we're using to setup FlexJS we could
set up a Sequence or Parallel set of effects inside an AIR app to get the
same behavior and events.

My point is that it seems like we are asking a lot to get people to try and
use FlexJS. A simple UI should be doing this (why not the Flex installer?).
I can try and help with writing the effects if someone is willing to tell
me what they need.


On Thu, Oct 22, 2015 at 12:45 AM, Harbs  wrote:

> Thanks for finding that!
>
> It now appears to build fine. The build works even without that extra arg
> value.
>
> OK. Next task is to try and target the developer build of FlexJS and see
> if I can put together an app using that.
>
> On Oct 22, 2015, at 4:27 AM, Alex Harui  wrote:
>
> > Well, I think I was able to reproduce your problem.  Falcon is looking
> for
> > env.properties in a different place and doesn’t use the arg value passéd
> > in.
> >
> > I pushed a change to Falcon to fix that.  So pull changes to flex-falcon
> > before trying again and run “ant all”.  You may need to add the
> >
> >  wrote:
> >
> >> OK. I’m calling it a night.
> >>
> >> Hopefully, I’ll have more success with this tomorrow.
> >>
> >> Harbs
> >>
> >> On Oct 21, 2015, at 11:41 PM, Alex Harui  wrote:
> >>
> >>>
> >>>
> >>> On 10/21/15, 1:37 PM, "Harbs"  wrote:
> >>>
>  No joy.
> 
>  I made this change in that file:
>     output="${FLEXJS_HOME}/frameworks/libs/Core.swc">
>   
>   
>     />
>   
>   
>   
> 
> 
>  I’m really confused about where that is defined. The only place I see
>  it
>  would be in flex-asjs/installer.xml:
> >>>
> >>> I think they are magic tokens in the compiler code.  I will try to
> >>> re-create your scenario.
> >>>
> >>> -Alex
> >>>
> >>
> >
>
>


Re: Apache Squiggly Instructions

2015-04-19 Thread jude
OK. Thanks. I've created a page here
 and
added the necessary disclaimers. I'll made some changes to the original
SpellUIForTLF class files and try to add a few updates here and there. I
may have some patch files or updated classes pending review from the
developers I work with.

On Sun, Apr 19, 2015 at 4:23 PM, Justin Mclean  wrote:

> Hi,
>
> > What would be better is if we can copy and paste that page
> > onto our wiki and then link to that.
>
> I was going to say that unless Adobe donated the content we would be
> unable to do that. But looking at the license at the bottom of the page it
> looks to be MIT licensed and as that is compatible with an Apache licence,
> so we could with a little care do exactly that.
>
> Thanks,
> Justin
>
>


Does Squiggly support Hebrew?

2015-04-19 Thread jude
On the Adobe Squiggly page it says vertical and rtl text is not supported
in this current release (which release?), "Vertical text and right-to-left
(RTL) text flow is not supported in the current release of Squiggly.
(2872937, 2872937)". Does anyone know if this is outdated? Will it support
Hebrew?

In the meantime, I've made some upgrades to the SpellUIForTLF class. Please
keep those programmers out of the system and someone please get me that
Chinese language file I asked for. ...end of line.


Apache Squiggly Instructions

2015-04-19 Thread jude
On the official Apache Squiggly page
 here, there doesn't seem to
be any instructions on it's use. After I groked the interwebs I found a few
tutorials and eventually the official Adobe Labs Squiggly
 page. That
seems to have the most complete well rounded set of information. Can
someone who has web page access add a link to that page for "Further
instructions"? What would be better is if we can copy and paste that page
onto our wiki and then link to that.


Re: Re:Re: Re:Flex Scroller optimization

2015-04-18 Thread jude
Darkstone, I like that you can do everything now with the current scroller
but that requires you to know what to do. The advantage of this is that you
only have to set a property on the scroller to get the benefits. If it is
able to be turned off then it can be added to the class without breaking
anything and people can start using it in their applications. Then you
don't have to use it but if you want to you can set the cacheViewport
property where it makes sense. +1

On Sat, Apr 18, 2015 at 10:03 AM, after24  wrote:

> DarkStone,Here is a Twitter link to the screen capture :
> https://twitter.com/after24_studio/status/589389289059942400
>   1 ->Both
> tests are made under gpu render mode.2 ->The difference between the two
> techniques is significant, on a nexus 7 : - 25/30 fps with
> cacheAsBitmap
> - 60 fps with the blitting approch (and a frame budget around 8-10 ms)
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/Flex-Scroller-optimization-tp46074p46084.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


  1   2   3   >