# Maintaining button down states during video timecode events?

**URL:** https://forum.kirupa.com/t/maintaining-button-down-states-during-video-timecode-events/277141
**Category:** flash
**Created:** [December 8, 2008, 2:58pm UTC](https://forum.kirupa.com/t/maintaining-button-down-states-during-video-timecode-events/277141 "2008-12-08T14:58:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![catisoutside](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@catisoutside](https://forum.kirupa.com/u/catisoutside)
#### Post date: [December 8, 2008, 2:58pm UTC](https://forum.kirupa.com/t/maintaining-button-down-states-during-video-timecode-events/277141/1 "2008-12-08T14:58:01Z")

</div>

Hi all,

I was wondering if it is possible to create a function that listens for a certain frame of time to be reached in a streaming video, and then moves a certain button to its down state.

I can’t find an example of an AS3 function that listens for timecodes to be reached by the playback head, and am not sure of the syntax for it…or for moving a button to its down state. In the past I think it might have been something simple like btn\_Chapter1.gotoAndStop(“Down”) but that doesn’t seem to work.

If anyone wants to take a look at what I’m talking about in the context of my file, it is available at [http://drop.io/MatherInteractive](http://drop.io/MatherInteractive) (password is ‘help’). In plain English, this is what I want to be able to do in AS3:[INDENT]  
If timecode is between 00:00:00 and 00:04:58 then  
btn\_Chapter1 goes to “Down” state

If timecode is between 00:04:59 and 00:06:37 then  
btn\_Chapter2 goes to “Down” state

(etc., for btn\_Chapter3 to btn\_Chapter18)

[/INDENT]If anyone can help, thank you in advance!
