Flash CS3, AS2.0, Conflicting event listeners ???

Posted on 2009-04-17
Last Modified: 2012-05-06
Have two event listeners with the same function name doing two different tasks. Each event listener is on a different scene. Is there any way to not have them see each other? Or is there a better way to achieve my same goal?
Scene 1

stage.newscreen = new Object();

stage.newscreen.onMouseMove = function () {

//this goes to scene 2




Scene 2

// create a variable to hold the interval

var interval:Number;

// Create a mouse listener object

var mouseListener:Object = new Object();

mouseListener.onMouseMove = function() {





// method that sets the interval to be called after 1 minute (60000ms)

function setTimeOut(Void):Void {

	interval = setInterval(goScene, 60000);


// method called when interval fires

function goScene(Void):Void {

//this line goes to scene one



// method to kill the interval

function killTimeOut(Void):Void {


	delete interval;


Open in new window

Question by:shanebrwn
    1 Comment
    LVL 39

    Accepted Solution

    Hi, i don't see the 2 functions with the same name you're referring to.

    P.s a word of advice, don't use scenes. they eventually result in things not working as you would hope/expect.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
    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.

    732 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

    20 Experts available now in Live!

    Get 1:1 Help Now