Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
greenback
Posts: 528
Registered: ‎10-17-2010
My Device: BlackBerry Z10, DAC

Wrapping ActionScript 3 Code Inside Native Cascades

Cascades can run HTML from within a WebView, can it run AS3 code somehow?

 

Need to make a signature pad, but both html5 and native implementations are laggy and not as responsive as as3 code.

Please use plain text.
Developer
NicoBB
Posts: 38
Registered: ‎05-31-2013
My Device: Z10, Q10

Re: Wrapping ActionScript 3 Code Inside Native Cascades

Running compiled as3 with the fp in a webview is certainly not native.

If you find an answer helpful hit Like. If your problem was solved hit Accept as Solution.

My Apps: SanQuiz
Please use plain text.
Developer
greenback
Posts: 528
Registered: ‎10-17-2010
My Device: BlackBerry Z10, DAC

Re: Wrapping ActionScript 3 Code Inside Native Cascades

How do you draw a smooth line on a screen using Cascades/C++?

Please use plain text.
Developer
NicoBB
Posts: 38
Registered: ‎05-31-2013
My Device: Z10, Q10

Re: Wrapping ActionScript 3 Code Inside Native Cascades

It's better to come up with a new post. I'm sure we got here quite a lot of experience handling graphic libraries.


You have to see what fits your app best. What I would do is capture input with something like:

    Container {
        onTouch: {
            console.log(event.touchType, event.localX, event.localY, event.windowX , event.windowY); //pretty close to as3 style
        }
    }

 And see what you can use to draw and save images from existing resources: web search "canvas cpp" for example, or http://qt-project.org/search?search=canvas

Try first to repost and be specific. It's quite possible that you will find better ways of doing the pad.

If you find an answer helpful hit Like. If your problem was solved hit Accept as Solution.

My Apps: SanQuiz
Please use plain text.