Why when i paste an image in a textflow it adds the text image name too?

Hi,
I'm trying to solve this behaviour:
I copy an image in my desktop with CTRL+C/CMD+C.
Then in my application I paste the image in the textflow with CTRL+V/CMD+V... but it adds the image and the image name (as text), instead I want it adds only the image!
So, I'm listening the Event.PASTE event and get image from Clipboard.
I save the file in the FILE_LIST_FORMAT in an object and I try reset other formats, like TEXT_FORMAT, where Clipboard store my image name...
but nothing change.
Do you have any suggestion please?
Thanks!

You might be able to handle it by listening for the paste event in the textFlow
          myTextFlow.addEventListener(FlowOperationEvent.FLOW_OPERATION_BEGIN, handleFlowEvents);
private function handleFlowEvents(e:FlowOperationEvent):void {
                              if (e.operation is PasteOperation) {
                                             trapPaste(e.operation as PasteOperation);
And then manipulate the PasteOperation in trapPaste()

Similar Messages

  • Why, when I paste my selection in a new layer, is it 10 times larger than when I copied it?

    Why, when I paste my selection in a new layer, is it 10 times larger than when I copied it?

    Kevin If you don't understand don't try to take the discussion offline via private message.  Other that have the same problem will not benefit if taken offline here is you PM.
    Hi,
    Thanks for your response to my question. What is the best way to adjust to match resloutions of pictures/photos, etc in PSE 12. I am trying to layer photos and selections from photos but when I cut and paste, sometimes I get this HUGE image that doesn't even come close to fitting on the screen.
    Thanks!
    Kevin
    Kevin
    You need to understand pixels better know what is going on when you do things.  All pixels are not created equal.  Some have better quality the others.
    When you have a camera that take captures  3000x2000 px for an image and you have a good lens and exposure setting you wing up with 6,000,000 quality pixels for your image.
    If you resample that image  for the web to fit within 300x200 pixels you wind up with a 60,000 high quality web size image. Or a high quality image that will fit on your display at its resolution. The images resoultion setting is meanless for displays use their resolutuin they do not support image print DPI resolution setting.  And Displays do not hava a 72DPI resolution. 
    So when your post processing think about Pixels DPI is meaningless except when you use a unit based on DPI like inches.  However also remember Displays do no support the images print dpi resolution.  The only time 1" on display equal 1" in print is when the images print resolution is the same as the display you are using. All displays do not  have the same resolution/ Most desktop displaye are around 100DPI that is changing and Laptop and tablets can have resolution above 300DPI. So what will nor fit on your displat may well fix on a laptop or tablet.
    DPI is actual pixel size 100DPI pixels a 1/100" x 1/100" = 10,000 per square inch  300DIP 1/300"x 1/300"  90,000 px per sq inch.
    The same number on pixels image on a 300dpi display is 9 time larger on a 100Dpi display. What may not fit one your low resolution display may fit on the same size high resolution display for the display  displays more pixels then your display can.
    If you resample that 300x200 web size image to back to a 3000x2000 pixel image for print you wind up with 6,0000,000 lower quality pixels. 
    Though the 300X200 pixels image was a high quality web size image much of the original 6,000,000 image quality was reduced in the 300x200 px image. Much of the detail you had in the original 6,000,000 pixels image was discarded in the process.  The new 6,000,000 pixels image was made only from a 60,000pixel image they were not captures using a camera exposure.  The camera had the actual real detail in front of it to capture.  All the computer had were 300x200 pixels it has to add details for the larger image and it does by interpolating the 300x200px image.
    Preserve the pixel you get from your cameras. They are the highest quality pixels you will ever have for your images.  Every time you resample an image up or down in number of pixels you loose some image quality.   Not one of the original pixels remain intact you wind up with a totally new image created by interpolating the old image.  Do not save the new image over the old image and loose your good high quality pixels. 

  • I imported 635 images into an iPhoto album so that I can share them via a photo-stream. However, iPhoto says there are only 600. When I try to add the missing images it says they are already there. Why can i not see these images in iPhoto?

    I imported 635 images into an iPhoto album so that I can share them via a photo-stream. However, iPhoto says there are only 600. When I try to add the missing images it says they are already there. Why can i not see these images in iPhoto?

    Generally I would not use Facebook for sharing any photos, it compresses the photos substantially, and when you have shadows and dark colours you get visible "bands" where there should be subtle gradients, ie at sunsets and sunrises.
    It sounds like you are using two methods to upload to Facebook:
    1. Sharing from within Aperture, which basically syncs Facebook with your Aperture album, so any changes made at either end gets synced, hence the deletions from Albums, although the original file should still be in your library, just removed rom the album. It is like a playlist in iTunes.
    2. Exporting pics and uploading to Facebook from the browser.
    I am not sure how method 1 gets compressed, but I know that uploading hi-res jpegs to Facebook using method 2 results in poor quality images.
    I wouldn't even bother comparing option 1 or 2, and they will both be poor images once you view them on Facebook, as opposed to viewing uploaded images on proper image sharing / hosting sites.
    Your problem is not with Aperture, it is using Facebook for showing your work.
    If you export pics form Aperture at high res jpegs or TIFFs your images will be fine.
    If you insist to use Facebook as your way to share your work, then your workflow should be this:
    1. Right click images you want to share.
    2. Select Export version.
    3. Export as 100% size and ensure the export settings are set at 100% quality.
    4. Upload this pic into Facebook.
    This will get you the best image size and resolution on Facebook.
    See how you go.

  • When I try to open images I am getting this message: "The file "image.jpg" couldn't be opened because you don't have permission to view it." "Which I've tried - but it's not responding, plus its with all images now. Can anyone help?

    When I try to open images I am getting this message: "The file “image.jpg” couldn’t be opened because you don’t have permission to view it." "Which I've tried - but it's not responding, plus its with all images now. Can anyone help?

    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Containers/com.apple.iBooksX
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Quit the application if it's running. Move the selected item to the Trash. Relaunch the application and test.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Aperture, why when I delete from an album it deletes it from the project folder

    Aperture, why when I delete from an album it deletes it from the project folder also.
    I thought that it was the other way round, in that the library was not the main entry.
    I have 10 project folders and 6 albums and I want to remove the albums and keep the projects "as is"
    I am unsure as to how I wound up with albums in the Aperture program.
    thanks
    Greg
    Lamont

    Never used the Trash icon either (and generally don't show the Toolbar).  But at least the Tooltip is correct:
    Now that I think on it, clicking "Trash" _should_ put the item in the Aperture Trash.  The confusion comes from the use of "Delete" -- specifically using a key with that label to execute a command that changes based on not only what kind of item is selected, but where the item is located.  So in this case (let me parenthetically add I have yet to take part in my morning caffeine ritual) "Delete" in the Tooltip does not equal "press and release the 'delete' key", but rather is used as a verb (rightly, imho).
    Not sure what a better design might be, but perhaps at least popping up a window saying, "The selected items are Images in an Album.  Would you like to remove them from the Album, or move them to the Aperture Trash (which will delete them from the Project they are in)?".
    Greg -- I suggest using the context-sensitive menu (a/k/a "right-click") to select the command you want:
    Message was edited by: Kirby Krieger - formatting and clean-up.

  • I am using Lightroom 5.7, 64 bit with Windows 7 Professional. For no apparent reason, I now get an error message when I export a photo, say a raw image to a JPG. However, the exported image seems to be OK. But now I notice that my LR directory of folders

    I am using Lightroom 5.7, 64 bit with Windows 7 Professional. For no apparent reason, I now get an error message when I export a photo, say a raw image to a JPG. However, the exported image seems to be OK. But now I notice that my LR directory of folders in Library view does not show images correctly: If there is a folder with sub-folder(s), the folder will indicate 0 images, but the sub-folders show the proper number of images. What happened and is there a fix? I tried uninstalling Lightroom and re-installing, but problem persists.
    Here is a screen shot of the error message:
    Message was edited by: Joseph Costanza, Jr.

    See here for a solution.

  • When opening a word doc in pages i am loosing the graphic images from powerpoint that were embedded in the word doc

    When opening a word doc in pages i am loosing the graphic images from powerpoint that were embedded in the word doc

    Are the images placed in a table? Many Word user have the habit of doing that. Tables are not handles the same way in Word and Pages so they get "hidden" in Pages. One way to find this out is to change the size of the paper of the document. You do that in the Page setup in the file menu. Create a document that is much longer that the default one and see if you images will pp up.

  • Help please - when I export as a PDF my banners disappear under the button image

    I have a number of images my indesign document that I have changed to buttons. I have placed small banners on the top of the image buttons (on a layer above the buttons) But when I export as a PDF my banners disappear under the button image! Can any one help me.

    We are here to help, not to do your duty in your place.
    Nobody gave me orders since more than 30 years, that will not change now
    You will quickly understand that I write when I want, the way I want.
    More, as far as I know, your question got an accurate answer.
    Yvan KOENIG (VALLAURIS, France) samedi 23 juillet 2011 23:47:49
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • When I click on thumbnails to open photos in iPhoto, the larger image suddenly disappears.

    When I click on thumbnails to open photos in iPhoto, the larger image suddenly disappears. How to fixed it?

    what version of iPhtoo ? Of the OS? what recently changed?
    Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - repair permissioons
    LN

  • Hi, l authorized my computer using iTunes and it said successful, but when l start syncing my applications l get this error: "The iPhone "My name" could not be synced because this computer is no longer authorized for purchased items that are on this phone

    hi, l authorized my computer using iTunes and it said successful, but when l start syncing my applications l get this error: "The iPhone "My name" could not be synced because this computer is no longer authorized for purchased items that are on this phone".
    May you help
    Thanks

    Try TS1389: iTunes repeatedly prompts to authorize computer to play iTunes Store purchases.
    tt2

  • I tried to share a photo using e-mail and when I set up my gmail account I typed in the wrong user name and password.  Now i can't share photos using e-mail.

    I tried to share a photo using e-mail and when i set up my gmail account I typed in the wrong user name and password.
    Now I can't send a photo because i get an error message saying the user name and password do not match.
    How do i save a new gmail user name and password??

    iPhoto Menu ->
    Preferences ->
    Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them.

  • Music on my phone lost.  When I sync to I Tunes it doesn't add the music.  phone updated to 6.1.  how do I get the music back in the phone.

    Music loaded to my phone is lost.  When I resync to I Tunes it doesn't add the lost music.  My phone was updated to 6.1.  Any suggestions on how to restore the music to the I Phone?

    If the music is in iTunes you should be able to sync it back to your iPhone.
    What settings do you have in the iTunes Music tab for your device?
    Is Sync Music set?
    Is Entire music library checked?
    What happens when you sync?
    If iTunes is confused and thinks the music actually is on your iPhone you could try unchecking Sync Music and then sync. Follow this by checking Sync Music and then sync again.

  • When I send a mail from my iPhone, it displays the mail server name to the receiver if the mail and does nog display my name or e mail address. This only since upgrading my iPhone5 to iOS7

    When I send a mail from my iPhone, it displays the mail server name to the receiver if the mail and does not display my name or e mail address. This only since upgrading my iPhone5 to iOS7. I've checked all settings etc. anyone have a solution please?

    Rectory wrote:
    Please can someone tell me how  I can change this so when I send a mail from my phone and from the IPad that it reads from me.
    You need a separate email address but you've already ruled out that solution.

  • Need Image to be transperent so that the Text would be also visible below that .

    Hi ,
    I am having some Text content (About Companys information  3 paragraphs of data) , getting displayed on the
    screen with the help of TextArea componet .
    All this is working fine .
    Now i am trying to display an Image on to  the screen , in such a way that both the Image and the text should be visible .
    Means in one word i want image to be transperent so that the Text would be also visible .
    Is this possible ?
    Please share your ideas .
    Thanks

    Hi Kiran,
    Try to use the below code and use the background image which you want to use for the Image Tag.
    <mx:Canvas id="canvas"
       width="100%"
       height="100%"
       backgroundColor="#000000">
       <mx:Image
        source="assets/image/web20_Source.png"
        width="100%"
        height="100%"/>
       <mx:TextArea id="text"
        width="100%"
        height="100%"
        backgroundAlpha="0"
        focusIn="event.currentTarget.setStyle('backgroundAlpha',0.5)"
        focusOut="event.currentTarget.setStyle('backgroundAlpha',0)"
        color="#ffffff"
        >
        <mx:htmlText>
         <![CDATA[This is a demo for applying a background for TextArea.]]>
        </mx:htmlText>
       </mx:TextArea>
      </mx:Canvas>
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • I made a beautiful invitation for my sons graduation in pages it has 1 photo on the front and 5 photos on the back. When I try to export it to my work pc the text is not supported and it looks terrible. Help!

    I made a beautiful invitation for my sons graduation in pages it has 1 photo on the front and 5 photos on the back. When I try to export it to my work pc the text is not supported and it looks terrible. Help!

    How did you transfer it to the PC?
    Not good to export as a Word .doc/x, better to:
    Menu > Export > PDF
    Peter

Maybe you are looking for

  • ITunes 10 (Mac) no longer sees my iPhone 4

    iTunes no longer thought it was installed on my computer. I installed it, I re-associated my  music, and then I tried to sync my phone, but because I manage music manually, I was getting an error message. I called Applecare to see what the error mess

  • Container to Container binding in Workflow binding editor

    Hi all, I have an issue using Container --> Container binding in the Workflow binding editor (transaction SWF_BAM). What I want to do is to be able to extend the data provided by the event (i.e call a BAPI using values supplied) before assigning it t

  • Conditions in BPM

    Hi Experts, Scenario : SOAP -> First webservice -> Second Webservice -> Third Webservice Requirement : If the EmpId from the SOAP client request is 234 then I have to call the first webservice otherwise I have to skip the First webservice from the bu

  • How To Buy Flash Media Enterprise Server

    Hello, How can we purchase FMES 4 Licenses? Our startup urgently needs it Adobe representatives are not getting back to us Andrey

  • I want to copy and paste within an online forum - firefox wont allow it

    i often use an online forum for work with the OU and am unable to copy and paste within the forum - if i wish to copy from one thread to another, i have to copy to word then re copy and paste to another thread - annoying