The singleton is much better to use in this case, so good stuff.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
elad_nyc
Sent: Tuesday, February 06, 2007 1:23 AM
To: [email protected]
Subject: [flexcomponents] Re: Flex 2.0 is it posibble to create global variable?



Thanks Mike, I just learn how to use the custom singleton which is 
exactly what I needed.

My application is very complicated and I will have to create 
few "waiters" to serve all the information since the different 
component are accessing the same information.

keep up the great work...

--- In [email protected] <mailto:flexcomponents%40yahoogroups.com> 
, Mike Chambers <[EMAIL PROTECTED]> 
wrote:
>
> Well, I am not sure what your code is doing, but the example I 
posted 
> does work.
> 
> Have you declared the variable in the main application class?
> 
> You have to declare the variable from the main application class. 
You 
> can then set / change / access it from anywhere.
> 
> If you cant declare it from the application class, then look at 
using a 
> custom singleton (check the comments on my post).
> 
> mike chambers
> 
> [EMAIL PROTECTED]
> 
> 
> elad_nyc wrote:
> > 
> > 
> > It didn't worked...
> > 
> > I have debuged the application and I can't see the variable 
anywhere.
> > 
> > The global variable is declared inside of a component and than I 
need
> > to attach it from the main application.
> > 
> > So when I try to pick up the global variable I get an error 
message:
> > "public var foo:String = com.view.example.Globalfoo;"
> > 
> > Thanks for the help
>



 

-- 
WARNING
-------
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--------------
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

Reply via email to