Probably very simple, but cause me problems

Hello, I'm going to try to keep it as simple as possible increase the chances of someone who can help me - thank you if you can!

I have a movieclip: allows you to call, abc

I have a second clip, lets call him it 123

123 has the value alpha = 0, so it can't be seen.

When the mouse passes over abc, I 123 change alpha 1 and when it the mouse is off abc 123 to alpha 0 new

Here's how (and it works):

123.alpha = 0;

ABC.addEventListener (MouseEvent.MOUSE_OVER, manageMouseOver);

function manageMouseOver(event:MouseEvent):void {}

.alpha 123= 1;

}

ABC.addEventListener (MouseEvent.MOUSE_OUT, manageMouseOut);

function manageMouseOut(event:MouseEvent):void {}

123alpha = 0;

}

It works very well.

However, I would be able to switch to 123 and click...

In this case however, the mouse has been moved off the coast of the abc and 123 go to alpha 0.

It is just a simple menu to my eyes...

With a mouse on showing a second movieclip and a mouseoff hide...

How can I make this work?

Many thanks if you can help!

What you need to do, is to have your MovieClip called nested inside abc 123. In this way when you hover over abc and 123 is made visible, you can move your mouse to 123 without triggering the ROLL_OUT event (as long as it has no space empty between the content of abc and 123 mc). Also, you can eliminate some of this code with a switch statement:

var 123MC:MovieClip = abc.123;

123MC.Alpha = 0;

123MC.addEventListener (MouseEvent.MOUSE_DOWN, onMenuClicked);

abc.addEventListener (MouseEvent.ROLL_OVER, onMouseInOut);

abc.addEventListener (MouseEvent.ROLL_OUT, onMouseInOut);

private void onMouseInOut(e:MouseEvent):void

{

{Switch (e.type)}

case No. MouseEvent.ROLL_OVER:

123MC.Alpha = 1;

break;

case MouseEvent.ROLL_OUT:

123MC.Alpha = 0;

break;

}

}

private void onMenuClicked(e:MouseEvent):void

{

{Switch (e.currentTarget)}

case 123MC:

if(e.currentTarget.alpha == 1) {}

doSomething();

}

break;

}

}

Note you will also need to either add/remove the earpiece to event MOUSE_DOWN because people can still click on it when it is invisible otherwise.

Tags: Adobe Animate

Similar Questions

  • How do to this chain operation looks simple but causing a lot of time to do :)

    Hi all

    I have a very large chain, i.e. the soap xml response send by server that I read once connected to the server using http, now the problem is that I need to create a Document out of it and analyze what is simple but the answer I get server requires many replacements of string as example 1) replacing "<" with "<"  2)="" replacing="" ">"="" with="" "="">" etc before creating a document out of it now there are many such replacements in the sending of the response from server that takes a lot of time. 5 minutes on the emulator. So my question is how do? Is there a native method to replaceAll occurrences of a substring in a string or while I can use or is there another good way? Please let me know thx.

    Thank you

    Sagar

    We took over a project done by someone else, and they were doing exactly what you do.  Here is their source, which I think is more effective that you give it a try if you want.

    But be aware that I have never used or tested this code.

    I guess you pull that string to the center of your SOAP response.  It has been encoded XML.  So you can do what we did in this case and wrap the string as a data element in an XML element and then use the XML parser to get the actual data, which feed us an XML parser again to get the actual data.  XML is already set up to deal with these characters, so it was more effective than the approach to replace.  Actually to be honest, it wasn't the reason we exchanged, that as part of the parser XML meant we were convinced it was done correctly.

     public String replaceAll(String source, String pattern, String replace) {
            if ((source != null) && (pattern.length() > 0)) {
                final int len = pattern.length();
                StringBuffer sb = new StringBuffer();
                int found = -1;
                int start = 0;
    
                while ((found = source.indexOf(pattern, start)) != -1) {
                    sb.append(source.substring(start, found));
                    sb.append(replace);
                    start = found + len;
                }
    
                sb.append(source.substring(start));
                return sb.toString();
            } else
                return "";
        }
    
  • MS Word opens when I try to get a glimpse of a very simple project

    Hello

    I'm just getting started with Captivate 8. I created a project of a slide... it's very simple, but the text... and tried to preview it. When I click on preview project option, MS Word opens a file called rindex.html and Captivate does not give me the preview mode.

    * I have more than enough disk space

    * I'm saving the project to my office, not a network drive or an external hard drive

    Any ideas what could be causing this?

    Thanks for your help.

    Looks like the HTML files are configurΘ to dΘmarrer with the Word on your system, very weird, but users sometimes do strange things.

  • I installed the latest version of flash player and it said installed successfully and I can use it very well, but when I checked the system requirements do not match. She required 2.33 ghz and I 2.13 ghz. then that cause problems on my computer? I h

    I installed the latest version of flash player and it said installed successfully and I can use it very well, but when I checked the system requirements do not match. She required 2.33 ghz and I 2.13 ghz. then that cause problems on my computer? I have an intel i3 proccessor, windows 7, internet Explorer.

    All processors Intel i3 having at least 2 hearts, your specifications far exceed the requirements; See http://ark.intel.com/products/family/75025#@All

    I have some computers with much slower processors, and Flash Player 14 works perfectly well on them also.

  • Tri - very simple problem, but I can't get it

    Hi, I have a little problem with a sort column.
    I think it's for you, a very simple problem, but for the moment, I can't find the solution.

    My topic:
    SCHLUESSEL
    -----------------
    15
    16
    17
    1501
    1502
    150101
    150103
    150202
    15010100
    15010301
    15020215
    ...

    Correct order is:

    15
    1501
    150101
    15010100

    150103
    15010301

    1502
    150202
    15020215

    16
    17

    have you tried

    order by to_char(SCHLUESSEL)
    

    Ravi Kumar

  • Never over charge when downloaded, xml, very simple problem Gallery

    Hi all

    I'm havin a very stupid problem atm, I made this slide show very simple wich loads images via an XML file. Everything works very well locally, load slideshow images nice blablabla. But problems when I load up my server, once it is downloaded and I try t o play I get this error:

    [QUOTE] Error #2044: Unmanaged by the IOErrorEvent:. Text = Error #2036: finished loading never. [/ QUOTE]

    It has something to do with the .xml file that I load here as:

    var request_xml:URLRequest=new URLRequest("setup.xml");
    

    I tried to replace it with ("http://www.semagames.be/.../setup.xml" ' "), but then I got a sandbox violation error that is not solvable, unless you get signed (I read that somewhere).

    The way I load the images in XML format:

    <SLIDE_SHOW>
      <PICTURE>ImagesBw/Foto1.JPG</PICTURE>
      ...
    </SLIDE_SHOW>
    

    The file, a great pain in the * ss, can be found here: http://semagames.be/testplaats/kutbucht/BG.swf

    Anyone who can help me out here? would be greatly appreciated.

    your images are tiny extension.  Attach your xml file.

  • Starting any new problem of depth, probably very easy to break - please help?

    Hello!

    I'm new to Flash and could learn the basics of Adobe TV and other places. I am trying to make my own interactive movie based on what I've learned and have encountered problems that so far, I've been able to understand - but now I'm stumped. My problem is that when I play the clip ' optionPanel.optionAnim.blueAnim.play (); He is originally from other films on the optionPanel optionAnim! I have watched trying setChildIndex but do not know if I have to define what is the child?

    My code is very simple:

    Join button
    controlPanel.animation.openPanel.addEventListener (MouseEvent.CLICK, openPanel);
    controlPanel.animation.option1.addEventListener (useEvent.CLICK, openOption MB);
    controlPanel.animation.zoomBusiness.addEventListen er (MouseEvent.CLICK, zoomBusiness);
    controlPanel.animation.zoomBlue.addEventListener (M ouseEvent.CLICK, zoomBlue);
    optionPanel.optionAnim.closeOption1.addEventListen er (MouseEvent.CLICK, closeOption);

    at the front

    functions
    function openPanel(event:MouseEvent):void
    {
    controlPanel.play ();
    }

    function openOption(event:MouseEvent):void
    {
    optionPanel.play ();
    }

    function closeOption(event:MouseEvent):void
    {
    optionPanel.play ();
    }

    function zoomBusiness(event:MouseEvent):void
    {
    optionPanel.optionAnim.orangeAnim.play ();
    }

    function zoomBlue(event:MouseEvent):void
    {
    optionPanel.optionAnim.blueAnim.play ();
    }

    Any help is appreciated Thank YOU!

    Try:

    optionPanel.optionAnim.addChild (optionPanel.optionAnim.blueAnim);

  • I have a problem with my laptop does not connect to the internet. It connects to our wireless very well, but it doesn't have an internet connection.

    I have a problem with my laptop does not connect to the internet. It connects to our wireless very well, but it doesn't have an internet connection. It connects to other networks wifi very well with Internet access, is that the wireless in my house what it connects to. When I diagnose the problem, it says "Cannot communicate with DNS server (208.67.222.222)", and then under that it says: "languished network diagnostics remote hosts, but had not received a response." It connects to the Internet through an ethernet cable, but it is rather annoying pulling the cable autour. I currently have Windows Vista Home Premium. Thank you!

    original title: Internet connectivity problem

    Hello

    Now, you may need to contact the support of Panda Internet Security centre to change the settings so that wireless is enabled through it.

    Support link: http://www.pandasecurity.com/homeusers/support/

  • I migrated my Macbook pro to an Imac Photoshop works very well, but CC says that there is a problem. It tells me to download CC but when I try to install it fails and tells me that I need CC?

    I migrated my Macbook pro to an Imac Photoshop works very well, but CC says that there is a problem. It tells me to download CC but when I try to install it fails and tells me that I need CC?

    Migration/transfer of Adobe applications does not work.  You must install using installation files.  Uninstall, and then use the CS cleanup tool.  Then download/install the desktop application, connect and install applications subscription.

    http://www.Adobe.com/support/contact/cscleanertool.html

    Creative cloud to desktop
    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Sign out, sign in | Creative office cloud app
    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Help of activation & deactivation
    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html#a ctivate-how-to's

    Install, update, or uninstall applications
    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

  • Before Muse files updated now causing a problem of text in Safari. This isn't because of Safari.

    Last update of Muse obstructed to the top of my text in Safari. I went to a file of the previous version of Muse for a correction of small verbiage for a customer. When I downloaded the site I noticed that all my CSS text seems anorexic in Safari. This text was always well in Safari before Muse was last updated. This does not effect on Google Chrome, Internet Explorer or Firefox. I created a new file of Muse and placed the same text inside and download that as well. This is seen in Safari very well. So before the update they saw very well and all the files created after the update considers him as well. Apparently the update of Muse caused a problem to my files that were created in the previous version. I tried to delete the old text box and add a new, but the text is still not displaying right in Safari. Can someone shed some light on how to solve this problem without having to rebuild my entirely new site from scratch?


    I created 3 sites in Muse before the last update, and now I'm afraid that if I do the update of these files as they are, in turn, look like crap in Safari. This is a pretty big problem counts that I'm on retainer with these companies. It's only a matter of time before they need updates. Start on all these sites from scratch would be a potential deal breaker in my relationship with Muse.

    Help, please...

    Here is the link to the site

    www.cableelectric.com

    Interesting. There seems to be something on the specific code generated for your site that has exposed a bug introduced by Apple with the latest version of Safari.

    Muse does not explicitly set the property - webkit - font smoothing. The default value for the property is "subpixel-aliasees", so it must be what is used and is in fact what is used by earlier versions of current Chrome and Safari (both browsers based on Webkit). It is also what is used when a simple layout is created in the Muse and tested in the latest Safari. There is something unique to your site that is triggering the last Safari to use "embattled" as font smoothing setting, and even more strange is the fact, that he appears to do this part of the text.

    We will do further investigation and probably end up writing a bug to Apple. It would be helpful if you could send us your file .muse (as well as a link to this topic for context) at [email protected]. If the file is larger than 20 MB, you can send it in using a service like Dropbox, Adobe SendNow, WeTransfer, etc..

    In the meantime, it seems that you can avoid this Safari bug by pasting the code below into the HTML code "for"."field in the Panel of 'Metadata' the Properties dialog box of the Page for each of your master pages. This forces the browsers based on Webkit to use text of crenellated subpixel rendering.

    Thank you for making us aware of this browser bug.

  • Satellite L40-139: new graphics driver is causing the problem after waking from sleep

    I have a three month old Toshiba Satellite L40-139 (PSL40E) with 1 GB of RAM with Microsoft Windows Vista Home Premium pre-installed. This laptop worked very well for me for the basic headquarters far tasks, and I would have no problem recommending.

    In the last days I've updated the software and drivers from the Microsoft Update web site.

    Since the update driver Mobile Intel(r) 945 Express Chipset Family (to version 7.14.10.1350, dated October 18, 2007), the screen resolution at 800 x 600 after awakening from the sleep state. The only way I found to fix it is to restart the PC.

    Other articles published on the web, I understand that this particular driver (Mobile Intel(r) 945 Express Chipset Family driver 7.14.10.1350 version) has caused many other problems on a variety of hardware and software platforms.

    Does anyone have a definitive solution for Satellite L40?

    I looked at four options.

    1. let the new installed driver and restart Windows each time after waking up from sleep mode. Rather, I must not do this.

    2. using the Restore Point created by Windows Update before the update of the driver, roll back to an earlier time. This seems to be a good course if it works.

    3 download an older version of the driver and reinstall it. I don't know which version would work but note that others have had success with the 7.14.10.1280 version. I guess a similar version could be included in the driver Package that can be downloaded from Toshiba Europe site, but have heard that the time required to download this software can exceed ten hours and am therefore reluctant to try.

    4. the fourth option is not really possible. I should be able to "Roll-Back" the driver in Device Manager, but the button is disabled.

    Although only a minor problem, it is very irritating and I would like to address them without causing other problems. Does anyone else have this problem? Someone has fixed it successfully?

    Hello Peter

    If I understand correctly, you use your usual laptop for daily work and you don't need any computer high-performance notebook. If I'm right I have to say that you should be happy if the laptop works well and stable.

    I don't really see any reason why you wanted to update chipset driver. In any case, you should try to roll back the BONES of time earlier and I hope everything will work again. There is absolutely no risk, and you can test it.

    Please post the result.

  • Windows Update causing various problem on the computer

    Original title: bad update?

    11/10, I downloaded and installed updates Vista KB2641690, KB2492386, KB972971644, KB2505189. There is more, but this format makes it very difficult to enumerate. My computer is now constantly lock up, and various closed functions (Explorer being the worst).

    My computer works horribly since the update. Is there a way to reverse the updates, or should I use a fixed disc and just pray that I don't have reinstall?
    THX

    Hello

    Method 1: I suggest you to restore the computer to a point in the update got installed then install the update one at a time to determine the cause of the problem is updated:

    System Restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions

    Method 2: You can try to install the updates to the clean boot in order to verify if any third-party application is causing the problem:

    http://support.Microsoft.com/kb/929135

    Note: after a repair, be sure to configure the computer to start as usual as mentioned in step 7 in the above article.

    Method 3: Try a manual install of update by downloading the update from the Microsoft Download Center:

    http://www.Microsoft.com/download/en/default.aspx

    Note: the number of the KB article in the search box to search for the update.

    Reference: the problems with installing updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates

  • Windows Update Causes startup problem

    I have an interesting problem with Windows Update (or apparently is from Windows Update). I am running Windows Vista Ultimate 32-bit, if that info is needed. There are two updates I have not install, as I am not sure that is the cause. The updates in question are Internet Explorer 8 and Windows Defender definitions 1.63.604.0. Here's what's happening.

    When you restart after Windows updates, the computer starts with a black screen with a mouse pointer. That's all. Happened every time I tried to start after the pdates. I can reboot into SafeMode very well, is apparently a problem driver or update.

    I also installed DivX on the computer, but it seemed to work as I could watch .avi via WMP thereafter, so I excluded. I thought that if there was a problem with it, it would not have worked in the first place, but I thought it was interesting.

    In any case, the only solution I found doing a system restore and do not install updates day or DivX, since technically I don't know which is the cause. I had to restore the system 3 times already and I didn't continue to do because this computer was very expensive and I don't want to ruin the hardware or something.

    Someone knows something about an error with updates, or perhaps with DivX that may have caused this. The computer works fine without the updates or DivX, I just want to know what could be the real problem so if it is only one of the 3, I can install the other two at least.

    Change your update settings, install the updates one at a time, hide the problem:

    Click Start > right click on computer > properties > Windows updates down the lower left corner > updates installed in the lower left corner in the next window

    > then click the one that you don't want > uninstall will appear at the top > uninstall it.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    In addition, on the page where you clicked "Installed updates", click on change settings at the top left corner it

    > Change update settings in the next page of AutoUpdate to "check for updates but let me choose etc" > OK ".

    When you take a look at pending updates, you can either download/install them one at the time, namely the update causing you problems.

    > or if you do not need an individual > right-click on > UAC prompt > hide it

    See you soon.

    Mick Murphy - Microsoft partner

  • my computer became very slow, but it shows no virus. Videos don't is not good and updated loading in service is very slow?

    My computer became very slow and takes forever to start up. I ran a diognostic on it and he registered all those sites that open at startup, but I don't know which I need and those who didn't. In addition, do not load my videos, they stop and start!

    Hello

    1 are there any changes made recently to the computer?

    2. What is the security software installed on the computer?

    3. What are the steps that you have already tried?

    Follow the steps in this article.

    Optimize Windows Vista for better performance: http://windows.microsoft.com/en-US/windows-vista/Optimize-Windows-Vista-for-better-performance

    Try to set up your computer in a clean boot state, and check if the same issue occurs

    By setting your boot system minimum state helps determine if third-party applications or startup items are causing the problem. 

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    I hope this helps.

  • I need a very simple database system. I am the end user to allend users!

    Original title: database access

    I need a very simple database system. I am the end user to allend users!

    Access is rather dated, but could probably manage it if you own and that you already have a model for what you need.  Just open it and see if all the default options are what you are looking for, and it will put you in automatically:

    If this is not the case, just tell us what your needs are and I'm sure we can make a suggestion

Maybe you are looking for