FLASH AS HELLLPPPP!
- Started
- Last post
- 4 Responses
- datahiccup
i just need to make a scrollable text field with custom arrows, but all the tutorials use componants or are confusing. Help??
- unfittoprint0
STOP SHOUTING.
now:
#1. make 2 buttons [arrowUp & arrowDown)
#2. put them on Stage, name them and also name the textfield [MyText]
#3 use this:
arrowUp.onPress = function(){
myText.scroll = myText.scroll +1;
}arrowDown.onPress = function(){
myText.scroll = myText.scroll -1;
}
- ********0
haa haa. I can point you to something you can download too if you want. :)
- unfittoprint0
regarding your question:
#1 as stated earlier, you have to nam your instances on the Stage [properties bar].
#2 The actions are not to be used in the buttons but on an action layer.. Just create a layer, name it actions, click on the frame, then click the Action Panel, copy+paste.
- punch0
The suggestion above is a pretty good one, but if you need a standard draggable scroll tab on the scrollbar as well, I'd suggest trying components after all.
Don't be intimidated by them. They are designed to be ripped apart and tweaked by developers like you. I do it all the time and I have had some interesting results.
Just for the hell of it try dragging a scrollbar from the 'components window' onto your stage, then go to the 'symbol library', open the components folder and edit the different movieclips for the scrollbar.
You will discover that, like everything else in flash, these components are just little movieclips containing scripts and graphics. The graphics for the up arrows, down arrows, scroll tabs etc. can all be modified or replaced quite easily.
But be warned: Play with the graphics all you like, but don't mess with the code (unless you know what you are doing).