A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 27 of 27

Thread: Active Users and Hit Counter with ASP Backend

  1. #21
    Senior Member
    Join Date
    Apr 2002
    Posts
    143
    response.cookies("isuser").expires = DateAdd("m",3,now)

    sorry got my args the wrong way round when I typed it out

    this line adds 3 months to the current date/time so the user will have a cookie that will last for three months

    is the swf in the same folder as the asp file ?

  2. #22
    Member
    Join Date
    Apr 2002
    Posts
    36
    Viewing the source I see this..

    same blank window...

    <PARAM NAME=movie VALUE="/raicom.swf?Hits=7&Users=0"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#D0D0D0> <EMBED src="/raicom.swf?Hits=7&Users=0"

    I seem to be getting the hits.. I am not sure about the users.

  3. #23
    Senior Member
    Join Date
    Apr 2002
    Posts
    143
    one fault I can see but im not sure if its realated to this messageboard is that in between hits and users you have &amp; rather than & take out the amp; and just leave the & that should pass the users in to flash correctly

    you are not registering you as a user because you have a cookie on you computer that is telling your script you have already been to the site if you look in you tempory internet files you should see a cookie for localhost/ or whatever the site URL is you are working on delete this and it will register you as a user and count correctly

    the src for the embed tag is /raicom.swf so your swf file will have to be in the root of your site and called raicom.swf is that correct ? if it is right click (crtl click on a mac) and does the menu say "loading movie..." ?

  4. #24
    Member
    Join Date
    Apr 2002
    Posts
    36
    Finally, It works great now. i copied the asp script into my html file, then applied the PARAM values as specified.

    Question? If I am testing this on my system, will the users be 0 or atleast 1?

    When I view the page, I see the hits, but the users = 0.

  5. #25
    Senior Member
    Join Date
    Apr 2002
    Posts
    143
    you are not registering you as a user because you have a cookie on you computer that is telling your script you have already been to the site if you look in you tempory internet files you should see a cookie for localhost/ or whatever the site URL is you are working on delete this and it will register you as a user and count correctly

    if you cant find it delete all your cookies since it will be one of them

  6. #26
    Member
    Join Date
    Apr 2002
    Posts
    36
    Your help is greatly appreciated, I'll try to upload to my server and test from there for the active users. I cleared my TIF's and still get 0 users.

    Any other suggestions. let me know..

  7. #27
    Member
    Join Date
    Apr 2002
    Posts
    36
    Alright..

    No matter what I do I still get 0 for users.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center