Flex runs on the client, in a browser.  It cannot count anything on the
server. It can display a count by getting the data from a server.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of happyhy2005
Sent: Sunday, January 10, 2010 12:09 AM
To: [email protected]
Subject: [SPAM] [flexcoders] Flex:how to count online user and record user
visits?

 

  

Hey guys,

I want to write a module that count online user and record user visits.

I'm using Cairngorm,it seems to me when user open the Application,I should
dispatch an event,and increase onlineCount stored in ModelLocator,get the
visits number from DB and increase 1.When user leave the
Application,decrease onlineCount and update the visits number from DB.

I know there's a life cycle in ASP.NET and could easily implement this
function in Global.asax,using
Application_Start,Application_End,Session_start and Session_End event.

Is there any similar way to do that in Flex?

What's the best routine to implement online count and user visits?

Thanks in advance,Shuo



Reply via email to