Hi,

*In main.mxml*
-----------------------

<mx:Script>
               <![CDATA[
                       *include "Script.as";*
                       import mx.events.IndexChangedEvent;
                       public var objCount:int=0;
               ]]>
       </mx:Script>




On 3 August 2010 16:15, Raj <[email protected]> wrote:

> Hi dear all,
>
> I am using flex 3 ,I need to access a variable from my main.mxml  to
> Script.as
>
> I am using this code:in main.mxml
>
> <mx:Script>
>                <![CDATA[
>                        import mx.events.IndexChangedEvent;
>                        public var objCount:int=0;
>                ]]>
>        </mx:Script>
>
>
> I am using this code in Script.as but still I am uable to access
> "objCount".
>
> Application.application.objCount;
>
> can any one help me plz
>
> --
> 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]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>


-- 
*With Regards*,
*Nizar.*
*Disturb @ (+91) 9790503327*

-- 
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