-
How to know,how many person click at my button at flash webpage?
How to know,how many person click at my button at flash webpage and store the clicked into database Access?
Can you guys give me the example related code?
tq
I've give up to try..please help me..i dont know what to do anymore
-
-
Hmm...it depends on what you're trying to do and the setup that you have.
What are the buttons linked to? Another page? or within the same flash movie?
If it's another page, you don't need to concern yourself with Flash...just use any of a number of page hit counter scripts available on the Web. Search these forums, there are some great recommendations of hit counters that have worked with people.
If you're trying to determine the number of hits within a Flash movie,
it's slightly more complicated, though it can be done.
Here's how I would do it (in logic, not code).
1. Set a global variable with data type of Number.
2. In the onClick/onRelease function of the button, call a seperate function (lets call it addOne).
3. addOne would a) increase the value of the variable by 1, and 2) use LoadandSend to send the variable's value to a PHP script.
4. The PHP script then would update a database with that value (probably adding to the existing number.
Hope that helps. There is a good video tutorial at www.gotoandlearn.com on PHP/MySQL/Actionscript that might be of help to you.
-
The Following User Says Thank You to Medyman For This Useful Post:
-
help me again...pleessszzz
tq very2 much..you have solve my probs..
actually i'm use ASP(VBscript) to integrate the flash page into dtbase(ms access)..
now i'm facing a new prob..how to create database table;
1st table: It count the clicked button in everyday..which is means,how many button 1 and button 2 clicked in monday..separate the count for button 1 and button 2 in table monday,tuesday n so on..
2nd table: It count the clicked button per month..which is means,how many button 1 and button 2 clicked in January..separate the count for button 1 and 2 in table January, February and so on..
3rd table: It count each click of a button with date and time in database...separate the count for button 1 and 2..
Do you have an idea to make that table?
And i wish to get the asp code for each table..
tq..hope u can help me...
-
-
No, sorry...
I'm a PHP/MySQL guy. I don't know a lick of ASP.
You might want to post in the ASP forum. I'm sure someone there can help you out.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks