# Video control

**URL:** <https://forum.kirupa.com/t/video-control/106694>\
**Category:** Uncategorized\
**Created:** [April 8, 2004, 12:44am UTC](https://forum.kirupa.com/t/video-control/106694 "2004-04-08T00:44:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brendino](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@brendino](https://forum.kirupa.com/u/brendino)\
**Post date:** [April 8, 2004, 12:44am UTC](https://forum.kirupa.com/t/video-control/106694/1 "2004-04-08T00:44:13Z")

</div>

[color=black][font=Arial]hi guys[/font][/color]

[color=black][font=Arial] [/font][/color]

[color=black][font=Arial]first of many post. I am Having a problem controlling an embedded video which i imported. This question is probably very simple for all you flash experts out there but i have to start somewhere. I apologise in advance. , have a video and its controlling buttons on a timeline but not the main time line. Have coded my play button as follows. [/font][/color]

[color=black][font=Arial] [/font][/color]

[color=black]font=Arial {  
gotoAndPlay (750);  
}  
[/font][/color]

[color=black][font=Arial]Unfortunately it only makes the main timeline play head move to this frame not timeline which i want. [/font][/color]

[color=black][font=Arial] [/font][/color]

[color=black][font=Arial]So my question is how do i code my button so that its controls the timeline i am in rather than the main timeline. Any feed back would be super! [/font][/color]

[color=black][font=Arial][/font][/color]  
[color=black][font=Arial][/font][/color]  
[color=black][font=Arial]bren[/font][/color]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2004, 11:14am UTC](https://forum.kirupa.com/t/video-control/106694/2 "2004-04-08T11:14:03Z")

</div>

First, you have to give your mc an instance name (in the property panel), then you can control the timeline of your movieclip by something like (“myvideo” is the instance name) [AS]on (release){  
myvideo.gotoAndPlay (750):  
}[/AS]  
It’s an example, it depends where you mc are located, also you can run a search on \_root and \_parent to see how to target path.

Ubik

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2004, 11:37am UTC](https://forum.kirupa.com/t/video-control/106694/3 "2004-04-08T11:37:37Z")

</div>

Thanks for the help i will try that now.

Cheers mate

bren

> [@Ubik](#):
>
> First, you have to give your mc an instance name (in the property panel), then you can control the timeline of your movieclip by something like (“myvideo” is the instance name) [AS]on (release){  
> myvideo.gotoAndPlay (750):  
> }[/AS]  
> It’s an example, it depends where you mc are located, also you can run a search on \_root and \_parent to see how to target path.
> 
> Ubik

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2004, 11:55am UTC](https://forum.kirupa.com/t/video-control/106694/4 "2004-04-08T11:55:46Z")

</div>

no problem 🙂
