# How to add youtube player

**URL:** <https://forum.kirupa.com/t/how-to-add-youtube-player/322982>\
**Category:** Uncategorized\
**Created:** [June 11, 2011, 7:43pm UTC](https://forum.kirupa.com/t/how-to-add-youtube-player/322982 "2011-06-11T19:43:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jessyjess](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@jessyjess](https://forum.kirupa.com/u/jessyjess)\
**Post date:** [June 11, 2011, 7:43pm UTC](https://forum.kirupa.com/t/how-to-add-youtube-player/322982/1 "2011-06-11T19:43:12Z")

</div>

Hi

Wonder if anyone got the time & skills to help me out here.  
I want to be able to add youtube videos on my site. The site is built using as2 xml etc…

Maby there is some sort of a .swf youtube player that i can load into the site?

I can provide the code & files if necessary but for now heres the site:  
flaw.se

If this is a stupid question and takes to much effort then im willing to pay a little sum…

Beside that i want the pictures to stop scrolling 20 pixels from the right side of the webbrowser. I did get some help and added:

```
    //IMAGES DRAGGING FUNCTION
    function drag() {
        Tweener.removeTweens(project.images);
        project.images.onEnterFrame = function() {
            scrollAmount = (this._width - project.scrollBase._width) / (project.scrollBase._width - project.scrollBt._width);
            targX = -project.scrollBt._x * scrollAmount;
            this._x -= (this._x - targX) / easingValue;

```

\*\*  
if(this.\_x+this.\_width \< Stage.width-20){  
this.\_x=Stage.width-20-this.\_width\*\*  
}  
}

But then it stoped directly after the picture without any space. And last bit of the scroller dident really work right.

Any clues, anwers? This is important to me, i really wanna be able to use my site soon 🙂

Thx alot everyone!
