I have a flash website in AS3 and I added a HIT COUNTER that works with php and a txt database; the problem is that I have everything uploaded to my server and there's no #[hit count] where it supposed to, when i open the activity window [safari] I can notice that the browser.here are the codes:
AS3>[code]....
I already change the permissions of this php file and the "txt" database to 777 so I really don't know what else can I do.
I have a AS2 mp3 player that i need to adapt to count the number of times the track is played over the web.I'm not sure how to do it, or what to research, as i have not done this sort of thing before? I just need to return a count variable from flash to some sort of back end document/file that is not displayed!
I would like to make an .exe file that shows a starting number (that I would designate in the code), and then every 30 seconds, it adds 1 to that number. So for example, the exe begins by showing "11,057" on the screen, and then 30 seconds later, that number changes to "11,058", and so on. Is this possible? How do I do this? I wish I could find an .fla that does this so that I could understand everything from setting up the text box to show the number to assigning the actionscript code to make that number change.
PS - I need this counter to run as an .exe file on a Windows 7 computer that will not be connected to the internet, so code that requires PHP or running on a web server won't work. But an XML file called from the .fla would work, because I could keep the XML file in the same folder as the .exe on the computer.
Is there a way to put a hit counter into a flash video? Or is that something that would need to go into the HTML file? Also I need it to be invisible, but be able to check it somehow.
I'm working on a simple todo app that has a column for each day of the week. On startup, the app checks to see if there are any incomplete tasks from before the current date. If so, they're moved to the top of the current date's column. The app is cloud-based, but the tasks are backed up for offline mode with an SQLite db. I can easily move the tasks by updating their date property, but I need the order property of each task to increment starting at 0 to place them at the top. I need to be able to define a count variable in SQLite alone and increment it with each update that's performed. I know this code doesn't work, but it's an easy way of explaining what needs to be done:
how to make a hit counter so I can tell how many ppl have seen my site, but not have it display? I was thinking of some kind of counter that loads a variable from an xml file, and outputs it back to the same place. I've been working on this, but I cannot get it to work.
creating a script for "Days without Accident" counter, that the end user would be able not only reset, but choose the number of days to begin the count down with, without interfering with the script.
looking for a way to create a counter. It needs to count from 0 - 1,000,000,000 at a speed of 45 counts per second. Can someone please give me a code or a webpage I can work with?
I'm in the process of trying to work out how a scoring system will work in the game that I'm developing.I've added Code:var counter:int = 0; at the beginning of my code, and when the player mouses over objects to destroy them the killObject function includes the line Code:counter ++;The bit I'm struggling with is displaying this number in a dynamic text box.I've had a search around but can't seem to find what I'm looking for.All of the gameplay code is written in one frame of the main timeline and it begins after a short introduction animation. When the gameplay is over the AS3 code will instruct the movie to move on to the next frame of the timeline so that an outro animation can be played. The player's final score will be displayed at this point.
I have a simple shooting game set up. 25 monsters appear on the screen, one after another, until no monsters are left. If you hit one before it disappears, the score increases. If you don't, the score stays the same.
In the actions frame, I placed an empty dynamic text box named score, and set it equal to 0 (declared in the main actions frame). But, seeing as though the monster actions are coded into the library item itself, do I have to declare score, and the score increase there instead?
have an odometer type thing, that would go up 9 times a second, and it would go up whether you are on the site or not.So if I started it now, and checked back in on the site in a couple of days it would be at say 300,000, and then I would check back in a couple days later and it might be at 600,000.How would I go about doing this. I have an mc with the actual digit animations..
I'm trying to make a button that if you hit it 4 times it plays a movie clip. On the 5th hit- I want it to play a different movie clip. After the 5th hit- it resets itself and the process would start all over again. The script is all in one keyframe and the movie clips are being played with functions.
playButton_btn.addEventListener(MouseEvent.CLICK, goButton1); function goButton1(evt:MouseEvent):void{ runningMan_mc.gotoAndPlay(2);}
How do I use the counter to trigger sprites? Need an example or idea to work from. I want the number values to load sprites. The value of the counter goes to a text field. I want each number value to have an "if" condition to play a sprite of a corresponding number.
My scrolling counter is not displaying 1-9...only zeros every ten intervals. It plays, but the code is unfinished at line 37 in NumbersView.as. Notice Tweener is used to display the sprites. How do I finish this?
I have been trying to do a scroll counter for the past 2 hours and i had no luck. Im new to actionscript 3 flash .. anyways. I am trying to create a text field that is incremented according to time elapsed, any ideas how to do this? Also does flash actionscript 3 update? is there a function that i need to put code under? (im experienced with c# -xna).
is there a way to place a control bar and counter into a Flash file and saved to a SWF, the same way you would have a player control bar in a FLV file? This is what I need it to look like... [URL]
I'm trying to create a "counter" element that uses a formatted dynamic text box to count up in .1 increments, starting from a specified value.[code]...
I am using a for loop with "i" as a counter. I have some dynamic text fields (name0_txt, name1_txt, name2_txt...etc.) in a mc called namesList_mc and some variables being returned from php called name0, name1, name2 etc.Where and how do I then use "i" to avoid writing the same code hundreds of times.
I was making visitor counter using as3 and xml. I wrote this ActionScript Code: var a:Number; var url:URLRequest=new URLRequest("num.xml"); var loader:URLLoader=new URLLoader(url); loader.addEventListener(Event.COMPLETE, loadxml); function loadxml(e:Event):void { [Code] ..... But it didn't work -- every time I see the text you r visitor number 2. I tried it at server