Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7020537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:19:54+00:00 2026-05-27T23:19:54+00:00

A nice simple one to start the day! I can’t use dispatchEvent in my

  • 0

A nice simple one to start the day!

I can’t use dispatchEvent in my static class, I was wondering if anyone knew how I can achieve similar functionality or if it’s possible at all to call dispatchEvent from my static class?

I basically want to inform my action script code in my flash file when functionality in my static class is complete.

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:19:55+00:00Added an answer on May 27, 2026 at 11:19 pm

    After reading the answers and gaining an understanding of what I can achieve, I have implemented the following (thought it would help users in the future if they could see some example code).

    private static var dispatcher:EventDispatcher = new EventDispatcher();
    
    public static function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void {
       dispatcher.addEventListener(type, listener, useCapture, priority, useWeakReference);
    }
    
    public static function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void {
       dispatcher.removeEventListener(type, listener, useCapture);
    }
    
    public static function dispatchEvent(event:Event):Boolean {
       return dispatcher.dispatchEvent(event);
    }
    
    public static function hasEventListener(type:String):Boolean {
       return dispatcher.hasEventListener(type);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone help with a small problem. I've got a nice simple CSS dropdown
Can anybody suggest a nice and clean simple jquery based datagrid, i don't need
Simple question to which I can't find any nice answer by myself: Let's say
My problem can be summed up by making this simple command works : nice
Hopefully a nice simple one. I've got a php3 website that I want to
I recently start playing with stored procedures for db2(one day ago) and I manage
Good afternoon I'm hoping this is going to be nice and a simple f**k
I have a very simple problem but cannot find a nice solution. I have
I have a simple quiz application and I want display a nice timer /
This should be so simple... I thought it would be nice to try the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.