You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Carlos Rovira <ca...@codeoscopic.com> on 2016/10/13 18:55:18 UTC

[FlexJS] How to output

Hi,

I'm trying to output <i> html tag, I think it should be something like
HTMLIElement or something.
Btw, Where I could find the HTMLInputElement, HTMLSpanElement and others?

Thanks

-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es


Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Re: [FlexJS] How to output

Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Alex,

without doubt these are great ideas, since my understanding is that,
although FlexJS should in most cases hide in components the complexity os
HTML/JS internals, many times people would want to declare "low level" JS.
To create those components, I'm not ready enough. I'm still trying to
generate an MDL project, and I have something compiling but not working as
expected in a local branch generated by me.



2016-10-13 23:49 GMT+02:00 Alex Harui <ah...@adobe.com>:

> Josh is right that you currently can't, but I'm not sure the reason is
> about MXML being a higher abstraction layer.
>
> IMO, the issue is about how FalconJX transpiles MXML.  It creates a simple
> data structure and the data interpreter just takes the classes mapped to
> the tag names and tries to instantiate them.  HTMLElement doesn't seem to
> allow direct instantiation.  It seems to want us to call
> document.createElement.  I suppose we could change the interpreter to
> check for HTMLElements and instantiate them differently.
>
> The FlexJS components that MXML currently supports all wrap HTMLElements.
> I would have not wrapped HTMLElement if HTMLElement supported
> instantiation via "new" and more importantly, supported subclassing via
> "new", since MXML essentially creates a subclass of the top tag in an MXML
> file.  If there is a way around these limitations, it would seriously
> change the way we write the FlexJS framework.
>
> So, right now, you could create FlexJS components that wrap each and every
> HTMLElement.  We just haven't bothered for the low-level text-oriented
> elements.  I still claim it will be faster to deal with them as innerHTML.
>  Otherwise a lot of wrapping code will run to establish the same DOM.
> Feel free to create those components if you want to.
>
> I haven't tried it, but hopefully the FlexJS components support
> defaultProperty properly.  Maybe the compiler needs additional smarts
> around defaultProperty so you can do:
>
> <js:MultilineLabel>
>   <h3>Some Header</h3>
>   This is some <i>text</i>.
> </js:MultilineLabel>
>
> And that would map the contents to the html property (it might map to the
> text property today, not sure).
>
> HTH,
> -Alex
>
>
>
> On 10/13/16, 2:22 PM, "Josh Tynjala" <jo...@gmail.com> wrote:
>
> >You can't. Think of MXML as being at a higher abstraction layer. It
> >doesn't
> >know anything about HTML or the Flash display list.
> >
> >- Josh
> >
> >On Thu, Oct 13, 2016 at 2:09 PM, Carlos Rovira <
> >carlos.rovira@codeoscopic.com> wrote:
> >
> >> Thanks for the various responses, many useful.
> >>
> >> One more thing: Can I use HTMLElement in MXML. I'm trying without luck:
> >>
> >> <js:HTMLElement className="xxx" text="yyy"/>
> >>
> >> Thanks
> >>
> >> 2016-10-13 22:25 GMT+02:00 Alex Harui <ah...@adobe.com>:
> >>
> >> > I think we need more context to answer this question.
> >> >
> >> > From MXML, you should be able to put "simple" HTML as the value of
> >> > Label.html, Button.html, TextInput.html and hopefully any other FlexJS
> >> > framework component that displays text.  Essentially, we want all
> >>FlexJS
> >> > UI widgets to work with HTML as well as plain text Strings.  On the
> >>SWF
> >> > side, the HTML support is currently limited by flash.text.TextField.
> >>On
> >> > the JS side, the components should just be setting innerHTML.
> >> >
> >> > If you are writing AS to transpile to low-level JS, then as others
> >> > answered you can create HTMLxxxElements and work with them, or also
> >>just
> >> > set the innerHTML of some element.
> >> >
> >> > I still have dreams of a component set for FlexJS with components
> >>such as
> >> > "I" so you could essentially in-line HTML with the rest of your MXML,
> >>but
> >> > that will be a bunch of work on the SWF-side, and probably not nearly
> >>as
> >> > efficient as havin browser take raw HTML as innerHTML.
> >> >
> >> > HTH,
> >> > -Alex
> >> >
> >> > On 10/13/16, 11:55 AM, "carlos.rovira@gmail.com on behalf of Carlos
> >> > Rovira" <carlos.rovira@gmail.com on behalf of
> >> > carlos.rovira@codeoscopic.com> wrote:
> >> >
> >> > >Hi,
> >> > >
> >> > >I'm trying to output <i> html tag, I think it should be something
> >>like
> >> > >HTMLIElement or something.
> >> > >Btw, Where I could find the HTMLInputElement, HTMLSpanElement and
> >> others?
> >> > >
> >> > >Thanks
> >> > >
> >> > >--
> >> > >
> >> > >Carlos Rovira
> >> > >Director General
> >> > >M: +34 607 22 60 05
> >> > >http://www.codeoscopic.com
> >> > >http://www.avant2.es
> >> > >
> >> > >
> >> > >Este mensaje se dirige exclusivamente a su destinatario y puede
> >>contener
> >> > >información privilegiada o confidencial. Si ha recibido este mensaje
> >>por
> >> > >error, le rogamos que nos lo comunique inmediatamente por esta misma
> >> vía y
> >> > >proceda a su destrucción.
> >> > >
> >> > >De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> >> > >comunicamos
> >> > >que sus datos forman parte de un fichero cuyo responsable es
> >>CODEOSCOPIC
> >> > >S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> >> > >servicio o información solicitados, teniendo usted derecho de acceso,
> >> > >rectificación, cancelación y oposición de sus datos dirigiéndose a
> >> > >nuestras
> >> > >oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
> >>documentación
> >> > >necesaria.
> >> >
> >> >
> >>
> >>
> >> --
> >>
> >> Carlos Rovira
> >> Director General
> >> M: +34 607 22 60 05
> >> http://www.codeoscopic.com
> >> http://www.avant2.es
> >>
> >>
> >> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> >> información privilegiada o confidencial. Si ha recibido este mensaje por
> >> error, le rogamos que nos lo comunique inmediatamente por esta misma
> >>vía y
> >> proceda a su destrucción.
> >>
> >> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> >>comunicamos
> >> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> >> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> >> servicio o información solicitados, teniendo usted derecho de acceso,
> >> rectificación, cancelación y oposición de sus datos dirigiéndose a
> >>nuestras
> >> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> >> necesaria.
> >>
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es


Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Re: [FlexJS] How to output

Posted by Alex Harui <ah...@adobe.com>.
Josh is right that you currently can't, but I'm not sure the reason is
about MXML being a higher abstraction layer.

IMO, the issue is about how FalconJX transpiles MXML.  It creates a simple
data structure and the data interpreter just takes the classes mapped to
the tag names and tries to instantiate them.  HTMLElement doesn't seem to
allow direct instantiation.  It seems to want us to call
document.createElement.  I suppose we could change the interpreter to
check for HTMLElements and instantiate them differently.

The FlexJS components that MXML currently supports all wrap HTMLElements.
I would have not wrapped HTMLElement if HTMLElement supported
instantiation via "new" and more importantly, supported subclassing via
"new", since MXML essentially creates a subclass of the top tag in an MXML
file.  If there is a way around these limitations, it would seriously
change the way we write the FlexJS framework.

So, right now, you could create FlexJS components that wrap each and every
HTMLElement.  We just haven't bothered for the low-level text-oriented
elements.  I still claim it will be faster to deal with them as innerHTML.
 Otherwise a lot of wrapping code will run to establish the same DOM.
Feel free to create those components if you want to.

I haven't tried it, but hopefully the FlexJS components support
defaultProperty properly.  Maybe the compiler needs additional smarts
around defaultProperty so you can do:

<js:MultilineLabel>
  <h3>Some Header</h3>
  This is some <i>text</i>.
</js:MultilineLabel>

And that would map the contents to the html property (it might map to the
text property today, not sure).

HTH,
-Alex



On 10/13/16, 2:22 PM, "Josh Tynjala" <jo...@gmail.com> wrote:

>You can't. Think of MXML as being at a higher abstraction layer. It
>doesn't
>know anything about HTML or the Flash display list.
>
>- Josh
>
>On Thu, Oct 13, 2016 at 2:09 PM, Carlos Rovira <
>carlos.rovira@codeoscopic.com> wrote:
>
>> Thanks for the various responses, many useful.
>>
>> One more thing: Can I use HTMLElement in MXML. I'm trying without luck:
>>
>> <js:HTMLElement className="xxx" text="yyy"/>
>>
>> Thanks
>>
>> 2016-10-13 22:25 GMT+02:00 Alex Harui <ah...@adobe.com>:
>>
>> > I think we need more context to answer this question.
>> >
>> > From MXML, you should be able to put "simple" HTML as the value of
>> > Label.html, Button.html, TextInput.html and hopefully any other FlexJS
>> > framework component that displays text.  Essentially, we want all
>>FlexJS
>> > UI widgets to work with HTML as well as plain text Strings.  On the
>>SWF
>> > side, the HTML support is currently limited by flash.text.TextField.
>>On
>> > the JS side, the components should just be setting innerHTML.
>> >
>> > If you are writing AS to transpile to low-level JS, then as others
>> > answered you can create HTMLxxxElements and work with them, or also
>>just
>> > set the innerHTML of some element.
>> >
>> > I still have dreams of a component set for FlexJS with components
>>such as
>> > "I" so you could essentially in-line HTML with the rest of your MXML,
>>but
>> > that will be a bunch of work on the SWF-side, and probably not nearly
>>as
>> > efficient as havin browser take raw HTML as innerHTML.
>> >
>> > HTH,
>> > -Alex
>> >
>> > On 10/13/16, 11:55 AM, "carlos.rovira@gmail.com on behalf of Carlos
>> > Rovira" <carlos.rovira@gmail.com on behalf of
>> > carlos.rovira@codeoscopic.com> wrote:
>> >
>> > >Hi,
>> > >
>> > >I'm trying to output <i> html tag, I think it should be something
>>like
>> > >HTMLIElement or something.
>> > >Btw, Where I could find the HTMLInputElement, HTMLSpanElement and
>> others?
>> > >
>> > >Thanks
>> > >
>> > >--
>> > >
>> > >Carlos Rovira
>> > >Director General
>> > >M: +34 607 22 60 05
>> > >http://www.codeoscopic.com
>> > >http://www.avant2.es
>> > >
>> > >
>> > >Este mensaje se dirige exclusivamente a su destinatario y puede
>>contener
>> > >información privilegiada o confidencial. Si ha recibido este mensaje
>>por
>> > >error, le rogamos que nos lo comunique inmediatamente por esta misma
>> vía y
>> > >proceda a su destrucción.
>> > >
>> > >De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>> > >comunicamos
>> > >que sus datos forman parte de un fichero cuyo responsable es
>>CODEOSCOPIC
>> > >S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>> > >servicio o información solicitados, teniendo usted derecho de acceso,
>> > >rectificación, cancelación y oposición de sus datos dirigiéndose a
>> > >nuestras
>> > >oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
>>documentación
>> > >necesaria.
>> >
>> >
>>
>>
>> --
>>
>> Carlos Rovira
>> Director General
>> M: +34 607 22 60 05
>> http://www.codeoscopic.com
>> http://www.avant2.es
>>
>>
>> Este mensaje se dirige exclusivamente a su destinatario y puede contener
>> información privilegiada o confidencial. Si ha recibido este mensaje por
>> error, le rogamos que nos lo comunique inmediatamente por esta misma
>>vía y
>> proceda a su destrucción.
>>
>> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>>comunicamos
>> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
>> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>> servicio o información solicitados, teniendo usted derecho de acceso,
>> rectificación, cancelación y oposición de sus datos dirigiéndose a
>>nuestras
>> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
>> necesaria.
>>


Re: [FlexJS] How to output

Posted by Vulcansoft <mi...@vulcansoft.com>.
Fantastic! 

Never thought I’d get excited about anything from Microsoft
again but VSCode is really great, fast and non-intrusive!
Can’t wait to switch.

Christian



> On Oct 14, 2016, at 3:48 AM, Josh Tynjala <jo...@gmail.com> wrote:
> 
> Thanks for the support! I'll try to make it as simple as I can to pull in
> components from other SDKs to use in MXML. Probably just an extra field in
> asconfig.json that takes the framework root. I also want to support MXML
> with the Feathers SDK, so this is definitely a priority!
> 
> - Josh
> 
> On Oct 13, 2016 4:50 PM, "Vulcansoft" <mi...@vulcansoft.com> wrote:
> 
>> 
>> Great! I’ll head over to your patron page now :)
>> 
>> BTW, will this update also support the Flex 4.6 SDK or only the FlexJS SDK?
>> I’m still on 4.6 for one reason: framework caching on the client side.
>> 
>> Christian
>> 
>> 
>> 
>>> On Oct 14, 2016, at 1:14 AM, Josh Tynjala <jo...@gmail.com> wrote:
>>> 
>>> Yes, I do. I've started work on it already! I'll need some time, though.
>> I
>>> can build on top of the ActionScript support that's already there, but
>> MXML
>>> is still handled differently enough by the compiler that I need to do
>> some
>>> extra parsing to figure the right context for everything.
>>> 
>>> You might see an update where ActionScript defined in an <fx:Script>
>>> element is supported first. I think I have a good handle on that one
>>> already.
>>> 
>>> - Josh
>>> 
>>> On Thu, Oct 13, 2016 at 4:02 PM, Vulcansoft <mi...@vulcansoft.com> wrote:
>>> 
>>>> Hi Josh,
>>>> 
>>>> a bit off topic but regarding MXML: do you plan to integrate MXML
>> support
>>>> in
>>>> NextGen Actionscript for VSCode?
>>>> 
>>>> Christian
>>>> 
>>>> 
>>>> 
>>>>> On Oct 13, 2016, at 11:22 PM, Josh Tynjala <jo...@gmail.com>
>>>> wrote:
>>>>> 
>>>>> You can't. Think of MXML as being at a higher abstraction layer. It
>>>> doesn't
>>>>> know anything about HTML or the Flash display list.
>>>>> 
>>>>> - Josh
>>>>> 
>>>>> On Thu, Oct 13, 2016 at 2:09 PM, Carlos Rovira <
>>>>> carlos.rovira@codeoscopic.com> wrote:
>>>>> 
>>>>>> Thanks for the various responses, many useful.
>>>>>> 
>>>>>> One more thing: Can I use HTMLElement in MXML. I'm trying without
>> luck:
>>>>>> 
>>>>>> <js:HTMLElement className="xxx" text="yyy"/>
>>>>>> 
>>>>>> Thanks
>>>>>> 
>>>>>> 2016-10-13 22:25 GMT+02:00 Alex Harui <ah...@adobe.com>:
>>>>>> 
>>>>>>> I think we need more context to answer this question.
>>>>>>> 
>>>>>>> From MXML, you should be able to put "simple" HTML as the value of
>>>>>>> Label.html, Button.html, TextInput.html and hopefully any other
>> FlexJS
>>>>>>> framework component that displays text.  Essentially, we want all
>>>> FlexJS
>>>>>>> UI widgets to work with HTML as well as plain text Strings.  On the
>> SWF
>>>>>>> side, the HTML support is currently limited by flash.text.TextField.
>>>> On
>>>>>>> the JS side, the components should just be setting innerHTML.
>>>>>>> 
>>>>>>> If you are writing AS to transpile to low-level JS, then as others
>>>>>>> answered you can create HTMLxxxElements and work with them, or also
>>>> just
>>>>>>> set the innerHTML of some element.
>>>>>>> 
>>>>>>> I still have dreams of a component set for FlexJS with components
>> such
>>>> as
>>>>>>> "I" so you could essentially in-line HTML with the rest of your MXML,
>>>> but
>>>>>>> that will be a bunch of work on the SWF-side, and probably not nearly
>>>> as
>>>>>>> efficient as havin browser take raw HTML as innerHTML.
>>>>>>> 
>>>>>>> HTH,
>>>>>>> -Alex
>>>>>>> 
>>>>>>> On 10/13/16, 11:55 AM, "carlos.rovira@gmail.com on behalf of Carlos
>>>>>>> Rovira" <carlos.rovira@gmail.com on behalf of
>>>>>>> carlos.rovira@codeoscopic.com> wrote:
>>>>>>> 
>>>>>>>> Hi,
>>>>>>>> 
>>>>>>>> I'm trying to output <i> html tag, I think it should be something
>> like
>>>>>>>> HTMLIElement or something.
>>>>>>>> Btw, Where I could find the HTMLInputElement, HTMLSpanElement and
>>>>>> others?
>>>>>>>> 
>>>>>>>> Thanks
>>>>>>>> 
>>>>>>>> --
>>>>>>>> 
>>>>>>>> Carlos Rovira
>>>>>>>> Director General
>>>>>>>> M: +34 607 22 60 05
>>>>>>>> http://www.codeoscopic.com
>>>>>>>> http://www.avant2.es
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Este mensaje se dirige exclusivamente a su destinatario y puede
>>>> contener
>>>>>>>> información privilegiada o confidencial. Si ha recibido este mensaje
>>>> por
>>>>>>>> error, le rogamos que nos lo comunique inmediatamente por esta misma
>>>>>> vía y
>>>>>>>> proceda a su destrucción.
>>>>>>>> 
>>>>>>>> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>>>>>>>> comunicamos
>>>>>>>> que sus datos forman parte de un fichero cuyo responsable es
>>>> CODEOSCOPIC
>>>>>>>> S.A. La finalidad de dicho tratamiento es facilitar la prestación
>> del
>>>>>>>> servicio o información solicitados, teniendo usted derecho de
>> acceso,
>>>>>>>> rectificación, cancelación y oposición de sus datos dirigiéndose a
>>>>>>>> nuestras
>>>>>>>> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
>>>> documentación
>>>>>>>> necesaria.
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> 
>>>>>> Carlos Rovira
>>>>>> Director General
>>>>>> M: +34 607 22 60 05
>>>>>> http://www.codeoscopic.com
>>>>>> http://www.avant2.es
>>>>>> 
>>>>>> 
>>>>>> Este mensaje se dirige exclusivamente a su destinatario y puede
>> contener
>>>>>> información privilegiada o confidencial. Si ha recibido este mensaje
>> por
>>>>>> error, le rogamos que nos lo comunique inmediatamente por esta misma
>>>> vía y
>>>>>> proceda a su destrucción.
>>>>>> 
>>>>>> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>>>> comunicamos
>>>>>> que sus datos forman parte de un fichero cuyo responsable es
>> CODEOSCOPIC
>>>>>> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>>>>>> servicio o información solicitados, teniendo usted derecho de acceso,
>>>>>> rectificación, cancelación y oposición de sus datos dirigiéndose a
>>>> nuestras
>>>>>> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
>> documentación
>>>>>> necesaria.
>>>>>> 
>>>> 
>>>> 
>> 
>> 


Re: [FlexJS] How to output

Posted by Josh Tynjala <jo...@gmail.com>.
Thanks for the support! I'll try to make it as simple as I can to pull in
components from other SDKs to use in MXML. Probably just an extra field in
asconfig.json that takes the framework root. I also want to support MXML
with the Feathers SDK, so this is definitely a priority!

- Josh

On Oct 13, 2016 4:50 PM, "Vulcansoft" <mi...@vulcansoft.com> wrote:

>
> Great! I’ll head over to your patron page now :)
>
> BTW, will this update also support the Flex 4.6 SDK or only the FlexJS SDK?
> I’m still on 4.6 for one reason: framework caching on the client side.
>
> Christian
>
>
>
> > On Oct 14, 2016, at 1:14 AM, Josh Tynjala <jo...@gmail.com> wrote:
> >
> > Yes, I do. I've started work on it already! I'll need some time, though.
> I
> > can build on top of the ActionScript support that's already there, but
> MXML
> > is still handled differently enough by the compiler that I need to do
> some
> > extra parsing to figure the right context for everything.
> >
> > You might see an update where ActionScript defined in an <fx:Script>
> > element is supported first. I think I have a good handle on that one
> > already.
> >
> > - Josh
> >
> > On Thu, Oct 13, 2016 at 4:02 PM, Vulcansoft <mi...@vulcansoft.com> wrote:
> >
> >> Hi Josh,
> >>
> >> a bit off topic but regarding MXML: do you plan to integrate MXML
> support
> >> in
> >> NextGen Actionscript for VSCode?
> >>
> >> Christian
> >>
> >>
> >>
> >>> On Oct 13, 2016, at 11:22 PM, Josh Tynjala <jo...@gmail.com>
> >> wrote:
> >>>
> >>> You can't. Think of MXML as being at a higher abstraction layer. It
> >> doesn't
> >>> know anything about HTML or the Flash display list.
> >>>
> >>> - Josh
> >>>
> >>> On Thu, Oct 13, 2016 at 2:09 PM, Carlos Rovira <
> >>> carlos.rovira@codeoscopic.com> wrote:
> >>>
> >>>> Thanks for the various responses, many useful.
> >>>>
> >>>> One more thing: Can I use HTMLElement in MXML. I'm trying without
> luck:
> >>>>
> >>>> <js:HTMLElement className="xxx" text="yyy"/>
> >>>>
> >>>> Thanks
> >>>>
> >>>> 2016-10-13 22:25 GMT+02:00 Alex Harui <ah...@adobe.com>:
> >>>>
> >>>>> I think we need more context to answer this question.
> >>>>>
> >>>>> From MXML, you should be able to put "simple" HTML as the value of
> >>>>> Label.html, Button.html, TextInput.html and hopefully any other
> FlexJS
> >>>>> framework component that displays text.  Essentially, we want all
> >> FlexJS
> >>>>> UI widgets to work with HTML as well as plain text Strings.  On the
> SWF
> >>>>> side, the HTML support is currently limited by flash.text.TextField.
> >> On
> >>>>> the JS side, the components should just be setting innerHTML.
> >>>>>
> >>>>> If you are writing AS to transpile to low-level JS, then as others
> >>>>> answered you can create HTMLxxxElements and work with them, or also
> >> just
> >>>>> set the innerHTML of some element.
> >>>>>
> >>>>> I still have dreams of a component set for FlexJS with components
> such
> >> as
> >>>>> "I" so you could essentially in-line HTML with the rest of your MXML,
> >> but
> >>>>> that will be a bunch of work on the SWF-side, and probably not nearly
> >> as
> >>>>> efficient as havin browser take raw HTML as innerHTML.
> >>>>>
> >>>>> HTH,
> >>>>> -Alex
> >>>>>
> >>>>> On 10/13/16, 11:55 AM, "carlos.rovira@gmail.com on behalf of Carlos
> >>>>> Rovira" <carlos.rovira@gmail.com on behalf of
> >>>>> carlos.rovira@codeoscopic.com> wrote:
> >>>>>
> >>>>>> Hi,
> >>>>>>
> >>>>>> I'm trying to output <i> html tag, I think it should be something
> like
> >>>>>> HTMLIElement or something.
> >>>>>> Btw, Where I could find the HTMLInputElement, HTMLSpanElement and
> >>>> others?
> >>>>>>
> >>>>>> Thanks
> >>>>>>
> >>>>>> --
> >>>>>>
> >>>>>> Carlos Rovira
> >>>>>> Director General
> >>>>>> M: +34 607 22 60 05
> >>>>>> http://www.codeoscopic.com
> >>>>>> http://www.avant2.es
> >>>>>>
> >>>>>>
> >>>>>> Este mensaje se dirige exclusivamente a su destinatario y puede
> >> contener
> >>>>>> información privilegiada o confidencial. Si ha recibido este mensaje
> >> por
> >>>>>> error, le rogamos que nos lo comunique inmediatamente por esta misma
> >>>> vía y
> >>>>>> proceda a su destrucción.
> >>>>>>
> >>>>>> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> >>>>>> comunicamos
> >>>>>> que sus datos forman parte de un fichero cuyo responsable es
> >> CODEOSCOPIC
> >>>>>> S.A. La finalidad de dicho tratamiento es facilitar la prestación
> del
> >>>>>> servicio o información solicitados, teniendo usted derecho de
> acceso,
> >>>>>> rectificación, cancelación y oposición de sus datos dirigiéndose a
> >>>>>> nuestras
> >>>>>> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
> >> documentación
> >>>>>> necesaria.
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>> --
> >>>>
> >>>> Carlos Rovira
> >>>> Director General
> >>>> M: +34 607 22 60 05
> >>>> http://www.codeoscopic.com
> >>>> http://www.avant2.es
> >>>>
> >>>>
> >>>> Este mensaje se dirige exclusivamente a su destinatario y puede
> contener
> >>>> información privilegiada o confidencial. Si ha recibido este mensaje
> por
> >>>> error, le rogamos que nos lo comunique inmediatamente por esta misma
> >> vía y
> >>>> proceda a su destrucción.
> >>>>
> >>>> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> >> comunicamos
> >>>> que sus datos forman parte de un fichero cuyo responsable es
> CODEOSCOPIC
> >>>> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> >>>> servicio o información solicitados, teniendo usted derecho de acceso,
> >>>> rectificación, cancelación y oposición de sus datos dirigiéndose a
> >> nuestras
> >>>> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
> documentación
> >>>> necesaria.
> >>>>
> >>
> >>
>
>

Re: [FlexJS] How to output

Posted by Vulcansoft <mi...@vulcansoft.com>.
Great! I’ll head over to your patron page now :)

BTW, will this update also support the Flex 4.6 SDK or only the FlexJS SDK?
I’m still on 4.6 for one reason: framework caching on the client side.

Christian



> On Oct 14, 2016, at 1:14 AM, Josh Tynjala <jo...@gmail.com> wrote:
> 
> Yes, I do. I've started work on it already! I'll need some time, though. I
> can build on top of the ActionScript support that's already there, but MXML
> is still handled differently enough by the compiler that I need to do some
> extra parsing to figure the right context for everything.
> 
> You might see an update where ActionScript defined in an <fx:Script>
> element is supported first. I think I have a good handle on that one
> already.
> 
> - Josh
> 
> On Thu, Oct 13, 2016 at 4:02 PM, Vulcansoft <mi...@vulcansoft.com> wrote:
> 
>> Hi Josh,
>> 
>> a bit off topic but regarding MXML: do you plan to integrate MXML support
>> in
>> NextGen Actionscript for VSCode?
>> 
>> Christian
>> 
>> 
>> 
>>> On Oct 13, 2016, at 11:22 PM, Josh Tynjala <jo...@gmail.com>
>> wrote:
>>> 
>>> You can't. Think of MXML as being at a higher abstraction layer. It
>> doesn't
>>> know anything about HTML or the Flash display list.
>>> 
>>> - Josh
>>> 
>>> On Thu, Oct 13, 2016 at 2:09 PM, Carlos Rovira <
>>> carlos.rovira@codeoscopic.com> wrote:
>>> 
>>>> Thanks for the various responses, many useful.
>>>> 
>>>> One more thing: Can I use HTMLElement in MXML. I'm trying without luck:
>>>> 
>>>> <js:HTMLElement className="xxx" text="yyy"/>
>>>> 
>>>> Thanks
>>>> 
>>>> 2016-10-13 22:25 GMT+02:00 Alex Harui <ah...@adobe.com>:
>>>> 
>>>>> I think we need more context to answer this question.
>>>>> 
>>>>> From MXML, you should be able to put "simple" HTML as the value of
>>>>> Label.html, Button.html, TextInput.html and hopefully any other FlexJS
>>>>> framework component that displays text.  Essentially, we want all
>> FlexJS
>>>>> UI widgets to work with HTML as well as plain text Strings.  On the SWF
>>>>> side, the HTML support is currently limited by flash.text.TextField.
>> On
>>>>> the JS side, the components should just be setting innerHTML.
>>>>> 
>>>>> If you are writing AS to transpile to low-level JS, then as others
>>>>> answered you can create HTMLxxxElements and work with them, or also
>> just
>>>>> set the innerHTML of some element.
>>>>> 
>>>>> I still have dreams of a component set for FlexJS with components such
>> as
>>>>> "I" so you could essentially in-line HTML with the rest of your MXML,
>> but
>>>>> that will be a bunch of work on the SWF-side, and probably not nearly
>> as
>>>>> efficient as havin browser take raw HTML as innerHTML.
>>>>> 
>>>>> HTH,
>>>>> -Alex
>>>>> 
>>>>> On 10/13/16, 11:55 AM, "carlos.rovira@gmail.com on behalf of Carlos
>>>>> Rovira" <carlos.rovira@gmail.com on behalf of
>>>>> carlos.rovira@codeoscopic.com> wrote:
>>>>> 
>>>>>> Hi,
>>>>>> 
>>>>>> I'm trying to output <i> html tag, I think it should be something like
>>>>>> HTMLIElement or something.
>>>>>> Btw, Where I could find the HTMLInputElement, HTMLSpanElement and
>>>> others?
>>>>>> 
>>>>>> Thanks
>>>>>> 
>>>>>> --
>>>>>> 
>>>>>> Carlos Rovira
>>>>>> Director General
>>>>>> M: +34 607 22 60 05
>>>>>> http://www.codeoscopic.com
>>>>>> http://www.avant2.es
>>>>>> 
>>>>>> 
>>>>>> Este mensaje se dirige exclusivamente a su destinatario y puede
>> contener
>>>>>> información privilegiada o confidencial. Si ha recibido este mensaje
>> por
>>>>>> error, le rogamos que nos lo comunique inmediatamente por esta misma
>>>> vía y
>>>>>> proceda a su destrucción.
>>>>>> 
>>>>>> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>>>>>> comunicamos
>>>>>> que sus datos forman parte de un fichero cuyo responsable es
>> CODEOSCOPIC
>>>>>> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>>>>>> servicio o información solicitados, teniendo usted derecho de acceso,
>>>>>> rectificación, cancelación y oposición de sus datos dirigiéndose a
>>>>>> nuestras
>>>>>> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
>> documentación
>>>>>> necesaria.
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> --
>>>> 
>>>> Carlos Rovira
>>>> Director General
>>>> M: +34 607 22 60 05
>>>> http://www.codeoscopic.com
>>>> http://www.avant2.es
>>>> 
>>>> 
>>>> Este mensaje se dirige exclusivamente a su destinatario y puede contener
>>>> información privilegiada o confidencial. Si ha recibido este mensaje por
>>>> error, le rogamos que nos lo comunique inmediatamente por esta misma
>> vía y
>>>> proceda a su destrucción.
>>>> 
>>>> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>> comunicamos
>>>> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
>>>> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>>>> servicio o información solicitados, teniendo usted derecho de acceso,
>>>> rectificación, cancelación y oposición de sus datos dirigiéndose a
>> nuestras
>>>> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
>>>> necesaria.
>>>> 
>> 
>> 


Re: [FlexJS] How to output

Posted by Josh Tynjala <jo...@gmail.com>.
Yes, I do. I've started work on it already! I'll need some time, though. I
can build on top of the ActionScript support that's already there, but MXML
is still handled differently enough by the compiler that I need to do some
extra parsing to figure the right context for everything.

You might see an update where ActionScript defined in an <fx:Script>
element is supported first. I think I have a good handle on that one
already.

- Josh

On Thu, Oct 13, 2016 at 4:02 PM, Vulcansoft <mi...@vulcansoft.com> wrote:

> Hi Josh,
>
> a bit off topic but regarding MXML: do you plan to integrate MXML support
> in
> NextGen Actionscript for VSCode?
>
> Christian
>
>
>
> > On Oct 13, 2016, at 11:22 PM, Josh Tynjala <jo...@gmail.com>
> wrote:
> >
> > You can't. Think of MXML as being at a higher abstraction layer. It
> doesn't
> > know anything about HTML or the Flash display list.
> >
> > - Josh
> >
> > On Thu, Oct 13, 2016 at 2:09 PM, Carlos Rovira <
> > carlos.rovira@codeoscopic.com> wrote:
> >
> >> Thanks for the various responses, many useful.
> >>
> >> One more thing: Can I use HTMLElement in MXML. I'm trying without luck:
> >>
> >> <js:HTMLElement className="xxx" text="yyy"/>
> >>
> >> Thanks
> >>
> >> 2016-10-13 22:25 GMT+02:00 Alex Harui <ah...@adobe.com>:
> >>
> >>> I think we need more context to answer this question.
> >>>
> >>> From MXML, you should be able to put "simple" HTML as the value of
> >>> Label.html, Button.html, TextInput.html and hopefully any other FlexJS
> >>> framework component that displays text.  Essentially, we want all
> FlexJS
> >>> UI widgets to work with HTML as well as plain text Strings.  On the SWF
> >>> side, the HTML support is currently limited by flash.text.TextField.
> On
> >>> the JS side, the components should just be setting innerHTML.
> >>>
> >>> If you are writing AS to transpile to low-level JS, then as others
> >>> answered you can create HTMLxxxElements and work with them, or also
> just
> >>> set the innerHTML of some element.
> >>>
> >>> I still have dreams of a component set for FlexJS with components such
> as
> >>> "I" so you could essentially in-line HTML with the rest of your MXML,
> but
> >>> that will be a bunch of work on the SWF-side, and probably not nearly
> as
> >>> efficient as havin browser take raw HTML as innerHTML.
> >>>
> >>> HTH,
> >>> -Alex
> >>>
> >>> On 10/13/16, 11:55 AM, "carlos.rovira@gmail.com on behalf of Carlos
> >>> Rovira" <carlos.rovira@gmail.com on behalf of
> >>> carlos.rovira@codeoscopic.com> wrote:
> >>>
> >>>> Hi,
> >>>>
> >>>> I'm trying to output <i> html tag, I think it should be something like
> >>>> HTMLIElement or something.
> >>>> Btw, Where I could find the HTMLInputElement, HTMLSpanElement and
> >> others?
> >>>>
> >>>> Thanks
> >>>>
> >>>> --
> >>>>
> >>>> Carlos Rovira
> >>>> Director General
> >>>> M: +34 607 22 60 05
> >>>> http://www.codeoscopic.com
> >>>> http://www.avant2.es
> >>>>
> >>>>
> >>>> Este mensaje se dirige exclusivamente a su destinatario y puede
> contener
> >>>> información privilegiada o confidencial. Si ha recibido este mensaje
> por
> >>>> error, le rogamos que nos lo comunique inmediatamente por esta misma
> >> vía y
> >>>> proceda a su destrucción.
> >>>>
> >>>> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> >>>> comunicamos
> >>>> que sus datos forman parte de un fichero cuyo responsable es
> CODEOSCOPIC
> >>>> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> >>>> servicio o información solicitados, teniendo usted derecho de acceso,
> >>>> rectificación, cancelación y oposición de sus datos dirigiéndose a
> >>>> nuestras
> >>>> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
> documentación
> >>>> necesaria.
> >>>
> >>>
> >>
> >>
> >> --
> >>
> >> Carlos Rovira
> >> Director General
> >> M: +34 607 22 60 05
> >> http://www.codeoscopic.com
> >> http://www.avant2.es
> >>
> >>
> >> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> >> información privilegiada o confidencial. Si ha recibido este mensaje por
> >> error, le rogamos que nos lo comunique inmediatamente por esta misma
> vía y
> >> proceda a su destrucción.
> >>
> >> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> comunicamos
> >> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> >> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> >> servicio o información solicitados, teniendo usted derecho de acceso,
> >> rectificación, cancelación y oposición de sus datos dirigiéndose a
> nuestras
> >> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> >> necesaria.
> >>
>
>

Re: [FlexJS] How to output

Posted by Vulcansoft <mi...@vulcansoft.com>.
Hi Josh,

a bit off topic but regarding MXML: do you plan to integrate MXML support in
NextGen Actionscript for VSCode?

Christian



> On Oct 13, 2016, at 11:22 PM, Josh Tynjala <jo...@gmail.com> wrote:
> 
> You can't. Think of MXML as being at a higher abstraction layer. It doesn't
> know anything about HTML or the Flash display list.
> 
> - Josh
> 
> On Thu, Oct 13, 2016 at 2:09 PM, Carlos Rovira <
> carlos.rovira@codeoscopic.com> wrote:
> 
>> Thanks for the various responses, many useful.
>> 
>> One more thing: Can I use HTMLElement in MXML. I'm trying without luck:
>> 
>> <js:HTMLElement className="xxx" text="yyy"/>
>> 
>> Thanks
>> 
>> 2016-10-13 22:25 GMT+02:00 Alex Harui <ah...@adobe.com>:
>> 
>>> I think we need more context to answer this question.
>>> 
>>> From MXML, you should be able to put "simple" HTML as the value of
>>> Label.html, Button.html, TextInput.html and hopefully any other FlexJS
>>> framework component that displays text.  Essentially, we want all FlexJS
>>> UI widgets to work with HTML as well as plain text Strings.  On the SWF
>>> side, the HTML support is currently limited by flash.text.TextField.  On
>>> the JS side, the components should just be setting innerHTML.
>>> 
>>> If you are writing AS to transpile to low-level JS, then as others
>>> answered you can create HTMLxxxElements and work with them, or also just
>>> set the innerHTML of some element.
>>> 
>>> I still have dreams of a component set for FlexJS with components such as
>>> "I" so you could essentially in-line HTML with the rest of your MXML, but
>>> that will be a bunch of work on the SWF-side, and probably not nearly as
>>> efficient as havin browser take raw HTML as innerHTML.
>>> 
>>> HTH,
>>> -Alex
>>> 
>>> On 10/13/16, 11:55 AM, "carlos.rovira@gmail.com on behalf of Carlos
>>> Rovira" <carlos.rovira@gmail.com on behalf of
>>> carlos.rovira@codeoscopic.com> wrote:
>>> 
>>>> Hi,
>>>> 
>>>> I'm trying to output <i> html tag, I think it should be something like
>>>> HTMLIElement or something.
>>>> Btw, Where I could find the HTMLInputElement, HTMLSpanElement and
>> others?
>>>> 
>>>> Thanks
>>>> 
>>>> --
>>>> 
>>>> Carlos Rovira
>>>> Director General
>>>> M: +34 607 22 60 05
>>>> http://www.codeoscopic.com
>>>> http://www.avant2.es
>>>> 
>>>> 
>>>> Este mensaje se dirige exclusivamente a su destinatario y puede contener
>>>> información privilegiada o confidencial. Si ha recibido este mensaje por
>>>> error, le rogamos que nos lo comunique inmediatamente por esta misma
>> vía y
>>>> proceda a su destrucción.
>>>> 
>>>> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>>>> comunicamos
>>>> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
>>>> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>>>> servicio o información solicitados, teniendo usted derecho de acceso,
>>>> rectificación, cancelación y oposición de sus datos dirigiéndose a
>>>> nuestras
>>>> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
>>>> necesaria.
>>> 
>>> 
>> 
>> 
>> --
>> 
>> Carlos Rovira
>> Director General
>> M: +34 607 22 60 05
>> http://www.codeoscopic.com
>> http://www.avant2.es
>> 
>> 
>> Este mensaje se dirige exclusivamente a su destinatario y puede contener
>> información privilegiada o confidencial. Si ha recibido este mensaje por
>> error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
>> proceda a su destrucción.
>> 
>> De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
>> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
>> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>> servicio o información solicitados, teniendo usted derecho de acceso,
>> rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
>> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
>> necesaria.
>> 


Re: [FlexJS] How to output

Posted by Josh Tynjala <jo...@gmail.com>.
You can't. Think of MXML as being at a higher abstraction layer. It doesn't
know anything about HTML or the Flash display list.

- Josh

On Thu, Oct 13, 2016 at 2:09 PM, Carlos Rovira <
carlos.rovira@codeoscopic.com> wrote:

> Thanks for the various responses, many useful.
>
> One more thing: Can I use HTMLElement in MXML. I'm trying without luck:
>
> <js:HTMLElement className="xxx" text="yyy"/>
>
> Thanks
>
> 2016-10-13 22:25 GMT+02:00 Alex Harui <ah...@adobe.com>:
>
> > I think we need more context to answer this question.
> >
> > From MXML, you should be able to put "simple" HTML as the value of
> > Label.html, Button.html, TextInput.html and hopefully any other FlexJS
> > framework component that displays text.  Essentially, we want all FlexJS
> > UI widgets to work with HTML as well as plain text Strings.  On the SWF
> > side, the HTML support is currently limited by flash.text.TextField.  On
> > the JS side, the components should just be setting innerHTML.
> >
> > If you are writing AS to transpile to low-level JS, then as others
> > answered you can create HTMLxxxElements and work with them, or also just
> > set the innerHTML of some element.
> >
> > I still have dreams of a component set for FlexJS with components such as
> > "I" so you could essentially in-line HTML with the rest of your MXML, but
> > that will be a bunch of work on the SWF-side, and probably not nearly as
> > efficient as havin browser take raw HTML as innerHTML.
> >
> > HTH,
> > -Alex
> >
> > On 10/13/16, 11:55 AM, "carlos.rovira@gmail.com on behalf of Carlos
> > Rovira" <carlos.rovira@gmail.com on behalf of
> > carlos.rovira@codeoscopic.com> wrote:
> >
> > >Hi,
> > >
> > >I'm trying to output <i> html tag, I think it should be something like
> > >HTMLIElement or something.
> > >Btw, Where I could find the HTMLInputElement, HTMLSpanElement and
> others?
> > >
> > >Thanks
> > >
> > >--
> > >
> > >Carlos Rovira
> > >Director General
> > >M: +34 607 22 60 05
> > >http://www.codeoscopic.com
> > >http://www.avant2.es
> > >
> > >
> > >Este mensaje se dirige exclusivamente a su destinatario y puede contener
> > >información privilegiada o confidencial. Si ha recibido este mensaje por
> > >error, le rogamos que nos lo comunique inmediatamente por esta misma
> vía y
> > >proceda a su destrucción.
> > >
> > >De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> > >comunicamos
> > >que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> > >S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> > >servicio o información solicitados, teniendo usted derecho de acceso,
> > >rectificación, cancelación y oposición de sus datos dirigiéndose a
> > >nuestras
> > >oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> > >necesaria.
> >
> >
>
>
> --
>
> Carlos Rovira
> Director General
> M: +34 607 22 60 05
> http://www.codeoscopic.com
> http://www.avant2.es
>
>
> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> información privilegiada o confidencial. Si ha recibido este mensaje por
> error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> proceda a su destrucción.
>
> De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> servicio o información solicitados, teniendo usted derecho de acceso,
> rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> necesaria.
>

Re: [FlexJS] How to output

Posted by Carlos Rovira <ca...@codeoscopic.com>.
Thanks for the various responses, many useful.

One more thing: Can I use HTMLElement in MXML. I'm trying without luck:

<js:HTMLElement className="xxx" text="yyy"/>

Thanks

2016-10-13 22:25 GMT+02:00 Alex Harui <ah...@adobe.com>:

> I think we need more context to answer this question.
>
> From MXML, you should be able to put "simple" HTML as the value of
> Label.html, Button.html, TextInput.html and hopefully any other FlexJS
> framework component that displays text.  Essentially, we want all FlexJS
> UI widgets to work with HTML as well as plain text Strings.  On the SWF
> side, the HTML support is currently limited by flash.text.TextField.  On
> the JS side, the components should just be setting innerHTML.
>
> If you are writing AS to transpile to low-level JS, then as others
> answered you can create HTMLxxxElements and work with them, or also just
> set the innerHTML of some element.
>
> I still have dreams of a component set for FlexJS with components such as
> "I" so you could essentially in-line HTML with the rest of your MXML, but
> that will be a bunch of work on the SWF-side, and probably not nearly as
> efficient as havin browser take raw HTML as innerHTML.
>
> HTH,
> -Alex
>
> On 10/13/16, 11:55 AM, "carlos.rovira@gmail.com on behalf of Carlos
> Rovira" <carlos.rovira@gmail.com on behalf of
> carlos.rovira@codeoscopic.com> wrote:
>
> >Hi,
> >
> >I'm trying to output <i> html tag, I think it should be something like
> >HTMLIElement or something.
> >Btw, Where I could find the HTMLInputElement, HTMLSpanElement and others?
> >
> >Thanks
> >
> >--
> >
> >Carlos Rovira
> >Director General
> >M: +34 607 22 60 05
> >http://www.codeoscopic.com
> >http://www.avant2.es
> >
> >
> >Este mensaje se dirige exclusivamente a su destinatario y puede contener
> >información privilegiada o confidencial. Si ha recibido este mensaje por
> >error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> >proceda a su destrucción.
> >
> >De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> >comunicamos
> >que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> >S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> >servicio o información solicitados, teniendo usted derecho de acceso,
> >rectificación, cancelación y oposición de sus datos dirigiéndose a
> >nuestras
> >oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> >necesaria.
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es


Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Re: [FlexJS] How to output

Posted by Alex Harui <ah...@adobe.com>.
I think we need more context to answer this question.

From MXML, you should be able to put "simple" HTML as the value of
Label.html, Button.html, TextInput.html and hopefully any other FlexJS
framework component that displays text.  Essentially, we want all FlexJS
UI widgets to work with HTML as well as plain text Strings.  On the SWF
side, the HTML support is currently limited by flash.text.TextField.  On
the JS side, the components should just be setting innerHTML.

If you are writing AS to transpile to low-level JS, then as others
answered you can create HTMLxxxElements and work with them, or also just
set the innerHTML of some element.

I still have dreams of a component set for FlexJS with components such as
"I" so you could essentially in-line HTML with the rest of your MXML, but
that will be a bunch of work on the SWF-side, and probably not nearly as
efficient as havin browser take raw HTML as innerHTML.

HTH,
-Alex

On 10/13/16, 11:55 AM, "carlos.rovira@gmail.com on behalf of Carlos
Rovira" <carlos.rovira@gmail.com on behalf of
carlos.rovira@codeoscopic.com> wrote:

>Hi,
>
>I'm trying to output <i> html tag, I think it should be something like
>HTMLIElement or something.
>Btw, Where I could find the HTMLInputElement, HTMLSpanElement and others?
>
>Thanks
>
>-- 
>
>Carlos Rovira
>Director General
>M: +34 607 22 60 05
>http://www.codeoscopic.com
>http://www.avant2.es
>
>
>Este mensaje se dirige exclusivamente a su destinatario y puede contener
>información privilegiada o confidencial. Si ha recibido este mensaje por
>error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
>proceda a su destrucción.
>
>De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>comunicamos
>que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
>S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>servicio o información solicitados, teniendo usted derecho de acceso,
>rectificación, cancelación y oposición de sus datos dirigiéndose a
>nuestras
>oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
>necesaria.


Re: [FlexJS] How to output

Posted by Josh Tynjala <jo...@gmail.com>.
It's in the flex-typedefs repo.

The Google Closure compiler comes with "externs" for JavaScript types.
They're JavaScript files that are basically the API without the
implementation. Like method "stubs". They define the classes, properties,
and methods and all of their type information so that the Closure compiler
can check things. We make use of these externs to expose the same
information to the ActionScript compiler.

The externc tool reads the JS externs, translates them to ActionScript, and
builds a SWC. The SWC works like playerglobal.swc, and is added to the
external-library-path. Basically, it tells the compiler that certain APIs
exist, but because it's on the external-library-path, the implementation is
expected to be found at runtime. In this case, the browser provides the
implementation to our generated JavaScript.

- Josh

2016-10-13 12:14 GMT-07:00 Carlos Rovira <ca...@codeoscopic.com>:

> Hi Josh,
>
> but, the source for js.swc...how and where is defined?
>
> El 13 de octubre de 2016, 21:12, Carlos Rovira <
> carlos.rovira@codeoscopic.com> escribió:
>
> > Thanks Josh!
> >
> > El 13 de octubre de 2016, 21:03, Josh Tynjala <jo...@gmail.com>
> > escribió:
> >
> >> var element:HTMLElement = document.createElement("i") as HTMLElement;
> >>
> >> Classes like HTMLElement, HTMLInputElement and HTMLSpanElement are
> defined
> >> in js/libs/js.swc.
> >>
> >> - Josh
> >>
> >> 2016-10-13 11:55 GMT-07:00 Carlos Rovira <carlos.rovira@codeoscopic.com
> >:
> >>
> >> > Hi,
> >> >
> >> > I'm trying to output <i> html tag, I think it should be something like
> >> > HTMLIElement or something.
> >> > Btw, Where I could find the HTMLInputElement, HTMLSpanElement and
> >> others?
> >> >
> >> > Thanks
> >> >
> >> > --
> >> >
> >> > Carlos Rovira
> >> > Director General
> >> > M: +34 607 22 60 05
> >> > http://www.codeoscopic.com
> >> > http://www.avant2.es
> >> >
> >> >
> >> > Este mensaje se dirige exclusivamente a su destinatario y puede
> contener
> >> > información privilegiada o confidencial. Si ha recibido este mensaje
> por
> >> > error, le rogamos que nos lo comunique inmediatamente por esta misma
> >> vía y
> >> > proceda a su destrucción.
> >> >
> >> > De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> >> comunicamos
> >> > que sus datos forman parte de un fichero cuyo responsable es
> CODEOSCOPIC
> >> > S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> >> > servicio o información solicitados, teniendo usted derecho de acceso,
> >> > rectificación, cancelación y oposición de sus datos dirigiéndose a
> >> nuestras
> >> > oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
> documentación
> >> > necesaria.
> >> >
> >>
> >
> >
> >
> > --
> >
> > Carlos Rovira
> > Director General
> > M: +34 607 22 60 05
> > http://www.codeoscopic.com
> > http://www.avant2.es
> >
> >
> > Este mensaje se dirige exclusivamente a su destinatario y puede contener
> > información privilegiada o confidencial. Si ha recibido este mensaje por
> > error, le rogamos que nos lo comunique inmediatamente por esta misma vía
> y
> > proceda a su destrucción.
> >
> > De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> > comunicamos que sus datos forman parte de un fichero cuyo responsable es
> > CODEOSCOPIC S.A. La finalidad de dicho tratamiento es facilitar la
> > prestación del servicio o información solicitados, teniendo usted derecho
> > de acceso, rectificación, cancelación y oposición de sus datos
> dirigiéndose
> > a nuestras oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
> > documentación necesaria.
> >
> >
>
>
> --
>
> Carlos Rovira
> Director General
> M: +34 607 22 60 05
> http://www.codeoscopic.com
> http://www.avant2.es
>
>
> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> información privilegiada o confidencial. Si ha recibido este mensaje por
> error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> proceda a su destrucción.
>
> De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> servicio o información solicitados, teniendo usted derecho de acceso,
> rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> necesaria.
>

Re: [FlexJS] How to output

Posted by Harbs <ha...@gmail.com>.
Typedefs.

On Oct 13, 2016, at 10:14 PM, Carlos Rovira <ca...@codeoscopic.com> wrote:

> Hi Josh,
> 
> but, the source for js.swc...how and where is defined?
> 
> El 13 de octubre de 2016, 21:12, Carlos Rovira <
> carlos.rovira@codeoscopic.com> escribió:
> 
>> Thanks Josh!
>> 
>> El 13 de octubre de 2016, 21:03, Josh Tynjala <jo...@gmail.com>
>> escribió:
>> 
>>> var element:HTMLElement = document.createElement("i") as HTMLElement;
>>> 
>>> Classes like HTMLElement, HTMLInputElement and HTMLSpanElement are defined
>>> in js/libs/js.swc.
>>> 
>>> - Josh
>>> 
>>> 2016-10-13 11:55 GMT-07:00 Carlos Rovira <ca...@codeoscopic.com>:
>>> 
>>>> Hi,
>>>> 
>>>> I'm trying to output <i> html tag, I think it should be something like
>>>> HTMLIElement or something.
>>>> Btw, Where I could find the HTMLInputElement, HTMLSpanElement and
>>> others?
>>>> 
>>>> Thanks
>>>> 
>>>> --
>>>> 
>>>> Carlos Rovira
>>>> Director General
>>>> M: +34 607 22 60 05
>>>> http://www.codeoscopic.com
>>>> http://www.avant2.es
>>>> 
>>>> 
>>>> Este mensaje se dirige exclusivamente a su destinatario y puede contener
>>>> información privilegiada o confidencial. Si ha recibido este mensaje por
>>>> error, le rogamos que nos lo comunique inmediatamente por esta misma
>>> vía y
>>>> proceda a su destrucción.
>>>> 
>>>> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>>> comunicamos
>>>> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
>>>> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>>>> servicio o información solicitados, teniendo usted derecho de acceso,
>>>> rectificación, cancelación y oposición de sus datos dirigiéndose a
>>> nuestras
>>>> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
>>>> necesaria.
>>>> 
>>> 
>> 
>> 
>> 
>> --
>> 
>> Carlos Rovira
>> Director General
>> M: +34 607 22 60 05
>> http://www.codeoscopic.com
>> http://www.avant2.es
>> 
>> 
>> Este mensaje se dirige exclusivamente a su destinatario y puede contener
>> información privilegiada o confidencial. Si ha recibido este mensaje por
>> error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
>> proceda a su destrucción.
>> 
>> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>> comunicamos que sus datos forman parte de un fichero cuyo responsable es
>> CODEOSCOPIC S.A. La finalidad de dicho tratamiento es facilitar la
>> prestación del servicio o información solicitados, teniendo usted derecho
>> de acceso, rectificación, cancelación y oposición de sus datos dirigiéndose
>> a nuestras oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
>> documentación necesaria.
>> 
>> 
> 
> 
> -- 
> 
> Carlos Rovira
> Director General
> M: +34 607 22 60 05
> http://www.codeoscopic.com
> http://www.avant2.es
> 
> 
> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> información privilegiada o confidencial. Si ha recibido este mensaje por
> error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> proceda a su destrucción.
> 
> De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> servicio o información solicitados, teniendo usted derecho de acceso,
> rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> necesaria.


Re: [FlexJS] How to output

Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Josh,

but, the source for js.swc...how and where is defined?

El 13 de octubre de 2016, 21:12, Carlos Rovira <
carlos.rovira@codeoscopic.com> escribió:

> Thanks Josh!
>
> El 13 de octubre de 2016, 21:03, Josh Tynjala <jo...@gmail.com>
> escribió:
>
>> var element:HTMLElement = document.createElement("i") as HTMLElement;
>>
>> Classes like HTMLElement, HTMLInputElement and HTMLSpanElement are defined
>> in js/libs/js.swc.
>>
>> - Josh
>>
>> 2016-10-13 11:55 GMT-07:00 Carlos Rovira <ca...@codeoscopic.com>:
>>
>> > Hi,
>> >
>> > I'm trying to output <i> html tag, I think it should be something like
>> > HTMLIElement or something.
>> > Btw, Where I could find the HTMLInputElement, HTMLSpanElement and
>> others?
>> >
>> > Thanks
>> >
>> > --
>> >
>> > Carlos Rovira
>> > Director General
>> > M: +34 607 22 60 05
>> > http://www.codeoscopic.com
>> > http://www.avant2.es
>> >
>> >
>> > Este mensaje se dirige exclusivamente a su destinatario y puede contener
>> > información privilegiada o confidencial. Si ha recibido este mensaje por
>> > error, le rogamos que nos lo comunique inmediatamente por esta misma
>> vía y
>> > proceda a su destrucción.
>> >
>> > De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>> comunicamos
>> > que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
>> > S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>> > servicio o información solicitados, teniendo usted derecho de acceso,
>> > rectificación, cancelación y oposición de sus datos dirigiéndose a
>> nuestras
>> > oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
>> > necesaria.
>> >
>>
>
>
>
> --
>
> Carlos Rovira
> Director General
> M: +34 607 22 60 05
> http://www.codeoscopic.com
> http://www.avant2.es
>
>
> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> información privilegiada o confidencial. Si ha recibido este mensaje por
> error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> proceda a su destrucción.
>
> De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> comunicamos que sus datos forman parte de un fichero cuyo responsable es
> CODEOSCOPIC S.A. La finalidad de dicho tratamiento es facilitar la
> prestación del servicio o información solicitados, teniendo usted derecho
> de acceso, rectificación, cancelación y oposición de sus datos dirigiéndose
> a nuestras oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la
> documentación necesaria.
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es


Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Re: [FlexJS] How to output

Posted by Carlos Rovira <ca...@codeoscopic.com>.
Thanks Josh!

El 13 de octubre de 2016, 21:03, Josh Tynjala <jo...@gmail.com>
escribió:

> var element:HTMLElement = document.createElement("i") as HTMLElement;
>
> Classes like HTMLElement, HTMLInputElement and HTMLSpanElement are defined
> in js/libs/js.swc.
>
> - Josh
>
> 2016-10-13 11:55 GMT-07:00 Carlos Rovira <ca...@codeoscopic.com>:
>
> > Hi,
> >
> > I'm trying to output <i> html tag, I think it should be something like
> > HTMLIElement or something.
> > Btw, Where I could find the HTMLInputElement, HTMLSpanElement and others?
> >
> > Thanks
> >
> > --
> >
> > Carlos Rovira
> > Director General
> > M: +34 607 22 60 05
> > http://www.codeoscopic.com
> > http://www.avant2.es
> >
> >
> > Este mensaje se dirige exclusivamente a su destinatario y puede contener
> > información privilegiada o confidencial. Si ha recibido este mensaje por
> > error, le rogamos que nos lo comunique inmediatamente por esta misma vía
> y
> > proceda a su destrucción.
> >
> > De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> comunicamos
> > que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> > S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> > servicio o información solicitados, teniendo usted derecho de acceso,
> > rectificación, cancelación y oposición de sus datos dirigiéndose a
> nuestras
> > oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> > necesaria.
> >
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es


Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Re: [FlexJS] How to output

Posted by Josh Tynjala <jo...@gmail.com>.
var element:HTMLElement = document.createElement("i") as HTMLElement;

Classes like HTMLElement, HTMLInputElement and HTMLSpanElement are defined
in js/libs/js.swc.

- Josh

2016-10-13 11:55 GMT-07:00 Carlos Rovira <ca...@codeoscopic.com>:

> Hi,
>
> I'm trying to output <i> html tag, I think it should be something like
> HTMLIElement or something.
> Btw, Where I could find the HTMLInputElement, HTMLSpanElement and others?
>
> Thanks
>
> --
>
> Carlos Rovira
> Director General
> M: +34 607 22 60 05
> http://www.codeoscopic.com
> http://www.avant2.es
>
>
> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> información privilegiada o confidencial. Si ha recibido este mensaje por
> error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> proceda a su destrucción.
>
> De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> servicio o información solicitados, teniendo usted derecho de acceso,
> rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> necesaria.
>