# Need to load a Youtube clip in a video instance

**URL:** <https://forum.kirupa.com/t/need-to-load-a-youtube-clip-in-a-video-instance/265804>\
**Category:** flash\
**Created:** [July 12, 2008, 7:11pm UTC](https://forum.kirupa.com/t/need-to-load-a-youtube-clip-in-a-video-instance/265804 "2008-07-12T19:11:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckc](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@ckc](https://forum.kirupa.com/u/ckc)\
**Post date:** [July 12, 2008, 7:11pm UTC](https://forum.kirupa.com/t/need-to-load-a-youtube-clip-in-a-video-instance/265804/1 "2008-07-12T19:11:34Z")

</div>

Hi guys,  
I know it might be silly but i’m getting stuck here. I need to load a youtube clip into a “embed\_video” instance. I have a input text box where i want people to type there youtube url and then press a play button and the video plays in the next frame in different windows which are moving.  
I have attached a .fla file to see what i mean.  
please can anybody help! :sen:

---

<div class="post-metadata">

**Author:** ![g\_necionis](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@g\_necionis](https://forum.kirupa.com/u/g_necionis)\
**Post date:** [July 12, 2008, 7:35pm UTC](https://forum.kirupa.com/t/need-to-load-a-youtube-clip-in-a-video-instance/265804/2 "2008-07-12T19:35:27Z")

</div>

[http://www.brax4your.net/#/topic=62/page=blog/](http://www.brax4your.net/#/topic=62/page=blog/)  
[http://www.brax4your.net/#/topic=63/page=blog/](http://www.brax4your.net/#/topic=63/page=blog/)  
Try it! Maybe it will be helpful 🙂

---

<div class="post-metadata">

**Author:** ![ckc](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@ckc](https://forum.kirupa.com/u/ckc)\
**Post date:** [July 13, 2008, 1:02pm UTC](https://forum.kirupa.com/t/need-to-load-a-youtube-clip-in-a-video-instance/265804/3 "2008-07-13T13:02:41Z")

</div>

This is great but i need the user to be able to enter the url themselves in the input\_text box and when they press play the video plays in my\_video, which is inside the second keyframe on scene 1 and without the control bar from youtube.

Anyone can help please?

---

<div class="post-metadata">

**Author:** ![g\_necionis](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@g\_necionis](https://forum.kirupa.com/u/g_necionis)\
**Post date:** [July 13, 2008, 4:00pm UTC](https://forum.kirupa.com/t/need-to-load-a-youtube-clip-in-a-video-instance/265804/4 "2008-07-13T16:00:29Z")

</div>

Try to use masks for youtube controls covering.  
Give an instance name to Your input text for example: in\_txt. Than assign it to function init(embed\_video.in\_txt);  
Second You need to edit php code and flashcode there is path. Full path must be given from Your in\_txt instance.  
I didn’t try it in real but I would try to do these steps above.  
Good luck!

---

<div class="post-metadata">

**Author:** ![ckc](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@ckc](https://forum.kirupa.com/u/ckc)\
**Post date:** [July 13, 2008, 5:36pm UTC](https://forum.kirupa.com/t/need-to-load-a-youtube-clip-in-a-video-instance/265804/5 "2008-07-13T17:36:19Z")

</div>

Sorry i’m lost! ☹  
I gave it a try but doesn’t seem to work.

Anybody can help?

I know it might be useful as a reference for all in the future.

What i’m trying to do is to allow a user to paste any youtube/google video URL into the input text field and when the user press play the video (fully loaded) plays in the second keyframe without any sound from the youtubeclip in a video instance without the youtube control panel. And the video instance is moving on the screen( resize,rotate, flip) while the video is still playing.

Anyone ever encountered this?

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [July 13, 2008, 11:57pm UTC](https://forum.kirupa.com/t/need-to-load-a-youtube-clip-in-a-video-instance/265804/6 "2008-07-13T23:57:20Z")

</div>

> **[YouTube  |  Google Developers](https://developers.google.com/youtube/?csw=1)**
>
> Integrate YouTube videos and functionality into your website or application.

try this… this is the right way to do it…
