ActionScript 2.0 :: Change The Content In One Simple Custom Scrollbar With/without Changing It In All?

Sep 20, 2010

I worked through Kirupa's "Simple Custom Scrollbar" tutorial and successfully adjusted it to fit some of my content. Then I put it in a movieclip. I was hoping I could just go into each new instance of that movie clip, put in new content and be good to go. Unfortunately, when I edit the content inside my movie clip it edits the content of all the scrollbars in my timeline.

I tried renaming the instance "contentMain" to "contentMain2" in a second movie clip, that I also gave a unique instance name to, and adjusting the actions to match, but that still ended up renaming it in the other the scrollbars in my timeline as well as adjusting it in the actions of all the scrollbars.

View 2 Replies


Similar Posts:


IDE :: Simple Custom Scrollbar - Content Disappears

Mar 30, 2010

I've successfully implemented the scrollbar from this great tutorial for some banners, but when I get to my 300x250 banner, the content gets cut off and disappears at a certain point while scrolling. This is the tutorial: [URL]. I altered the pieces for two different sizes without needing to alter any code, but this size is suddenly giving me problems. My FLA is attached.

View 3 Replies

IDE :: Simple Custom Scrollbar For EBrochure

Apr 13, 2010

I followed the tutorial [URL] and it is not working for me. It may be that I am attempting to use this nested within another movieclip. When I test it and click on the dragger on the scroll bar all that happens is that the dragger relocates to center of screen... and that's it. No scrolling, or whatever. To give more info, I am creating an ebrochure, where each frame on the main timeline is a movieclip "page" and in each "page" are several other movieclips. I am trying to use the scroller on "page" 11 (basically frame 11 on main timeline) and in that "page" are several movieclips on their own layers that build the page, including the layer that has the movieclip of the scroller content as per the tut. But I can't seem to make it work. Is this scroller functionable on the main timeline only?

View 1 Replies

ActionScript 2.0 :: Kirupa's Simple Custom Scrollbar - Revised?

Aug 13, 2006

I am trying to modify Kirupa's Simple Custom Scrollbar to function the same as [URL]..I have managed to reposition / resize the scrollbar based on the Stage/Browser width/height but need your help to include these functions.When the Stage/Browser is resized, the "scrollFace" adjusts its scrollFace._y position to maintain its proportional position based on the new scrollTrack._height.Eg: The "scrollFace" is moved 3/4 of the way down the "scrollTrack".. When the Stage/Browser is resized, the "scrollFace" is still 3/4 of the way down the "scrollTrack" proportionally.When the Stage/Browser is resized, the "contentMain" adjusts its contentMain._y position to maintain its proportional position based on the new scrollFace._y.Eg: The "contentMain" is moved 3/4 of the way down via the "scrollFace".. When the Stage/Browser is resized, the "contentMain" is still 3/4 of the way down proportionally to the "scrollFace".When the "Mousewheel" of your Mouse is moved, it scrolls the content accordingly.Also it is a wee bit juttery in the scrolling, I'm not sure if it is anything I have done or just because its a large file?

View 5 Replies

ActionScript 2.0 :: [Flash8] Simple Custom Scrollbar On Fullscreen Flash?

Aug 12, 2006

I've followed the "SimpleCustom Scrollbar" tutorial and it works great. Is there anyway to customize the AS so it'll snap to the right side of a fullscreen flash movie and function? I'm working on a fullscreen flash movie and I want the users to be able to resize the window and still be able to see the movie - just like a stock OS scrollbar.

View 2 Replies

ActionScript 2.0 :: Loading XML Content - Custom Scrollbar?

Feb 4, 2009

I am new to xml content in flash. I have been through the kirupa tut for loading xml content and have been successful in implementing it, but I now want to implement it into a scrollbar so I can use css and img tags. I can get it to work using the UI scroll component, but I want to use a custom scroll bar. I get the XML to load fine but I have no clue where to stick in the firstChild.childNodes[0] so I can call to certain attributes within the XML document. Below is the AS for the custom scroll bar.

Code:
stop();
holder_mc.setMask(mask_mc);
var LV:LoadVars = new LoadVars();
LV.onData = function(info:String):Void {
holder_mc._txt.text = info;
[Code] .....

View 1 Replies

Flex :: Changing The Color Of A Custom Scrollbar Using CSS Properties

Feb 15, 2010

I am implementing a scrollbar using a custom embedded image using my CSS stylesheet. This is a very simple, thin scrollbar. I would like to configure this scrollbar using CSS properties at runtime, but so far I have been unable to do so. I know it can be done because I've seen examples of it in the net, but no code to review.

View 1 Replies

ActionScript 2.0 :: Using The "Simple Custom Scrollbar" And "XML" Tutorials

Mar 11, 2008

I am having involves some pretty simple content loaded from an xml file (which I learned how to do here) and this tutorial for the "Simple Custom Scrollbar" [URL] When I load the content into the "contentMain" movieclip to be scrolled the scrollbar does not recognize that there is any content to scroll.

I am fairly sure I understand why this is happening (I am assuming that it has to do with the info from the xml file not being loaded soon enough for scrollbar actionscript to recognise it is even there)... But my lack of knowledge of actionscript is keeping me from even knowing where to begin solving this problem! I realize this is a relatively basic question so if it has been answered before in these forums a point in the right direction will do just fine.

View 2 Replies

ActionScript 3.0 :: Simple Scrollbar Scrolling A MovieClip?

Nov 16, 2011

I've removed all of the math I had done. Just trying to get the content area (_scrollable) to move up and down behind the mask in the opposite direction, just as you'd expect a scrollbar to do to a content area.

Dragging of the scrollbar is setup and this just needs some simple math coding in the thumbMouseMove function.

View 7 Replies

ActionScript 2.0 :: Simple Scrollbar - Smooth Horizontal Scrolling

Oct 2, 2011

I've made the kirupa simple scrollbar [URL] to scroll horizontal. This works just perfect but it is not smooth. My question to you is - how to make it smooth? I've got 4 MC's with the instance names content, mask, scroll_area and scroller.

My AS looks like this:
onClipEvent (load) {
_root.content_width = content._width;
_root.scroller_area_width = scroll_area._width;
scroller._width = _root.scroller_area_width/(content._width/scroll_area._width);
_root.scroller_width = scroller._width;
[Code] .....

View 1 Replies

ActionScript 2.0 :: Creating A Simple Scrollbar That Scrolls Dynamic Text?

Jul 27, 2004

creating a simple scrollbar that scrolls dynamic text. What I am looking to do now is be able to scroll a movie clip with text and an image in it. How do I do that?

View 3 Replies

Scrollbar Not Working For XML Content MC

Aug 19, 2009

I have a movie clip that loads thumbnails from images folder by reading the location of image from xml file...The problem is I have put up a scroll bar but its not working i.e its not scrolling the thumbnails' movie clip contents. I am uploading the fla...any line of code I need to change I think its the scrolling function. The scrolling script I used is from kirupa. I don't want to use classes in this...and want the up n down buttons to remain.

View 6 Replies

IDE :: Scrollbar Content Too Long?

Sep 15, 2009

I have a scrollbar in which a very long list which I can't make any shorter / smaller.roblem is, the script for the scroller demands that I place the text at 0,0 on the Flash axis, and the lenght of the text makes it run way down to the lower edge of the Flash workingfield.Somehow this makes the text run 'beyond reach' of the scrollbar; the scroller only shows about 2/3 of the list, and does not show the text beyond that point.How can I extent the reach of the scrollbar??? Can I shift the 0,0 point of the Flash axis (maybe place it higher, so the text falls into the more 'reasonable' regions of the workingfield of Flash?)

View 1 Replies

ActionScript 2.0 :: Content To Load Into The Loader And Have Its Content Change Once Click On The Other Button Flash 8

Aug 15, 2009

I'm have made some buttons (movie clip) and when I click on it, I want a file (home.swf) to load in a loader (mx.contents.loader) and I want the other buttons to do the same, all load into the same loader. I have no Idea how to do that. The way I have it set up now, the home.swf will load over the entire screen and that is not what I want. I just want the content to load into the loader and have its content change once I click on the other buttons. Here is a copy and past of that I have at the moment, I'm using Flash 8 to do it all.

[Code]...

View 1 Replies

ActionScript 3.0 :: Scrollbar With Generated Content?

Nov 27, 2009

I want to use the built in Scrollbar component to scroll within a movie clip or sprite whose content is generated by a for loop within my code. I can't seem to get it working when I set the scrollbar at authortime to target the movieclip into which i place the for loop at runtime.

View 9 Replies

Flash 8 :: Scrollbar - How To Scroll Content?

Dec 22, 2011

I have several scenes in a Flash app; for some of them the Movie height is right while for others the content is very long so i would need to have scrollbars to let the user scroll down.Which is the correct way to handle it in this old version of Flash?

View 1 Replies

ActionScript 2.0 :: Scrollbar Won't Show All Content

Aug 6, 2009

I've used Bill T's scrollbar code and loaded text from an XML file. When I drag, the text content is not completely shown.

I'm suspecting it has to do with the value "1.3" in this particular line:

Code:
scrollAmount=(this._height-(mask_mc._height)/1.3)/(mask_mc._height-scrollbar_mc.dragger_mc._height);

how I could use this code, to show up complete text content dynamically?

Here's the complete AS:

Code:
//set a variable
targY=0;
//set the drag action of the dragger

[Code].....

View 1 Replies

ActionScript 2.0 :: Scrollbar Visible Only If Content?

Feb 5, 2008

I have a scrollbar which works great however I want it to only be visible if the content in the dynamic text box is over a certain amount/height can anyone help I thought maxScroll would be the answer but cant seem to get that to work.

View 3 Replies

IDE :: Custom Scrollbar With Easing?

Feb 27, 2009

I have a dynamic textfield that loads an xml file and I'm looking for a good tutorial on how to create a custom scrollbar component to scroll the textfield with easing.

View 4 Replies

ActionScript 3.0 :: Scrollbar And Loaded Content Of Various Sizes?

Jun 5, 2009

I'm working on a project that uses a loader to load up a swf, then display the loader in an area using a mask and a scrollbar to scroll through the content. The content in this project will change regularly, including the dimensions of the swf file (vertical dimension only, I'm not worried about horizontal scrollbars with this question).The problem I'm running into is I can't figure out a proper formula to get the scrollbar to position the content at it's bottom when the scrollbar is at the bottom  What I have now is close, but not exact. If you scoll to the bottom, the bottom of the content would scroll up too high, leaving an empty 'blank' space where the content should be. I have an if statement checking for this currently, but this creates a 'dead zone' at the bottom of the scroll bar where the content is already at the bottom, and the scroll bar can continue to scroll down a bit.oes anyone know what I'm doing wrong here in the math to get a good scrolling going, regardless of the size of the content loaded by the loader?Here is what I have so far:

package {  import flash.display.MovieClip; import flash.net.URLRequest;  import flash.events.*; import flash.display.Loader;  import fl.controls.UIScrollBar; import fl.controls.ScrollBar; import

[code].....

View 1 Replies

ActionScript 2.0 :: Scroll Box (w/scrollbar) Content Defined By XML?

Jan 23, 2010

I'm wanting to make a vertical scrollbox (say, 150 px wide by 500 px high with a scrollbar) and where the content is defined by an XML file. The catch... I'd like each name in the list to become a button (or otherwise clickable) that opens a swf (also specified in the XML file). I have succeeded in making a static list where each "name button" was created manually... but I'm realizing my list is going to be hundreds of names and I'm thinking there must be a way to achieve this with XML. Here is the current version:

[Code]...

View 0 Replies

ActionScript 2.0 :: MichaelxxOA And Kirupa Content Scrollbar?

Aug 26, 2007

I have been reading through the Source/Experiments threads and trying to implement suggestions in the Content Scrollbar (Revised) [URL].. thread. I'm using Flash MX 2004, Actionscript 2.0 and throughout the course of this great thread the suggestions seem to shift and become geared for Flash 8. There are a few hints that MichaelxxOA kindly left for MX 2004 people loading content dynamically but I haven't been able to get to work. It's been a long work in progress but I feel like I am getting closer. At the moment I have been able to get the xml content to load into flash but I had to create a kind of dummy cell in the contentMain that is approximately the length of the combined images in the xml document. Is there a way to change the code so that it can read and load the content of the xml document so that when it varies flash loads into contentMain what ever combined height the xml includes? Here is the zip including .xml, .fla, .swf, .as and image with progress so far.

View 2 Replies

IDE :: Scrollbar That Eases Content Into Place OnRelease

Mar 11, 2009

On my site I want to scroll image boxes vertically. On releasing the scrollbar is there anyway to make the content being scrolled ease into a specified position so that it aligns with other elements on the site instead of stopping at a random coordinate?

View 1 Replies

ActionScript 3.0 :: Using Custom Scrollbar Script?

Feb 3, 2010

I'm using this custom scrollbar script I got somewhere. Works OK on page that needs it but when going to the other pages I get a "TypeError: Error #1009: Cannot access a property or method of a null object reference.at the_fla::MainTimeline/stopScroll()"

Code:
/* script to control scroll text */
var bounds:Rectangle = new Rectangle(scrollMc.x, scrollMc.y, 0, 200);

[code]......

View 2 Replies

ActionScript 2.0 :: Custom Scrollbar For A Textfield

Nov 18, 2005

I made a custom scrollbar for a textfield that works like a charm... but in it's "alpha-state", it was only showing where the text was scrolled to (and how long the text is, by it's own height)- you couldn't actually click the scrollbar and drag it. So I added a little AS to the actual scrolling block MC that *should* work... and kind of does- but not like I think it logically should..?

[Code]...

View 5 Replies

ActionScript 2.0 :: [F8] Custom Scrollbar With Contentstarting ABOVE Above Y=0?

Sep 20, 2006

My problem is with scrolling vertical content with a custom scrollbar, where the dynamic content often starts at a y value ABOVE the viewer (or mask). I can get the scrollbar to reflect the correct % of available content on the scrolltrack, but for the life of me am stuck allowing scrolling for the full height of the content.The attached FLA (v8) shows where I'm stuck and how far I got. It's a much simplified version of the final movie, with static content for now, but demonstrates a case in point. I can't use the built-in scrollbar component/s because the content MC will be dynamically populated with further MCs and the content._y value will change constantly, usually ABOVE the 0 y coord of the movie.

View 5 Replies

Flex :: Horizontal Scrollbar Hides Content Of ApplicationControlBar?

Oct 9, 2009

I have an application control bar at the bottom of my Flex application (with attributes width="100%", dock="false", left="0", bottom="0", height="50"). It contains a lot of elements (like buttons and labels). The width of the SWF is the width of the browser.When the user makes the width of the browser window smaller, after a certain point, thecomponents on the application control bar gets "squished": they are forced on top of each other. And so, it becomes confusing and ugly. To ensure that that doesn't happen, I've set the minWidth attribute to a value so that it'll always display the components without them overlapping each other.

But then, a horizontal scrollbar appears and hides the bottom half of the application control bar.I've googled and I found this article: flex verticalscrollpolicy bug (referenced by this SO question: Flex: Prevent scrollbar from covering content when automatically displayed).But that seems to apply only to a fixed size component. My component's width is a percentage. how to have the horizontal scrollbar appear and have it not cover up the application control bar?

View 3 Replies

ActionScript 3.0 :: ScrollBar Formula - Add Extra Space After Content?

Feb 11, 2011

so i have some scrollbar(track and button) and some content.the formula i am using to calculate to calculate y of content is the following:

//contentStarting.y and scrollbarButtonStarting.y are positions of sprites at the moment they are created
content.y = -((contentStarting.y -scrollbarButtonStarting.y) +scrollbarButton.y) * ((content.height- content.mask.height) / (scrollbarTrack.height - scrollbarButton.height));

the only problem i have is that i need to add extra space after content, so basically i want forumla to act as if content. height = content.height + extraSpace , but unfortunatelly setting the height scalesY, which is what i don't want.

View 1 Replies

ActionScript 1/2 :: Scrollbar Code To Include Changing Opacity Of A Graphic

Jun 2, 2009

I have a scrollbar that I grabbed off a resources site. (code below)I want it so that whenever I put the cursor on the scollbar to move it that the graphical information under the scrollbar comes on (either reveal or opacity to 100%). At the moment the little thumbnails under the scrollbar are on all the time and area bit of a distraction (they are meant to assist in the use of the scrollbar by minimising searching behaviour).[code]

View 12 Replies

ActionScript 2.0 :: Creating A Custom Horizontal Scrollbar ?

Jul 19, 2011

I would like to know how can I make a horizontal scroll bar in AS2?I have make a vertical one already and using the below script, what should I change then let the scrollbar become left to right?

var scrollUpper:Number = 9;
var scrollLower:Number = 158;
var textLower:Number = 0[code].....

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved