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




XML And Scrollbar Issues... Help Please



Hello. I'm having difficulties getting my scrollbar to drag properly when I dynamically load text from an XML file. Basically, the scrollbar and the text appears, the up and down buttons on the scrollbar work fine, but you can't drag it. Here's the code, it's going to be part of a website to showcase a coin collection: scroll1._visible = (box1_txt.maxscroll > 1); var myCoins:XML = new XML ();myCoins.ignoreWhite = true;myCoins.onLoad = function (success){var numcoins:Number = this.firstChild.childNodes.length;arrHolder = new Array ();for (i = 0; i < numcoins; i++) {titleHolder = this.firstChild.childNodes[i];arrHolder[i] = titleHolder;}};myCoins.load ("coins.xml"); onEnterFrame = function (){box1_txt.text = arrHolder[0].attributes.description;scroll1._visible = (box1_txt.maxscroll > 1);} PS - I'm not too sure if onEnterFrame is the right thing to use here. I guess it shows I'm kind of a newbie. But any help you can offer will be greatly appreciated. Thanks in advance



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 11-06-2005, 11:56 PM


View Complete Forum Thread with Replies

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

UI ScrollBar Issues
hi all

i was wondering if anyone could help me. im doing a website and it has a list with a scrollbar and it doesnt work.

If there any ActionScript that I need to write in Flash for it to work. At the moment all I have done is linked the scrollbar.

The url atm is http://www.classicloco.co.uk/test.html and then go on platform three and four.

Thanks in advance
Dave

[CS3] Scrollbar Issues
Yo dudes!

I'm having some scrollbar issues... wondering if anyone can help me. The general problem is basically it does not work. The scrollbar is this one from Kirupa. I have used it many a times and it works well with static content, but it doesn't seem to like dynamic text boxes. I have attached a copy of my files.

I would really appreciate it someone could take a look and point me in the right direction. Been struggling with this for days now and tried many things, but still no further forward.

Many thanks in advance,


James

Scrollbar Issues
I've got a dynamic textbox on my stage, set to multiline, and when I drag the scrollbar component onto it, it doesn't snap onto it like it's supposed to.

Help?

Scrollbar Issues
I'm building a web site. Each page loads a new dynamic text scroll with a scrollbar component attached. I've set the navigation on the same root level. When I navigate to the first page my scrollbar works. Once I navigate again the scrollbar component loses the "scroll" ability. Any quick reset options?

Scrollbar Issues
I am building a project that includes a form for users to fill out. This form will run deeper than the screen, so I am trying to use a scrollbar component to scroll thru the whole form. I am using a sample I found in the Flash 8 bible (with a few small modifications). Basically, I've put the contents of the form into a movieclip (mcHolder), control the size of the visible portion of the mcHolder with an instance of the Rectangle class, and then scroll the movieclip inside that Rectangle with the scrollbar component. I am having some problems I'm wondering if anyone could help with:

* the placement of the scrollbar - obviously should be to the right of the form - now coming up kind of in the middle
* the form itself doesn't seem to be bounded the size of the rectangle I've created - when you try to scroll it runs the form off the stage
* there is content in the movieclip (the stuff below the bottom of the Rectangle) that doesn't show up, even when you scroll down
* The fields in the movieclip are input fields, but they are not active when you click on them

Here is a URL to this as a .swf:
http://www.artntech.com/sample/demo_model.html

Click on the "new project" button to see what I am talking about. I've also attached the actionscript that I am using to set the rectangle and attach the scrollbar below.

Any help on these problems greatly appreciated.

Thanks

JMR

*







Attach Code

import flash.geom.Rectangle;
import mx.utils.Delegate;
import mx.controls.UIScrollBar;

var rWin:Rectangle;
var csb:UIScrollBar;
var mcHolder:MovieClip;

function init():Void {
var nWidth:Number = 831;
var nHeight:Number = 475;
rWin = new Rectangle(0, 0, nWidth+5, nHeight);
mcHolder.scrollRect = rWin;

csb = createClassObject(UIScrollBar, "csb", 1, {_x: mcHolder._x + mcHolder._width + 5, _y: mcHolder._y});
csb.setScrollProperties(nHeight, 0, mcHolder._height - nHeight);
csb.setSize(csb.width, nHeight);
csb.addEventListener("scroll", Delegate.create(this, this.onScroll));

}

function onScroll(oEvent:Object):Void {
mcHolder._y = -csb.scrollPosition;
}

init();

Scrollbar Issues When Used Twice
i just dl the scrollbar post by front media uk named "scrollbar"

i am having trouble finding a way to make it usable several times within a fla. when used once there is no problem, i can simply replace the content as it is so named. when i try to go to a new scene and use another instance of it, i cant find a way to put a different text in the content.

what happens when i replace the text on the new scene/instance is, it also replaces the text on the other scene that i had working. i tried duplicating the component, then loading new text content into that one, but the same result.

any advice would be appreciated.

off topic but are the flas posted here available for modification and use in my own comercial use applications?

thanks

Custom Scrollbar Issues - Please Help
Okay I have a custom scrollbar componnent (which I am creating) the only problem is that it is not working to get the scroll to the proportions (scroll to content height) and either wastes some of the space or adds some additional space to the end of the content...

Here is my init AS for the scrollbar:


ActionScript Code:
function init_this(){    this.distortSize = 3;    this.adjScrollSize = this.scroller.top._height*2;    this.mHeight = this.attachBG._height;    this.scroller.spacer._height = ((this.mHeight)/this.attachTo._height)*(this.mHeight-this.adjScrollSize);    if(this.scroller._height>=this.mHeight){        this.scroller.spacer._height = this.mHeight-(this.adjScrollSize+this.distortSize);        this.scroller.spacer.enabled = false;    }    if(this.scroller.spacer._height>this.scroller.lines._height){        this.scroller.lines._y = (this.scroller.spacer._height/2)+(this.adjScrollSize/4);    }    else{        this.scroller.lines._visible = false;    }    this.scrollerPos = this._y;    this.initPos = this.attachTo._y;    this.moveHeight = (this.attachTo._height-this.mHeight)/(this.mHeight-this.scroller._height-(this.adjScrollSize/2));    this.scroller.bottom._y = this.scroller.spacer._y+this.scroller.spacer._height+this.scroller.bottom._height;    this.bg._height = this.mHeight-this.distortSize;}init_this();


Here is what I am using to connect the scrollbar to an object on the stage:


ActionScript Code:
onClipEvent(load){    //THE SCROLLABLE OBJECT    this.attachTo = _root.txt_test;    //THE BACKGROUND FOR HTIS SCROLLABLE OBJECT - WE USE THIS FOR SIZE ADN SCROLL LENGTH REFERENCES    this.attachBG = _root.txt_test_bg;}


And finally here is the script that I am using to get the scroll to content height ratios (scroll the content):


ActionScript Code:
this.attachTo.onMyScroll = function(){    scrollerProp = scroller._y;    thisProp = Math.round((-scrollerProp*moveHeight)+initPos);    this._y = thisProp;}


I would love to attach the full file, and will if anyone wants to see it; t is just to laarge to uploa here so I will wait until I have a request for the full fiel before uploading it.

I have looked at the Kirupa tutorial and that was able to help a little but I am now stuck again... Any and all help is much appreciated.

So thanks,
BetaWar

PS: There is additional AS code too, what is provided is only the scrolling code and init for the scrolling code. If you want to see the rest of the AS just ask.

SCROLLBAR Issues, Making Me Want To STROLL To A BAR
I am using the same "textbox" TextArea Component in a movie to load external XML files. I want the scrollbar to reset everytime it loads a new file.

I would have to put an action on each nav button.

see what i mean:

www.austinfitmagazine.com


Uggg... I hate those boots.

Angel-a-Danza
Proud wife of Tony, Proactive Spokesperson

XML In Flash Imagegallary - Scrollbar Issues
HEY !!

I have been trying to make a photogallery using Kirupa tutorials
like this one [http://www.kirupa.com/web/xml/examples/portfolio.htm]

I have it working and everything but i cant get a scrollbar to scroll across the thumbnails if i have too many in the xml.
The Thumbnails go accross the bottom and are added next to one another by xml
so i wanted to put inplace a scroll bar to scroll incase the thumbnails go over the stage.

BUT all the scrollbar tutorials go verticly and the one i want needs to go horrizontally but i cant seem to get it to work when I turn it horrozontally
AS problem??

Thanks for your help . . . if you can !!

Scrollbar Issues: Newbie Questions
Hi to all - I am pretty new to flash and very new to actionscript - wondering if anyone can help me with some problems I'm having.

I am building a project that includes a form for users to fill out. This form will run deeper than the screen, so I am trying to use a scrollbar component to scroll thru the whole form. I am using a sample I found in the Flash 8 bible (with a few small modifications). Basically, I've put the contents of the form into a movieclip (mcHolder), control the size of the visible portion of the mcHolder with an instance of the Rectangle class, and then scroll the movieclip inside that Rectangle with the scrollbar component. I am having some problems I'm wondering if anyone could help with:

* the placement of the scrollbar - obviously should be to the right of the form - now coming up kind of in the middle
* the form itself doesn't seem to be bounded the size of the rectangle I've created - when you try to scroll it runs the form off the stage
* there is content in the movieclip (the stuff below the bottom of the Rectangle) that doesn't show up, even when you scroll down
* The fields in the movieclip are input fields, but they are not active when you click on them

Here is a URL to this as a .swf:
http://www.artntech.com/sample/demo_model.html

Click on the "new project" button to see what I am talking about. I've also included the actionscript that I am using to set the rectangle and attach the scrollbar below.

Any help on these problems greatly appreciated.

Thanks

JMR

*

CODE:

import flash.geom.Rectangle;
import mx.utils.Delegate;
import mx.controls.UIScrollBar;

var rWin:Rectangle;
var csb:UIScrollBar;
var mcHolder:MovieClip;

function init():Void {
var nWidth:Number = 831;
var nHeight:Number = 475;
rWin = new Rectangle(0, 0, nWidth+5, nHeight);
mcHolder.scrollRect = rWin;

csb = createClassObject(UIScrollBar, "csb", 1, {_x: mcHolder._x + mcHolder._width + 5, _y: mcHolder._y});
csb.setScrollProperties(nHeight, 0, mcHolder._height - nHeight);
csb.setSize(csb.width, nHeight);
csb.addEventListener("scroll", Delegate.create(this, this.onScroll));

}

function onScroll(oEvent:Object):Void {
mcHolder._y = -csb.scrollPosition;
}

init();

Text Scrollbar/Movie Clip Issues
I have created a movie clip which features a text box and scrollbar. This works fine.

But when I have this movie clip (swf) opening within another flash document the scrollbar doesnt work...the rest of the movie clip works fine (and the mouse recognizes the scrollbar buttons), but the scrollbar won't scroll.

any suggestions??

FLMX2004 - Scrollbar Issues With Scrollpane Component
Hi there,

I have a scrollpane component in my main flash file, which in turn loads an external swf into this scrollpane. This external swf reads an xml file which populates it with a list of product descriptions and corresponding images. The swf's vertical length is dependent on how many products are in the xml file.

However, I find that in the main window, that the vertical scrollbar sometimes doesn't appear, and then you have to go back to another link and click back on it again and the scrollbar appears.

I am guessing that this is to do with the loading of the xml file (which isn't that big!), and before flash has the chance to load the xml file (from my external swf), my main swf already thinks that the external swf has loaded so neglects to put the scoll bar in.

Is there any way around this? Or a simpler way of doing this?

Cheers,
Media Penguin.

Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,

I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.

At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.

I am not sure how to do this as I have just used the built in Flash components to get what I have so far.

Any help is appreciated.

Thanks,
Martin

Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,

I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.

At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.

I am not sure how to do this as I have just used the built in Flash components to get what I have so far.

Any help is appreciated.

Thanks,
Martin

Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,

I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.

At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.

I am not sure how to do this as I have just used the built in Flash components to get what I have so far.

Any help is appreciated.

Thanks,
Martin

Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,

I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.

At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.

I am not sure how to do this as I have just used the built in Flash components to get what I have so far.

Any help is appreciated.

Thanks,
Martin

Scrollbar Doesn't Work (tutorial: Object-oriented Scrollbar)
(tutorial --> object-oriented scrollbar: http://www.gotoandlearn.com/play?id=71).

I followed the tutorials instructions and this is the code that i have now:

import caurina.transitions.*;

var yOffset:Number;
var yMin:Number = 0;
var yMax:Number = sb.track.height - sb.thumb.height;

sb.thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbDown);
stage.addEventListener(MouseEvent.MOUSE_DOWN, thumbUp);

function thumbDown(e:MouseEvent):void
{
stage.addEventListener(MouseEvent.MOUSE_MOVE, thumbMove);
yOffset = mouseY - sb.thumb.y;
}

function thumbUp(e:MouseEvent):void
{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, thumbMove);
}

function thumbMove(e:MouseEvent):void
{
sb.thumb.y = mouseY - yOffset;
if(sb.thumb.y <= yMin)
sb.thumb.y = yMin;
if(sb.thumb.y >= yMax)
sb.thumb.y = yMax;
var sp:Number = sb.thumb.y / yMax;
Tweener.addTween(content, {y:(-sp*(content.height-masker.height)),
time:1});
e.updateAfterEvent();
}

Does anybody see what's going wrong? I'm a beginner beginner, so all could think of to do is check if everything was typed correct. (i double checked instance names and code). But can't seem te get it to work, nothing happens when i preview swf.
No compilers errors and no syntax error. Tweener class is installed properly. PLEASE help me i've been looking for hours now.
If someone could help me, would be great!!

Sorry for my english, thank you for your time.

[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;
};

AS3 - Change Width Of ScrollBar / ScrollPane's Scrollbar
Is there any way to change the width of the AS3 scrollbar component? I've tried changing the width of the skin, but it always snaps to the default width.

Scrollbar (i Already Have It Designed, The Scrollbar Just Don't Know How To Code)
hi guys.

how can i make a scrollbar that slides my movieclip up and down with different drawings i made.

all of the stuff below this sentence will be on top of a movieclip called "portfolio movie clip"

my new movieclip name is "portfoliofill" i masked it because i have like 40 drawings and i don't want it to show on the bottom of the page. (this has all my drawings aligned one after the other below each other. it goes far down the flash program because its 40 drawings.)

i also designed a little line and a bar that slides up and down the line. this movieclip i named "scrollbar". if you open the "scrollbar" movieclip the bar and the line is are on different layers. then i converted the bar into a movieclip and named the movie clip scrollbar.

thanks to anyone who can help

[F8] Help - Scrollbar Appear On The Scene Which Do Not Contain Scrollbar Component
1. I have successfully created multiple scenes with dynamic html text fields and UIscrollbar component.

2. Each scene is a webpage, so I can click on each button to go to corresponding scene.

3. The main page contains no scrollbar component. When I publish on the web, it run perfectly for the first time loading it. However, after I visit other pages (different scene created in F8) and click on "Home" button going back to the main page, the scrollbar component exists on the page which should not contain any scrollbar.

4. I try to give each scrollbar on different scene a unique instance name, and disable it using

Code:
scrollbar0._visible=false;
but it doesn't work. I think maybe I include the actionscript to the wrong place or under the wrong event/action.

5. Any idea of how this happened?

Thanks,
little_poem

Flash Scrollbar Instead Of Browser Scrollbar
Hi all,

What I want to do is replace the browser scrollbar with a flash one when the flash movie is larger than the browser, and I'm using 100% sizes.

I've seen this done, and even when you manually resize the window, the scrollbar adjusts. Any ideas on this? Any tuts? Thanks.

Scrollbar (dynamic Scrollbar Size)
Hi everyone.
I'm making a scroller that scrolls movieclip (text inside). It works quite good but I want to put the final touch on it.

I want that my scrollbar is dynamic in its size (just as browser scrolls or windows scrolls). Then my biggest programming problem comes up, maths

The values that I have is
- How tall is the area there the text shows.
- How tall is the movieclip that the text is shown in
- How tall is the place there my scrollbar is shown.

Someone thats have an idea how to sort this out

Scrollbar (dynamic Scrollbar Size)
Hi everyone.
I'm making a scroller that scrolls movieclip (text inside). It works quite good but I want to put the final touch on it.

I want that my scrollbar is dynamic in its size (just as browser scrolls or windows scrolls). Then my biggest programming problem comes up, maths

The values that I have is
- How tall is the area there the text shows.
- How tall is the movieclip that the text is shown in
- How tall is the place there my scrollbar is shown.

Someone thats have an idea how to sort this out

Loading Movie IsSues And Other Issues
i have a main movie and i when an name is cliked on the navigation bar i would like the new movie to load. so there are seeral issues i am having..

1. i am not sure if i am doing this correctly - i am trying to use tutorials.
2. when i load the "services" movie my text will not show up either.
3. i need help by some one that has a lot will be nice i am in a learning phase

CAN SOME ONE PLEAE HELP

THIS IS THE LINK - GIV EIT AINUTE I HAVE NOT PUT ANY PRELOADERS UP YES. I CAN SEND THE FLA FILES FOR MORE HELP

Browswer Size Issues + New "FlashObject" Detection Kit Sizing Issues
Hi,

After a few years of trying to learn Flash there is one aspect that really still remains a grey area to. What size to publish a movie.

Do I look to make my movies a set size on publishing – by using “Match Movie” & if so what should that set size be – 800 x 600?

I know of 3 other ways to get round the browser size issue

1.) Use the “Stage Object” in conjunction with onResize to allow some clips to fill a screen while keeping others to a set size.
2.) Ascertain a users browsers size & direct them to an appropriate version of your site.
3.) Scale your movie according to an ascertained browser size so if the movie was designed @ 1020 x 760 & the user has an 800 x 600 you scale the main movie accordingly using x & y scale.

The problem has been somewhat complicated for me by the introduction of Geoff Stearns brilliant “FlashObject” detection kit. With that you have to specify the size of the element that the Flash movie will load into & also set a fixed size for the Flash movie. From what I can see this will cut out the option of publishing a movie @ 100% & resizing or not resizing using the stage object.

Could someone please advise me of what is best practice as far as sizing is concerned.

Loading Issues & FLV Issues
Sooo, I've finally, after fours days (including two on the weekend), managed to build a .swf that will play FLVs within the Crisp Template....however, I have come across two problems:

1. the FLVs continue to play when you click on other menu items. How can I stop the FLV from playing with a command from the _root timeline to a timeline in a completely different swf? and where would that code be placed within the menu button actionscript?

2. I'm using Actionscript 2.0 and the FLV Behaviors "Set Video List" option. The FLVs are loaded dynamically, but I only want them to load upon request, otherwise it takes 10 minutes to load the page due to the number/volume of FLVs. Is there a way to code the "ready" event handler so that it doesn't fully load? The code I currently have in is:
// Set a 'ready' event handler to load the videos
videos.ready = function( evt:Object ):Void
{
if(!this.loaded){
this.loaded = true;
for( var n=1; n<this.list.length; n++ ){
if( videos.list[n].indexOf(".flv") != -1 ){
m.activeVideoPlayerIndex = n;
m.contentPath = videos.list[n];
this.length++;
}
}
m.activeVideoPlayerIndex = 0;
}
}
m.addEventListener("ready",videos);

// End Set Videos Behavior

What needs to change to make this happen?

Please see: http://www.kimiporter.com/hydeparktest/ to witness both errors in action

No Scrollbar
I've gotten my window to open up full screen but how do i get rid of the scroll bar on the right? or can i? can i make everything totally dissapear or do i have to have that blank scroll bar with nothing to drag? please help!!

ScrollBar
Could anyone help/give me on how to do or give me some tutorial on how the scrollbar works on flash. draggable scroll bar for text and when it reaches the max line, it stops on the specified max same as with the min. just like the scroll bar in any text editor. TY

Scrollbar
I have been studying the various tutorials for scrollbars and am having no luck. I have a .fla that is just a scrollbar and i would like to send it to anyone so that they can look at it and see what i am doing wrong. When i test the movie the text loads in the textfield but the buttons simply do not work. hhhhhhhhhhheeeeeeeeelllllllpppp!



creese@zoomtown.com

Scrollbar Going Too Far..
Hi, I have a scrollbar that is supposed to scroll thumbnals in a menu. When I putt the slider, the grafik it is supposed to scroll scrolls the grafiks way out of the picture. Is it possible to say, when the grafik is at the end, stop the slider? Changing the bar length doesnt help and when I make the grafik longer, it just scrolls it faster and still scrolls too far. Does it have something to do with where the middle point on the grafikis?
Any suggestions?
thanks!
miakazi

Scrollbar
How do i get that neat little scroll bar in the main window to change colors?...is it html or javascript?..please let me know

Shy Scrollbar?
Hello,

I am stumped by this little problem over here. I have a scrollbar that *sometimes* shows up and other times doesn't. To see what I'm referring to, go here: http://design.interbaun.com/ebuisness-2001.html and click on "News" for example. There will be a window that comes down, there will be (or should be) a scrollbar on the right hand side of that window.

When the News.swf plays on its own, it always shows up. It's only when I'm viewing the entire site. I guess I should explain how this is set up. I have a main movie that loads the sections into the window that drops down. For text section (such as News for example) that text is being loaded from a txt file.

Any ideas as to why the scrollbar only shows up some of the time?

Thanks for your time,

A Bit O' Scrollbar Help Please?
I am using a scrollbar to scroll a loaded text file. Basically the slider button uses a startDrag and stopDrag, and the slider and button use an onClipEvent to scroll the text. This was a downloaded tutorial and I'm still really figuring it out.

However, I was wondering if I can tweak this code to scroll a graphic as well. I'll throw the code below and if anyone has any input that would be great.
Thanks!

Code on scrollbar button:
on (press) {
startDrag ("", false, 0, 0, 0, 200);
}
on (release) {
stopDrag ();

}

Code on slider/button MC:
onClipEvent(enterFrame){
_root.downloads.scroll= (_root.mechanism.thumb._y /200) *
_root.downloads.maxScroll;

(downloads is the name of the text file.

I think that's pretty much it.
Thanks again!

Scrollbar Help
How in the heck do I create a text field in Flash 5?
I tried using the text tool, but I don't think that's it.
Anybody know???

Scrollbar
ok well in flash mx there is the thing where u can drag a scrollbar onto the movie, but how would you add the information so that it would scroll, if you understand answer and if not try to guess what i mean.

thanx

Scrollbar Help
Hi,
I've got a scrollbar that works, but i'm having trouble with altering vertical position of the movie clip so that the scroll content fits on the page. Also, my scroll content is many lines of text that are to be converted to buttons and when the movie is exported to .swf some of the content is cut off.

here is the action script that is applied to the scrollbar

onClipEvent (load) {
// Set the intitial variables that will not change within the Flash Movie dynamically
topLimit = 207;
bottomLimit = 688;
ratio = (_root.scroll_content._height)/bottomLimit;
// Build the functions for scroll up and scroll down
function scrollUp (speed) {
if (scroll>topLimit) {
scroll = scroll-speed;
setProperty ("_root.slider", _y, scroll);
}
}
function scrollDown (speed) {
if (scroll<bottomLimit) {
scroll = scroll+speed;
setProperty ("_root.slider", _y, scroll);
}
}
}
onClipEvent (enterFrame) {
// Set the variables that will dynamically update within the Flash Movie
scroll = _root.slider._y;
y_offset = scroll*-ratio;
;
// Set the property of the content in relation to the slider movie clip
setProperty ("_root.scroll_content", _y, y_offset);
// Check to see if the slider is beyond the top or bottom limit
if (scroll<topLimit) {
setProperty (_root.slider, _y, topLimit);
} else if (scroll>bottomLimit) {
setProperty (_root.slider, _y, bottomLimit);
}
}


It has been taken from a book and altered to suit my needs.
any ideas? thanks

Scrollbar
Hello all, does anybody know the action scripts for a scroll bar?

Scrollbar
In SWiSH there is a sampels called first.swi ... when you clik on one of the link1, link2 there´s a box coming op.

I have try to use the scrollbar from the tutorials .. to make the box into the scroll menu. But it do not work.

Any who can tell me what is wrong? or maybee get it working and then send me the .swi files?

-CyperMann

ICQ# 108368912

Scrollbar
I have a table in HTML that will be imported into flash...I need to add
scrollbars, can anyone tell me how easy/hard this is to do?

Thanks,

MX ScrollBar With/for .txt
I push some buttons who say to load the variable "text" from different files; this variable is asociated with a dynamic text box. I put also a scrollbar for the dynamic text and it does not want to work at all. What can I do?
You can see the web-site at
http://hal.cs.tuiasi.ro/~condurachid.../index_ro.html
just push the "noutati" button for the long text or the "contact" button for a short text.

Scrollbar Help, Please.
Hello,
I'm new to Macromedia flash.
I have Flashmx
I'm trying to put this scrollbar into this dynamic text field thing, here.
http://www.the-verybest.com/flashmx/text001.swf
http://www.the-verybest.com/flashmx/text001.fla
http://www.the-verybest.com/flashmx/copy.txt
Not at all sure of what I'm doing wrong, here.
Any help would be a kick.
Thank you in advance.

[Edited by eggs-in-Wisconsin on 07-02-2002 at 03:21 PM]

Scrollbar
I have a scrollbar and it is working other than when I scroll down and the scroll back up, it goes to far. can someone take a look at the fla file and tell me what is wrong with it?

Thanks

MM

Scrollbar Help
Ive managed to get my scrollbar working but everytime I scroll down, the Text moves up and spills over onto top banner etc. Is there a way to cover the text once it goes outside the text pane boundaries?

Scrollbar
when I drop a scroll bar component onto a dynamic text field it doesn't snap to the edge, any ideas?

Scrollbar
Would like to put some scrolling text in the middle of a page. Thought the feature in flash MX would just be perfect but can't get it to work properly. I set the text up as dynamic text then drag the scrollbar which attaches it self to the text but stretches the full length of the text (kinda defeating the need for a scroll bar). Would like to scroll what is the equivalent in length of 2 pages say in a 350 pixel high box. Any suggestions would be appreciated.

Topher

F5 Scrollbar - Can You Still?
Can you still make your own scrollbar in MX with F5 coding? or would it be different. Reason why is, Im beginning to get tired of the box look for the scrollbar component and want to customize it myself but it takes to long to alter the skins.

Scrollbar Help
I need help with flash MX. I made scrolling dynamic text with the Flash MX's Components.. I want to make it so that one scroll bar can scroll more than one dynamic text box at same time.
Plz Help!

Mx Scrollbar
how do we use the instant scroll bar from flash mx?
thnx

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