Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Can You Put Buttons In A Scroll Box?



Hi,

Does Flash MX allow you to put buttons within a scroll box?

Thanks



FlashKit > Flash Help > Flash MX
Posted on: 10-19-2003, 04:11 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Linking Text Buttons In Scroll To Image Outside Scroll Area
Hi,
I am desperately hitting my head against a brick wall - so please help me!

I have created a flash area that is divided up with an image on top and a scroll area under.

I am trying to get the text buttons in the scroll area to each change the image above and cant seem to get it to work because of the masking.

I have tried heaps and heaps of different ways and am going crazy!

PLEASE HELP ME!!!!


thanks,
kova

Dynamic Text For Multiple Buttons W/ Scroll Buttons/bar
HELP! I know a similar question to this has appeared multiple times before, but here is my situation:

i have four buttons, each of which will load a a separate text file into a dynamic text field (ie: button A to textfield 1, button B to textfield 1).

The other trick is, this also has a custom scroll bar. (I would rather just use an up and down arrow, but if i have to use a bar as well, I will not be too distraught.)

Is there a way that I can have all the text files loads in a dynamic text field PLUS have a scroll bar to aid with scrolling.

Any help would be greatly appriciated. I have been trying to figure this out for about a week now, and am still no where.

peter /slqu.net

ps: i am a designer, and for some reason, programming, even of the most simple nature, still eludes me. so please take pity me

Scroll Box Buttons - Constant Scroll?
Yo,

I've made a scrolling text box, but I cant figure out how to have it so when I simply hold my cursor over the up or down scroll button the text box will constantly scroll in the corresponding direction. I've tried while/for/do loops and I'm stuck, how would you do this utterly simple task?

Also, does anyone know how to make a working scroll bar? One that a user can click like a real windows environment window?

Scroll Bar With Buttons To Pics That Don't Scroll
Hi, I'm trying to make a scroll bar that has buttons in it, so that when you click on one of the buttons a pic shows up in the back ground...Trouble is that My pictures scroll also with the bar and I would like for them to stay stationary behind the scroll bar...Does this make any sense?

Thx Ezekiel

Emulating NEXT Buttons In AS Instead Of Scroll Buttons
Hope some one here can help more than my bosses
The guy at the top has decided that after careful consideration He doesn't want the dynamic text in the text areas of the new site to scroll _ it is confusing he says.
We should make it next buttons instead.
I don't want to have to embed all the text from the text file into the swf as the weight of the swf is already too big.

Can anyone suggest a work around for this please
Thank you in advance for your help,
Jon 8o)

Scroll Box And Buttons
iposted this in the newbie section, but nobody wanted to help me..hopefully someone in here will...

okay, so i started my first flash project..=)

problem is i have followed a tutorial on scrolling text boxes, and got it working after some time...

now i want the images inside the scroll box to be linked to movie that should appear on a different frame of that scene.

i have created buttons for the images that i want linked, but they will not work. it just stays on the same frame. I have tried changing the actions of the button to go to a url to test it and it works. But, when i try to link it to the same scene and a differnet frame number, it will not. Help!..

I have posted the movie here:
http://166.93.97.127/studio.html

I have tried to link the second and third images in the "our work" section. i want to have them all linked to their own movies on their own frames in the end. So if someone could help me out with at least one of the buttons, it would be much appreciated as I am sure i can follow along and get the rest working!!

I have also upload the fla I am using at
http://166.93.97.127/studio.fla if anyone wants to see it. I didn't think that this would be too complicated, but it has gotten me stuck. I am sure it is something simple that I don't know about yet. Thanks in advance!!

Scroll Buttons
This may sound a bit lame to some of you but I'm just getting started on Actionscripting. I have 2 buttons on the main stage (600 x 300), up and down, I have a MC in the main stage (depth 1000) with a mask above it. All I want to do is on mouse over make the MC go smoothly up or down and stop at top or bottom and for the other button to know where the MC is at when going in the other direction so that it too can stop at the top or bottom. To be honest, at the moment I don't even care if it stops or not as I can't even get it to move in the first place.
Any help would be greatly appreciated.

Buttons That Scroll?
I've seen a site where a person put buttons with arrows either going up or down. When I rollover the down arrow it scrolls the text downward and when I rollover the up arrow it scrolls the text upward. How does he do that? Is that all scripting? I want to learn how to do it for my site. Someone help me out please. THANKS!

Scroll Buttons
I am using version 5.

How can I make buttons that are shaped as triangles and are separate from each other to scroll a text box that has the code displayed below? The buttons are in a movie clip with the text box.

Code:
onClipEvent (load) {
this.loadVariables("textPolicy.txt");
Policy = false;
}
onClipEvent (enterFrame) {
if (Policy) {
// Text is loaded
Policy = false;
}
}
The text box code is on the movie clip not the text box itself.

Scroll Buttons...
Hi, is there any good tutorials or can someone explain how to make scroll buttons in flash..??

All I want is one button that would scroll up and one button that would scroll down...hopefully I can also scroll graphics and not just text..

thanks a lot.

Scroll Buttons
ok i have made buttons and i want them to scroll a dynamic text field, which has a external .html file thats loaded into it.

The field has an instance name of... Home

and this is whati have got on the actions for the scroll buttons


on (release) {
Home.scroll = Home.scroll-1;
}

and

on (release) {
Home.scroll = Home.scroll+1;
}


Am i wrong or am i wroooooooooong????


pls help


Tnx Livo

Scroll Bar With Buttons...
I've been searching the tutorials, but I'm not sure I can find exactly what I am looking for.

What I want is---> some images lined up that can be scrolled horizontally...each image is a link to something, so they need button properties.

One of the tutorials I read referred to having to create a movie clip in order for it to scroll, which I understand...but I need each scrolling image to have their own properties. Is this even possible?

Thanks in advance

Scroll Buttons
I have two buttons and know how to make text move down line by line every time you press the button. The problem I have is that I want text to be constantly moving when the button is press and held. can anyone give me the code.

Scroll Buttons
Hey!
can someone help me finding a tutorial on how to create some nice and simple scroll buttons? i don't want a scroll, at least for now.. still kind a newbie..

Scroll Buttons, Scroll Buttons...
Can someone please explain to me how I can make scroll buttons on a menu like this one?:

http://www.homestarrunner.com/sbemail.html

I just need a way for the menu to scroll while I am holding the button down, and to stop when I let go. Also, I want to know if I can make buttons scroll. Thanks!

Scroll Up/down Buttons
I need to know how to make a scroll up/down buttons...you know like a scroll bar but not really a scroll bar, because instead of having a huge scroll bar all i want is 2 up buttons (up and down) to make the text in the text field go up and down like some of those templates in www.5sec.com, i've had some tutorials URL but they dont explain it very well...plz someone help been looking for ages. (I'm using Flash 4..5...i know i know...old...ewww but i can only uses flash 4 for that matter lol...

Scroll Buttons
I have scroll buttons on my site that seem to work only after I go to a certain page. The site is done in Flash MX 2004 and the address is www.joshdamongoldberg.com. The site is built within the main movie and each page is loaded into the main .swf. The scroll does not work unless I click on the Works on Paper link. If I use the scroll on that page the scroll works site wide, but it will not work on the other pages until it is used on the Works on Paper page. Help would be greatly appreciated. Thanx

Scroll Buttons
the site is back up and I am still having problems with the scroll

Scroll Buttons
do you know what it could be, maybe something to do with the root movie

Scroll Buttons
yes, the only difference is the instance name on the movie clip

Scroll Buttons
Hi all

I have a little problem thats probably easy to sort out but my mind is like mush at the moment

I am using the following code on a scroll button

on (press) {
myText.scroll = myText.scroll += 1;
}

this works fine...ish but what I'd really like is that when you press the button it scrolls the textfield continuously until you stop pressing.

Is theire a stupidly ovbvious command that I have missed?

Look forward to some help on this

cheers

Scroll Buttons
Hi all, hope someone here can help with this small action script problem?

I have created two scroll buttons (up and down) and placed them next to a graphic with a mask layer over the top of it. I then used the code

on (release) {
press._y = press._y-10;
}

for the down button and..

on (release) {
press._y = press._y+10;
}

for the up button.

This gives the impression the graphic is actually scrolling. The problem is I want the graphic to scroll as I hold the button down and not have to press it over and over again. Also I would then need to specify when it should stop scrolling and go no further?

Hope someone can help as i'm totally stumped!

Scroll Bar Using Buttons
Hi,

I want to create an infinate scrolling menu, but i dont want it to be one where it moves depending on where the curser is, i want to be able to control it using left and right buttons (see the attached image). When i click either button i want the next image in the menu to move into the viewing pane in one movement.

would appeciate any help

thanks

Scroll Buttons
I seem to be having a problem with scroll buttons not working. basically I have an swf which loads a txt file called news.txt and the varieable inside the news.txt file is &news=

script for up button


Code:
../:text.scroll = eval("../:text.scroll") - 1;
script for scroll down button


Code:
../:text.scroll = eval("../:text.scroll") + 1;

script inside movie clip


Code:
text.scroll = 1;
I've tried replacing all the words text to news in both lines but cant get it to work

Anyone help

Cheers

Scroll And Buttons
q)Is there any function in flash to make the screen scroll with a large background covering 2 screen sizes?

q) when loading movie clips on screen I am using _visible property set to false when making them dissappear, is this the standard way or do you need to unload the bitmap image in the movieclip?

Scroll Mc Buttons
I have this code which works great for scrolling an mc horizontally depending on the mouse position:


Code:

this.onMouseMove = function() {
constrainedMove(bg_mc, 4, 1);
};
function constrainedMove(target:MovieClip, speed:Number, dir:Number) {
var mousePercent:Number = _xmouse/Stage.width;
var mSpeed:Number;
if (dir == 1) {
mSpeed = mousePercent;
} else {
mSpeed = 1-mousePercent;
}
target.destX = Math.round(-((target._width-Stage.width)*mSpeed));
target.onEnterFrame = function() {
if (target._x == target.destX) {
delete target.onEnterFrame;
} else {
target._x += Math.ceil((target.destX-target._x)*(speed/400));
}
};
}
stop();

The problem is my client now just wants a right and left button above the mc to do the same thing instead of the mouse position. (in other words "scroll right" button and "scroll left" button) But the scrolling has to stop when it reaches the right and left edges of the horizontally long mc.

Scroll Buttons....
Please can somebody help me, I've got some buttons that I use to scroll through a block of text 18 lines at a time. They work perfectly, but I want to change them so that they scroll continuously until somebody releases the mouse. At the moment they are set to:

on (press) {
this.scrollPrivacy_txt.scroll = this.scrollPrivacy_txt.scroll-18;
}

I tried to change it to:

on (press) {
this.scrollPrivacy_txt.scroll = this.scrollPrivacy_txt.scroll--;
}

but then it didn't work at all.

If it's easiler I don't mind changing it to RollOver and adding a RollOut although I tried adding:

onClipEvent (enterFrame) {
if (scrollUp) {
if (_root.scrollPrivacy_txt.scroll < _root.scrollPrivacy_txt.maxscroll) {
_root.scrollPrivacy_txt.scroll++;
}
}
if (scrollDown) {
if (_root.scrollPrivacy_txt.scroll >1) {
_root.scrollPrivacy_txt.scroll--;
}
}
}

to the movieclip containing the buttons and then:

on (rollOver) {
scrollDown = true;
}
on (rollOut) {
scrollDown = false;
}

and

on (rollOver) {
scrollUp = true;
}
on (rollOut) {
scrollUp = false;
}

to the buttons, but again this didn't work.

Thanks in advance for any help.

Scroll Buttons
I currently have a website that scrolls thumbnails dynamically snapshotninja photography (if you got to liveshots then bayside) and was wondering how I would go about adding scroll buttons to that. I have been searching everywhere and cannot find anything. Please help it would be greatly appreciated.

Scroll Buttons
uhmm hello people!! happy holidays!! can somebody help me out on making a scroll buttons for a site of mine.. so far i dont know the codes thanks in advance

Scroll Buttons
howdy
i have had a problem now for some time.
is it posible to put buttons in a scrollbox,or make the buttons scroll in some other way.

any help would be appriciated

thanks!!!

Scroll Buttons
I searched, read the tutorials so now I'm hoping I missed something. I want to create a vertical scroll bar with buttons that will act as links to open other swf.

Check out the links section on this site, http://www.n-gised.com/ . I'm aiming for something similar but hoping to use an alpha fade with mouse over on the links and use an action like this on the link:

Code:
on (release) {
_root.contents.loadMovie("intro.swf");
}
I looked at the tutorial on this site entitled, Links in a Dynamic Text Box. I don't just want to have HTML links within the scroller that open a new browser window.

Is it possible to have buttons in a scrollbar, surely there is a thread somewhere here that I've missed?

Thanks

Scroll Buttons Again
I've posted before on same topic but now I'n including some code. My buttons look like this, loading an external .txt file with LoadVars.

filosofiMC.onRelease = function () {
_level0.myLV.load ("_text/omVårYoga/swe_filosofi.txt");
loadedInfo._alpha = 0;
onEnterFrame = function () {
if (loadedInfo._alpha <100) {
loadedInfo._alpha += 10; } }
reEnableMeny ();
this.enabled = false;
resetMeny ();
this.gotoAndStop (7);
}

Anyone know how I make my scroll buttons (not visible in this code, but they are called "scrollUp" and "scrollDown"), dissappear when not needed? Tried to follow some tutorials in here but no luck.

Help With Scroll Buttons
I made buttons that scroll text in one of my Flash files. They work perfectly when I preview it and even after I publish the file.

But then, when I try to load the .swf as a movie clip in a different Flash file, they don't scoll the text anymore.

Any help would be greatly appreciated. Thanks.

Up&Down MC Scroll Buttons
Ok i searched the board and couldn't find any threads on this. I need a set of buttons that will scroll a MC up and down when the mouse is clicked and held like a normal scroll button. The only MC scrolling tuts i can find use a drag bar, this is not an option. Any body know how to code this?

Scroll Buttons (Kax?)
Hey guys-
I'm making a website and want to use buttons to move the text instead of using a IUC scroll bar (which is what I'm about to do). I searched the forums and found this:

http://www.kirupaforum.com/forums/sh...l+buttons+text

This is what I want to do, but when I put it in my fla - the darn thing doesn't work

I've tried a bunch of things, am I missing something small?
Thanks!

Scroll Buttons
I have a scroll that I want to put buttons on (up and down). Right now the code works to scroll the text, but I cannot get my buttons working to scroll the text up and down as well. Any help would be greatly appreciated.

Heres the code


Code:
onClipEvent (load) {
scrolling = 0;
buttonSize = 0;
viewHeight = _parent.scroll_bg._height;
viewWidth = _parent.scroll_bg._x;
scrollContent = _parent.for_text;
heightCorect = false;
mouseWheelHitTest = true;
wheelStep = 1;
pageStep = 30;
pageStep2 = 10;
pageDelay = 200;
arroyStep = 10;
arroyStep2 = 0.5;
arroyDelay = 3;
speedDec = 0.650000;
scrollStep = _parent.speed;
_x = scrollContent._x+viewWidth;
_y = scrollContent._y;
dragButtonIsDraging = false;
scrollPos = 0;
upButton._y = 0;
pageUpButton._x = 0;
pageDownButton._x = 0;
contentHeight = heightCorect ? (scrollContent.height) : (scrollContent._height);
scrollHeight = viewHeight-buttonSize*2;
dragButtonHeight = viewHeight<contentHeight ? (viewHeight*scrollHeight/contentHeight) : (scrollHeight);
dragButton._yscale = dragButtonHeight;
dragButton._y = buttonSize;
downButton._y = buttonSize+scrollHeight;
blanckDown._y = downButton._y;
blanckUp._x = 0;
blanckUp._y = 0;
blanck._x = 0;
blanck._y = buttonSize;
blanckDown._x = 0;
pageUpButton._y = buttonSize;
blanck._height = scrollHeight;
blanckUp._visible = viewHeight<contentHeight ? (false) : (true);
blanck._visible = viewHeight<contentHeight ? (false) : (true);
blanckDown._visible = viewHeight<contentHeight ? (false) : (true);
upButton._visible = viewHeight<contentHeight ? (true) : (false);
dragButton._visible = viewHeight<contentHeight ? (true) : (false);
downButton._visible = viewHeight<contentHeight ? (true) : (false);
_parent.drag._visible = viewHeight<contentHeight ? (true) : (false);
_parent.down._visible = viewHeight<contentHeight ? (true) : (false);
mouseListener = new Object();
mouseListener.onMouseWheel = function(delta) {
if (!mouseWheelHitTest || scrollContent.hitTest(_root._xmouse, _root._ymouse, false) || hitTest(_root._xmouse, _root._ymouse, false)) {
dragButton._y = dragButton._y-delta*wheelStep;
if (dragButton._y<buttonSize) {
dragButton._y = buttonSize;
}
if (dragButton._y>buttonSize+scrollHeight-dragButtonHeight) {
dragButton._y = buttonSize+scrollHeight-dragButtonHeight;
}
}
};
Mouse.addListener(mouseListener);
curY = -scrollContent._y;
vY = 0;
mask = scrollContent._parent.createEmptyMovieClip("mask", scrollContent._parent.getNextHighestDepth());
with (mask) {
beginFill(255, 50);
lineStyle(0, 16711935, 100);
moveTo(scrollContent._x, scrollContent._y);
lineTo(scrollContent._x+viewWidth, scrollContent._y);
lineTo(scrollContent._x+viewWidth, scrollContent._y+viewHeight+10);
lineTo(scrollContent._x, scrollContent._y+viewHeight+10);
endFill();
}
scrollContent.setMask(mask);
}
onClipEvent (enterFrame) {
blanckUp._visible = viewHeight<contentHeight ? (false) : (true);
blanck._visible = viewHeight<contentHeight ? (false) : (true);
blanckDown._visible = viewHeight<contentHeight ? (false) : (true);
upButton._visible = viewHeight<contentHeight ? (true) : (false);
dragButton._visible = viewHeight<contentHeight ? (true) : (false);
downButton._visible = viewHeight<contentHeight ? (true) : (false);
_parent.drag._visible = viewHeight<contentHeight ? (true) : (false);
_parent.down._visible = viewHeight<contentHeight ? (true) : (false);
_parent.scroll_bg._visible = viewHeight<contentHeight ? (true) : (false);
if (incDelay<0) {
dragButton._y = dragButton._y-inc;
if (dragButton._y<buttonSize) {
dragButton._y = buttonSize;
}
if (dragButton._y>buttonSize+scrollHeight-dragButtonHeight) {
dragButton._y = buttonSize+scrollHeight-dragButtonHeight;
}
}
incDelay--;
contentHeight = heightCorect ? (scrollContent.height) : (scrollContent._height);
scrollHeight = viewHeight-buttonSize*2;
dragButtonHeight = viewHeight<contentHeight ? (viewHeight*scrollHeight/contentHeight) : (scrollHeight);
dragButton._yscale = dragButtonHeight;
downButton._y = buttonSize+scrollHeight;
pageDownButton._y = dragButton._y+dragButtonHeight;
pageDownButton._yscale = scrollHeight-dragButtonHeight-dragButton._y+buttonSize-scrollPos;
pageUpButton._yscale = dragButton._y-buttonSize;
if (dragButtonIsDraging) {
stopDrag();
startDrag(dragButton, false, 0, buttonSize, 0, buttonSize+scrollHeight-dragButtonHeight+1);
}
if (dragButton._y>buttonSize+scrollHeight-dragButtonHeight) {
dragButton._y = buttonSize+scrollHeight-dragButtonHeight;
}
newY = (dragButton._y-buttonSize)/dragButtonHeight*viewHeight;
vY = vY+(curY-newY)/scrollStep;
vY = vY*speedDec;
curY = curY-vY;
scrollContent._y = Math.floor(-curY+_y);
}
What do I need to put in the action script of the buttons to get this working? Thanks

Scroll Buttons
uhmm hello people!! happy holidays!! can somebody help me out on making a scroll buttons for a site of mine.. so far i dont know the codes thanks in advance

Scroll Buttons
I searched, read the tutorials so now I'm hoping I missed something. I want to create a vertical scroll bar with buttons that will act as links to open other swf.

Check out the links section on this site, http://www.n-gised.com/ . I'm aiming for something similar but hoping to use an alpha fade with mouse over on the links and use an action like this on the link:

Code:
on (release) {
_root.contents.loadMovie("intro.swf");
}
I looked at the tutorial on this site entitled, Links in a Dynamic Text Box. I don't just want to have HTML links within the scroller that open a new browser window.

Is it possible to have buttons in a scrollbar, surely there is a thread somewhere here that I've missed?

Thanks

Scroll Buttons
Hi everyone i wrote this code for some simple scroll buttons but you have to constantly hit the button to make it scroll what would i need to change/add to make it constant scroll until you released the button
down button
Code:

on (release) {
scrolltext.scroll += 1;
}
up button
Code:

on (release) {
scrolltext.scroll -= 1;
}

your time and help be very much appreciated
Jake

Scroll Buttons And Keyboard
Is there a way to have your scroll up and down buttons be both a click and hold down with your mouse to scroll your text up or down, and use the arrow keys on your keyboard (up and down arrows) to also scroll your text up and down.....Currently I can have the keyboard scroll the text up and down if you hold the keys down, but when i set up the arrows to scroll up and down when pressed and held by your mouse it doesn't work. Please help...Thanks

Disappearring Scroll Buttons
I'm working on a site were i have to load external text files...that part was cake. But now my client wants to know if the scroll buttons can only appear when needed. I've messed around with it for many hours last night and couldn't find a good solution. Anyone know any good ways to do this please help.

Here the file that i based my text loader upon...
http://www.flashkit.com/movies/Scrip...09/index.shtml

Any help will be greatly appreciated.
Take care,
John

Question About Scroll Buttons
well i have been tryin to get scroll buttons on my site for a few days iv read about 4-5 tutorials and i just cant get the damn things to work i was wondering if anyone would be kind enuff ill send them my .fla for my site and they could add a set of buttons so can see what needs to be done

Rolling Your Own Scroll Buttons
I am trying to scroll a ruler graphic that I made up in Flash. I can easily get it to scroll down when I hold down the button and then it stops when I release it. But I can't figure out how to get the ruler to reverse course which means play backwards.


Scroll down button (works):

on (press) {
play();
}
on(release) {
stop();
}

Scroll back button (doesn't work):

on (press) {
count = 0;
do {prevFrame();
} while (count !=1);
}
on(release) {
stop();
}

Buttons In A Scroll Pane
How exactly do buttons and target paths work when the button resides in a scrollpane. I have a list in one scroll pane which needs to control the content in another scrollpane - but I can't seem to figure out how to target the content pane. The list is just a single pane on the main timeline and the conent is 34 "keyframed" scrollpanes in a movie clip called "content". When I click, for example the third button on the menu I need it to target the third frame in the "content" movie clip.

Any ideas would be appreciated.

Thanks in Advance.

Snougans!!

Buttons / Scroll Bars
Can you assign buttons to scroll bars,
the scroll bar found in the flash component library???,
I understand that you can assign geturl’s to
The scroll bar. But how about ‘gotoframe 4’ etc.

Auto-scroll Buttons
how would i go about creating a button that scrolls a text box when am person just hovers over it.. i know its easy but im a newbie... can someone please explain it to me in detail? thanks

Can You Make Buttons Scroll?
Im trying to look for the most easiest way to scroll a list of pressable buttons. I cant figure out most of the UI compnents. I see the scrollbar, scrolls dynamic text and thats all I could see.

Check out my BGMP at my site...

http://www.geocities.com/royalrw

basically, when I get too much loops (buttons) to add, Im gonna have to either do something like "a next page" or a scroller...

hit me back with some ideas

Cheers

Definin Up And Down Scroll Buttons
im makin a portfolio and i want to be able to scroll up and down with 2 triangles i made. heres what i got so far:

http://pabl315.tripod.com/test

as you can see i only have one up ATM but thats b/c i dont know how i'll make the triangles move the middle thing up and down.


so my question is, how do i make it so all my buttons stay in that box and im able to scroll up and down with those triangles?

Making My Own Scroll Buttons.
I have looked everyware i can think and still can't find the anwr.

On my site (Unoriginal Design) i need to make my own scroll buttons for the text boxes. So how would i go about doing that?

Copyright © 2005-08 www.BigResource.com, All rights reserved