Skip to main content
Participating Frequently
February 9, 2011
Question

select image to delete

  • February 9, 2011
  • 1 reply
  • 1280 views

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 has been closed for replies.

1 reply

Adobe Employee
February 9, 2011

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

Participating Frequently
February 10, 2011

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,

February 10, 2011

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.