A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Key Validation

Threaded View

  1. #1
    Member
    Join Date
    May 2005
    Location
    San Francisco
    Posts
    55

    Key Validation

    Hi,
    I'm trying to attach a key validator, that where unless a file called .key.txt contains a valid string, the timeline will goto a certain frame called stolen.

    i have this in .key.txt

    Key=valid

    and here is my actionscript:

    this.createEmptyMovieClip("some_mc", 1);
    some_mc.loadVariables("key.txt");
    some_mc.onEnterFrame = function() {
    if (this.Key == "valid") {
    _root.movie.gotoAndStop("home");
    } else {
    if (this.Key != "valid") {
    _root.movie.gotoAndStop("stolen");
    }
    }
    }

    stop();

    It works, but i keep seeing the account suspended page popup on start. I dont understand why, i have it on frame 10 of a movie. all the preceding frames have stop actions. frame 1 of movie is "home".
    Last edited by paragonc; 09-29-2006 at 06:30 PM.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center