# Scrolling a movie?

**URL:** https://forum.kirupa.com/t/scrolling-a-movie/57609
**Category:** flash
**Created:** [July 14, 2004, 5:08pm UTC](https://forum.kirupa.com/t/scrolling-a-movie/57609 "2004-07-14T17:08:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Otsego](https://avatars.discourse-cdn.com/v4/letter/o/977dab/32.png) [@Otsego](https://forum.kirupa.com/u/Otsego)
#### Post date: [July 14, 2004, 5:08pm UTC](https://forum.kirupa.com/t/scrolling-a-movie/57609/1 "2004-07-14T17:08:29Z")

</div>

I have a MC that i use pretty much like a frame. I load the contents of the site into this MC everytime. Well my problem here is i have a bunch of text and a few pictures that i would like to display in this MC. I would LIKE to just use the MC to display an HTML page. Is this possible? if not, how would i go about using a scroll bar or at least up/down arrows to scroll the info?  
thanks.

---

<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: [July 15, 2004, 2:06am UTC](https://forum.kirupa.com/t/scrolling-a-movie/57609/2 "2004-07-15T02:06:51Z")

</div>

you cant load html into flash, but you can ‘simulate it’ by scrolling the MC that contains pics and text:

create a button and paste this actions to it:

```auto
on(press){
startDrag("",false,l,t,r,b);}
on(release, releaseOutside){
	stopDrag();
}

```

now converti this button into a movieClip and paste this actions to it:

```auto
onClipEvent(load){
	l=_x;
	r=l;
	t=_y-50;
	b=_y+50;
	_y-=50;
	_parent.ycontrol_diff=_y;
}

```

select this movieClip and assign the ‘ycontrol’ instance name, now in the actions for the frame were all is located:

```auto
pixeles_a_mover=600;

this.onEnterFrame=function(){
		ryc=ycontrol._y-ycontrol_diff;
		mp=pixeles_a_mover/100;
    elclip._y=mp*ryc;
}

```

now give the instance name ‘clip’ to the movieClip you want the scroll to be applied

---

<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: [July 15, 2004, 5:47pm UTC](https://forum.kirupa.com/t/scrolling-a-movie/57609/3 "2004-07-15T17:47:24Z")

</div>

Thanks. this will work great. I do have a request tho… can you explain your vars? I get the jist of it, but i would also like to add buttons at either end so you could click scroll…
