Results 1 to 4 of 4

Thread: Memory SWF add a number to each application, as3

  1. #1

    Memory 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

  2. #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.

  3. #3
    TheCanadian's Avatar
    10,302
    posts
    Noo doot aboot it, eh?
    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 . . .

  4. #4
    TheCanadian 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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012