You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by Jim Page <ji...@redmatter.com> on 2020/12/07 14:05:39 UTC

Josh Tynjala's Flexwires ... is there a port to Royale?

I am working on porting a flex app to Royale that makes extensive use of Josh
Tynjala's flexwires library, in particular the WireJack features, which
utilise skins - and it seems (for good reasons) many features it relies upon
are missing from JS royale.

Has anyone ported this, or have any advice on how to proceed? The specific
issues that I am up against are these missing items:

- DragManage.isDragging, DragProxy
- Event.ENTER_FRAME, ADDED_TO_STAGE 
- Border.getStyle
- Border.graphics
- GradientType API
- lineBitmapStyle, beginGradientFill, verticalGradientMatrix, drawRoundRect
- InteractiveObject API

Any advice on any of the above would be most welcome. In the meantime I will
look at if any of these can be implemented in the SDK and if so I will have
a go and create a pull request.

Thanks
Jim 



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

RE: Josh Tynjala's Flexwires ... is there a port to Royale?

Posted by Yishay Weiss <yi...@hotmail.com>.
It’s used internally by the crux framework. The bead is added once at the app level but will affect any element added to dom.

I think this should work:

<Application>
                <beads>JSStageEvents</beads>
<script>
       el = new UIComponent;
        el.addEverntListener(‘addedToStage’, myHandler);
        addElement(el);

       function myHandler(e:Event) {
                     // e.target is el
       }
</script>
<Application>



From: Jim Page<ma...@redmatter.com>
Sent: Tuesday, December 8, 2020 1:55 PM
To: users@royale.apache.org<ma...@royale.apache.org>
Subject: RE: Josh Tynjala's Flexwires ... is there a port to Royale?

Thank you!

AnimationUtil is a great fit.

JSStageEvents: I am not clear how to use this outside of a bead context,
about which I know nothing and is beyond the scope of my initial (emergency)
port of the app. I can't see how the google event code ties in with the
lifecycle of the (virtual) stage. I will shelve it for now and address it if
the rest of the port is looking good.

Unless I am missing the obvious? I couldn't see any code in the examples
which did the kind of thing I was after, but maybe I missed something? If
you think I have please point me in the right direction.

Thanks
Jim



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


RE: Josh Tynjala's Flexwires ... is there a port to Royale?

Posted by Jim Page <ji...@redmatter.com>.
Thank you! 

AnimationUtil is a great fit. 

JSStageEvents: I am not clear how to use this outside of a bead context,
about which I know nothing and is beyond the scope of my initial (emergency)
port of the app. I can't see how the google event code ties in with the
lifecycle of the (virtual) stage. I will shelve it for now and address it if
the rest of the port is looking good.

Unless I am missing the obvious? I couldn't see any code in the examples
which did the kind of thing I was after, but maybe I missed something? If
you think I have please point me in the right direction.

Thanks
Jim



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

RE: Josh Tynjala's Flexwires ... is there a port to Royale?

Posted by Yishay Weiss <yi...@hotmail.com>.
>The ENTER_FRAME and ADDED_TO_STAGE events are both very flash-y so I am not
sure what to do with those, and I have no idea about InteractiveObject

Have a look at AnimationUtil under Core for ENTER_FRAME like behavior, and at JSStageEvents under Crux for addedToStage simulation.


--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


Re: Josh Tynjala's Flexwires ... is there a port to Royale?

Posted by Jim Page <ji...@redmatter.com>.
Thank you Carlos. I have had a pretty good look round for equivalents, but
the flexwires library is very specific and deep, and if at all possible I'd
like to port it. In fact I have already made some good progress.

- Border.getStyle
- Border.graphics
- lineBitmapStyle, beginGradientFill, drawRoundRect

these are solved if the skin class extends UIComponent instead of Border.

- verticalGradientMatrix, 

This is part of the flex UIComponent API, along with
horizontalGradientMatrix. There is an implementation of
 these in ProgrammaticSkin, but commented out ... I have copied these
locally to UICompnent.as in my working copy of the nightly SDK build and
early signs indicate success.

- GradientType API

There are 2 static properties in here. I have created GradientType.as in my
local SDK build and so far so good.

However, since I am not yet in a position to test any of these changes
properly yet, I ciould well have made a complete mess of it ... I guess Josh
is in a good position to say!

So (in theory) I am left with these that I would very much appreciate your
advice on:

- DragManage.isDragging, DragProxy
- Event.ENTER_FRAME, ADDED_TO_STAGE
- InteractiveObject API

I am surprised that Dragging is not fully supported as it seems such a
fundamental part of a graphic UI, so maybe I have not yet found the
appropriate replacement apis. 

The ENTER_FRAME and ADDED_TO_STAGE events are both very flash-y so I am not
sure what to do with those, and I have no idea about InteractiveObject

Thanks
Jim



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: Josh Tynjala's Flexwires ... is there a port to Royale?

Posted by Carlos Rovira <ca...@apache.org>.
Hi Jim,

don't know about flexwires (probably Josh could soon respond if there's a
port or not), but Royale let you use any of the js libraries out there. You
can check if there's some similar one to flexwires and use in Royale.

El lun, 7 dic 2020 a las 15:05, Jim Page (<ji...@redmatter.com>)
escribió:

> I am working on porting a flex app to Royale that makes extensive use of
> Josh
> Tynjala's flexwires library, in particular the WireJack features, which
> utilise skins - and it seems (for good reasons) many features it relies
> upon
> are missing from JS royale.
>
> Has anyone ported this, or have any advice on how to proceed? The specific
> issues that I am up against are these missing items:
>
> - DragManage.isDragging, DragProxy
> - Event.ENTER_FRAME, ADDED_TO_STAGE
> - Border.getStyle
> - Border.graphics
> - GradientType API
> - lineBitmapStyle, beginGradientFill, verticalGradientMatrix, drawRoundRect
> - InteractiveObject API
>
> Any advice on any of the above would be most welcome. In the meantime I
> will
> look at if any of these can be implemented in the SDK and if so I will have
> a go and create a pull request.
>
> Thanks
> Jim
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira