# How can I create a moving viewport?

**URL:** https://forum.kirupa.com/t/how-can-i-create-a-moving-viewport/243541
**Category:** flash
**Created:** [November 8, 2007, 3:42am UTC](https://forum.kirupa.com/t/how-can-i-create-a-moving-viewport/243541 "2007-11-08T03:42:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pixelmech](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@Pixelmech](https://forum.kirupa.com/u/Pixelmech)
#### Post date: [November 8, 2007, 3:42am UTC](https://forum.kirupa.com/t/how-can-i-create-a-moving-viewport/243541/1 "2007-11-08T03:42:31Z")

</div>

Hi there,

I’m doing a demo for a client where I’m basically showing some web site screens like registrations, submitting forms, etc. My stage size is 850 x 650, so the demo will be viewable on a web page.

The problem is that many pages are longer than 650 pixels. What I need to do is kind of scroll the background (which is just a symbol made to look like the web page background) up so I can show the rest of the page.

I figured the best way to do this would be to have a “viewport” on the page sitting at the top. When I want to scroll down, I could animate the viewport down and show the lower portions. I guessed I could do this with a mask, but I’m not having any luck implementing this. (My Flash skills are fairly rudimentary).

What would be the best way to go about this? For most of the pages I have a bunch of form information that would need to move, which is why I figured moving the viewport instead would be better - move one thing instead of 30 things…
