|
From: me000 on 14 Apr 2006 09:51 I have created a text field, then changed the framing option to "scrolling." But it has the normal type of scroll bar on most programs as a kind of default. Is there a way i can create my own scroll bar that would look better to fit in with the theme of the project? Any help would be great. Thanks.
From: openspark on 14 Apr 2006 10:23 There's a Custom Scroll Bar behavior in the Text section of the Library Palette. You can download an updated version of this behavior from http://nonlinear.openspark.com/tips/scripts/updates/. This behavior allows you to use your own graphics for the up and down arrows, dragger and backing bar.
From: me000 on 14 Apr 2006 11:40 thanks, i found the custom scroll bar bit in the library. but am new to director and still a bit confused, once i have made my own up arrow, bar etc. what do i do to get it working as a scroll bar for some text?
From: openspark on 14 Apr 2006 12:45 If you select the behavior script then open the Behavior Inspector (from the Window menu), you will see the following explanations: CUSTOM SCROLL BAR Create dynamic scrollbars with your own artwork. Such scrollbars are not Direct-To-Stage, so other sprites can appear over the top of them. You will need to create four graphic members: + up arrow + down arrow + dragger + backing bar You may wish to use two additional members, to indicate that the arrow buttons have been pressed: + up arrow (pressed state) + down arrow (pressed state) Place the four standard members on the Stage, and drop this behavior onto each of them. Choose how the current sprite is to act in the appropriate pop-up menu in the Behavior Parameters dialog. For each element you can choose whether animations should continue in the background. This option will tend to slow both the animations and the scrolling process, especially if applied to the arrow buttons. The various sprites will position themselves automatically to the right of the sprite-to-be-scrolled when the movie runs. They revert to their original positions when it stops. To avoid flashes, it would be a good idea to position them by hand in their intended positions. If you use a border on your field members, the scrollbar will sit outside the border. Field box shadows are not recommended. You can always fake external borders and box shadows with shape members (this even gives you a choice of colors). To make authoring easier, this behavior will continue to work if you change EITHER the sprite channel OR the member in the chosen channel. If you change both, the behavior will no longer know what to scroll. If you do change either the sprite or the member, and then reopen the Behavior Parameters dialog for one of the elements, this will put that behavior out of synch with the others. Simply reopen and close the Parameters dialogs for each of the other elements. If you do not do so, you will receive multiple alerts. This behavior can be used to scroll both editable and non-editable Fields and Text members. For editable members, however, it does not automatically update the dragger position when the length of the text changes, nor does it make the editable member scroll automatically when the user drags the mouse to create a selection. PARAMETERS: * Current sprite acts as (up|down arrow | dragger | bar) * Scroll the member of <sprite>: <the member of sprite> * Standard member (this should not need to be set) * Member to display when arrow buttons are pressed * Allow animations to continue PUBLIC METHODS => Scroll the text/field member to a given position => Swap the text/field member to be scrolled => Get the behavior reference
|
Pages: 1 Prev: Burning Director/Flash project to DVD Next: Extract images from CST file |