Adding a doubleclick event on Inline Graphic Image

Hello all,
I'm trying to add a doubleClickEvent to an
InlineGraphicElement, so that a popup window appears, and I can
enter a new width and height. I'm having trouble adding a listener
for the doubleClick event to an image that I'm about to add as an
Inline Graphic Element. 1. Before or after I'm inserting the image
with insertInlineGraphic(source,width,height), how can I add a
double click event listener? 2. Once I get a doubleclick mouse
event working, how again can I access the selected or doubleclicked
image so I can modify width and height attributes?
Thanks so much for the help!
Justin

Thanks so much for the reply on this. I finally figured out
what you meant. I managed to capture double clicks in the canvas
but the canvas won't register events on inline graphic elements
(they seem to be blocking the canvas), and in addition I can't
access the eventmirror, so I can't add a listener directly to an
inline graphic element. So I'm not quite sure what the best way to
handle this is.
Justin

Similar Messages

  • Event listener on inline graphic

    Hi
    Is there a way to add an event listener to an inline graphic.
    I cant seem to find much... or any help concerning this in
    the forums.
    I remember reading a post about this a while back where
    someone wanted to add a doubble click to an inline graphic without
    success. Has that been resolved?
    Im desperate to get this working and any help would be much
    appreciated
    Thank you

    HI
    Thanks again for the reply. Check StatusChangeEvent.status
    for "ready" works perfectly.
    Sorry to ask more questions on this topic but I cant find
    documentation or info anywhere else. If you could give me a link I
    would be happy to go that route...
    I added an event listener to the inline graphic and gave it a
    name as follows:
    ILG.graphic.name = LIG.source.toString();
    ILG.graphic.addEventListener(MouseEvent.MOUSE_OVER,
    ILGhandeler);
    then when I trace the target I get //instance23
    eg trace(e.target.name) //instance23
    but if I do the following I get the source that im looking
    for:
    trace(e.target.parent.parent.name) // path/to/graphic.
    1) Is what IM doing good practise?
    2) can I add the source to something other than the .name
    //eg ILG.graphic.theurl = ILG.source.toString();
    3) Is there a way to target and replace or update an
    ILGElement just by knowing its source.
    ie (replace or update) ILGElement where LIGElement.source ==
    "theurl"
    Help with this will be awesome. Thank you for your patience

  • How can we place an image in already created inline graphic frame?

    Hi,
    AIM::
    To place an image in the inline graphic frame.
    OBSERVATION::
    As i have analysed the snippet Runner,i came to know that it allows to load the placegun with the file(in my case image). but in order to place it,we need to click on the document..and then the image is placed at (0,0) of the page(I suppose Indesign does it automatically).
    what is needed,is to place image in already created inline graphic frame. i have created a inline graphic frame at some position in the story,but now i required to place image in this created frame.

    I have the same problem. Can you give me a short code sample for that.
    I have an image and want to place it in the currently selected frame...

  • Colour below paragraph text in inline graphic way

    Hellow,
    I am doing children story book in indesign cs5. Every story has  title, picture, story, questions and some other fun matter.
    Story flows in two and two and half pages. Below STORY MATTER ONLY we want to put colour which flows one frame to another or one page to another.
    I am doing full INLINE graphic i.e. every thing in one frame  flowing automatically if I reduce or add matter in between.
    Can it possible colour patch below story matter  adjusted atuomaticelly if matter reduced or added and flow from one frame to another.
    Can we define in paragraph style colour below paragraph.

    sadhale wrote:
    Dear Peter Spier
    Yes, I tried paragraph rule also. But It dosent work because if paragraph ends with one or two words, colour patch dosent stretch to right edge.
    Then colour dosent go little beyond matter.
    I can use Anchor object, but I need to adjust anchorde patch as per matter.
    You will get better idea from the image below
    Have you considered applying the background color as a filled rectangle on the master page, and creating the white separators around graphics, and activities items as anchored objects with white fill and/or borders?
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • How to import many large graphic images to fit into column width?

    I have a 2-column layout and about 150 large graphic images which must be imported so that they fit exactly into the column width. These are bitmaps which have all the same dimensions. All of them will need a border (stroke). And they should be inline graphics because they belong to exact positions in the text flow.
    What would be the sensible approach to that (apart from scripting which I have not done yet)? I tried to define an object style which has the attribute "Fit content to frame", but this does not scale the image to the column size. How can I avoid to format 150 those images manually?

    It may be easier to change the ppi in photoshop so the image can be placed at the exact size.
    so if the image is 10 inches and the file is 300 ppi
    with resample image unchecked change the width to whatever you want it say 2 inches no the ppi will automatically change to 1500 ppi. Save. If you are creating a PDF make sure these images are not downsampled if you need the resolution.
    another way if all images are the same size would be to size one and place it where all the images go and relink to the other pics, when you relink it should retain the properties of the previous pic.

  • XML inline graphic

    Hi Guys,
    I really need some help with this. A deadline is fast approaching and I feel like I am going in circles with this.
    I have an xml file with content from a database. Everything is coming through ok except for the inline graphics. They are coming through as text boxes that are as small as they can be (not the original size or even the size of the content - see image below). See the red plus sign? My first clue since it's supposed to be a graphic box.
    When that box is expanded to reveal the content, it actually displays the XML coding. See the version declaration? Weird.
    And this below is how the image should look on import. This is just done from the stylesheets by hand.
    I have also tried using a DTD file with only this in it...
    I got that from one of the tutorial files in Lynda.com. Which I have viewed basically the entire course a few times and I am still missing something. Its a flowbased document. Does anyone have any advice or input? I have pored over the internet and I am not really finding anything that is helping.
    Im not sure what I'm doing wrong. ANY help would be greatly appreciated!!
    - Sarah

    I should have also provided the actual XML. The yellow line is the tag for the image that i am trying to import. Also tried with a jpeg file and with a closing tag instead of self-close.
    Im using map tags to styles and this particular tag does not have a style associated with it. But I do want to apply a paragraph style to the actual line it is on.

  • Text Stored as Graphics image

    I would like to create a one page website with iWeb. The page itself would contain one image of my logo, my name and an email address, and two short paragraphs of text.
    The Apples for Dummies (2008) recommends storing text as a graphics image to prevent nefarious searching of the text. For example, the author advises storing an email address as a graphics image and then hyperlinking it. The authors are short details how to accomplish this. My empirical attempts to store text as a graphics file have failed. Any suggestions would be helpful. I would prefer to use whatever software that came with my Macbook. I am keeping things simple and using only Apple software.
    Thank you, macdvm

    macdvm:
    You can change any number of shape features by using theInspector/Graphics pane.
    Also you can change a text box to a graphic by adding a drop shadow to the text and setting the opacity of the shadow to zero.
    Click to view full size
    OT

  • I created a signature ID and customized the signature; however, when I go to sign it only shows the name layout or graphic image? How do I go back to using the certificate?

    Dear Forum
    I was using Adobe version XI and the signature feature disappeared from the menu. Now I downloaded Acrobat Reader DC. Using the menu and instructions I created a signature ID and customized the signature; however, when I go to sign a document it only shows the name layout or graphic image? How do I go back to using the certificate that I created?
    Any help would be greatly appreciated.
    Regards
    Carlos

    Firefox works fine on Windows 2000 SP4 for me.
    Any chance you have a dial-up connection that uses a web accelerator to speed the loading of content?

  • I added a calendar event to repeat every two weeks, but it repeats every day.

    I've added a calendar event to repeat every two weeks, but it repeats every day.  The original event was set up for all Day on Wednesday, Nov 5.  Setting up for a single  day worked fine.  Add the repeat option and select every two weeks...and it shows up every day until the end date.  I've re-booted the phone and tried other start dates.  Same result.  This is in the base iPhone calendar.  No other calendars have been installed.   iPhone 6  iOS 8.0.2.  Any suggestions?

    Found a workaround:
    Just change each attribute 1 item at a time.
    Create the calendar entry for one day only with no other settings.
    Go back in and edit it so that its every two weeks, then leave and confirm this worked.
    Open calendar back up and add in the end date.
    That's the only way I could get it to accept those settings, one attribute at a time.
    Misc. bug I suppose.  I miss the "It just works" days.  Living in silicon valley, the QA engineering buds I have at apple go on rants about the undisclosed/undiscovered but known bugs in ios every time we're having drinks.  From what I hear, internally IOS8/8.1 weren't ready for prime time push just yet.

  • I cannot insert a graphic image in a new composition: win 7, tb 24

    At times when composing a new e-mail I cannot insert a graphic image in the message. I have tried both the Insert button and the Insert icon. This does not happen all the time; but, when it does happen I can't seem to make it work. My system is a Win 7 with Thunderbird 24.3.0.5. I have tried inserting different graphic images and have tried all combinations in the Image Properties pop-up window.
    I have closed and reopened Thunderbird. I have restarted my system. I have closed all windows except Thunderbird. Nothing helps. Help! Thank you, Bill Gray

    Bill Gray here again. I find that if I open another Write window, then copy/paste my entire e-mail from the initial window -- I can insert graphics into the new window.
    What happens in Thunderbird to make this happen? This has happened a number of times. But, at least now I know that I can open a new Write window and get around the problem. Yet, I am still stuck with the nagging question: Why does this happen?
    Thank you and God bless, Bill Gray

  • Onclick and doubleclick event not working in CC

    hi..  onclick and doubleclick event not working in CC..  how to get these events to work?
    Please advise anyone. Thanks alot!

    Is your event target a ListBox?
    In that case there are serious issues to deal with:
    http://indiscripts.com/blog/public/ScriptUIEvents.pdf
    @+
    Marc

  • TCS2 Inline graphics hidden by conditional text cause unwanted carriage returns

    I have some FrameMaker documents where there are some small icons in the text.  Their anchored frames are set to be "at insertion point" in FrameMaker. They work fine normally, but when the icons are hidden by conditional text, they cause unwanted carriage returns in the RoboHelp output. The text is split into different paragraphs in the middle of the sentence.
    For example, this is the FrameMaker input:
    And this is the RoboHelp (WebHelp) output:
    I notice that if I manually edit a topic in the RoboHelp editor, I can manually apply a conditional tag to an inline graphic without causing a line break.
    So, I'm wondering if there's a way to avoid this when using linked FrameMaker documents.
    Thanks,
       Philip.

    Your logs are generated automatically by your system as it runs - there is nothing further that you need to do. They are ordinary text files, so you can display them on a terminal using any of the usual tools - cat, less, grep, etc.

  • When adding a new event, I cannot put the location in.  It will not allow me to do that.

    How do I get the location area to work when adding a new event?   The location area will not allow me to enter information.

    How do we find a remedy?

  • How to avoid doubleclick event on a datagrid scrollbars?

    Hello.
    I've a datagrid.
    I need a doubleclick event cliccking on a data grid row.
    I've enabled the doubleclick event. It works fine, when the user doubleclicks on a row, an event happens! In my case I open a modal window. Great!
    Now the problem:
    The problem arises when the user clicks in a short time on a data grid scroll bar (both horizontal or vertical). In this case a double click event is dispatched.
    But his intenton is just to scroll the grid, no more.
    Please, notice that the dobule click on a scrollbar is a well-known action that can be performed in all the applications and operating systems.
    I neet the "double click" event just on a data grid rows and not on its scrollbars. Cliccking twice or more on the scrollbar I just want to scroll the grid. How can avoid to dispatch an event?
    Thank you
    Pbesi

    I was returning today to add something about custom item renderers but you beat me to it, Pbesi.   I have a custom gridItemRenderer which I now have to check for just as you demonstrated above.  What I don't understand is why I can't just do this:
    if( event.target is IGridItemRenderer )  //Should be true for both default and custom
    My custom renderer implements the IGridItemRenderer interface, but when I double click one in the grid, the event.target is not myCustomGridItemRenderer, it is GridLayer.  So what I have to do is this:
    if( (event.target is IGridItemRenderer) || (event.target is GridLayer) )
    I presume this would work for all custom gridItemRenderers, but I only have one, so I haven't tested this.  Any idea why GridLayer is the type of the event target?  My custom renderer is very simple.  It just renders Booleans as "Yes/No" rather than "True/False"
    <s:GridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          clipAndEnableScrolling="true"
          implements="spark.components.gridClasses.IGridItemRenderer">
          <fx:Script>
               <![CDATA[
                    override public function prepare(hasBeenRecycled:Boolean):void {
                         lblData.text = (data[column.dataField] == true) ? "Yes" : "No" ;
                                  ]]>
         </fx:Script>
          <s:Label id="lblData" top="9" left="7"/>
    </s:GridItemRenderer>

  • Storing graphic images in a laser printer.

    I want to store small graphic images (.gif, .jpeg, etc.) in the laser printer's memory and use PLC to pull the image onto a sheet to print. Has anyone done this? Need some direction.
    Thanks

    You can't store images in the original source format (.gif, .jpg, etc.), but (assuming that the printer model in question supports the PCL5 Page Description Language) you can (using suitable software) convert these images to appropriate PCL-format raster or vector images, and embed these within PCL macros, which can be stored in the printer's RAM (or more permanently on a hard disk or other attached storage on more expensive models). 

Maybe you are looking for

  • 870A Fuzion Power has problem with keyboard and mouse movement only in games.

    Hey guys, recently built a new system and chose to go with the 870A Fuzion Power mainboard, everything has gone very smoothly execpt for one problem, only when I play games like Crysis 2 ect the mouse seems to jolt around now and again and the keyboa

  • File appears different in arrange window and sample editor

    I received a few AIFF files from someone Im working with: 24 bit, 44.1, same as I use. However, although they show up fine in the sample editor, in the arrange window they look clipped, as if they've been recorded too loud. This is making them very h

  • IPhoto 6.0.6 and RAW images - compatible??

    I've taken some RAW images with my Panasonic Lumix DMC-LX3. I thought I had read somewhere that I would be able to import RAW images into iphoto 6, although it wouldn't be exactly straightforward, but now can't find the instructions. Can I do this? I

  • Update form without user seeing it

    I want to update the freight field in the deliver ticket of SAP B1 9.0.  Currently I am getting the form then setting its visibility to false but I still see it when it is called.  My code is as follows oOriginalFreight = oOriginalForm.Items.Item("89

  • Essbase Add-in GCSetlocale error for 11.1.2.2 while uninstalling previous 7 ad-in version

    Hello all, on our clients machines, which are all running 7 version of the excel add-in, trying to remove the 7 version and re -install the 11.1.2.2 version results in the following error "Failed in GCSetlocale(). Please contact your system administr