[Flashcoders] TLFTextField drowning me ...

42 views
Skip to first unread message

Cédric Muller

unread,
Aug 27, 2013, 12:53:41 PM8/27/13
to Flash Coders List
So I have this complex TLFTextField vortex where I try to let user format text with � Bullet Lists for example.
So � so so �. I have got this overly complex and deep question to whether some did write this API or was it thrown together by some spaghetti monster ? (ok, this is some intentional pun towards bad Adobe documenters not doing their work)

Here goes my question/remark/complaint/doom:
Why is it /so/ hard to remove a ListElement ?

If you wish to answer, don't bother reading, just get that:
How can I remove a bullet list I added with EditManager.createList ?

I see EditManager.createList (which works perfectly) but why on earth no one did a 'EditManager.removeList' ???
How can I remove a bulleted list I added with code ? Why is it not available per se in the EditManager public methods ? Since when do we use a Class to createSomething, and totally fail to provide the removeSomething part ?
The only almost feasible way I found was using ListElement.moveChildren � but maaaan: this only happens to be a success if you don't add button that let the user decide when he/she wants to format some part of some text �

This TLFTextField is quite a debacle. I wonder if Adobe people know that no one can handle such bad APIs and documentation :'(

Cedric, all in flames.
_______________________________________________
Flashcoders mailing list
Flash...@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Cédric Muller

unread,
Aug 27, 2013, 1:05:13 PM8/27/13
to Flash Coders List
further info, even though I suspect that I am the last one on earth using this framework ���

// init
var fmt:TextLayoutFormat = new TextLayoutFormat();
var tmpInt:ISelectionManager = field.textFlow.interactionManager;
var editManager:EditManager = new EditManager();
field.textFlow.interactionManager = editManager;
// wrap up the format change in a composite operation
editManager.beginCompositeOperation();
var fmtSelectionState:SelectionState;
// select the desired text and apply the new paragraph format
fmtSelectionState:SelectionState = new SelectionState(field.textFlow, beginIndex_p, endIndex_p);
editManager.applyParagraphFormat(fmt, fmtSelectionState:SelectionState);
// create the list
editManager.createList(null, fmt, fmtSelectionState:SelectionState);
editManager.endCompositeOperation();
// restore the original interaction manager
field.textFlow.interactionManager = tmpInt;


See my intent ?
instead of
editManager.createList(null, fmt, fmtSelectionState:SelectionState);

I want to replace that line with:
editManager.removeList(null, fmt, fmtSelectionState:SelectionState);

would be amazing! (I am ready to kill any nested lists inside a list, so I am not /that/ keen :) )

anyone's up for a ride in space with me ?

Rick Hassen

unread,
Aug 27, 2013, 1:08:28 PM8/27/13
to Flash Coders List
I think you are quite right that this is a problematic api. While I can't address your specific question, I had tons of problems with TLF in the past. It caused strange bugs that would break my movies(this was in CS5) At the time, there were a lot of complaints on the forums with TLF with the solution simply to not use it. You can google "problems with TLF text" to see a lot of the issues and some of the clunky, heavy workaround solutions.
I noticed that Flash CC no longer supports TLF, which I found gratifying - as I had lost tons of hours dealing with it, while on deadline no less.
So, good luck, as it sounds as if your application requires TLF!!! But if you weren't too far committed, I thought this bit of history might help you in your decision making to use the api at all.


> From: flash...@benga.li
> Date: Tue, 27 Aug 2013 18:53:41 +0200
> To: flash...@chattyfig.figleaf.com
> Subject: [Flashcoders] TLFTextField drowning me ...
>
> So I have this complex TLFTextField vortex where I try to let user format text with … Bullet Lists for example.
> So … so so …. I have got this overly complex and deep question to whether some did write this API or was it thrown together by some spaghetti monster ? (ok, this is some intentional pun towards bad Adobe documenters not doing their work)
>
> Here goes my question/remark/complaint/doom:
> Why is it /so/ hard to remove a ListElement ?
>
> If you wish to answer, don't bother reading, just get that:
> How can I remove a bullet list I added with EditManager.createList ?
>
> I see EditManager.createList (which works perfectly) but why on earth no one did a 'EditManager.removeList' ???
> How can I remove a bulleted list I added with code ? Why is it not available per se in the EditManager public methods ? Since when do we use a Class to createSomething, and totally fail to provide the removeSomething part ?
> The only almost feasible way I found was using ListElement.moveChildren … but maaaan: this only happens to be a success if you don't add button that let the user decide when he/she wants to format some part of some text …

Cédric Muller

unread,
Aug 27, 2013, 1:15:38 PM8/27/13
to Flash Coders List
Thanks :)
Yep, my application _requires_ TLF (left to right, right to left, top down (korean), ligatures, �. and so on, that's is a big circus).
The worst part is that I managed implementing everything else.
I think I may be off for a quick exit if I understand how I can get a 'fake' ListElementGroup (if any, or a 'real' one if needed) based on a Selection. I bet I could 'moveChildren' out of this ListElement hierarchy.

Thanks anyways. I feel my pain now � as I realize I could down with the ship (and I am not that kind of captain!)

> I think you are quite right that this is a problematic api. While I can't address your specific question, I had tons of problems with TLF in the past. It caused strange bugs that would break my movies(this was in CS5) At the time, there were a lot of complaints on the forums with TLF with the solution simply to not use it. You can google "problems with TLF text" to see a lot of the issues and some of the clunky, heavy workaround solutions.
> I noticed that Flash CC no longer supports TLF, which I found gratifying - as I had lost tons of hours dealing with it, while on deadline no less.
> So, good luck, as it sounds as if your application requires TLF!!! But if you weren't too far committed, I thought this bit of history might help you in your decision making to use the api at all.
>
>
>> From: flash...@benga.li
>> Date: Tue, 27 Aug 2013 18:53:41 +0200
>> To: flash...@chattyfig.figleaf.com
>> Subject: [Flashcoders] TLFTextField drowning me ...
>>
>> So I have this complex TLFTextField vortex where I try to let user format text with � Bullet Lists for example.
>> So � so so �. I have got this overly complex and deep question to whether some did write this API or was it thrown together by some spaghetti monster ? (ok, this is some intentional pun towards bad Adobe documenters not doing their work)
>>
>> Here goes my question/remark/complaint/doom:
>> Why is it /so/ hard to remove a ListElement ?
>>
>> If you wish to answer, don't bother reading, just get that:
>> How can I remove a bullet list I added with EditManager.createList ?
>>
>> I see EditManager.createList (which works perfectly) but why on earth no one did a 'EditManager.removeList' ???
>> How can I remove a bulleted list I added with code ? Why is it not available per se in the EditManager public methods ? Since when do we use a Class to createSomething, and totally fail to provide the removeSomething part ?
>> The only almost feasible way I found was using ListElement.moveChildren � but maaaan: this only happens to be a success if you don't add button that let the user decide when he/she wants to format some part of some text �

Cédric Muller

unread,
Aug 27, 2013, 1:18:29 PM8/27/13
to Flash Coders List
> I noticed that Flash CC no longer supports TLF
I bet all my TLF code that Flash CC 8 will come with a simple timeline to draw things on … remember Flash 3 ? Not far :)

John R. Sweeney Jr.

unread,
Aug 27, 2013, 3:23:23 PM8/27/13
to Flash Coders List
TLF's have been a pain, since day one. Bailed on them pretty early on�

Sorry,
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Aug 27, 2013, at 12:18 PM, C�dric Muller <flash...@benga.li> wrote:

>> I noticed that Flash CC no longer supports TLF
> I bet all my TLF code that Flash CC 8 will come with a simple timeline to draw things on � remember Flash 3 ? Not far :)

Rick Hassen

unread,
Aug 27, 2013, 3:57:56 PM8/27/13
to Flash Coders List

" I bet all my TLF code that Flash CC 8 will come with a simple timeline to draw things on … remember Flash 3 ? Not far :)"
'splain please! I started with Director 1 then went away till CS3, so I missed a bit there, so missing the joke.

John R. Sweeney Jr.

unread,
Aug 27, 2013, 4:12:21 PM8/27/13
to Flash Coders List
Director?? Did you mean Flash 1?



John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




Rick Hassen

unread,
Aug 27, 2013, 4:35:04 PM8/27/13
to Flash Coders List
At the time, I was using Director. Flash 1 came out and I wasn't into banner ads and didn't know how powerful it would eventually become.
Did you know that Director is still out with new updates??? I was shocked to find this and apparently has a userbase with HD people.

John R. Sweeney Jr.

unread,
Aug 27, 2013, 5:01:33 PM8/27/13
to Flash Coders List
Yep. Director 12 came out in February and has had its issues, to say the least. :)

Since your from Director, your missing the joke because its based on earlier Flash, current Flash and future Flash. That's why your Director statement initially throw me.


John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Aug 27, 2013, at 3:35 PM, Rick Hassen <rickh...@hotmail.com> wrote:

> At the time, I was using Director. Flash 1 came out and I wasn't into banner ads and didn't know how powerful it would eventually become.
> Did you know that Director is still out with new updates??? I was shocked to find this and apparently has a userbase with HD people.


tom rhodes

unread,
Aug 28, 2013, 3:02:20 AM8/28/13
to Flash Coders List
Sorry Cedric, I didn't ever make the switch to TLF once I'd dabbled with it
a bit, so I can't help you out there.

Crazy they have dropped it from CC though and yeah I do remember flash 3 :)

Cédric Muller

unread,
Aug 28, 2013, 4:08:30 AM8/28/13
to Flash Coders List
:)
I feel so alone with that TLF

tom rhodes

unread,
Aug 28, 2013, 4:36:15 AM8/28/13
to Flash Coders List
http://sourceforge.net/adobe/tlf/svn/604/tree/

doesn't look like anyone has touched it for a couple of years. maybe you
can create the method you want?

Cédric Muller

unread,
Aug 28, 2013, 5:05:49 AM8/28/13
to Flash Coders List
:D
"hi there.China Team Test Change"

tom rhodes

unread,
Aug 28, 2013, 5:17:43 AM8/28/13
to Flash Coders List
ha. ok. that's me out of ideas!

David Cohn

unread,
Aug 28, 2013, 1:13:33 PM8/28/13
to flash...@chattyfig.figleaf.com

So if CC no longer supports TLF, is there any long-term option in Flash for right-to-left text?
Will Flex support TLF, and/or have other options for RTL support?

This is something I haven't delved into yet, but may come up soon for a project. It would be good to start in with a long-term path, even if we continue to use CS6 for now!

Thanks,
--Dave


On Aug 28, 2013, at 9:00 AM, flashcode...@chattyfig.figleaf.com wrote:

> I noticed that Flash CC no longer supports TLF, which I found gratifying - as I had lost tons of hours dealing with it, while on deadline no less.
> So, good luck, as it sounds as if your application requires TLF!!! But if you weren't too far committed, I thought this bit of history might help you in your decision making to use the api at all.


Ted Lehr

unread,
Sep 5, 2013, 8:40:55 AM9/5/13
to Flash Coders List
Is it possible to dynamically change the background color of an individual DG cell?

Kerry Thompson

unread,
Sep 5, 2013, 10:27:05 AM9/5/13
to Flash Coders List
Check this out. I haven't tried it, but it looks promising. <
http://stackoverflow.com/questions/14985504/change-background-color-of-datagrid-cell-based-on-more-than-one-condition-in-fle
>

Cordially

Kerry Thompson


On Thu, Sep 5, 2013 at 8:40 AM, Ted Lehr <Te...@qvine.com> wrote:

> Is it possible to dynamically change the background color of an individual
> DG cell?
>

Paul A.

unread,
Sep 13, 2013, 8:21:35 AM9/13/13
to Flash Coders List
Just been discussing some flash work and have been told I'd need to use
DoubleClick Studio.

Anyone have any experience of this compared to Flash?

Paul

(Yes, I know it's almost Off-topic )

Paul A.

unread,
Sep 13, 2013, 8:34:15 AM9/13/13
to flash...@chattyfig.figleaf.com
OK, I see it uses flash in conjunction with Google tools and components
- so on topic for sure!

Roger Persson

unread,
Sep 13, 2013, 8:44:43 AM9/13/13
to Flash Coders List
Hi Paul,

If it's for use with ads I suggest you ask the media bureau or if you
can get a contact directly a google to send you the latest version of
their files and a few demo-files to get you started.

If I remember correctly it's an flash extension you need to install to
have access to their API and an upload tool (or maybe the upload tool
was for something else I did).

Some things are pretty useless in the demofiles, mostly you only need
the clickTAG.


Hope it helps
/roger

David Hunter

unread,
Sep 13, 2013, 12:02:35 PM9/13/13
to Flash Coders List
Think I have used them before. The docs should explain things well. You
probably just need to download some components and then add them to the
beginning of your banner.

David Hunter

www.davidhunterdesign.com
+44 (0) 7869 104 906
@DHDPIC


On 13 September 2013 13:44, Roger Persson <ro...@radiergum.com> wrote:

> Hi Paul,
>
> If it's for use with ads I suggest you ask the media bureau or if you can
> get a contact directly a google to send you the latest version of their
> files and a few demo-files to get you started.
>
> If I remember correctly it's an flash extension you need to install to
> have access to their API and an upload tool (or maybe the upload tool was
> for something else I did).
>
> Some things are pretty useless in the demofiles, mostly you only need the
> clickTAG.
>
>
> Hope it helps
> /roger
>
>
>
> Paul A. skrev 2013-09-13 14:21:
>
> Just been discussing some flash work and have been told I'd need to use
>> DoubleClick Studio.
>>
>> Anyone have any experience of this compared to Flash?
>>
>> Paul
>>
>> (Yes, I know it's almost Off-topic )
>> ______________________________**_________________
>> Flashcoders mailing list
>> Flash...@chattyfig.figleaf.**com <Flash...@chattyfig.figleaf.com>
>> http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders<http://chattyfig.figleaf.com/mailman/listinfo/flashcoders>
>>
> ______________________________**_________________
> Flashcoders mailing list
> Flash...@chattyfig.figleaf.**com <Flash...@chattyfig.figleaf.com>
> http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders<http://chattyfig.figleaf.com/mailman/listinfo/flashcoders>

John R. Sweeney Jr.

unread,
Jan 2, 2014, 11:01:39 PM1/2/14
to Flash Coders List
Howdy,

Has anyone had any issues with Flash CS6 and the new OSX 10.9? I've heard some issues, but nothing specific.

Thanks,

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




Paul A.

unread,
Jan 3, 2014, 5:54:04 AM1/3/14
to Flash Coders List
Not noticed anything specific.. ..so far. Or if I have I've forgotten
about it!

I have had some absolute weirdness with a client using an ad
distribution network ( I don't wish to identify it - they were extremely
helpful ) where the mouse pointer position was in the wrong place when
using FF on a Mac, but fine with other browsers and FF on Windows. This
issue only appeared after deployment via the ad network.

John R. Sweeney Jr.

unread,
Jan 31, 2014, 6:46:53 PM1/31/14
to Flash Coders List
Hello again,

Has anyone used Youtube or Vimeo videos in their Flash app? My client will produce the video's and post them, then want a Flash based game that will play those videos on demand from within the game.

I've always had the videos either next to the .swfs or on another server, using a crossdomain.xml. Can a YouTube or Vimeo be embedded into my app to look like part of the game or do you end up with pop-up video windows?

Peter Ginneberge

unread,
Jan 31, 2014, 7:23:34 PM1/31/14
to flash...@chattyfig.figleaf.com
YouTube has a flash API that you can use:
https://developers.google.com/youtube/flash_api_reference

Paul A.

unread,
Jan 31, 2014, 7:24:23 PM1/31/14
to flash...@chattyfig.figleaf.com
On 31/01/2014 23:46, John R. Sweeney Jr. wrote:
> Hello again,
>
> Has anyone used Youtube or Vimeo videos in their Flash app? My client will produce the video's and post them, then want a Flash based game that will play those videos on demand from within the game.
>
> I've always had the videos either next to the .swfs or on another server, using a crossdomain.xml. Can a YouTube or Vimeo be embedded into my app to look like part of the game or do you end up with pop-up video windows?
I did some work using youtube video a couple of years back and it was as
good as being embedded - certainly no pop-up windows.

It's easy to check this out - there are examples on the youtube site
https://developers.google.com/youtube/flash_api_reference.

Paul
Reply all
Reply to author
Forward
0 new messages