ActionScript 3.0 :: Create A Scrollbar For Buttons?
Jul 27, 2009I know how to make a scrollbar for a text field, but how does one go about making a scrollbar for a non-text based item, say movieclip with a graphic inside?
View 5 RepliesI know how to make a scrollbar for a text field, but how does one go about making a scrollbar for a non-text based item, say movieclip with a graphic inside?
View 5 RepliesI need to create a scrollable list of buttons. Only vertical scrolling is enough. The main thing is that, the buttons and scroll bar should be custom drawn. One and two dimension of button layout support is needed.
View 3 Replies trying to modify the custom scrollbar that is in the tutorial section, it works nice, but i need to scroll the contentMain with the up and down arrow keys also, i think it needs a listener event, but is a kind of tricky for me.The complete code that is in the tutorial exactly is this...
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
[code]....
i have created some 6 -10 buttons and i want to keep these list of buttons in the scrollbar. so that a user can view only a set of 4-5 buttons at a time.i tried out the kirupa-scrollbar but when the masking is done on set of buttons all the buttons are under mask and i am unable to click any of those .i tried the UIscrollbar component, it works for the text area but not for the buttons
View 2 RepliesI have a dynamic text field with scrollbar buttons that work in Firefox, chrome and safari but not IE8. I wish I could forget about IE8 but it's not possible yet. The following code is being used.
on (press) {
myText.scroll=myText.scroll-1;
}
[code].....
Is there anyway possible to take the "Simple Custom Scrollbar" on the Kipura site (http:url....)and make it so that the "UP" and "DOWN" keys on your keyboard also scroll the scrollbar?
View 1 RepliesI'm in no way a Flash expert, and I've got a bit of a query. I've followed a few tutorials and managed to get a vertical scroller working pretty well. However, is there a way of having a set of buttons that will move the content of the scroller (and subsequently scrollbar) to a certain position, without breaking the scroll functionality?
View 1 RepliesI'd like to scroll (with ease) my masked movie clip up/down with buttons. I do not want to use a scroll bar.
View 1 RepliesI am trying to build a AS3 only project and I ran into a problem that when I turn some MC's visible on...they are out of my browser window and there is no scrollBar for browser to scroll down.
View 3 RepliesI am trying to connect dynamic text to scrollbar and buttons. I did tutorial and Lynda.com and practically pasted the code in with my file names and for some reason it does not work. It says I have a "Access of Undefined Property mask_mc" Did I need to create a variable for this? I didn't in the tutorial.
Right now I have the dynamic text loading successfuly in 2 different places and I wantd to add the scrollbar. I put the variables on frame 1 code and then I put the actually load code on the frame where it is needed.
[Code].....
I have a file where I am importing dynamic text with buttons and a scrollbar. Everything pulls in and is working fine except... I have one document where the dynamic text that is pulled in is short and really doesn't need to scroll. It appears fine but say you click one of the buttons or scrollbar by accident or curiosity. The movie just starts vibrating... it doesn't like thst the text is short. I don't want to take the stuff out because the info will always change and some days it may need buttons soma days not.
View 8 RepliesI am trying to scroll a movieclip with a scroll bar....I have tried ULscrollBar but it ends up only works for text.
View 3 RepliesI am trying to build a AS3 only project and I ran into a problem that when I turn some MC's visible on...they are out of my browser window and there is no scrollBar for browser to scroll down...
View 1 Repliesway to programmatically create a scrollbar? I did some research and only found components which is not practical in my case. I want to create a scroll bar for a movieclip. Examples or links to tutes would be cool.
View 7 RepliesIs it possible to create an inverted scrollbar? Because Im populating an empty movieclip with data and i want to scroll this data using a scrollbar, but instead of populating from the TOP TO BOTTOM Im populating the movieclip from the BOTTOM UPWARDS. Im having problems with my scrollbar if i did it this way. But if i populate the empty mc with data from TOP to BOTTOM, my scrollbar is working properly.
View 14 Repliesi need to display this dynamically generating buttons from xml into moveclip with scrollbar in as3.
var yPlacement:int = 230;
var xPlacement:int = 66;
var distance:int = 100;
var format:TextFormat = new TextFormat();
[code]....
I am trying to create a dynamic xml driven video playlist, that will display the thumbnail, title and time duration of the video (quite similar to the one on youtube). But I don't know where to begin and I have been googling for some helpful tutorials but cant find anything resourceful. guide me if I shall use the Flash component for scrolling purpose or I shall learn to develop my own scroller with scrollbar. If someone knows the link of some recommended tutorial, that would be great.
View 1 RepliesI am trying to create a custom scrollbar for a website... I watched the tutorial>[URL].asp on how to create one. I have the scrollbar working but it won't attach to the text! Here is the actionscript:
[Code]...
in flash8/mx04 is it possible to create a custom scrollbar for text only? i would like to make a dynamic text field with a scrollbar that doesnt need to be contained in a masked mc like most of the scrollers i have seen on this forum so far. i dont want to use the UIscrollBar component because it doesnt quite (well, doesnt at all) fit in with the theme of the project i am working on.
how to make a scrollbar?
so I'm trying to create and input textarea with a scrollbar. No scrolling buttons needed. The app will be a font previewing app, where the user can change fonts, sizes etc. kinda like [URL](hit try on any font).
Everything works fine until the user wants to add some text. I've got an easing scrollbar thing going, which almost work, but the problem is in updating the scrollbar's position after the user has typed something in (tested using onSetFocus and onKillfocus). This scroller works with a mask and the x, y and height value of the masked clip.
So I started looking into scroll and thought I'd use that. Now I'm so puzzled that I can't figure out the best way to scroll and input textarea, so that the scrollbar's position would update according to the cursor's position in the text.
I've tried to use the "Simple Custom Scrollbar" tutorial to create a horizontal scrollbar instead of the vertical. I've changed the defenitions like this:
scrolling = function () {
var scrollWidth:Number = scrollTrack._Width;
var contentWidth:Number = contentMain._Width;
[Code]....
I put the "Width" instead of the "height", and "x" instead of "y". What I've got is when I push on the "scrollFace" button it slides but disappears immidietly, and the the image (which is "movieclip" as well) beneath the masked area freezes.
* In addition - I have to make this scrollbar move from right to left - Is there any additional defenitions I must concern?
I have a Canvas with a VBox in it. As I add items to the VBox, I want the VBox to grow, I want the scrollbar on the Canvas to control the visibility.
View 2 RepliesIs it possible to create a textbox with a scrollbar that can contain both text and images? Maybe some sort of ActionScript that has to do with loading external files that contains both text and images? But I presume that if it's going into a textbox, it'd have to be text.. I'd like my content in a textbox though (rather than in a movieclip) so it could be scrollable.
what I'd do is create my page in Fireworks with the text and images. So that way I can assign hyperlinks on keywords. Then the file would be saved as either PNG or HTML. Either way, could Flash import such files into a textbox and still preserve the hyperlinks?
how I would convert this vertical scrollbar into a horizontal scrollbar
heres the code:
onClipEvent (load) {
diff_y = bound_box._height-scroller._height;
bounds = bound_box.getBounds(this);
top = bounds.yMin+(scroller._height/2);
bottom = bounds.yMax-(scroller._height/2);
[code]....
I've found plenty of scripts for scrollbars that move a movie clip up and down within a mask. However, what I'm trying to do is create a scrollbar that changes the "scroll" attribute for an XML textbox. I already have it set up to work with scroll arrows. Here is the code I'm using below:
Code:
scrollArrows.downBtn.onPress = function() {
this.onEnterFrame = function() {
EquipText.scroll++;
[code]...
So I've got the arrows working fine, but I'm still missing a scrollbar to go in between them.
I'm just trying to create some buttons on my .swf.
_leftButton = new Button();
_rightButton = new Button();
_leftButton.buttonMode = true;
[code]...
How do I add a picture to those buttons? Like I want it to have an arrow instead of just havnig a label.
Is it possible to create buttons using only actionscript? If it is, would you be kind enough to point me in the right direction of a tutorial or such that could explain it to me? Just figured out how to use createTextField today and wanted to see if there was something similar to that for buttons.
View 4 RepliesI am having trouble. I am trying to get buttons on the stage to create instances of movie clips from the library when clicked.
I don't get any compiler errors, but when I click the buttons[code]...
I was wondering what would be the most optimal way of coding something that work this way: There's 10 buttons, you click button 5 (for example) which causes button 5 to gotoAndStop(2) while at the same time it tells all the buttons which aren't button 5 to gotoAndStop(1)
View 1 RepliesI need to create a calculator (url...) were you can enter in cost in one box and automaticaly it calculates 30% and displays that figure in a total box.
I know a fair amount of action script 2 but now this has to be done in ac3 and I'm very lost.I've tried doesn't seem to work correctly in AC2 or AC3.