PDA

View Full Version : How can emulate a "viewport"?


cip
10-27-2003, 07:43 AM
Here is the problem: I have to make a very long line of info (like 2800 pixels) text and simple shapes visible through a 550pixels window; to me it looks like a viewport problem: either make the movie narrow and move a very wide item or make the move wide and move the viewport. I did it somehow by inserting a bitmap of 2800 pixels and scrolling it through _x property.

1. Bitmap sucks badly here. I'd like to have instead pure vectors but hey! How do I make an "item" anything bigger than the current movie window? I've attempted to make a 2800 flash and then insert it in the 550 pixels movie as a library item. Couldn't! Can I import whole movies just like that? How?

2. Using the _x to "scroll" the big thing is also bad. I remember in Director doing an updateStage() so Director will display the position changes. There seems to be no updateStage() in ActionScript...

Any hints? Ok, maybe I can live with the _x making "jumpy" moves but how on earth to create a 2800 pixels wide item in a 550 pixels movie?

emergency_pants
10-28-2003, 10:22 AM
There are a couple of options, at a guess:

Firstly, enter your first set of info into a new symbol. Use the cursor keys to move the symbol almost to the edge of the viewport. Edit the symbol in place (right-click and select 'edit in place' or double-click the symbol on the stage). Add you next set of info, double-click OUTSIDE the symbol area to return back to the scene... then move you symbol over again... repeat until all your info is enetered.

The second option is to use actionscript. Create a series of smaller movieclips and move them using AS. i.e. When one movie reaches the edge of the stage, move another into place using AS. it would make a smoother animation, as there are less shapes to move in one go.