StatCounter User Forum  
StatCounter Free web tracker and counter

Go Back   StatCounter User Forum > StatCounter.com > Discussion

Closed Thread
 
Thread Tools Display Modes
  #11  
Old 02-27-2007, 03:32 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,173
Default

Hang on. How and what would you be doing in SWFObject to provide for this ?

I use it myself.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #12  
Old 02-27-2007, 03:43 PM
bbingham bbingham is offline
Junior Member
 
Join Date: Feb 2007
Posts: 14
Default

Quote:
Originally Posted by chrisooc
Hehe! Great!

One more general piece of data is http://mysite.com/ .

Maybe that too can be an input paramater to the function.

Can it be visible or invisible only?
Actually I did add a parameter, "directory", I just forgot to change it inside the function. It's fixed now.
This would be an invisible counter only. It might make sense to put a visible counter on the page the Flash is located on, and then use this script inside the Flash movie.

Quote:
Originally Posted by chrisooc
Hang on. How and what would you be doing in SWFObject to provide for this ?

I use it myself.
SWFObject allows you to put an unlimited number of parameters (details here). For this purpose, you'd have a script like this:
Quote:
<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "200", "100", "7", "#336699");
so.addVariable("scrWidth", screen.width);
so.write("flashcontent");
</script>
  #13  
Old 02-27-2007, 04:02 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,173
Default

Yes, I am quite familiar with SWFObject. I have a page for it in my tutorials, with an extra script to make it more general.

http://www.webado.net/tutorials-embe...php#swf-object

I have a smililar set of scripts for a WMP object.

Do you mean you can add more variables there and your flash movie will pick them up?
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #14  
Old 02-27-2007, 04:08 PM
bbingham bbingham is offline
Junior Member
 
Join Date: Feb 2007
Posts: 14
Default

Yes--the link above does not link just to the main SWFObject page, but to the examples, where the creator explains just that.

Even without SWFObject it is possible to append variables. In the object and embed tags, the url to your movie would include them, like "movie.swf?somevariable=2&someothervar=81" etc. It made the most sense to use SWFObject in this case because screen resolution can be detected by javascript.
  #15  
Old 02-27-2007, 04:10 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,173
Default

Ok, what I mean is that your flash movie can get its information from there and use it dynamically?
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #16  
Old 02-27-2007, 05:19 PM
bbingham bbingham is offline
Junior Member
 
Join Date: Feb 2007
Posts: 14
Default

Correct! Any variable you append will be used the same as a variable you create within Flash.
  #17  
Old 02-27-2007, 06:14 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,173
Default

Ok, I thought those variables were only to be used for corresponding param values in the object used to embed the flash movie. And I thought I had them all covered LOL

Obvously I need more understanding of the relationship between an object that embeds a flash file and specific things used inside the flash file - I thought there was nothing else but those controlling the flash player in general, irrespective of the flash file itself. Hah, what do I know? LOL
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #18  
Old 02-27-2007, 06:18 PM
bbingham bbingham is offline
Junior Member
 
Join Date: Feb 2007
Posts: 14
Default

I was pretty surprised when I learned that, too. But I guess it's a lot like when you import data into Flash from a simple text file, except without having to create a text file. You learn something new every day!
  #19  
Old 02-27-2007, 06:25 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,173
Default

Well I got a big gap when it comes to flash. I don't have any tools to create this kind of flash that would have script in it. So no idea what can be done there.

I only know how to embed it once somebody's made it for me
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #20  
Old 02-27-2007, 06:36 PM
bbingham bbingham is offline
Junior Member
 
Join Date: Feb 2007
Posts: 14
Default

I just noticed your signature, and was thinking--maybe this is a way to get around StatCounter not working on MySpace. I think they allow Flash embeds, though I'm not sure about JavaScript.
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:12 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.