Re: Typography in Labels

2016-06-08 Thread Fréderic Cox
It's pretty sophisticated. However when I am done with it I might try to
port it to FlexJS as I really want to start playing with it.
I am going forward with a webview containing an HTMLEditor now in HTML/JS.

On Wed, Jun 8, 2016 at 1:56 AM, Alex Harui  wrote:

>
>
> On 6/7/16, 1:39 PM, "Fréderic Cox"  wrote:
>
> >Hi Alex,
> >
> >I just tested this. I removed the mx from source and added both mx.swc and
> >sparkskins.mx. Now I was able to add mx:RichTextEditor into my project.
> It
> >shows on the mobile device too. Unfortunately the issue with the text area
> >showing HTML but not in "edit" mode stays the same. I don't see how a
> >spark
> >textinput could be used by the app here. In RichTextEditor.mxml
> >clearly a  mx:TextArea
> >is used. Thanks for your suggestions but it seems this can not be done. I
> >am unable to edit HTML/TextFlow on mobile using Flex :-(
>
> Hmm.  Maybe other mobile text experts can confirm that this is expected
> behavior.  I would expect that there should be a way to control the input
> font.  Maybe mx:RichTextEditor isn't set up correctly since it was never
> certified for mobile.
>
> >
> >I might pursue the idea of using a webview with a HTML input field which
> >opens another webview in popup that show the HTML editor. And then passing
> >the results via JS to the Flex app. I think this is the only way it can be
> >done.
>
> I don't know how sophisticated your app is, but it might be interesting to
> try FlexJS.
>
> -Alex
>
>
>


Re: Typography in Labels

2016-06-07 Thread Alex Harui


On 6/7/16, 1:39 PM, "Fréderic Cox"  wrote:

>Hi Alex,
>
>I just tested this. I removed the mx from source and added both mx.swc and
>sparkskins.mx. Now I was able to add mx:RichTextEditor into my project. It
>shows on the mobile device too. Unfortunately the issue with the text area
>showing HTML but not in "edit" mode stays the same. I don't see how a
>spark
>textinput could be used by the app here. In RichTextEditor.mxml
>clearly a  mx:TextArea
>is used. Thanks for your suggestions but it seems this can not be done. I
>am unable to edit HTML/TextFlow on mobile using Flex :-(

Hmm.  Maybe other mobile text experts can confirm that this is expected
behavior.  I would expect that there should be a way to control the input
font.  Maybe mx:RichTextEditor isn't set up correctly since it was never
certified for mobile.

>
>I might pursue the idea of using a webview with a HTML input field which
>opens another webview in popup that show the HTML editor. And then passing
>the results via JS to the Flex app. I think this is the only way it can be
>done.

I don't know how sophisticated your app is, but it might be interesting to
try FlexJS.

-Alex




Re: Typography in Labels

2016-06-07 Thread Fréderic Cox
Also I tried to use mx:TextArea (which compiles fine). The TextArea shows
the HTML formatted text until we edit it. Then the text format is lost due
to the native textinput being overlayed I guess. Since mx:RichtTextEditor
uses an mx:TextArea internally this is not a viable option either.

On Tue, Jun 7, 2016 at 3:14 PM, Fréderic Cox  wrote:

> Hi Alex,
>
> If I add mx:RichtTextEditor in my code I get:
>
> - Description Resource Path Location Type
> Could not resolve  to a component implementation.
> RichTextEditor.mxml /CFShopManagerMobile/[source path] src/mx/controls line
> 206 Flex Problem
>
>
> On Mon, Jun 6, 2016 at 10:20 PM, Alex Harui  wrote:
>
>> Pretty sure that's the Spark version.  Try mx.controls.RichTextEditor.  It
>> does not use TLF.
>>
>> On 6/6/16, 12:13 PM, "Fréderic Cox"  wrote:
>>
>> >On iOS the RichTextEditor does not work due to
>> >https://bugbase.adobe.com/index.cfm?event=bug=3962712
>> >
>> >On Mon, Jun 6, 2016 at 9:09 PM, Alex Harui  wrote:
>> >
>> >>
>> >>
>> >> On 6/6/16, 4:01 AM, "leokan23"  wrote:
>> >>
>> >> >I have never used it. I will give it a try and see if that works for
>> >>me.
>> >> >Thank you
>> >> >
>> >>
>> >> There is an MXML mx.controls.RichTextEditor component if you need
>> >>editing.
>> >>  Again, it may be too limited for your needs.
>> >>
>> >> -Alex
>> >>
>> >>
>>
>>
>


Re: Typography in Labels

2016-06-07 Thread Fréderic Cox
Hi Alex,

If I add mx:RichtTextEditor in my code I get:

- Description Resource Path Location Type
Could not resolve  to a component implementation.
RichTextEditor.mxml /CFShopManagerMobile/[source path] src/mx/controls line
206 Flex Problem


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

> Pretty sure that's the Spark version.  Try mx.controls.RichTextEditor.  It
> does not use TLF.
>
> On 6/6/16, 12:13 PM, "Fréderic Cox"  wrote:
>
> >On iOS the RichTextEditor does not work due to
> >https://bugbase.adobe.com/index.cfm?event=bug=3962712
> >
> >On Mon, Jun 6, 2016 at 9:09 PM, Alex Harui  wrote:
> >
> >>
> >>
> >> On 6/6/16, 4:01 AM, "leokan23"  wrote:
> >>
> >> >I have never used it. I will give it a try and see if that works for
> >>me.
> >> >Thank you
> >> >
> >>
> >> There is an MXML mx.controls.RichTextEditor component if you need
> >>editing.
> >>  Again, it may be too limited for your needs.
> >>
> >> -Alex
> >>
> >>
>
>


Re: Typography in Labels

2016-06-06 Thread Fréderic Cox
On iOS the RichTextEditor does not work due to
https://bugbase.adobe.com/index.cfm?event=bug=3962712

On Mon, Jun 6, 2016 at 9:09 PM, Alex Harui  wrote:

>
>
> On 6/6/16, 4:01 AM, "leokan23"  wrote:
>
> >I have never used it. I will give it a try and see if that works for me.
> >Thank you
> >
>
> There is an MXML mx.controls.RichTextEditor component if you need editing.
>  Again, it may be too limited for your needs.
>
> -Alex
>
>


Re: Typography in Labels

2016-06-06 Thread Fréderic Cox
But you can't edit TLF on mobile, right? How would you do that?

On Mon, Jun 6, 2016 at 3:04 PM, Harbs <harbs.li...@gmail.com> wrote:

> As long as you are not constantly re-rendering the TLF text, it’s fine for
> mobile.
>
> On Jun 5, 2016, at 6:20 PM, leokan23 <l...@best-web.gr> wrote:
>
> > Hi Alex,
> >
> > sorry, i forgot to specify that i work 100% on mobile. From what i
> > understand, TFL is not to be used in mobile due to performance.
> >
> >
> >
> > --
> > View this message in context:
> http://apache-flex-users.246.n4.nabble.com/Typography-in-Labels-tp12799p12802.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
>


Re: Typography in Labels

2016-06-06 Thread leokan23
I have never used it. I will give it a try and see if that works for me.
Thank you



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Typography-in-Labels-tp12799p12804.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Typography in Labels

2016-06-04 Thread Alex Harui

On 6/4/16, 3:17 AM, "leokan23" <l...@best-web.gr> wrote:

>is there a way to achieve typography in labels? We use a lot of
>typography in
>our apps and most of the times i have to make a group with multiple labels
>to achieve these. Is there an easier way?

TLF doesn't work for you?


-Alex



Typography in Labels

2016-06-04 Thread leokan23
is there a way to achieve typography in labels? We use a lot of typography in
our apps and most of the times i have to make a group with multiple labels
to achieve these. Is there an easier way? 

ex. this *has some* typography



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Typography-in-Labels-tp12799.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.