Skip to main content
Participating Frequently
Feb 9, 2011 12:02 PM UTC
Question

select image to delete

hey frnds,

My textArea  should contain text and images in it.

I have 1 button which is clicked by users to insert image. And if he want he should clicked on image to select it and press delete keyborad key to delete.

But finding difficulty to select image on click on it.

Is any way thr or any good sample there to achieve all above?

thx in advanced,

This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

Inspiring
Feb 9, 2011 6:04 PM UTC

Clicking the image won't select it.  Click and drag does.  Have you tried that?  If that's not working can you post a small sample - there may be something else going on in your application.

Thanks,

Richard

Translate
Participating Frequently
Feb 10, 2011 4:33 AM UTC

See frnd this link,

http://labs.adobe.com/technologies/textlayout/demos/

Here user can type text and insert many images,

Also user can select image and press delete to delete image.

I want to do exact same, so not finding such code.

Is thr any solution or example?

thx in advanced,

Translate
Feb 10, 2011 5:38 AM UTC

In that demo you have to click and drag over the image to select, as Richard mentioned.

You can get updated-for-2.0 code for that demo on our open source site: https://sourceforge.net/adobe/tlf/home/

It's in the repository in trunk/sdk/samples/flex or you can find it in the download zip file in samples/flex.

Translate