I don't get what is the actual meaning of global variable i.e., where
you declared. But I will suggest to declare a public variable in the
parent application. Call that variable from anywhere and also make
that variable bindable inside our custom component.


<mx:Application
here declare public var varName:String;
</mx:Application>

<mx:CustomComponent
here make that value bindable
<mx:TextArea text="{this.parentApplication.varName}"/>
</mx:CustomComponent>

<mx:AnotherComponentWhereYouNeedToChangeTheValue
here change the value of the variable
<mx:Script>function changeValue():void
{     this.parentApplication.varName = "value changed"     }</
mx:Script>
</mx:AnotherComponentWhereYouNeedToChangeTheValue>


In this way you can solve your problem

On Apr 21, 2:41 pm, mahi <[email protected]> wrote:
> hi, I have declared a global variable in my application and is there
> any way to access the value of that variable in component and update
> the value of that variable in my flex components??? Its very
> urgent..please give a solution
>
> Thanks in advance Mahi
>
> On Apr 21, 11:43 am, Flex Baby <[email protected]> wrote:
>
> > hi,
> > i am working flex past 2 months.wat about jobs in flex?
> > my friends told that very limited jobs in flex.very rare to get job in
> > flex.
> > tell ur suggestions.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to