How can I simplify the code in this situation?

I want to create some interaction about ABCDEFGHIJKLM objects. If I l click A and B, the screen will show F. If I click A and C, it will show G.  If I click A and D. it will show F..etc.  When I mouseove A , it will show only L. If I mouseover B, it will show M only. In this situation, I need to create each eventListener (MouseoverA MouseOverB CLICK A, CLICK B, bothAandBClick, bothAandCClick, bothAandDclick......) Can I use other method to simplify the code?
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.ui.Mouse;
var redbtn:MovieClip=new Redbtn();
redbtn.x=321;
redbtn.y=13;
addChild(redbtn);
var yellowbtn:MovieClip=new Yellowbtn();
yellowbtn.x=130;
yellowbtn.y=106;
addChild(yellowbtn);
var bluebtn:MovieClip=new Bluebtn();
bluebtn.x=726;
bluebtn.y=89;
addChild(bluebtn);
var blackbtn:MovieClip=new Blackbtn();
blackbtn.x=236;
blackbtn.y=479;
addChild(blackbtn);
var greenbtn:MovieClip=new Greenbtn();
greenbtn.x=590;
greenbtn.y=457;
addChild(greenbtn);
var page1:MovieClip=new relationship();
var redBtnClicked:Boolean;
var blueBtnClicked:Boolean;
redbtn.addEventListener(MouseEvent.CLICK, onRedBtnClick);
redbtn.addEventListener(MouseEvent.ROLL_OVER, onRedOver);
redbtn.addEventListener(MouseEvent.ROLL_OUT, onRedOut);
bluebtn.addEventListener(MouseEvent.CLICK, onBlueClick);
bluebtn.addEventListener(MouseEvent.MOUSE_OVER, onBlueOver);
function onRedOver(evt:MouseEvent):void{
          trace("redover");
          redbtn.gotoAndStop(2);
function onRedOut(evt:MouseEvent):void{
          trace("redout");
          redbtn.gotoAndStop(3);
function onBlueOver(evt:MouseEvent):void{
          trace("blueover");
function onRedBtnClick(evt:MouseEvent):void{
          redBtnClicked=true;
          bothClickedF();
function onBlueClick(evt:MouseEvent):void{
          blueBtnClicked=true;
          bothClickedF();
function bothClickedF():void{
          if (blueBtnClicked&& redBtnClicked){
                    trace("two buttons are clicked");
                    addChild(page1);
                    redBtnClicked=false;
                    blueBtnClicked=false;
page1.trailer_sex.addEventListener(MouseEvent.CLICK, page1Click);
function page1Click(evt:MouseEvent):void{
   removeChild(page1);

I means  this
Click
A and B  go to C
A and D go to E
A and F go to G
A and I go to J
A and N go to O
B and D go to K
B and F go to L
B and I go to M
B and N go to P
F and I go to Q
F and N go to R
MouseOver
A  over then appear S
B  over then appear T
D  over then appear U
F  over then appear V
I  over then appear W
N  over then appear V
There is not time limit.

Similar Messages

  • HT2534 What is iTune gift card? How can i get the code from this?

    What's iTune gift card? How can i get the code from this?

    "What's iTune gift card?"
    It is a gift card like any other gift card.  It is a card that contains credit for purchases in the itunes store.
    "How can i get the code from this?"
    Genreally there is a scratch of area under which the code lies.

  • How can I get the code of a Custom Module?

    Hi guys.
    I'm in a new client, and they have a problem in one of their interfaces. The PI version is 7.1.
    The interface uses the Mail Adapter, and there is a Custom Module there. The company that did this module is no longer in this client, and they did´nt leave any document about this module.
    So, how can I find the code of this Module?
    Regards,
    Eric Freitas

    Hello,
    Check Vadim's reply
    Checking code in custom adapter module
    Thanks
    Amit Srivastava

  • How can I view the code for a routine in an update rule

    on loading data for 0PLANT_ATTR, I am getting an error for No Local Currency found in Plant 1000 and SAles Org 6000. 
    in looking at the update rules for this, I see that there is a routine for the update of the local currency:
    Perform GET_LOCCURRCY_FOR_PLANT
    USING COMM_STRUCTURE-PLANT
    COMM_STRUCTURE-SALESORG
    CHANGING hlp_monitor
    RESULT
    hlp_subrc.
    How do I see the code behind this?  I want to make sure that I understand everything that needs to be populated in Master Data so that I can ask my functional consultant to update all the necessary fields.
    Thanks
    JP

    Hi Riccardo,
    When I double click on it, I get a message at the bottom that says program reindexed. 
    After looking again, I found that when I double clicked on the comm structure, then the routine, I was able to see it.
    Thanks
    JP

  • How can i get the code html and css of my form please help me

    how can i get the code html and css of my form

    HI,
    If you like to embed the HTML form in your web page then you will need to obtain the form code from the Distribite/Embed tab. Additional information can be found here: http://forums.adobe.com/docs/DOC-1991
    You will not be able to access/modify the css code or the rest of the form html code.  If you like to view the source of of a HTML page, please use your browser 'view source code' functionality.
    I hope this answer your question,
    Thanks,
    Lucia

  • How can I write HTML code in this forums

    Sorry but I didn't know where to post this thread.....
    How can I write HTML code in this forums?

    Hello,
    Every piece of code in your post should be wrapped with the forum tags [ code] and [ /code], without the blanks.
    In case of the <a> tag, that is not enough. In this case, you have several options. The most elegant one is to use the entity name for the less-then sign - & lt; - without any spaces. Other options is to add a space between the less-then and the ‘a’ character (and make a note of it) or change the less-then character with a left bracket one.
    When posting code, you should always use the forum preview option, just to make sure the forum software “understood” your code correctly.
    Hope this helps,
    Arie.

  • V5 How can I get the code from an itunes gifcard that got scraped off

    How can I get the code from an itunes gifcard that got scraped off

    Try Here  >  http://support.apple.com/kb/TS1292
    If no joy...
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • HT201269 How can I disable the code when signing on to my phone?

    How can I disable the code when signing on to my phone.  This is very annoying.

    Settings>General>Passcode Lock...enter your passcode, then: Turn Passcode Off.

  • HT4061 HOW CAN I GET THE CODE TO MAKE IT WORK IN EGYPT

    HOW CAN I GET THE CODE TO MAKE IT WORK IN EGYPT
    this is my details    serial: DN*******8GH
    IMEI : ****
    MEID : ****
    MODE : MD656LL
    <Edited By Host>

    If your phone is not unlocked you need to contact the carrier it's locked to.

  • Just got an ipad air and while creating my apple ID with credit card, I got to itunes gift card/ itunes gift section and was asked to supply a CODE to proceed with the form but I don't have the code. please how how can i get the code?

    Just got an ipad air and why creating my apple ID with credit card, a CODE was requested in the itunes gift card/ itunes gift in order to preceed with the form but I don't have the code. Please how can I find the code so as to enable me complete the form successfully. Thanks alot

    The iTunes gift card field is optional, you don't have to fill it in - leave it blank if you don't have a gift card.
    iTunes gift cards are country-specific (they can only be used in their country of issue), and they are not available in all countries - so you might not be able to dill it anyway.

  • I have a Mac Pro OS 10.7.5 and have a DVD+R disc with files on it, but it ejects the disk after about 10 seconds--what to do?  How can I get the data off this disc?  I can see it has been already burned, so files are on there?

    I have a Mac Pro OS 10.7.5 and have a DVD+R disc with files on it, but it ejects the disk after about 10 seconds--what to do?  How can I get the data off this disc?  I can see it has been already burned, so files are on there?

    Try cleaning the lens and see if that will restore functionality to the DVD drive.  Use a DVD lens cleaning disk, if you have a can of compressed air, shoot some into the slot or wrap a fine microfiber cloth (eyeglasses cleaning cloth)  around a business card and insert it gently inside the slot.
    If no success, make an appointment at an Apple store genius bar and get a free diagnosis from them.
    Ciao.

  • How can we write the code for opening the command prompt and closing the

    how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)

    rakeshsikha wrote:
    how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)?

  • I HAVE TO INSTAL A PRODUCT C LLED "KUDANI AIR " . FAILURE TO DO SO IS BASED ON  ADOBE AIR , SO I AM TOLD . HOW CAN I MAKE SURE THAT IS THE CASE ?? HOW CAN I SOLVE THE PROBLEM IF THIS IS THE CASE ??

    I HAVE TO INSTALL A PRODUCT CALLED "KUDANI AIR " . FAILURE TO DO SO IS BASED ON  ADOBE AIR , SO I AM TOLD . HOW CAN I MAKE SURE THAT IS THE CASE ?? HOW CAN I SOLVE THE PROBLEM IF THIS IS THE CASE ??

    if you try to install an app that depends on adobe air, you should be prompted to download and install adobe air (unless it's already installed).
    you can download and install directly so you're not prompted by that app, Adobe - Adobe AIR

  • I scratched the label off on a £25 gift card and it removed the code. How can I get the code for the card?

    I scratched the label off on a £25 gift card and it removed the code. How can I get the code for the card?

    Click here and request assistance. Gift cards are usually if not always final sale because it would be easy enough for someone dishonest to abuse returns or replacements of them.
    (58640)

  • How Can I change the Authentication for this Dynpage

    Hello ,
    I have created a rss feed in special Dnypage.   When I try to connect with rss reader  to dynpage it occurs an error 500.  The problem is that no logon screen appears and the portal would start the Dynpage with the User Guest.
    How Can I change the Authentication for this Dynpage ? I need a LogonScreen
    RSS URL:
    /irj/servlet/prt/portal/prtmode/rss/prtroot/com.geberit.ep.uwlquick.uwlquickstarter?mode=rss

    Hi ,
    sry the entry in xml does not help. No Logon Prompt
    <?xml version="1.0" encoding="UTF-8"?>
    <application>
      <application-config>
        <property name="SecurityArea" value="NetWeaver.Portal"/>
        <property name="Vendor" value="xx.com"/>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb,com.sap.portal.pcd.glservice,com.sap.portal.ivs.iviewservice,usermanagement,,com.sap.netweaver.bc.uwl"/>
      </application-config>
      <components>
        <component name="uwlquickstarter">
          <component-config>
              <property name="SafetyLevel" value="no_safety"/>
            <property name="ClassName" value="com.xx.portal.uwl.uwlquickstarter"/>   
          </component-config>
              <component-profile>
                   <property name="AuthScheme" value="default"/>
              </component-profile>
        </component>
      </components>
      <services/>
    </application>

Maybe you are looking for

  • Can I make an iPhoto book that is only 10 pages long?

    I want to make a hardcover iPhoto book, but only have 15 photos to go into the book, so 20 pages is too many pages. Can anyone advise? Does iPhoto let you make a book that is less than 20 pages or do you have to fill that whole 20 pages in order to m

  • Bank details not visible in R3 after syndicating from MDM

    I have used standard map debmdm06 to syndicate  Customer  records from MDM(SP5) to R3.The IDoc seems to get posted,but the bank details were not appearing in R3. Can anybody help me out in this issue.

  • How to use th out parameters?

    Hi all, I have the following code, out_error:='';                                 proc_validatePriceRecord(pd_rec.product_name,pd_rec.product_id,pd_rec.market,out_error);                                 DBMS_OUTPUT.PUT_LINE(out_error);Is this the rig

  • Mountain Lion Download - Not completed

    I am currently running 10.7.5 on my macbook air. I recently downloaded the new version of Mountain Lion and even though it says I have the updates and the app store says I have already purchesed it - my system still shows as running 10.7.5. When I ch

  • IPhotoBook Image File Sizes and Formats

    Morning (it is here in the UK!) Similar questions found on the forum - but not exactly what I need. Please may I ask for your help on the forum.  I notice 'Old Toad' in particular seems to respond to these types of enquiries! I've got an iMac - about