Welcome, Guest
Sign in
Create account
Home
Home Page
Components
Buy & Sell
Freelance
Marketplace
Tutorials
Flash Tutorials
Games
Free Online Games
Community
Message Board
Home
Help
Search
Login
Register
Subscribe to
Our Feed
Follow Us
On Google +
Follow Us
On Twitter
Become a fan
On Facebook
Flash-DB
»
General
»
Flash and AS 3
(Moderators:
papachan
,
kofi addaquay
) »
A way to dynamically tell which classes have accessed a class?
« previous
next »
Print
Pages: [
1
]
Author
Topic: A way to dynamically tell which classes have accessed a class? (Read 551 times)
404Assassin
Jr. Programmer
Posts: 68
A way to dynamically tell which classes have accessed a class?
«
on:
06/30/11, 17:18 »
Does anyone know of a way to dynamically save a class reference? I have a class that I'm saving information to from several classes and I'd like to notify the same classes once an event happens. Is there a way to dynamically tell which classes have accessed this class and save those class references?
thanks in advance for any help
Logged
Jorge Solis
Global Moderator
Systems Administrator
Posts: 14616
Re: A way to dynamically tell which classes have accessed a class?
«
Reply #1 on:
07/01/11, 08:47 »
This is how the Event mechanism works. Each class that saves data to your model subscribes to an Event (using addEventListener), then your model class dispatch an Event and all subscribers receives it, that's it.
Jorge
Logged
Twitter
http://twitter.com/solisarg
Print
Pages: [
1
]
« previous
next »
Flash-DB
»
General
»
Flash and AS 3
(Moderators:
papachan
,
kofi addaquay
) »
A way to dynamically tell which classes have accessed a class?