Buttons under a mask layer

Posted on 2006-05-29
Last Modified: 2008-03-17
I'm building a website with a Flash menu. The buttons are animated, and I used a mask layer over them to create part of the effect.
The buttons all have actions like this:

on(rollOver) {
on(rollOut) {
on(release) {
      getURL("mypage.asp", _parent);

The rollOver anf rollOut actions work fine, but I can't get the getURL to work. In fact, when I click on one of the buttons, the flash movie disappears! I tried attaching the same action to a button that wasn't masked, and it did work.
Is there a problem with masking buttons?
How do I work around this?

Question by:GWee
    LVL 7

    Accepted Solution

    the code should be like this

    on(release) {
         getURL("mypage.asp", "_parent");

    this should work fine (unless there are other problems around :)
    LVL 1

    Author Comment

    Thanks, it works now.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
    I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now