Welcome to TalkGraphics.com
Results 1 to 2 of 2

Thread: Flash Alarm

  1. #1

    Default

    Hi guys,

    I am trying to make an alarm movie. I have three variables with three set times

    A=2:00pm
    B=6:00pm
    C=11:00pm

    And I want to create a movie that would trigger an alarm at each of those times in order.
    I am thinking of a loop that keeps looping until the first time Checks, then move on to the new time and so on, but I ma not sure on how to write that script.

    Can anyone help me with that. thanks
    IP

  2. #2
    Join Date
    Dec 2001
    Posts
    1

    Default

    I'm not good at English.
    First,You make two MC(movie clip):
    MC1(sound):2 frames
    frame1:blank. action:stop ();stopAllSounds ();
    frame2:import sound file. action:stop();
    MC2(timer):1 frame
    you make 2 dynamic text,variable:a and b
    drag MC1(sound) into MC2(timer),instance name:x
    Second,you drag MC2(timer) into scene,instance name:z
    The scene only has one frame.
    You give MC2 action,not frame!
    **************************attention*************** **************
    onClipEvent (load) {
    day=new date();
    }
    onClipEvent (enterFrame) {
    a=day.getHours();
    b=day.getminutes();
    day=new date();
    if (b<10) {
    b="0"+b;
    }
    if (a=="12" and b=="00") {
    _root.z.x.gotoandstop(2);
    }
    if (a=="16"and b=="00") {
    _root.z.x.gotoandstop(2);
    }
    if (a=="20"and b=="00") {
    _root.z.x.gotoandstop(2);
    }
    if (a=="22"and b=="00") {
    _root.z.x.gotoandstop(2);
    }
    }
    IP

 

 

Bookmarks

Posting Permissions

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