473,387 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Eventdispatcher And/or Asbroadcast

i'm trying to write this code that listens for an image that has been loaded from one of my image arrays. In other words i have three arrays:


Cars:Array=new Array("Mercedes.jpg", "BMW.jpg", "Hummer.jpg");

Homes:Array=new Array("Miami.jpg","LosAngeles.jpg","NewYork.jpg");

Casinos:Array=new Array("LasVegas.jpg","AtlanticCity.jpj","MoheganSu n.jpg");

my container mc has the instance name of "imageholder".


now here's what I'm shooting for; everytime an image is fully loaded into "imageholder" from one of these three arrays, i want a particular action to run. for example if any image from the Cars array is 100% loaded into "imageholder", I want some function I will write to run. like

function CarsisLoaded(){
someaction;
}


and so on...if an image from the Homes array is 100% loaded into "imageholder", i want a different function to run...


so I want to use EventDispatcher or AsBroadcast to do this. I need some help with the code if possible. If there is a more efficient way to do this, please advise...

Lastly, I need the code to work in Flash 6 and above...

thank you in advance
Apr 10 '07 #1
1 1565
kestrel
1,071 Expert 1GB
to tell you the truth, ive never used eventdispatcher or asbroadcast, so i don't know much on the subject

heres some stuff i found on the net, maybe it can be some help
http://www.gskinner.com/blog/archives/000023.html - eventdispatcher
http://www.kirupa.com/developer/actionscript/asbroadcaster2.htm

personally, i don't use this stuff so i don't get it, heres some articles on the matter
i don't really know if they are relevant to what you are seeking, but it could help you understand
let me know if this helps, searching the internet will always give you something
Apr 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Steven Brown | last post by:
I'm trying to figure out how to safely use .NET events/delegates in a thread-safe class. There are a couple problems. One is that the standard "if(EventName != null) EventName(...);" call can...
8
by: Mark | last post by:
Hi, I'm looking for some ideas on how to build a very simple Event processing framework in my C++ app. Here is a quick background ... I'm building a multithreaded app in C++ (on Linux) that...
4
by: PJ | last post by:
Is it possible to extend the Node object so that the DOM function addEventListener can be used w/ IE? Does anyone have an example of this? Thanks, Paul
0
by: tim | last post by:
Trying to convert midi to text using MidiToText.py. I get the following: midi_port: 0 Traceback (most recent call last): File "MidiToText.py", line 176, in ? midiIn.read() File...
14
by: Snor | last post by:
I'm attempting to create a lobby & game server for a multiplayer game, and have hit a problem early on with the server design. I am stuck between using a threaded server, and using an event driven...
2
by: nataraj.gnanavadivel | last post by:
can any one please give me the UML relationship between the following event framework componenets: 1. EventSource 2. Event 3. EventListener 4. EventDispatcher/EventRouter The strategy may...
3
by: -pb- | last post by:
We are developing a Windows client using .NET 2.0 and C#. We have decided to use MVC based architechture due to its obvious advantages. This application shows data from database in a Grid. We want...
0
by: phanimadhav | last post by:
Hello experts, at mx.rpc.http::HTTPService/http://www.adobe.com/2006/flex/mx/internal::processResult() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()...
0
by: panos100m | last post by:
Hi i can read everything from my xml file except a part that i can always get teh first items of each category (it will make more sence in a sec) So here is my xml <?xml version="1.0"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.