Flash UI component pushbutton

Posted on 2006-05-30
Last Modified: 2010-04-03
Hello, If a UI component button in first frame is clicked, i would like to move to a second frame. What actionScript do i need and where do i set??

Question by:portal123
    LVL 34

    Accepted Solution


    if your Flash UI button component instance name is "myButton"

    than here is the script you need to put on first frame (not on button):
    var myListener = new Object(); = function() {
    myButton.addEventListener("click", myListener);

    IMPORTANT: above script should be copied on first frame not on button instance...

    LVL 7

    Assisted Solution


    Yoy can also write this on the button instance itself

    on (click) {

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
    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…
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    733 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

    18 Experts available now in Live!

    Get 1:1 Help Now