Skip navigation
Currently Being Moderated

Make a blinking light

Jun 22, 2012 8:41 AM

Hello,

 

I am trying to make a blinking light on keyframes of a project.  The project talks about this blinking light asks questions concerning this blinking light. I have a video playing at frame 10 on another layer.   I tried to put a still of the light off on frame 10, then the light on at frame 13, then off again at frame 15.  I then put classic tweens between the frames so 10 would tween to 13 which would tween to 15.  In frame 15 actionscript 2.0 I wrote "gotoAndPlay (13)"  I need it to go to 13 so it doesn't start my video again which is on frame 10.

 

The problem is, when I put the tweens in, it disables the image on frame 13.  So it appears the lights are off when played. 

 

 

My project is in actionscript 2.0.

 

Thanks for your help.

 

Mark.

 
Replies
  • Currently Being Moderated
    Jun 22, 2012 9:20 AM   in reply to MARKARKARK

    If these are images, there should not be any need to tween between them... you cannot tween one image into another

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2012 9:46 AM   in reply to MARKARKARK

    Create the blinking light as a separate movie clip... a frame or two of the light on, then a frame or two of the light off. No Tween... rather a "hard cut" from on to off.... no stop action at the end and the blinking light will recycle.

    Then add that movie clip into the main timeline as needed.

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2012 11:15 AM   in reply to MARKARKARK

    To create  blinking light movie clip:

    1. create a "light on" image (in another program) the exact pixel dimensions that will be used in Flash.

    2. create a "light off" image (in another program) the exact pixel dimensions that will be used in Flash.

    3. import both images into the Flash Library

    4. in your main Flash .fla, click "Insert" in the main menu, then "New Symbol", then choose the "Movie Clip" type (do not crate the movie clip in the main timline).

    5. Now create your on-off blinking light in this movie clip. It has it's own timeline, layers, etc. and is completely separate from the main time fime.

    6. Movie clip will now appear in the Library (it is not on the stage).

    7. When you want to add this mc to the main time line, create a new keyframe (F6) and drag/drop the movie clip into the frame on the maine timeline where you want it.

    8. give that mc an instance name down in the Properties panel.

    Now you have a working mc that can be incorporated into the main timeline as needed.

    When timeline gets to the frame with the video, remove the blinking light mc if you want, or leave it on.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points