OZONE Asylum
Forums
Multimedia/Animation
Steve's scroller tut
This page's ID:
11232
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Dark - my was written in Flash 5, but in the very early days of my comprehension. It was essentially a re-write in Flash 5 syntax of Flash 4 versions I had found in other tutorials. When I wrote that, there were tutorials out that showed how to use the new Flash5 features to get external text into a movie, but the whole clipEvent thing was too new for there to be any teaching materials available to me. The scroll arrows page in my GN tutorial is so very much more complex than it needs to be. The empty controller MCs..... shudder. Oh well. I figure even if this isn't a terribly efficient way of doing things, you'll still learn a lot about ActionScript by doing it. Read the tutorials I suggested to Krets. In a nutshell, here's the simple way. Make a button symbol to represent your scroll arrows. Make two new MCs, one for "up", one for "down" and put an instance of the button in each. Add code to the button in each MC, something like: on(press){ scroll=true } (this is pseudocode, but you get the idea) Then in the final assembly (either on the main timeline or in a new movie clip) you put your text field, your ornamentations and your scroll arrows. Select each arrow and add an object action (not a frame action). Again in pseudocode, the down arrow would be something like onClipEvent(enterFrame){ if(scroll=true){ textField.scroll++; } } and the up arrow would be the reverse: onClipEvent(enterFrame){ if(scroll=true){ textField.scroll--; } } Okay? Does this make any sense? Code is added to the arrow button MC to collect a mouse event (press, or mouseOver). Then that symbol, containing the button code, is added to another MC, and that symbol gets an object action which says "if you have received the mouse event you were set to be sensitive to, then do this thing", which is to add to or subtract from the scroll property of the text field. Much much simpler than what I have in that old tutorial. I really have *got* to freshen it up! At the point at which I wrote the tutorial, the *only* example of this technique was by Colin Moock, and it would hve felt like a blatant rip-off to "take" it. Now it's common place. A lot can happen in a few months!
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »