# Buttons to control flv component

**URL:** <https://forum.kirupa.com/t/buttons-to-control-flv-component/330304>\
**Category:** Uncategorized\
**Created:** [December 30, 2012, 7:51am UTC](https://forum.kirupa.com/t/buttons-to-control-flv-component/330304 "2012-12-30T07:51:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JmacUSAF](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@JmacUSAF](https://forum.kirupa.com/u/JmacUSAF)\
**Post date:** [December 30, 2012, 7:51am UTC](https://forum.kirupa.com/t/buttons-to-control-flv-component/330304/1 "2012-12-30T07:51:15Z")

</div>

Hi everyone…Noob here…

Im sure this is simple,

I have two movie clips on the stage. One of a chalkboard with buttons nested inside, the other is of a tv with a flv playback component in it. The tv’s instance name is “television” and the instance name of the flv component is “myVideo”. I want the buttons on the chalkboard to control the flv component in the tv upon a mouse click.

I thought it would be as easy as creating an event listener for each button and the under function say and target the tv. (instance name.flvcomponent instance name. source)

television.myvideo.source = “videos/clip1.flv”;

Where is my fail? Should I put the buttons elsewhere?

I appreciate all the help! Just learning programming and action script.

Josh
