A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Auto-Next (Time Based) in Flash Game

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    12

    Auto-Next (Time Based) in Flash Game

    Ive been creating an alphabet game in Flash(CS5) AS3. My problem is:
    * How can i link the first scene Aa to 2nd scene Bb and so on... after 5 seconds of showing the result(Image 3).
    Attached Images Attached Images
    • File Type: jpg 3.JPG (65.5 KB, 59 views)
    • File Type: jpg 1.JPG (172.1 KB, 56 views)

  2. #2
    Dignitary rynoe's Avatar
    Join Date
    Jan 2003
    Location
    Earth
    Posts
    760
    Timer class:

    PHP Code:
    import flash.utils.Timer;
    import flash.events.TimerEvent;

    myTimer=new Timer(50000);
    myTimer.addEventListener(TimerEvent.TIMERtimerHandler);
    myTimer.start()

    function 
    timerHandler(e:TimerEvent):void{
             
    // code

    [SIGPIC][/SIGPIC]

  3. #3
    Junior Member
    Join Date
    Jul 2012
    Posts
    12
    ok thanks for that nice Timer class!!! I get it... but.. if i use frame by frame to my alphabet game, what should i use to call the next frame for (i.e. after the Aa stage, the next stage Bb will show up then Cc, Dd etc...) should i use gotoandplay(); ?

Tags for this Thread

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