Is that possible to add a listener to a class that bind with a image?

Hello, I am trying to add listener to a class that binds with image.  For example, I want to add listener to customDividerSkin(see example below, i bold and underline the text), so when user click the customdividerSkin image haloGreen box will be hided. Thanks,
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/09/18/customizing-the-divider-skin-on-a-dividedbox-conta iner-in-flex/ -->
<mx:Application name="HDividedBox_dividerSkin_test"
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white"
initialize="init();">
<mx:Script>
<![CDATA[
[Embed("arrowLeft.png")]
private const customDividerSkin:Class;
private function init():void
dividedBox.setStyle("dividerSkin", customDividerSkin);
]]>
</mx:Script>
<mx:HDividedBox id="dividedBox"
horizontalGap="24"
width="100%"
height="100%">
<mx:ViewStack id="AddFormViewStack"
  width="100%"
  height="100%">
<mx:Box id="box1"
backgroundColor="haloGreen"
width="100%"
height="100%"
minWidth="100"/>
<mx:Box id="box2"
backgroundColor="haloBlue"
width="100%"
height="100%"
minWidth="100"/>
</mx:ViewStack>
</mx:HDividedBox>
</mx:Application>

Set the class as the source for an mx:Image and set the listener to the  Image

Similar Messages

  • Is possible to add 2 conditions in a view that is used from an extractor?

    Hi alls.. that´s my question:
    Is possible to add 2 conditions in a view that is used from an extractor?
    I have an extrator in R/3 that´s a table view, so i want that this filter from 2 differents fields when this has the same value.
    For example:
    filter when FIELD1 = ZZ or when FIELD2 = ZZ .
    ..different fields, but the same type of data and value!
    is it possible?
    When i trying to activate the view, then show me an error that this is impossible to do.
    Help me..please!!!
    TY

    The error is :
    Only be able to 'OR' connects for the same fields.
    You are trying to connect with 'OR' select conditions from differents fields.
    (sorry but the sistem is in another language ---> not english)

  • Is that possible to add set pagination to interactive reports?

    Hi, Guys:
    Is that possible to add set pagination to interactive reports like that in classic reports (like row 1 to 20, row 21to 40,...)? I know Jarola had implemented it on
    http://actionet.homelinux.net/htmldb/f?p=100:1
    see thread Column Alignment / Pagination in Interactive Reports
    I can add arrow to last page of report, but I still cannot figure out how to add set pagination to interactive report like what Jarola did, could anyone help me on this?
    Thanks.
    Sam
    Edited by: lxiscas on Nov 6, 2012 3:22 PM

    I made it!
    http://dbswh.webhop.net/htmldb/f?p=BLOG:READ:0::::ARTICLE:41900346848694
    Edited by: lxiscas on Nov 6, 2012 4:44 PM

  • Is that possible to add one chracteristic which is in one cube to another cube which doesn't have that ?

    Hi Experts,
    Is that possible to add one chracteristic which is in one cube to another cube which doesn't have that ?
    I want to do it with out using a multiprovider or virtual cube.
    The scenario is ,
    I have two cubes -Z_XXX;Z_YYY
    Now Based on the client's requirement,(i.e. a report development) I can get all the chracteristics and key figures from cube Z_XXX except one key figure.
    Now that keyfigure is available in the other cube (Z_YYY).
    Now I want to add this particular characteristic in this Z_XXX cube & I don't want to use multiprovider or something like that.
    Please help me.

    HI Sumit,
    Please find the link containg all details :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b00ddebe-cc48-2b10-758a-8008e63d6826?QuickLink=index&…
    Also , in case it is an attribute of existing characteristic, make it navigational and it will be avaible in Cube, just check the check box for same.
    Thanks and Regards,
    Amit.

  • I am trying to make a calendar in iPhoto and I would like the month to start on Sunday , not Monday. Is that possible and if so how can i do that???? thanks.

    i am trying to make a calendar in iPhoto and I would like the month to start on Sunday , not Monday. Is that possible and if so how can i do that???? thanks.

    What system and iPhoto version are you running?  What theme are you using.
    All of my calendars do have the month starting on Sunday,  Don't know of any way to change it.  Where are you located?
    How do you have your Calendar application's preferences set to, Sunday or Monday start of week? 

  • Yes; I see that I can add words to the dictionary so that firefox no longer flags them as wrong, but is there any way that Firefox will actually suggest the added words, so that if I do misspell them, they are pressented as suggestions?

    Spell check not only underlines words that are not in its dictionary, but suggests words when the flagged words are right clicked. However, if words have been added to the dictionary by a user, it does not appear that spell check incorporates the new words into to the suggestions for proper spelling. As a result, if I misspell a word that I have added to the dictionary, I have to manually correct it, because the correct spelling that was added to the dictionary is not offered in the drop down list when the word is right clicked.

    ''is there any way that Firefox will actually suggest correct spelling''
    Right click on the indicated word, and choose, the spelling, add to dictionary,
    or close the right-click context menu to allow without changing anything.
    You probably have other dictionary lists on your computer of words that you've already verified and added, open that list or a copy of it in Firefox and add the ones that show up as invalid using your better judgement that you have now than in the past.
    *http://dmcritchie.mvps.org/firefox/tab_capacity/001_with_underscore.htm#spellcheck

  • DragStart and DragComplete on a list scrollbar thumb- is it possible to add a listener to these events?

    can't seem to find the actual Element to: addEventListener(DragEvent.DRAG_COMPLETE, callback) in a List component.It seems there should be a way to write something like: myList.scroller.thumb.addEventListener(...) Any ideas? thank you -b

    Spark scrollbar thumbRelease, Halo scrollbar as thumbPosition.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Is it possible to add an Actionlistener to a JPanel?

    Hi
    Is it possible to add a listener to a panel that would react when the mouse button was pressed whilst over the panel.
    I have panels displying data and when the user clicks on th panel I wish to expand the data for better viewing.
    Mickp

    Do I add the mouselistener to the panel itself or do I add it to the Frame and have to determine that the mouse is over the panel?
    MIckp

  • Add action listener to an image....

    Hello there,
    I was wondering is it possible to add action listener to an image to connected back to a different page....
    for example if i have this code:
    ImageComponent displayFrame = new ImageComponent();
    add(displayFrame,"West");
    displayFrame.setBounds( 90,100,52,58);
    in one of my frame calling an instance Image component...
    Your coorperation is greatly appreaciated,
    Thanks,
    -pal-

    Here are a couple of suggestions.
    First suggestion is to use java.awt.CardLayout. This sets up a series of "cards" where only one is visible at a time.
            ActionListener buttonListener = new ButtonListener();
            JButton mainButton = new JButton("Forward");
            mainButton.addActionListener(buttonListener);
            JButton subButton = new JButton("Back");
            subButton.addActionListener(buttonListener);
            menuLayout = new java.awt.CardLayout();
            menuPanel = new JPanel(menuLayout);
            menuPanel.add("Main", mainPanel);
            menuPanel.add("Sub", subPanel);
        class ButtonListener implements ActionListener {
            public void actionPerformed(ActionEvent e) {
                String cmd = e.getActionCommand();
                if (cmd.equals("Forward")) {
                    menuLayout.show(menuPanel, "Sub");
                } else if (cmd.equals("Back")) {
                    menuLayout.show(menuPanel, "Main");
        }The other suggestion would be to use javax.swing.JDialog. That might be a little cleaner because it could be set up modal. It depends on what your menus look like. Check out this:
    http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

  • Is it possible to add color context row with javascript?

    Hi,
    Is it possible to add color context rows for a graphic object with javascript?
    Thanks.

    The match syntax changed between version 12.0 and 12.1, so my recommendation to you is to build an iGrid template the way you would like to do it with javascript, then export the display template from the workbench. 
    Open the template in a text editor and observe the format for the MatchValues, MatchColumns, and MatchColors strings.
    Then your javascript will follow the document.APPLET.gridObject().setMatchXXX("xxxx"); as shown in the script assistant.

  • I want emails to be updated only in wifi, is that possible

    I want emails to be updated only in wifi, is that possible in iphone4

    You don't have to disable that. Just disable the mail option under tht menu. You will find it when yoou scroll down.http://cdn.gottabemobile.com/wp-content/uploads/2013/06/iOS-7-data-use-tracking- by-app.jpg
    It would look something like this

  • HT1355 in foreign country, want to disable email and data but want to text? Is that possible?

    in foreign country, want to disable email and data but want to text? Is that possible? How to do it?

    No, that can't be done.  All desktops will show what is in the 'Desktop' folder in your home folder.

  • I can't add phising protection toolbar & get message that my version of Firefox isn't the latest, when it is.

    Actually, there's another element. I get a message saying there's a update available that I should add, but when I click on that there's no update (and my preferences are set to receive updates automatically). Then I get a message about installing anti-phishing, which (it says) needs to be added to my toolbar. But when I click on that it says it can't install that because I don't have the latest version of Firefox, but I do (I just downloaded it again, just in case).

    The problem is not Firefox - it's Google. They have changed the safesearch options.
    The way round it is to add the word 'nude' or similar to your keywords. Then you'll get taken to an 'are you sure' type option before finally showing you your results.
    More on these websites:
    http://thenextweb.com/google/2012/12/12/google-changes-search-image-safesearch-explicit/
    http://www.webpronews.com/google-preventing-u-s-users-from-disabling-safesearch-2012-12

  • HELP?! a class that implements .....  : java.util.Vector

    My instructions say this:
    In the constructor, create the collection object (Since java.util.List is an interface, you will need to instantiate a class that implements this interface: java.util.Vector or java.util.LinkedList or java.util.ArrayList).
    I know, this IS a homework assignment - I am not sure how to go about this. I DO have code so far up to this point, can anyone help?
    import dLibrary.*;
    import java.awt.Color;
    * @author Rob
    * @version 8/18/03
    public class PhrasesII extends A3ButtonHandler
            private A3ButtonWindow win;
            private ATextField stringAcceptor;
            private ALabel listOstrings;
            private ALabel inputString;
            private ALabel status;
            private java.awt.List display;
            private java.util.List collection;
    public PhrasesII()
            win = new A3ButtonWindow(this);
            stringAcceptor= new ATextField (50,420,200,25);
            stringAcceptor.place(win);
            listOstrings = new ALabel(100, 10, 100, 380);
            listOstrings.setFontSize(10);
            listOstrings.setText("List of Strings:");
            listOstrings.place(win);
            inputString = new ALabel(50,400,200,25);
            inputString.setFontSize(10);
            inputString.setText("Input String:");
            inputString.place(win);
            display = new java.awt.List();
            display.setLocation(200, 100);
            display.setSize(200, 250);
            display.setBackground(Color.lightGray);
            win.add(display, 0);
            win.setLeftText("Save");
            win.setMidText("Display");
            win.setRightText("Discard");
            win.repaint();
      public void leftAction()
        public void midAction()
        public void rightAction()

    I am getting a " can't resolve symbol" when I do thisYou have to either import java.util.ArrayList or specify it fully, e.g., "new java.util.ArrayList()".
    Is that the line that is causing you problems? The error message should give the line number.
    my instructions also say I have to use "interface
    java.util.List when declaring your reference" so I am
    confused about using "= new ArrayList();"What they're saying is that you want code like this:
    private java.util.List frogs;    // this is the reference declaration
    //... later on...
    frogs = new java.util.ArrayList();  // this isn't a declarationWhat this means is that when you declare a field or variable, you should declare its type to be an interface.
    But when you actually instantiate a value for that variable, then you should use a concrete class that implements that interface. (You have to; interfaces can't be instantiated.)
    This is good programming style for reasons I don't have the space to explain here.

  • Is it possible to add markups to a PDF that I am not the author of

    Most of the PDFs I generate are from other applications (like Autocad) where I "print to PDF" to create the file.   Most of the PDFs I recevie are generated the same way.   Prior to Acrobat Reader 8, it was simple for me and my collueges to exchange information on these PDFs by using markup tools and resending them with markups.   Since Acrobat 8 has come along, I now find it impossible to markup a drawing (no matter if I have created it using Print to PDF or if someone has sent it to me).  I went to the knowledge base and see that the drawing has to be enabled for markup in one of 2 ways
    In an open PDF, choose Comments > Enable For Commenting In Adobe Reader, and then save the PDF.  
    Start the wizard to initiate a shared review or an email-based review and follow the on-screen instructions. When you’re finished, commenting is enabled in the PDF that you specify for the review. 
    Well, there is no Comments selection in my toolbar.   Second method is given by
    Quickstart: Start an email review
    An email-based review lets you track review status and merge received comments into the PDF.
    Click Review & Comment and choose Attach For Email Review.
    If prompted, enter your identity information to create a reviewer profile.
    Follow the on-screen instructions to select the PDF, invite reviewers, and send the email invitation.
      If your email application doesn’t send email automatically, you may need to answer alert messages and switch to your email application to finish sending the message
    But there is no Review & Comment button to click.
    So, can someone tell me, can I still do a simple markup of any PDF?   Even if I have to jump through hoops can I?    I guess I can understand Why Adobe has done away with this feature in their free tool, as they were not getting any revenue off of it, but it greatly diminishes the usefulness of Acrobat Reader and therefore all PDFs for me.
    Thanks in advance for your response.

    To enable this right you need Acrobat, not the free Reader.
    However, starting from Reader X it is possible to add simple markups to any file, unless it has been specifically disallowed by the creator of the file.

Maybe you are looking for

  • Cash discount payment not transferred from SD to CO-PA

    Dear Gurus, We have notice that since a couple of months ago, the cash discount payment amount introduced in the SD bill through a condition type is not transferred to the profitab. analysis document (that is, is not carried to CO-PA module). While w

  • Validation on View Objects

    Cab we set validation on View Objects to override the validations on underlying entity objects?

  • Hooking up to printer

    Is ti possible to hook a printer that has been hooked up to a PC before specifically "hp psc 2110 all-in-one" or do i need to buy a specific printer for mac book pro?

  • Spry accordion - open url in separate frame on click

    I'm trying to load a page in a frame at the same time a user clicks on an accordian panel. Javascript doesn't seem to fire and I can't find help on the topic. Can someone point me in the right direction?

  • My homepage doesn't always display properly

    Occasionally when I have two windows open and I close one then open a 3rd new window the 3rd window will display the last site I visited rather than the homepage. This does not happen every time I have two windows open but only with certain websites.