Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-13-2001, 05:14 PM   #1
SinBin61
Registered User
 
Join Date: Jun 2001
Posts: 6
Default

I know, I know, this question is all over the message boards, but I'm still a little confused on some things. Using Flash 5, what's the most efficient way to have a button continuously scroll a clip. Can you scroll a clip within a clip? For example, I have a clip named "newstext" and in that clip is a mask layer masking a clip named "news" which is just text. Can the "news" clip be scrolled? Do the buttons have to be in the targeted clip or can they be on the main timeline? Sorry so long winded, but really want to learn this. Thanks in advance.

Robert
SinBin61 is offline   Reply With Quote
Old 06-13-2001, 07:42 PM   #2
20 Ton Squirrel
Risu Oyabun!
 
20 Ton Squirrel's Avatar
 
Join Date: Apr 2001
Location: Houston, Texas
Posts: 1,460
Default

You can put your buttons pretty much anywhere on the stage or in other MCs. You just have to keep proper track of the path in which you will be referencing. I'd strongly suggest you look over the tutorial here for Paths to Objects and Variables written by Jesse. It's simple and it explains alot... heck, it helped me through one of my many addle-headed moments.
So if you have a MC that contains /another/ MC that needs to be scrolled, I'd have it structured like this:

Listbox MC
|--> ScrollUp Button
|--> Text MC
|--> ScrollDn Button
*

The Scroll buttons would contain a MC that loops a the movement of the Text MC on a mouseover... with a max, of course, for the ceiling and floor of the Text MC. You don't want that sucka flying off into the nether.

The actionscript in MC that the ScrollUp Button mouseover might look like this:

if (_level0.listbox.txtbox._y < ceiling)
_level0.listbox.txtbox._y++;


I have this visualized so the user just has to move her mouse over the top or bottom part of the listbox to get it to scroll rather than clicking an up or down button repeatedly. You can get the same effect by placing the same manner of script in different parts of the button. Be creative, have fun, and look at those tutorials... thar be good ones out there. Arrrrrrrrrrrr!!!!


[Edited by 20 Ton Squirrel on 06-13-2001 at 01:46 PM]
20 Ton Squirrel is offline   Reply With Quote
Old 06-14-2001, 03:42 PM   #3
SinBin61
Registered User
 
Join Date: Jun 2001
Posts: 6
Default

Thanks alot! I got it to work.
SinBin61 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Jesse Stratford - Help me with your Continuously Scrolling Text Field gsnipers ActionScript 2.0 3 02-09-2005 01:55 AM
Scrolling Landscape Background on button action free mojo ActionScript 1.0 (and below) 3 03-17-2004 11:54 AM
programmatically inserting a very small button into a scrolling textfield Philip Toews ActionScript 1.0 (and below) 4 11-02-2002 11:51 AM
my "Relative Scrolling" is not working cp2 ActionScript 1.0 (and below) 19 04-03-2002 07:58 AM
Continuously Scrolling Text Field bailee ActionScript 1.0 (and below) 4 03-05-2001 03:10 AM


All times are GMT. The time now is 04:22 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.