Scrollbar Arrows
so im modifying kirupa's tutorial, loading external text filesand i took away the scrollbar component, in favor of graphical arrow buttonsim using this code from another tutorial on sending a form with php to make the text scrollon(press){ _root.newsBox.scroll++;}and the other button has scroll--;the problem im having, is that you have to push the arrow button a million times to get to the bottom of the document,how can i make it so when you press down the button, it continues to scroll until you release?some sort of if..else loop?
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 09-27-2005, 03:41 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Scrollbar Arrows Missing - How Do I...?
Hi. I made a text box (dynamic, multi-line) & named the inst "window." Dragged and dropped the scrollbar component into the textbox. Created text files for content.
Content and scrollbar appears, but w/o arrows. Text is definately longer than the window, and I can scroll with the mouse, but not with the scrollbar.
How do I get arrows in the scrollbar?
Thanks!
Draggable Scrollbar For Text (No Arrows)
I am attempting to create a draggable scrollbar for a dynamic text field including only a sliding thumb and track (no arrows). ex. www.ultimavez.com
I am new to Flash 8 and have a relatively good understanding for the program based on the length of time I’ve been using it, with the exception of creating/customizing components. If someone is able to assist me, please break the solution down as though you were explaining it to a 10 year old.
I greatly appreciate it.
Scrollbar Component - How To Set The Arrows To Invisible
Hello Forum
I'm trying to save some coding time by using the flash component scrollbar. Is there a way to tun off the visibility of the arrows. The designer wants only the scroll thumb (is that the right term?)...
I've imported the component assets into the library and started to apply different colors. But the background of the arrow and the thumb seem to be the same.
Can this be scripted instead?
Any ideas?
Thanks
Stephank
Scrollbar Component - How To Set The Arrows To Invisible
Hello Forum
I'm trying to save some coding time by using the flash component scrollbar.
Is there a way to tun off the visibility of the arrows. The designer wants
only the scroll thumb (is that the right term?)...
I've imported the component assets into the library and started to apply
different colors. But the background of the arrow and the thumb seem to be the
same.
Can this be scripted instead?
Any ideas?
Thanks
Stephank
Draggable Scrollbar For Text Field (No Arrows)
I am attempting to create a draggable scrollbar for a dynamic text field including only a sliding thumb and track (no arrows). ex. www.ultimavez.com
I am new to Flash 8 and have a relatively good understanding for the program based on the length of time I’ve been using it, with the exception of creating/customizing components. If someone is able to assist me, please break the solution down as though you were explaining it to a 10 year old.
Thanks
Making Up/Down Arrows On Object-Oriented Scrollbar 1
Hey guys,
I have implimented the Object-Oriented Scrollbar 1 into a project I am working on, and now the client wants to add Up/Down arrows to the functionality.
Can someone help me figure out what to do to add that functionality? I was trying to just move the content, but it didnt update the scroller bar, and I am unsure of how to go about this.
This is for a large client, and I do not have the time to re-impliment a new scrollbar system.
Thanks so much!
Arrows
Kind of cool looking a guess, just a few things i couldn't get a handle on.. I remember being able to assing the original movie clip it's own properties, like this_alpha = 0; so it's different than all the duplications, but that doesn't seem to work now.. and it's not letting me hittest the duplicated movie clips either. Anyways, it still looks cool.
Arrows On Keyboard
Does anyone know how I can script to use my arrow keys on the keyboard to scroll??
What Are The 2 Arrows For In Flash?
I've been using Flash for years.
And I'm a bit embarassed to admit that I don't know what the white arrow is for??
I always use the 'selection tool' arrow.
But what is the arrow next to it, the 'sub selection tool' used for?
Thanks.
Jam
Pointing Arrows
How can you program an object (ie an arrow) to point at something no matter where the screen moves. I want the arrow to swivel to show the player where to go to get to the end but it can't be a simple 8-directional arrow, it has to move constantly around the center of the character mc. Sorry if this is hard to understand because I am not very good at expressing just what it is that I want but I need something like the arrow that points to the planet in this game http://www.miniclip.com/gravity.htm which is an awesome game, btw. Anyone have ideas???
Appearing Arrows
need some help with good old flash, i have a picture in flash and i want to explain the different parts of it.
there are different words round the side of the picture, so when the user clicks the word i would like an arrow to appear and point to the relevant part.
could anyone direct me to a tutorial or give me some help, it would be much appreciated, thanks.
Scroll Arrows
How can I make scroll arrows only appear if there's additional text to scroll to? My site has a couple sections that are only 1 page, so I'd rather not have the arrows show. I'm brand new to flash but this is the only change I need to make (a friend of mine made the site for me). Here's the link:
www.lightstormstudios.com
Thanks everyone!
-Marc
Up Down Arrows In Web Browser
Hello All,
Been searching forums with little luck. I am writing a website in flash 8 and wanted to have it so that when the swf is viewed in a web browser, that the up/down arrows work like they do with html or other web pages, moving the content up and down. I know that there's something about capturing keypresses, but don't exactly how I'd go about it. Any help would be great appreciated.
Neil
Making Arrows
how do people make the arrows....
my arrows never come out right. Is there an easier way to make them...do you use flash or another application?
Scroll Bar Arrows
I've got a document with multiple scenes, and in the 2nd scene I have a dynamic text, multi-line field with a scroll bar that works just fine. However, when I try the same thing in other scenes the roller bar doesn't have arrows and the text is no longer dynamic. Has anyone else has this problem or the solution?
Generating Arrows
When I'm making the DDR Game i want it to have the arrows randomly go up the screen and when it gets to a certain area i want to press a key and get only 5 points. If you know how to make random movie clips come up plz tell me and if you know how to make it so when it gets to a spot to enable keys to be pressed for points.
Scroll Arrows?
scroll
--------------------------------------------------------------------------------
hi!
i wont to do a scroll that only show the arrow thet is possible to use. SO if the text is newly loaded the only scroll arrow i wont to see is the one that scrolls down and directly after you klick thet one the scrol up gets visible.And when you come to the end of the text the down arrow disapers. Bad eng i know !
/m
Arrows Key Move Over...
how do i make something go to a silde wen i move on top of them by using the arrow keys i alredy know how to do the arrow key movement like this...
onClipEvent (load) {
moveSpeed=10;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x+=moveSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._x-=moveSpeed;
}
if (Key.isDown(Key.DOWN)) {
this._y+=moveSpeed;
} else if (Key.isDown(Key.UP)) {
this._y-=moveSpeed;
}
}
but wat i want is tat wen i move on top of another object i want to make it go to aonther slide
i tried to use the drag and drop tut but it didint help with wat i wanted so can some1 plz help!!!
Can't See Scroll Arrows
Ok, I've made many scrollable text boxes. But now, I've made one that isn't acting right and I don't know why. It actually works, but you can't see the arrows on the scroll bar.
I don't know action script, so i do everything visually.
I made a dynamic text box the size I wanted it and gave it an instance name. Then, I made sure the text box was multiline and scrollable. I dragged a UIScrollBar component onto the right side of the text box. It automatically added the instance name of the text box to the target path. Finally, I added all my text. What am i missing? When testing it, you can actually use the arrow keys to scroll, but I kinda need the scroll bar to be functional. Thanks for your help!
Hounding Arrows
[swf=http://www.kirupa.com/forum/attachment.php?attachmentid=11876]width=600 height=250[/swf]
Click around.
The source is heavily commented (probably too much) and broken down into 5 rather simple steps.
Enjoy.
-L
Scroll Arrows
Is there an easy way to make custom scroll arrows and applying action script to the arrows?
i have found this code
Code:
on(press){
scroller.scroll++;
}
but it scrolls one line per mouse click. I would like to have on press scroll and then on release stop scroll, something like that. any sugestions
Scroll Arrows?
scroll
--------------------------------------------------------------------------------
hi!
i wont to do a scroll that only show the arrow thet is possible to use. SO if the text is newly loaded the only scroll arrow i wont to see is the one that scrolls down and directly after you klick thet one the scrol up gets visible.And when you come to the end of the text the down arrow disapers. Bad eng i know !
/m
Arrows Key Move Over...
how do i make something go to a silde wen i move on top of them by using the arrow keys i alredy know how to do the arrow key movement like this...
onClipEvent (load) {
moveSpeed=10;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x+=moveSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._x-=moveSpeed;
}
if (Key.isDown(Key.DOWN)) {
this._y+=moveSpeed;
} else if (Key.isDown(Key.UP)) {
this._y-=moveSpeed;
}
}
but wat i want is tat wen i move on top of another object i want to make it go to aonther slide
i tried to use the drag and drop tut but it didint help with wat i wanted so can some1 plz help!!!
Can't See Scroll Arrows
Ok, I've made many scrollable text boxes. But now, I've made one that isn't acting right and I don't know why. It actually works, but you can't see the arrows on the scroll bar.
I don't know action script, so i do everything visually.
I made a dynamic text box the size I wanted it and gave it an instance name. Then, I made sure the text box was multiline and scrollable. I dragged a UIScrollBar component onto the right side of the text box. It automatically added the instance name of the text box to the target path. Finally, I added all my text. What am i missing? When testing it, you can actually use the arrow keys to scroll, but I kinda need the scroll bar to be functional. Thanks for your help!
Hounding Arrows
[swf=http://www.kirupa.com/forum/attachment.php?attachmentid=11876]width=600 height=250[/swf]
Click around.
The source is heavily commented (probably too much) and broken down into 5 rather simple steps.
Enjoy.
-L
Arrows At End Of Lines
Hello,
I aAm trying to make a VISIO-like program. I am doing pretty good, but I am unsure about how to make the arrows. I have seen this done, but how? Should I use hitTest to get the boundaries? I know the from-MC instanceName and the to-MC instanceName...so I can draw and update the lines (every 25 miliseconds). But I would like arrows to show the parent-child relationship/links. Any suggestions or example code would be great!
Thank you -
Frank
Dotted Lines Instead Of Arrows
sometimes when i make a motion tween i only get a dotted line instead of the arrow on the timeline.
i insert an object on keyframe 1, then i make a keyframe at 30 and move the object to another position at that frame. then, when i make a motion tween i only get this dotted line. whats wrong?
Forward And Back Arrows
I have a movie that load other movies into level1 and a navigation bar into level2.
Each movie has stop actions througout. Is there a way to make a forward and back button in the navigation movie that will go to these frames and if at the end or begining of a movie will goto the previous or next frame in the main movies timeline?
Kind of like you can do in Director with frame markers?
Or would I have to just put these buttons in each movie with a separate action to go to each individual frame I want it to stop at?
Moving A Movieclip Wih The Arrows
can anybody tell me how to make an object move from left to right and right to left when I press the right and left arrows?
I use Flash MX
Go To Another Scene By Using Key Arrows As A Mouse
I made an object to move with the key arrows. The problem is that I don't know how to use the object to move from one scene to another. I spent over a week trying to solve this problem but then I still don't have a solution!
I've made a quick example of what I wanted to do:
Download fla
Download swf
Again, thank you so much for helping me!
DjRubbish: Thank you for the example you have given me last time. It was very helpful but then new problems arose and I don't know how to solve them.
Changing Scroll Bar To Just Two Arrows Help
hello,
first of all i am using flash mx 2004 version 7.2
and I have created a scrolling text box:
http://www.cherieseleveneleven.com.au/Aboutus1.htm
but would like to remove the scroll bar and make two arrows appear to perform the same function. Im sure it is harder than it sounds!
but how do i do this?
Pressing Arrows From Code
hello guys!...is there anyway to achieve this, press an arrow from the code or set an equivalent of the arrows, i am using the datagrid for a kiosk but this kiosk has only left and right arrows, and i would like the Up and Down arrows be the same (just for a while) than Left and Right in order to navigate and browse the datagrid...any ideas?
Animating Arrows Continously...
Hi there!
I need to animate some arrows that follows a motion guide. I've kind of solved it but it's not the best solution. The problem is that the arrows needs to animate continously so that they create a nice flow...then I also needs to have three different speeds for the animation...
See what I mean here at http://widecircle.se/test/
It's very hard to control the animation the way I've set them up now. Is there a better way?
Niklas
Scrollable Text W/Arrows Help
I looked around and I still couldn't find what I needed. I'm new to Flash CS3 Pro (I still like the old versions better). I can't figure out how to make a scrolling text box being controlled by Arrows (not the scroll bar)? What are the steps to getting this to work? I've been trying to figure out how to get this to work for HOURS!! I'm desperate!!!
Mouse Down On Arrows Isn't Working
I keep getting arrows when I put in any script I find to do mouse down or up on arrows to get text to scroll. I have it where you can click a thousand times and it will scroll, but I need it to be able to be held down to scroll as well. Can anyone help me? This is the script I have now that works when clicked but not held down:
scrollUp_btn.addEventListener(MouseEvent.CLICK, scrollUp);
scrollDown_btn.addEventListener(MouseEvent.CLICK, scrollDown);
function scrollUp(Event:MouseEvent):void {
theField_txt.scrollV --;
}
function scrollDown(Event:MouseEvent):void {
theField_txt.scrollV ++;
}
Syncing My Sound With Arrows (DDR)
I'm currently making a Dance Dance Revolution game in Flash using Actionscript. I got all my arrowkey strokes to work when they need to.
(e.g. when the arrowkey is pressed, if the moving arrow touches the line in the fixed arrow, score increases AND e.g. if the moving arrow is not touching the line, score decreases)
ActionScript Code:
on (keyPress "<Left>") {
//if arrowd hits line1, score increases when this key is pressed
if (_root.arrowl.hitTest(_root.line1)) {
_root.score=_root.score+5;
_root.arrowl._y=435;
}
else if (_root.arrowd.hitTest(_root.line1)) {
_root.misses=_root.misses+1;
}
else if (_root.arrowu.hitTest(_root.line1)) {
_root.misses=_root.misses+1;
}
else if (_root.arrowr.hitTest(_root.line1)) {
_root.misses=_root.misses+1;
}
else {
_root.misses=_root.misses+1;
}
}
I also got a sound file I'd like to use for the game. And I coded the sound to play when I test it (Not sure if this is the right way) But all I did was created a new layer called "Sound" and imported the sound and added it on the stage.
Here's the problem:
I want it to make it so that the arrow comes up when beats are heard in the sound file. In other words, syncing the sound file with the arrows coming up.
Sorry if that's a bit confusing.
Any help is apprieciated.
Thanks.
Arrows In XML Gallery Timing Out... Why?
Hello!
I hope you can help me! I have an XML gallery that has some arrow problems. Under my thumbnails, I have a set of arrows that will navigate through the different galleries. When you select a thumb, a flash pop-up window launches that also contains arrows that allow you to navigate through the pictures.
My problem is that if the user selects the next arrow under the thumbnail about 8 times, selecting a thumb each time, and then switches to next, still selecting a thumb each time, the pop-up arrows will eventually disappear! It's like they never were there. :-(
I'm thinking that something in the code is making it time-out, but I can't figure out what it is... could you take a look? I'm thinking one of the two codes below contains the error:
Right now I have:
ActionScript Code:
currentThumb_mc.onRelease = function() {
//make the pop-up visible
window._visible = 1;
//set the text for the pop-up
window.title.text = this.title;
//path has changed here
window.loadPic(this.image);
//set the variable cur in mc window to the current picture
window.cur = this.id;
//call function in mc window for setting the next and prev buttons +info text (see there)
window.setPrefPop(this.id);
description_lv.load(this.description);
};
}
setPortfolioNr(t);
delay = setInterval(setScroller, 500);
}
function choosePortfolio(index) {
//set the popup invisble when choosing a new gallery
window._visible=0;
var portfolio_xml = new XML();
portfolio_xml.ignoreWhite = true;
portfolio_xml.onLoad = function(success) {
if (success) {
var gallery = this.firstChild.childNodes[index];
galleryInfo.text = this.firstChild.childNodes[index].attributes.title;
var totalGalleries = this.firstChild.childNodes.length;
GeneratePortfolio(gallery, totalGalleries);
} else {
trace("Error loading XML file");
}
};
portfolio_xml.load("portfolio.xml");
}
function setPortfolioNr(t) {
back_btn.onRelease = function() {
index>0 ? index-- : index=t-1;
choosePortfolio(index);
};
fwd_btn.onRelease = function() {
index<t-1 ? index++ : index=0;
choosePortfolio(index);
};
}
ActionScript Code:
function setPrefPop(id) {
//set the number of the chosen picture
img_info.text = "picture "+(id+1)+" / "+pArray.length+" total";
//if the first picture is chosen, set the prev button invisible
if (id == 0) {
prev_btn._visible = 0;
}
//if the last picture is chosen, set the next button invisible
if (id == pArray.length-1) {
next_btn._visible = 0;
}
next_btn.onRelease = function() {
//increase var cur
cur++;
//set the "prev" button visible
prev_btn._visible = 1;
//change the image info text
img_info.text = "picture "+(cur+1)+" / "+pArray.length+" total";
//*** added for the text's
_root.description_lv.load(_root.menu_mc.box["thumbnail_mc"+cur].description);
title.text = _root.menu_mc.box["thumbnail_mc"+cur].title
//if the last picture is reached set "next" button invisible
if (cur == pArray.length-1) {
this._visible = 0;
}
//load next picture
loadPic(pArray[cur]);
};
prev_btn.onRelease = function() {
//decrease var cur
cur--;
//set the "next" button visible
next_btn._visible = 1;
//change the image info text
img_info.text = "picture "+(cur+1)+" / "+pArray.length+" total";
//*** added for the text's
_root.description_lv.load(_root.menu_mc.box["thumbnail_mc"+cur].description);
title.text = _root.menu_mc.box["thumbnail_mc"+cur].title
//if the first picture is reached set "prev" button invisible
if (cur == 0) {
this._visible = 0;
}
//load prev picture
loadPic(pArray[cur]);
};
}
I'll also attach a copy of the file to this e-mail, so you can see the problem!! Thanks!!!
UIScrollBar Not Showing Arrows
I'm working on an FLA from templatemonster, you know, the ones with a lot of nested MCs and default named layers.
What I'm Trying To Do
Add the UIScrollBar component to a dynamic text box.
Symptoms of the Problem
Just displays a white rectangular box that has a border with the exact same height as the text box.
What I've Tried Already
- Renaming the default _targetInstanceName and instance name on the dynamic textbox. --Fails
- Importing External Library StandardComponents.fla and dragging UIScrollBar to my library --Fails
- Copying all of the symbols inside of the nested MC and pasting them into a new Flash document and then adding the component there --Works
- Going to the root of the timeline, adding a new layer, textbox, and attaching the UIScrollBar --Fails
- Checked the UIScrollBar properties: Export for Actionscript and Export in first frame checked --Fails
Note: When I attach the UIScrollBar I drop it ON the text box and it's set to dynamic. By fails I mean I'm still having the same problem.
What I'm Not Trying to Do
Load external data(text)
Has anyone ran into the same problem? I've already spent about 2 hours researching this problem. It seems like the answer isn't obvious.
Arrows On Scroller Don't Work... Please Help
(Scotty, maybe you can help me!!)
Scotty helped me create an XML pop-up gallery. I'm trying to alter the scroller for the thumbnails to make it look like the scroller on my other pages. However, it doesn't work right. The problem is the arrows... these are the problems that I'm seeing (and you can see, too!):
1) down_btn arrow does not work, but the up_btn arrow works? I'm confused because the coding looks correct for both?
2) I can use the dragger, but if I use the dragger, click on an arrow, and then try to drag the dragger, it will cut off the top of the thumbnails. If you use the dragger without clicking on an arrow, it works correctly.
3) The up_btn does not work with the slider. It will slide WAY UP, but I couldn't figure out how to stop it in a certain position.
4) I would like the arrows to have up/down states when you press the button, but I couldn't figure out how to do that. Would I place the actionscript on the mc or somewhere else? You can see the up and down states when you click on the mcs. But who knows how I can trigger them??
To cut this short, the scrollbar is messed up. I'm not sure how to fix it.. can you help me? I'll attach my file to this post!
Setting Limits For These Arrows...
Hello,
I have a row of thumbnails (populated from an XML list). If you press the arrow, the thumbnails will scroll from the right or left. What I can't figure out is how to set a limit because right now if you continue to press the right or left arrow, the thumbnails will scroll off the stage.
Do you know how I could fix this?
Thanks!!!!
Scrolling Text Without The Arrows
hi,im new to flash 8, but what i want to do is make a scroll bar without use the up and down arrow. like on this site http://www.jade-foxx.com/
any help would be good thanks for your time
MCs Loaded With Next/previous Arrows
I have a 3 frame movie clip called "morePix" shaped like a forward arrow. The morePix.onRelease() function loads an external movie using MovieClipLoader(). When the movie loads a back arrow comes up. Eventually I will have about 5 external movies loading into this MovieClipLoader() and I will want the forward and back arrows up until I get to the last movie. I'm trying to figure out how to create a loop or an array to load these movies. I hope that makes sense. It seems easy but I'm stuck. Here's the code I have so far...
morePix.onRollOver = function (){
this.gotoAndStop(2);
}
morePix.onRollOut = function (){
this.gotoAndStop(1);
}
morePix.onPress = function (){
this.gotoAndStop(3);
}
morePix.onRelease = function (){
this.gotoAndStop(1);
my_mc.loadClip("pics2.swf", "container");
}
The sequential movie clips will be pics3, pics4, etc.
this is in Flash MX 2004
thanks,
bfal
Controlling Movement W/ Arrows
i read the tutorial, and was wondering if there was a way to move something with two buttons being pressed at the same time ie pushing right and up make the object move on the x access 5 and the y access -5
Arrows On Scroller Don't Work... Please Help
(Scotty, maybe you can help me!!)
Scotty helped me create an XML pop-up gallery. I'm trying to alter the scroller for the thumbnails to make it look like the scroller on my other pages. However, it doesn't work right. The problem is the arrows... these are the problems that I'm seeing (and you can see, too!):
1) down_btn arrow does not work, but the up_btn arrow works? I'm confused because the coding looks correct for both?
2) I can use the dragger, but if I use the dragger, click on an arrow, and then try to drag the dragger, it will cut off the top of the thumbnails. If you use the dragger without clicking on an arrow, it works correctly.
3) The up_btn does not work with the slider. It will slide WAY UP, but I couldn't figure out how to stop it in a certain position.
4) I would like the arrows to have up/down states when you press the button, but I couldn't figure out how to do that. Would I place the actionscript on the mc or somewhere else? You can see the up and down states when you click on the mcs. But who knows how I can trigger them??
To cut this short, the scrollbar is messed up. I'm not sure how to fix it.. can you help me? I'll attach my file to this post!
Setting Limits For These Arrows...
Hello,
I have a row of thumbnails (populated from an XML list). If you press the arrow, the thumbnails will scroll from the right or left. What I can't figure out is how to set a limit because right now if you continue to press the right or left arrow, the thumbnails will scroll off the stage.
Do you know how I could fix this?
Thanks!!!!
|