probem in communication of module

1 view
Skip to first unread message

Kundan and Bhanu

unread,
Jul 5, 2008, 8:03:45 AM7/5/08
to Delhi Flex User Group
Hi friends

please help me, i m unable to call a public function of one module in
mail mxml application.

actually, there is one main application say main.mxml
and there is two modules say m1.mxml and m2.mxml.
now main application has tabnavigator which has two tab one for m1
module and other for m2 module.

now on tab change event of tabnavigator in main application i m
calling the public function defined in module m2.mxml. it is giving
the null error that function not found.

but when i m calling the same function on button click , the button is
in main application it is woring fine.

can any body help me.
thanking you
Regards
kundan

Venkat Viswanathan

unread,
Jul 5, 2008, 8:09:39 AM7/5/08
to del...@googlegroups.com
Hi,

I think your TabNavigator would not have created the tab when you are trying to call the function. In your TabNavigator, set:

creationPolicy = "all".

I think it should solve your problem.

Cheers!
Venkat

Kundan Singh

unread,
Jul 5, 2008, 8:13:01 AM7/5/08
to del...@googlegroups.com
thnx for quick response.
i have tried for creationpolicy ="All". it is still not working

 

Venkat Viswanathan

unread,
Jul 5, 2008, 8:14:04 AM7/5/08
to del...@googlegroups.com
Can you post your code here?

Cheers!
Venkat

Kundan Singh

unread,
Jul 5, 2008, 8:17:46 AM7/5/08
to del...@googlegroups.com
yes , i can post but on monday only , bcz now i m at my home after reaching the office i will send u .
 
thank you
Regards kundan

 

Kundan Singh

unread,
Jul 6, 2008, 11:24:44 PM7/6/08
to del...@googlegroups.com
Thanks  Venkat Viswanathan
 
 for creationPolicy = "all" it is working. i thought that i have checked for it also. but i haven`t check for that.
 
so once again thanks.
Regards
Kundan 

Reply all
Reply to author
Forward
0 new messages