Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tracking counter in flash

Status
Not open for further replies.

Thoe99

Programmer
May 11, 2001
119
US
If you have a massive flash file, with many labels, how would you go about making a counter that tracks each area (aka label) that a person goes to?
 
i don't think you can..maybe put each page in it's own html and count the times the page was viewed..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
That's what I'm trying to avoid, is many pages, because I have my whole site on one flash swf.
 
You would need to add loadVariablesNum() code to all your buttons going to new areas to increment the count script eg :

Code:
on (press) {
  gotoAnStop(2);
  loadVariablesNum("countscript.asp?increment=1");
}
Regards

Big Bad Dave

davidbyng@hotmail.com
 
How do you find out what the variable is in the script and can you use any scripts for it? Are there any that you can recommend me using?
 
You can any server side count script you like eg asp, cgi, php etc. Just use the loadVariablesNum() to call the script just like you would in an HTML page. Regards

Big Bad Dave

davidbyng@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top