473,549 Members | 2,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Eventdispatcher And/or Asbroadcast

2 New Member
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.jp g","LosAngeles. jpg","NewYork.j pg");

Casinos:Array=n ew Array("LasVegas .jpg","Atlantic City.jpj","Mohe ganSun.jpg");

my container mc has the instance name of "imageholde r".


now here's what I'm shooting for; everytime an image is fully loaded into "imageholde r" 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 "imageholde r", 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 "imageholde r", 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 1572
kestrel
1,071 Recognized Expert Top Contributor
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.co m/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
375
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 fail if the event is emptied of all methods between the two statements, implying that some sort of synchronization between this and removals from...
8
6079
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 uses message queues to pass pointers to Events between threads. In my app there are simple events that can be defined using an enum (for example an...
4
2933
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
855
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 "C:\Python24\Lib\site-packages\midi\MidiInFile.py", line 24, in read p.parseMTrkChunks() File "C:\Python24\Lib\site-packages\midi\MidiFileParser.py", line 167,
14
2101
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 server. I've been told time and time again that I should use an event driven server design (that is, use twisted). There is a lot of interaction...
2
2192
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 be either EventInheritance or Event Delegation.
3
1361
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 to add a functionality of Printing grid and export grid to XL sheet. I would like to know where will I have to code above functionalities? Should...
0
2207
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() at mx.rpc::Responder/result() at mx.rpc::AsyncRequest/acknowledge() at DirectHTTPMessageResponder/completeHandler() at...
0
2070
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" encoding="UTF-8"?> <flashxml> <second_page> <sp text="ss ptextj"/>
0
7464
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7734
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7979
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6065
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5385
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5107
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3493
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1074
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
781
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.