header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Venkatesan
Points:170
Posts:0

8/17/2010 3:54:46 AM

Title: How to call a function in module from application


Hi all..

I have a tabbar with view stack in my main app where some tabs are loaded(say 3 or 4. Each tab has a module in it). When the user acts on any tab(say a button click or any event), i call the respective class which calls the server and gets the data and forms objects and sends it back to the application.

There is no problem till this phase.

Now i'm struck in as how to go to exact module which invoked this class from my application. I have to send the object that i have to a function in the module that has called the class..

can some1 help me out in this issue?
it would b better if there is a small code snippet of tabs in application and calling respective tab(module) from application.

Thanks!



1
Dave
Points: 970
Posts:1
8/17/2010 6:30:22 AM



I think you can use the asynchronous token in actionscript. While making a call you need to set the token which tells you which module called and on result you can check the token to know whose result is received and forward that result to concerned module.

See the example of using AsyncToken in flex with actionscript 3.0

http://askmeflash.com/qdetail/196/asynctoken-in-actionscript-3-0


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 3+4 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions