unplugged_web Posted May 20, 2009 Share Posted May 20, 2009 I recently came across this this and wondered how they did it. I love it and would like to do something similar.Thanks Link to comment Share on other sites More sharing options...
vytas Posted May 20, 2009 Share Posted May 20, 2009 What are u referring too? Link to comment Share on other sites More sharing options...
unplugged_web Posted May 20, 2009 Author Share Posted May 20, 2009 What are u referring too?The counter - I want to create one that counts in the same way. But I don't know how they get the amount either Link to comment Share on other sites More sharing options...
Ingolme Posted May 20, 2009 Share Posted May 20, 2009 For the counter, you just need to keep summing to the number on every frame. They're getting the amount from the result of a perl script on the server-side and then passing it to the Flash document. Link to comment Share on other sites More sharing options...
unplugged_web Posted May 20, 2009 Author Share Posted May 20, 2009 For the counter, you just need to keep summing to the number on every frame. They're getting the amount from the result of a perl script on the server-side and then passing it to the Flash document.That's what I'm not sure about - I can set a cron up to get the number I want, but how do I get that number into Flash? Link to comment Share on other sites More sharing options...
Ingolme Posted May 20, 2009 Share Posted May 20, 2009 Through flashvars.I'm not very proficient in ActionScript, but in HTML you would add a <param> element to the <object> tag that has the flashvars in it: <param name="flashvars" value="num=10000"> In ActionScript 2.0, I think you can access the value using _level0.num Link to comment Share on other sites More sharing options...
unplugged_web Posted May 20, 2009 Author Share Posted May 20, 2009 Through flashvars.I'm not very proficient in ActionScript, but in HTML you would add a <param> element to the <object> tag that has the flashvars in it:<param name="flashvars" value="num=10000"> In ActionScript 2.0, I think you can access the value using _level0.num Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.