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
Similar Posts:
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
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
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
Jun 5, 2008
I have some actionscript, and it scrolls the scrollRect, but there is a catch. It doesn't completely scroll it. It lets me scroll down until it's halfway and stops. I can still scroll up to the top, but the problem is unerving. I can't find a fix for it.
[Code]...
View 2 Replies
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
Jul 2, 2011
I have made a custom scroll bar, using tlf text converted to a movie clip that measures 903px tall. I've got a mask on it that's 314px tall.The scroll bar will scroll all the way down to the bottom of the content, but it will not scroll all the way back up. The button will go back to its place at the top of the scroll bar, but the movie clip only scrolls back up about two thirds of the way.I don't get any errors when I test the file, and I've permitted debugging in the hopes it would find an obvious mistake to no avail.Here's the code:
ActionScript Code:
// Scroll My Content function - AS3
function scrollMyContent()[code]..........
View 0 Replies
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
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
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
Aug 13, 2008
I have created a custom scrollbar for some dynamic text ("services_txt") under a movieclip ("servicestext_mc" with the instance name services_mc). The name for the scroller is scroller_mc.
The scrollbar works fine, but it doesn't seem to want to connect to the text box. I keep getting error message 1120: Access of undefined property services_txt.
I've tried scrolling my text several ways and seem to keep getting this error - I have a feeling it's because I've inputted the text manually and forgot to do something, instead of using an external text loader. Here is the code I've inputted:
var scrollPercent:Number = 0;
var minScroll:Number;
var maxScroll:Number;
[Code].....
View 9 Replies
Jul 18, 2010
I'm having trouble getting my scrollbar to work with dynamically loaded movies inside the movie the scrollbar is attached to. An example of my working scrollbar code with static data and my broken scrollbar with dynamic data can be found on a nice webpage I made, but I cannot post a proper link: www cryhavocguild com/actionscript php. Make sure to include the www as my flash file will only load the data with it (another problem). I have a for loop that pulls data from my database, populates a topMovie(contentMain) with 20 subMovies inside it. My scrollbar is attached to topMovie. Once the data is loaded and the topMovie is populated, the scrollFace(not ScrollTrack) dissapears and the dynamic movie is not scrollable. As a test, I populated the topMovie with graphic boxes and no dynamic movies and it scrolls just fine.
Scrollbar code:
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
[Code] .....
View 1 Replies
Jul 22, 2009
To just add the articles will only make the page load slower so I used a scrollbar with a textfield and added text and pics to the article to scroll it. This works fine but I need a way where the scroll can call different textfields or movieclips. For instance, the main scroll opens with a textfield that scrolls articles 15 thru 10. I need on the bottom of the page buttons that link articles 9 thru 5 and so on. So when you click a button the textfield or movieclip changes and displays what is in that textfield or mc. I have looked for a tutorial, a video or anything on this and besides coming up with Flash 5 similar mentions but nothing to this point
View 1 Replies
Mar 1, 2004
Look at e.g. [URL]. When the site loads, the section in the middle contains a scrollbar that scrolls the text with easing. However, the scrollbar itself appears to be the scrollbar component from Flash itself. Is this something that is maybe readily available in MX 2004? Or should this be scripted manually?
View 14 Replies
Jul 17, 2004
I'm having trouble with my scroller only scrolling when it gets to the bottom of the path. This is from the tut on this site [URL]. Here is the actionscript I have for each mc:
[Code]...
View 3 Replies
Jul 3, 2009
After 2 days of trying, I was finally able to make a simple scrolling text with the up and down arrows. It is functioning fine, but it scrolls line by line which is kind of cumbersome. I want it to scroll smoothly until the mouse is released. May be some scripting. But I am almost at 0 point when it comes to action scripts.
View 4 Replies
Nov 14, 2009
Been away from Flash for a while and struggling to relearn. Also been working more with AS3, but I am working on something that was designed using AS2(not by me).I have a dynamic text box populated by an external xml file. Works fine, however I am having hassles getting it to scroll. I only want buttons, and not a drag bar. Tried several methods I found around the forums but nothing seems to work for me.iam.theData.textBodybuttons are btn_up and btn_dwn. Both are located inside the ima clip.
View 0 Replies
Jul 18, 2010
I'm having trouble getting my scrollbar to work with dynamically loaded movies inside the movie the scrollbar is attached to.An example of my working scrollbar code with static data and my broken scrollbar with dynamic data can be found here: [URL]
I have a for loop that pulls data from my database, populates a topMovie(contentMain) with 20 subMovies inside it. My scrollbar is attached to topMovie. Once the data is loaded and the topMovie is populated, the scrollFace(not ScrollTrack) dissapears and the dynamic movie is not scrollable.As a test, I populated the topMovie with graphic boxes and no dynamic movies and it scrolls just fine.
Scrollbar code:
Code:
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
[code]....
View 2 Replies
Nov 17, 2009
That said, I would like to alter some of the code to allow the thumbnail scrollbar to begin scrolling once the page has loaded. Here is what the code looks like as it is right now.
[Code]....
View 1 Replies
Jan 29, 2009
I am looking for a simple scrolling thumbnail class written in AS2. Does anyone know of any tutorials or code samples anywhere? I can't seem to locate one. I have written one but I have a problem. My thumbnails are 100px x 100px. When I have more than like 36 (can't remember the exact number), my mask (which masks a bit on the left and the right side of the horizontal thumbnail scroller) no longer works. I found out that there is a max pic size for flash so I'm assuming that I am exceeding that max pic size which causes the mask to not work when I breach that size.
View 1 Replies
Nov 17, 2003
[URL]
I see where the text is under Actions but I'm wondering if I can input hyperlinks and email links as well or will I only be able to use this with plain text.
If formatting and links are allowed, how can I input the text to show as a link.
Sorry, I don't know much about flash and just trying to make a simple text box with scrolling capability that will allow hyperlinks, bold, etc...
View 3 Replies
May 20, 2011
how to respond when a rectangle hits another rectangle? I already know how to detect the collision, I just don't know how to respond to it. I'm just trying making a simple side-scrolling platform game where I have platforms I can walk on and bump against on all sides.
View 9 Replies
Feb 4, 2010
I'm trying to create a simple list menu that will load my .swf file is a scrolling panel.
////////////////////////////////////////////////////////////////////
import fl.controls.List;
import fl.data.DataProvider;
import flash.net.navigateToURL;
[code]....
View 2 Replies
Nov 8, 2009
I made a scrollbar class that works pretty well. I'm trying to come up with an idea for how to set to the height of the scrollbar vs the height of the scrolling content. This is a standard thing that happen in the OS. Seems there should be a minimum number and the maximum value should be reached as the size of the content approaches the size of the visible area.
View 3 Replies
Aug 11, 2009
I have a horizontal scrolling movieclip that scrolls when the mouse is left or right of a certain point of that movieclip. However, it only moves slightly then stops when the cursor goes over it, it doesnt actually scroll normally...
[Code]...
View 1 Replies
May 11, 2011
I have a movieclip that I am masking dynamically. The reason for masking the movieclip is because it can be different heights depending on user feedback to some questions. I want to add a scrollbar if the movieclip exceeds the mask area that will allow the user to scroll to see the rest of the movieclip.
View 2 Replies
Aug 10, 2010
I am trying to scroll a movieclip with a scroll bar....I have tried ULscrollBar but it ends up only works for text.
View 3 Replies
Jun 28, 2004
I created a textfield dinamicaly with MovieClip.createTextField, but my text is to long, so I need a scrollbar. How can create and attach the scrollbar to the textfield ? Any idea is welcome, tutorial is super
View 6 Replies
Jun 16, 2009
I'm creating a history timeline and I would like to make sure that when the dragger on the scrollbar is on a certain time period, the movieclip is on that time period as well. Is there a way to have the dragger to listen for when it reaches a specific time period on the scrollbar and have it align the movieclip appropriately?
View 1 Replies
Aug 2, 2010
I have a movie clip button with a text box within it. The text box also has a scrollbar component attached. Since the movie clip button has roll-over functionality [ btn.onRollover = function() ], I believe that's taking precedence over the inner scrollbar. I guess this goes back to the common problem of a button inside of a button.
View 8 Replies