Results 1 to 4 of 4

Thread: How to know,how many person click at my button at flash webpage?

  1. #1
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation 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

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

  3. The Following User Says Thank You to Medyman For This Useful Post:

    lyter (03-13-2008)

  4. #3
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default 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...

  5. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •