surprising.... coz it works for me even with flex components.

i create one flex component and in side my component i have object
with id. "cmbStatus".
and i have one AS file which contains function  and inside that
function i access properties of the "cmbStatus"
and for that i add <mx:Script source="AsFilename.as"/>  line in to my
component file.

what kind of error r u getting with this or no error?


Nargis Himani


On Feb 13, 5:17 pm, vishal lad <[email protected]> wrote:
> Thanks for reply,But this is not working for mxml components.It works for
> main mxml file and its corresponding actionscript file.
> Or may be I am doing something wrong!!
>
> On Fri, Feb 13, 2009 at 5:34 PM, Nargis <[email protected]> wrote:
>
> > if you have an AS file (not AS class) than in your mxml page just add
> > following line
> > <mx:Script source="asFilename.as"/>
>
> > now in your AS file you will get access of cmbStatus.
>
> > -Nargis Himani
>
> > On Feb 13, 3:52 pm, vishal lad <[email protected]> wrote:
> > > Hi,Suppose that I have one mxml(component not application) file and
> > > corresponding .as file.In my .mxml file there is one combo box with
> > > id=cmbStatus.Now I want to access the value of this cmb box in .as
> > file.How
> > > can I do this.I had tried creating Instance of mxml component for
> > accessing
> > > cmb box in my .as file but it is not working.Is there any other way to
> > > achieve this??
>
> > > Thanks & Regards
> > > vishal

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