Buttons On Scrollbar Stage
Does anyone know how to get a swf. to read a button action on the stage of a scrollbar? Like If you have a button link along with all your other info that all scrolls. Mine is set up like this tutorial:http://www.kirupa.com/developer/flash8/scrollbar.htm
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 07-04-2006, 11:42 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[F8] Horizontal Scrollbar Works, But Buttons On The Scrollbar Don't?
I've done a scrollbar like this one:
http://www.kirupa.com/developer/mx/infinite.htm
It works fine.
However, I want the individual buttons (button1, button2, etc.) on the scrollbar to load an image from my library whenever they are pressed. I've loaded an MC (content_mc) above the scrollbar for which the images will be seen, and added the images to each individual frame. I used the actionscript from my last menu which works great, but this one with the scrolling MC menu does not work.
Code:
content_mc.stop();
speed = 3
target = button1._y;
for (var i = 1; i<4; i++) {
this["button"+i].pageNum = i;
this["button"+i].onPress = function() {
target = this._y;
content_mc.gotoAndStop(this.pageNum);
};
}
this.onEnterFrame = function() {
current._y += (tagert-current._y)/speed;
};
External MC Loaded On Stage, I Can Press Buttons That Are On The Stage Through It...
I'm used to AS3, and I don't have much experience in AS2. I'm trying to modify an older flash file done in AS2.
An external swf is loaded using this code...
ActionScript Code:
on(release) {
loadMovieNum("supplimental/external.swf", 500);
}
The problem is that even though this external movie covers the whole stage, My mouse can still "see" buttons that are on the stage, and I can click them. I don't want to be able to click the buttons through my external movie. Thanks for any help.
External MC Loaded On Stage, I Can Press Buttons That Are On The Stage Through It...
An external swf is loaded using this code...
Code:
on(release) {
loadMovieNum("supplimental/external.swf", 500);
}
The problem is that even though this external movie covers the whole stage, My mouse can still "see" buttons that are on the stage, and I can click them. I don't want to be able to click the buttons through my external movie. Thanks for any help.
Scrollbar-(Stage Height)
Was wondering if anyone could help me find a tut. or open source for a scrollbar for a movie clip that adjusts to the stage height although its full screen vertically but the width and its horizontal position are not.
also hide the scrollbar when content fits.
thank you,
Scrollbar Connected To Stage-bone
I'm building a site that will use full-browser flash and I'm trying to add a custom scrollbar that is as high as the stage.height.
What I'm having trouble figuring out is how to get the scrollFaceHeight (the height of the Scroll face....) to change height in relation to the scrollbar height as well as the height of the content movie clip that will be scrolling.
Check out the attachment to make sense of this...
Thanks in advance
Scrollbar Reaction On Leaving Flash-stage
Hi all,
I've created a scrollbar to scroll mc's...its working
BUT :
if i drag the slider up and down and in the meantime leaving the flash-stage with my cursor(mouse) then the slider stopped.
So the scrollbar is only reacting if i'm in the flash object area
Can i change this behaviour ?!?
Thnx,
Ludo
Multiple Buttons Loading MC Buttons On Single Stage
Hello,
I need three buttons , working independent of each other, to "turn on" the MC in three seperate boxes, all on the same timeline- further, I want these MCs once "turned on" to actually be buttons that can then send the user to a different page. I can make this work if it's only one button, using two frames (by "hiding" the already launch MC over the top of it- then sending the link to frame two etc) but I need ALL three buttons visible, in whatever order the viewer clicks them! (Think of a wall with three windows and the MCs are the window images!) SO: the viewer clicks a button (any or all three) that turns on the movie clip and the movie clip can then be clicked to launch to a new page. Is this even possible?
-sorry for the long explanation- thanks for any help!
ras.
Need Some Scrollbar Help With Buttons.
OK I have this site (http://thelof.clanpages.com) and in the flash section Im making I want to add more buttons to the left side and have a scroll button to go up and down so I dont have to waste more room, how cn I do this and is it easier in MX ? I need PRECISE DETAILS on how to do this. OH AND if u would please rate the site 1 - 10 scale ( my first REAL Flah Site )
Thanx Hope u guys can help me.
Buttons In Scrollbar
hi ive got scrolling buttons whihc scoll a movieclip this works fine. wot i would like to do is place buttons into the scrolling movie clip and make it so when a button is pressed according to which button it is an external swf is loaded into a mc with an instance "Content".
does anyone have any examples of this in an fla or does anyone know wot script i need to use.
thx in advance.
Buttons Into Scrollbar
Hello every one im very new person at this forum i have little problem
i want to convert my next and perivous buttons into scrollbar
place 2 Dynamic field
var:
ones
tens
place 2 buttons
one button got
this code for moving records forward
Quote:
on (Press) {
ones = ones + 10;
tens = tens + 10;
}
second button got
this code for moving records back
Quote:
on (Press) {
if (ones == 10)
{
ones = 10;
if (tens == 1)
{
tens = 1;
}
else
{
tens =tens - 10;
}
}
else
{
ones = ones - 10;
}
if (tens == 1)
{
tens = 1;
if (ones == 10)
{
ones = 10;
}
else
{
ones = ones - 10;
}
}
else
{
tens = tens - 10;
}
}
u can test on your system its working fine i just want to convert into scrollbar
for moving records if any one help me it will be gr8
Buttons Into Scrollbar
Hello
i have one more problem i hope u help me
place 2 Dynamic fields
var:
ones
tens
place 2 buttons one for UP and sec for Down
Up button got this
on (Press) {
ones = ones + 10;
tens = tens + 10;
}
Down button got this
on (Press) {
if (ones == 10)
{
ones = 10;
if (tens == 1)
{
tens = 1;
}
else
{
tens = tens - 10;
}
}
else
{
ones = ones - 10;
}
/////////////////////////////////////////////
///////////////////////////////////////
if (tens == 1)
{
tens = 1;
if (ones == 10)
{
ones = 10;
}
else
{
ones =ones - 10;
}
}
else
{
tens = tens - 10;
}
}
Now i just want to convert these buttons in flash mx scrollbar component
basically these buttons move vars u can chk this on ur system simple open new fla and follow above steps.
I Want To Know How To Do A Scrollbar Without Buttons
I need to know how to do a scrollbar without buttons just with what I think is a scroll thumb and a scroll track. In this website
http://www.tonygarcia.com/main.html go to ABOUT TONY and that is the scrollbar on the right side that I want to know about.
Scrollbar With Key Buttons
Ok men...i think i put this code in a wrong forum....
but here it is in the right forum.. cause its actionscript.
Im 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...
then, if any one here have some suggestion, please help!! cause i'm fried
with this
The complete code that is in the tutorial exactly is this...
Best regards and thanks!!!!
RT
////
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
var initPosition:Number = scrollFace._y=scrollTrack._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrack._x;
var top:Number = scrollTrack._y;
var right:Number = scrollTrack._x;
var bottom:Number = scrollTrack._height-scrollFaceHeight+scrollTrack._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain._y = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y+speed<maskedView._y) {
if (scrollFace._y<=top) {
scrollFace._y = top;
} else {
scrollFace._y -= speed/moveVal;
}
contentMain._y += speed;
} else {
scrollFace._y = top;
contentMain._y = maskedView._y;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y-speed>finalContentPos) {
if (scrollFace._y>=bottom) {
scrollFace._y = bottom;
} else {
scrollFace._y += speed/moveVal;
}
contentMain._y -= speed;
} else {
scrollFace._y = bottom;
contentMain._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};
if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();
Scrollbar Buttons?
I'm working on a scrollbar and I've reached a roadblock. I'm stuck on making the scrollbar move when a "scroll up" or "scroll down" button is pressed. I've got it working so when you drag the scrollbar, the text scrolls, but I'm having a little difficulty reverse-programming the code used to do that. here's my code:
Code:
this.stop(); //stops on current frame
var what_to_scroll:TextField = _parent.outputTxt;
//the text field that we will be scrolling
var barY:Number = scroll_bar._y;
//get y-axis coordinate for draggable scroll bar
var btnHeight:Number = (scroll_up._height / 2);
//get button height so scroll bar doesn't move through it
var initialTimeInterval:Number = 500;
var constantTimeInterval:Number = 100;
var scrollSpeedInterval:Number = 1;
//these 3 variables are the time before starting a scroll interval, the time between them when scrolling, and scroll speed
//----------------------------------------------------------------------------------------------------------------------------------------------
//all events go here
scroll_up.onPress = scrollUp; //scroll text box up
scroll_down.onPress = scrollDown; //scroll text box down
scroll_up.onRelease = scrollRelease; //stop scrolling when button is released
scroll_down.onRelease = scrollRelease; //stop scrolling when the button is released
scroll_bar.onPress = clickBar; //when the user clicks the scroll bar
scroll_bar.onRelease = releaseBar; //when the user releases the scroll bar
scroll_bar.onReleaseOutside = releaseBar; //when the user releases the scroll bar outside of the drag area
//----------------------------------------------------------------------------------------------------------------------------------------------
//all functions that get called by events go here
function scrollUp():Void {
//scroll the text box up
topScroll = 1; //top-most scrolling position
what_to_scroll.scroll != topScroll ? what_to_scroll.scroll-- : what_to_scroll.scroll = topScroll;
beginScroll = setTimeout(function() {
scrollText = setInterval(function() {
what_to_scroll.scroll != topScroll ? what_to_scroll.scroll-- : what_to_scroll.scroll = topScroll;
}, constantTimeInterval);
}, initialTimeInterval);
//scroll text box up
}
function scrollDown():Void {
//scroll the text box up
bottomScroll = what_to_scroll.maxscroll; //bottom-most scrolling position
what_to_scroll.scroll != bottomScroll ? what_to_scroll.scroll++ : what_to_scroll.scroll = bottomScroll;
beginScroll = setTimeout(function() {
scrollText = setInterval(function() {
what_to_scroll.scroll != bottomScroll ? what_to_scroll.scroll++ : what_to_scroll.scroll = bottomScroll;
}, constantTimeInterval);
}, initialTimeInterval);
//scroll text box down
}
function scrollRelease():Void {
//stop scrolling when the button is released
clearInterval(scrollText);
clearTimeout(beginScroll);
}
function clickBar():Void {
//when the user clicks the scroll bar
this.startDrag(false,
this._x,
scroll_up._y + btnHeight + (scroll_bar._height / 2) - 0.25,
this._x,
scroll_down._y - btnHeight - (scroll_bar._height / 2) + 0.50);
//begin dragging scroll bar
//we add/subtract 0.25/0.50 from the y-axis constraints on the scroll bar to make up for the stroke around the scroll bar
scroll_text = setInterval(scrollBar, scrollSpeedInterval); //scroll text
}
function releaseBar():Void {
//when the user releases the scroll bar
clearInterval(scroll_text); //stop scrolling
this.stopDrag(); //stop dragging scroll bar
}
function scrollBar():Void {
//scroll text box
position = (scroll_bar._y + barY) / (bar._height - scroll_bar._height); //get scroll bar coordinates
what_to_scroll.scroll = Math.round(position * what_to_scroll.maxscroll); //set text box position to coordinates
}
Any help on this? It ill be mostly appreciated!
Cheers,
-Mike
Buttons Into Scrollbar
Hello every one im very new person at this forum i have little problem
i want to convert my next and perivous buttons into scrollbar
place 2 Dynamic field
var:
ones
tens
place 2 buttons
one button got
this code for moving records forward
Quote:
on (Press) {
ones = ones + 10;
tens = tens + 10;
}
second button got
this code for moving records back
Quote:
on (Press) {
if (ones == 10)
{
ones = 10;
if (tens == 1)
{
tens = 1;
}
else
{
tens =tens - 10;
}
}
else
{
ones = ones - 10;
}
if (tens == 1)
{
tens = 1;
if (ones == 10)
{
ones = 10;
}
else
{
ones = ones - 10;
}
}
else
{
tens = tens - 10;
}
}
u can test on your system its working fine i just want to convert into scrollbar
for moving records if any one help me it will be gr8
Buttons Into Scrollbar
Hello
i have one more problem i hope u help me
place 2 Dynamic fields
var:
ones
tens
place 2 buttons one for UP and sec for Down
Up button got this
on (Press) {
ones = ones + 10;
tens = tens + 10;
}
Down button got this
on (Press) {
if (ones == 10)
{
ones = 10;
if (tens == 1)
{
tens = 1;
}
else
{
tens = tens - 10;
}
}
else
{
ones = ones - 10;
}
/////////////////////////////////////////////
///////////////////////////////////////
if (tens == 1)
{
tens = 1;
if (ones == 10)
{
ones = 10;
}
else
{
ones =ones - 10;
}
}
else
{
tens = tens - 10;
}
}
Now i just want to convert these buttons in flash mx scrollbar component
basically these buttons move vars u can chk this on ur system simple open new fla and follow above steps.
MC Scrollbar With Buttons Yposition- Help?
MC Scrollbar with buttons integration Help?
I have a scrollbar that scrolls a MC and also 5 buttons that move to Y position. When I move the scrollbar and the click on button2, it only calculate according to the position of the Y position on the MC.
How can I change the Script so it will first move to top of MC and then move down to correct Y position?
The script at the moment:
on (release) {
setProperty ("/menu/char0", _y, redDotStart-0);
}
I have put the .fla (Slidemenu_test.fla) on the web to view:
http://www.bitweb.com/test/
I also put the file scrollbarDynamic7.fla on the site (From Andries Odendaal http://www.wireframe.co.za
This is does what I want, put I need a sliding control that is not the length of the text box.
Cheers
Kobusn
Custom Scrollbar Buttons
I guess I must have missed it when I was learning about Flash MX, bu I need to know how to make custom scrollbars that can scroll text.
Any help would be appreciated,
Brendan
Putting Buttons In A Scrollbar
Hi,
Does anyone know how to put say 10 buttons into a box that has vertical scrollbars?
Any help is appreciated.
Thanks.
Add Scroll Buttons To Scrollbar.
I attached the movie clip. This is part of my site, it is a scrolling box with content. The scrolling works fine, but to scroll you have to click and hold the scroll bar and drag it. I want to add buttons to the top and bottom so you can just clickt hem (just like a normal html site). Thanks to anyone who could give me doce or anything. I've also posted the code below, so you dont need to download the file unless you need to.
Code:
// Jake Gelbman 11.14.01 slider script
// email: allforjake@yahoo.com
// site: allforjake.cjb.net
// ok here is the load event handler
// diff_y is the total amount that the scrollbar can movethe bound_box is a movie clip that surrounds everything. its just a clear box
// next line we set bounds to the bounding area of the bound_box clip getBounds() returns 4 variable yMin yMax xMin & xMax they are the bounding area that well use for a lot of stuff
// top is the highest amount the scrollbar can go
// bottom is the lowest
// updateScrollbar() is the function for setting the content clip to the right spot
// "scroller._y - top/diff_y" is a percent of the scroll bar's position we multiply it by the amount we can scroll of the content
// friction is how much the scrollbar should slow down by after throwing it
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);
function updateScrollbar() {
content._y = -(((scroller._y-top)/diff_y)*(content._height-bound_box._height));
}
friction = 0.90;
}
// this detects if you clicked on the scroller it starts a drag with the scroller to be from the "top" which we defined earlier to the "bottom"
// we then set scrolling to true
onClipEvent (mouseDown) {
if (scroller.hitTest(_root._xmouse, _root._ymouse)) {
startDrag("scroller", false, scroller._x, top, scroller._x, bottom);
scrolling = true;
}
}
// here we stop the drag and set scrolling to false
onClipEvent (mouseUp) {
stopDrag();
scrolling = false;
startDrag("_root.cursor", true);
}
// every frame it sees if your scrolling then it updates the scrollbar to the right place based on the y position of the scroller
// it also calculates the speed of your scrolling
onClipEvent (enterFrame) {
if (scrolling) {
updateScrollbar();
newY = scroller._y;
yspeed = (newY-oldY)*0.50;
oldY = newY;
done = false;
} else if (!done) {
// here it adds the speed to the y position of the scroller
// then it asks if the speed is at a number that you can see it moving if it is then it decreases the speed by multiplying it by a decimal
oldypos = scroller._y;
newypos = oldypos+yspeed;
if (yspeed<-0.2 || yspeed>0.2) {
yspeed *= friction;
} else {
yspeed = 0;
done = true;
}
// the next two if statements test if it hit the top or bottom if it had it makes the speed negative to what it is so itll change its direction - neat bounce effect to it
if (newypos<top) {
yspeed = -1*yspeed*friction;
newypos = top;
}
if (newypos>bottom) {
yspeed = -1*yspeed*friction;
newypos = bottom;
}
// here we set the scrollers y position to newyposition (the variable we are adding the speed to)
// it then sets the mc to whereever the scroller is
// then its going to keep on doing this enterFrame business untill speed has reduced itself to 0
scroller._y = newypos;
updateScrollbar();
}
}
Buttons Inside Scrollbar
Hi all! I'm having a lot of problems trying to grasp the buttons inside the mc concept. I have a scrolling mc that is is masked and I would like the button "but" inside the scroll bar to load a jpg into an empty container...but when I put this code on the timeline...nothing happens...why?
but.onPress = function () {
_root.createEmptyMovieClip("container", 0);
loadMovie("photo2.jpg", "container");
container._x = 150 ;
container._y = 20 ;
}
Any help would be greatly appreciated!
-M
P.S. I've attached the fla.
Scrollbar With Buttons Script
Hello, I have a slight problem, and although I'm not bad with Flash, Actionscript is a little bit new to me. My school project is due in within a week and I need to make my scrollbar work, as my whole site revolves around it. If you could help me, I would be very grateful.
The scrollbar may be done differently to how others do it. I've set up two main frames, the first with a stop command. That first frame contains the basic information with the Menu button, on which, when clicked, the menu appears to the side. This is then scrollable (the actual scrollbar itself is placed on the second frame). However, when I convert the moving objects to buttons, and tell them to:
"on (release) {
gotoAndPlay("home", 1);
}"
the whole thing either ignores me, and when I click on the buttons they just stand still, or the scrollbar suddenly shifts down and scrolls, which is not supposed to happen.
I need the buttons just to simply link to outside the movie clip itself, and change the scene. The scroll function itself works fine, but there is no way for anyone to navigate the site if they can't use any of the scene links.
If there is another way that is easier (please tell me in noobish language, I don't understand much of this actionscript stuff), or if anyone knows why the buttons won't work, I would really appreciate your input.
Thanks a lot for all your help
Matt
(I've included some pictures of the second frame of the scroll bar movie clip, and another pic of the actual scroller itself within the second frame).
Dynamic Text, Scrollbar And Buttons
I'm trying import into a dynamic textfield a text from a .txt file with html formatting when a button is pressed. also, when the text imported is greater then the textfield some scrollbuttons become visible. the button must stay pressed till another button is pressed. So, anyone can help me? plsssss
[Edited by JaJa Beens on 07-31-2002 at 05:41 AM]
Browser Type Scrollbar With Buttons
Hello.
Thanks for viewing my post.
Was wondering if anyone knows of any movies and/or tutorials that may help in adding a functioning scrollbar with buttons (like those commonly found in browsers) that can be easily implemented within/or added to an existing list of movie clip buttons.
Any help at all would be greatly appreciated.
Thanks in advance for any response.
Buttons And Component Scrollbar Questions...
Hi, I'm having the most difficult time with this and I'm hoping I can get a hand with it...this is a 2 part question, so please bear with me.
PART I:
I have buttons throughout my flash movie that trigger MC's to load that have text content. Everything works well except one thing; when I click the buttons and then click them again I have a strange thing happen...my text fields have a component scrollbar with them and when I click the button a second time the scrollbar gets all screwed up. I have the scrollbar set to be a certain length but the second button click makes it tiny and really useless (not to mention really unprofessional looking). So my question becomes how can I click a button once and then disable it until I click another button? I already have a code that will turn the button off, but it's not what I need. I want each button, when clicked, to simply not respond to mouse clicks, but I need it to still be 'a button' and respond to rollOver's and rollOut's...any ideas??
PART II:
As I mentioned above, I'm using component scrollbars in my movie. I have numerous text files that I am importing which are of various lengths. I'd like to know how I can get the scrollbar to recognize if a text file is too long for my dynamic text box's size and to be visible if the text is indeed too long for the box and of course to be invisible if it is not needed. Right now I have (very amteurishly) turned the scrollbar on or off with the _visible ='s script by manually testing each text file within my movie but I'd rather have a script that will recognize if the scrollbar is needed or not. Obviously I don't know how and I'd like to learn what to do, so could anyone point me to a tutorial or share their experience with this kind of situation with me?
Thanks for reading, have a good day.
Removing Scrollbar Buttons On Component
is there any way i can remove the buttons on the scrollpane component so that just a bar stretches from top to bottom of what i want too scroll?
Oldnewbie helped me with a link to a scroll bar in movies:
http://www.flashkit.com/movies/Scrip...3848/index.php
its perfect, but ive found it only works when on the stage, not in an MC.
does anyone know how to make it work in an MC or have the answer to my other question?
cheers
jh
Buttons In Scrollbar Dont Work
I attached a .fla, showing the problem - i use FlashMXPRO 2004 -
First
I create the buttons, then i give them diferrents actions
Then put the long button list on a small movieclip scroller -
when i preview the movie, the buttons dont work.
i need that each button go to a diferent frame on the scence 1 -
I dont know what im doing wrong...
please help
Thanks!
Buttons In A *draggable, No Scrollbar* Scrollpane
Hi all,
I'm trying to use a Scrollpane in a project. I am not using scrollbars and have set 'ScrollDrag' on so that the user can scroll by dragging.
However, this seems to render buttons in the content movieclip unusable because the scrollpane always has the focus. Is there anyway around this without resorting to scrollbars?
Much appreciated
Rikki
How To Scroll A Wide MC Using A Scrollbar & Buttons Too
Can anyone point me to a tutorial that can teach me how to place an mc on the stage and be abl eto scroll it using a dragable bar and also buttons if the user chooser they prefer...?
Manythanks...I seem to be able to find tutorials for one or the other, and due to the way each is achieved, its impossible to combine methods...
thanks in advance
Cheska
[F8] ScrollBar Component - Remove Buttons ?
hi guys,
was wondering if any of you lot had any idea how i can get the arrow buttons
on the wonderfully skinable scrollbar component to not be there ?? i've got
rid of them in my new skin but the actionscript code still thinks they are
there and the thumbtrack wont reach the very top or bottom of the scroll track
any one have any ideas ??
cheers
mr tim x
How Do I Make A Custom Scrollbar Using Buttons?
forgive the newbieness, but i've not been able to come up with an answer through searching. i'm using flash mx 2004 w/ 7.2 update.
i've got two situations in which i'd like to make a custom scrollbar:
1) using a regular text frield
2) in a textarea component that loaded external css formatted text
i just want to have two buttons, one of a triangle pointing up, another down, that can be used to scroll the text accordingly.
maybe the solution is the same for both situations, but does anyone have some direction for me here? an example file which uses buttons as scrollers i could look at?
Buttons In Simple Custom Scrollbar
Hi.
I've gove trougth the simple custom scrollbar http://www.kirupa.com/developer/flash8/scrollbar.htm step by step. Ive got it working just fine.
Now I need to but a button in the scrollbar content, that easy, in MC content I inserted the button I need and the code.
on (release) {
trace("historia");
gotoAndStop("historia");
}
unfortunatly the button doesnt work, stangly not eaven trace code gets called.
Ive checked and the frame name instance "historia" is correct. Any sugestions?
RE: Buttons Outside The Stage
I have placed three buttons which appear outside the stage (to the bottom left literally just underneath the stage). Anyone got any ideas to how I can publish it so they appear in the browser. I have tried changing the dimensions and template box in publish settings but it still won't allow the buttons to appear.
Has anyone got any ideas??
Thank you
George
Drop Down Buttons (Off The Stage)
Hey does any one know how to make a drop down button that extends of the stage? because i am makeing a website with a thin menu at the top. and it needs mouseover drop down bottons
How Do I Get A List Of All The Buttons On My Stage?
I have several button symbols on my stage, some of which are enabled while some are not. Is it possible to write a function which lists all the buttons which have "enabled = true" in them through an array?
Calling MC And Buttons To Stage
http://www.adobe.com/devnet/flash/ar...o_gallery.html
I've looked to the code of the fla above and i can't figure out how they are calling the button to the stage. I found the code to mess with the location of said buttons, but i can't see the one for placement... could anyone point it out?...if not, what is needed to do so?... also... i see they use XML but i don't see it either... or am i blind? ><
Accessing The Buttons On The Stage
Hi
I am facing a problem while i am trying to access the Button object on the stage...
I am writing the function I am using....
function progressHandler(event:VideoProgressEvent):void
{
var bl = Math.round(event.bytesLoaded/1000);
var bt = Math.round(event.bytesTotal/1000);
var time:Number = (bl/bt)*display.metadata.duration;
var cc = display.findNearestCuePoint(time)
if (cc != null){
trace(cc.name+"_btn");// This gives me the instance name of the
// button. Now, how can I play with the
// properties of the button. 'this' here
// gives the main
// timeline...
}
}
Thanks for any help that can be provided...
Vicky
Buttons For .swfs Onto And Off Of The Stage
I have three buttons (instance names are: red_btn, yellow_btn, and blue_btn) and three extra .swf files (.swf file names are: redmovie.swf, yellowmovie.swf, and bluemovie.swf).
How do I code the AS3 to get the buttons to play each .swf file for the corresponding color at X:265 and Y:108?
Do I need a holder movie clip (empty movie clip), or not?
Basically, I want the buttons to play the .swf files (which are just squares) on demand, and then make them disappear/unload and show the next .swf at the same X and Y positions (X:265 and Y:108) accordingly.
If someone could paste the proper code and help me out, it would greatly appreciated. And, I would be able to get on with the rest of my hard life.
List All Buttons On Stage
I'm pretty new to flash and actionscript. Making movies is easy but...
I imported this country map from illustrator. It consists of 600 cityshapes which i converted to buttons. Now i all want to place them into an array to add Eventlisteners to them and apply effects on them.
I searched the forum for a while but didn't really find a solution on how to get these buttons from the stage or the root to put them into an array. Only stuff for AS2.
I had something like this in mind but doesn't seem to work.
ActionScript Code:
var myArray:Array = new Array();
for(var i in root) {
if (typeOf(i) = "button"){
myArray.push(i);
}
}
Thanks in advance for your expertise.
Hiding Buttons On The Stage
I have a thumbnail gallery consisting of small squares, which when clicked reveal a larger mosaic image directly below. The problem I have is how do I hide all the small squares when the larger image is in the over state. I’ve included a small example that demonstrates the problem.
How Do I Get A List Of All The Buttons On My Stage?
I have several button symbols on my stage, some of which are enabled while some are not (I enable/disable them using actionscript).
I just need a way to access the "enabled" property of all the buttons on the stage so that I have an array which has the full path of enabled buttons and another for the unenabled buttons. That way, in case I have to lock the screen by disabling all the buttons, I'll know which ones to enabled once I turn them back on.
Is it possible to write a function which does just that?
Duplict Buttons Stay On Stage.
I am working with some works i found on this site to build a flash demo. I have a problem with the Button that is on the stage. Everytime the Flash Loops a new Button seems to be placed underdeath the old one. Can someone give me a bit of help
Positioning Buttons Always At The Bottom Of Stage
I have a group of 6 buttons which on my stage sit in the center and are 20 pixels from the bottom, I am trying to create a bit of a liquid layout, and the browser is going to be able to resized by the user. I want always for the buttons to stay at the bottom in the center of the browser 20 pixels from the bottom no matter wether it is resized too... any ideas?
Centering A Few Buttons After Stage Re-size?
I have 3 buttons consisting of text and centered on ths stage. THey also have hit areas larger than the area occupied by the text. Now I have changed the size of the stage and I would like to center them again on the stage, and also have their hit areas move with them. Is there a way to do this? I cannot figure out how to do it.
G
Dynamic Buttons On Stage When Application Is Run
ok i have 2 buttons
1 - opens video1, logo1 and description1
2 - opens video2, logo2 and description2
They work fine but are run through 2 seperate frames.
I want the buttons to load to the screen when the application it run. Anyone know the AS to do this.
Deselecting All Radio Buttons On Stage
I have about 30 radio buttons on stage divided into 6 group names. What's the easiest way to deselect ALL of them. Need I loop through them all, naming each one?
thank you
|