Results 1 to 4 of 4
-
April 25th, 2012, 03:14 PM #14Registered User
postsMemory SWF add a number to each application, as3
Hello Guys
I wonder if it is to add a number to a variable each time the swf play.
If anyone knows if it is possible and how it can be done right now I thank
-
April 26th, 2012, 05:39 AM #2
You may open and update a text file with a script (i.e. PHP) invoked by your main SWF. Or you may rely on trackers (google analytics or similar). Hope it helps.
Last edited by giobongio; April 26th, 2012 at 05:42 AM.
-
April 26th, 2012, 05:51 AM #3
Or use SharedObject.
Proud Montanadian
We tolerate living and breathing. And niches.
Name Brand Watches
Maybe getTimer() or TweenMax is the answer to your problem . . .
-
April 26th, 2012, 11:01 AM #44Registered User
postsTheCanadian Thanks for the help, I researched about it and get SOME results
but still not perfect, maybe you can help me improve.
The code below only works if I give a value to item.data.i;
example:
the first run I determine a value for the item.data.i;
item.data.i = 0, and run
after I closed I delete the "= 0" and is as it is in the code below
[code]
flash.net.SharedObject import;
var item: SharedObject = SharedObject.getLocal ("id");
item.data.i;
if (item.data.i> = 5) {
item.data.i = 0;
}
trace (item.data.i);
item.data.i + +;
item.flush ();
[/ code]
It seems to me necessary to determine which item.data.i must be of type int, but I can not do.

Reply With Quote

Bookmarks