flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Tynjala <joshtynj...@gmail.com>
Subject Re: [FlexJS]ByteArray and Dictionary
Date Sat, 16 Apr 2016 15:40:08 GMT
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" <flexcapacitor@gmail.com> 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" <harbs.lists@gmail.com> 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 <flexcapacitor@gmail.com> 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" <harbs.lists@gmail.com> 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
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message