FORUM

Advanced Scroll Bar AS3

Home / Forum / Components Discussions / Advanced Scroll Bar AS3

  • Hi. I just purchased the component. It seems to be great Flashtuning :-). I use AS to attach the scroll bar to the stage using:

    var newScroller:FtScrollBar = new FtScrollBar();
    this.addChild(newScroller);

    I then set som parameters for the scrollbar:

    newScroller.x = 440;
    newScroller.y = 70;
    newScroller.targetMovieClip = "mc";
    newScroller.useMouseWheel = "true";
    newScroller.easeType = "bounce";

    However, the easeType property does not seem to work like this. The scrollbar still uses the default easing. Am i missing some property or am i doing something wrong ?

    Would appreciate a quick response, thank You

    Best Regards
    Anders
    #  /  posted on Jun 25, 2008
  • Hi,

    Thank you for purchasing the Advanced Scroll Bar AS 3.0 component.

    In order to use easing instead default acceleration you need to set also the newScroller.activateEasing = "true"; and also you can set the desired ease delay property (in seconds), newScroller.easeDelay = 0.75, or leave it as is since it's already populated with a default 0.5 value.

    Best regards,
    Flashtuning


    #  /  posted on Jun 25, 2008
  • Yes !!!! That did it :-)

    Thank You Flashtuning....i must say that this component i awsome, keep up the good work :-)

    P.S: Just for You information, that Property is not documented in the help section, that´s why i din´t find it. I may be mising it, but i can´t find it under "Properties".

    Best regards
    Anders
    #  /  posted on Jun 25, 2008
  • Hi there, I have built a flash website which calls on external swf's to display content for different pages. I am using this component in the external swf's and it works great when i preview the swf on its own, however when i view my website swf which calls this external swf i get the error below: TypeError: Error #1009: Cannot access a property or method of a null object reference. at FtScrollBar/set useMouseWheel() at about_us_fla::content_1/__setProp___id0__content_text_1() at about_us_fla::content_1() at flash.display::Sprite/constructChildren() at flash.display::Sprite() at flash.display::MovieClip() at about_us_fla::MainTimeline() Any help would be greatly appreciated!
    #  /  posted on Jul 07, 2008
  • Hi there,

    I have built a flash website which calls on external swf's to display content for different pages. I am using this component in the external swf's and it works great when i preview the swf on its own, however when i view my website swf which calls this external swf i get the error below:

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at FtScrollBar/set useMouseWheel()
    at about_us_fla::content_1/__setProp___id0__content_text_1()
    at about_us_fla::content_1()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at about_us_fla::MainTimeline()

    Any help would be greatly appreciated!
    #  /  posted on Jul 07, 2008
  • Hi,

    Instead using the Scroll Bar in each external SWF, you simply place one Scroll Bar instance in your main SWF, create an emty Movie Clip (named "content" for example) where load the SWFs, and init the targetMovieClip property for the Scroll Bar with content Movie Clip.

    Best regards,
    Flashtuning
    #  /  posted on Jul 07, 2008
  • That did it, thanks!
    #  /  posted on Jul 08, 2008
  • Good work guys, this is a great little tool.

    Geoff
    level8ds.com
    #  /  posted on Jul 11, 2008
  • Hi- I'm using one instance of the component and updating its targetMovieClip property at various times and am trying to figure out how to reset the position of the slider (in scrollBar mode) so that it snaps back to the top of the scrollbar instance whenever a new movieclip is attached to it. Thanks, Mike
    #  /  posted on Jul 14, 2008
  • Hi-

    I'm using one instance of the component and updating its targetMovieClip property at various times and am trying to figure out how to reset the position of the slider (in scrollBar mode) so that it snaps back to the top of the scrollbar instance whenever a new movieclip is attached to it.

    Thanks,
    Mike
    #  /  posted on Jul 15, 2008
  • Hi,

    Use the scrollPercentage property of the Scroll Bar. You can use this property if the content is loaded. Check also other frequently asked questions and answers in the Help&Support area, the Quickstart Guide and you can also check the trial examples of the Scroll Bar AS 2.0 component as a start point with the AS 3.0 development.

    Thanks,
    Flashtuning
    #  /  posted on Jul 15, 2008
  • Hi,

    Today FC added some changes in the comments system and forum and due to these changes it is possible that you can't see my previous replies to these comments.

    If you want to check my old comments go to this product thread in the forum / Comments area or simply perform a search on the product name and you'll find all the forum posts about this product:

    [url=http://www.flashcomponents.net/forum2/showthread.php?t=353&highlight=scroll]GO TO MY PREVIOUS REPLIES[/url]

    Thanks,

    Flashtuning


    #  /  posted on Jul 24, 2008
  • I purchased this file and it is working but i cant figure out how to change the color of the scroll bar to match the site that i am doing.

    Please help me


    #  /  posted on Aug 01, 2008
  • Hi,

    Go to the online Help&Support area of the ActionScript 2.0 version and check all the most common questions and answers regarding the Scroll Bar component. Also read the Quick Start guide included in the package and the built in Help Book regarding customization and further technical details. Also you can go in the Downloads area of the ActionScript 2.0 version and download free trial examples as a start point in you ActionScript 2.0 eveopment.

    Best,
    Flashtuning


    #  /  posted on Aug 04, 2008
  • I am having a problem using my recently purchased AS3 Scrollbar component. I am using a single scrollbar on several different frames. Each are being dynamically created using this code:

    var scrollBar1:FtScrollBar = new FtScrollBar();
    this.addChild(scrollBar1);
    scrollBar1.colorOverlay=“true”;
    scrollBar1.viewAreaHeight=390;
    scrollBar1.viewAreaWidth=525;
    scrollBar1.x=516.5;
    scrollBar1.y=101.3;
    scrollBar1.targetMovieClip=“aboutbox_mc”;

    Plus other code to set colors. Some of the scrollbars have two sliders in them even though they are setup the same way. Once I navigate to a frame that has a scrollbar and go back to it I get this error message:

    update track body color
    TypeError: Error #1009: Cannot access a property or method of a null object reference. at FtScrollBar/checkSize() at FtScrollBar/oTqrRireWVWVlVIxgYvUaW()

    Then the scrollbar won‘t work and the InvisibleMask disappears. Can you offer any assistance? If I can get this working, this is an awesome tool.

    Thanks.


    #  /  posted on Aug 05, 2008
  • Hi,

    Place the Scroll Bar and the target Movie Clip inside their own Movie Clip.

    This is already answered sevaral times. Check the Help&Support area of the Scroll Bar AS 2.0 version for most common questions and answeres regarding the scroller (they are also available for the AS 3.0 version).

    Best,
    Flashtuning


    #  /  posted on Aug 07, 2008
  • Hi i just bought it, and… it‘s amazing.
    Anyway, i need to know if there is anyway to “reset” the scroll state.
    I mean i would have the possibility to, for e.g. scroll down a movieclip, and when i press a button, the scroll reset to it‘s initial position (like if i never scrolled it before…)
    Could you please help me?


    #  /  posted on Oct 17, 2008
  • Hi,

    Thanks for your interest. First if you have purchased the product the “has bought the file” red image should be displayed under your avatar like you see for other users posting comments.

    The answer is yes you can reset the scroller position using the scrollPercentage property. You can use this property after the content was fully loaded.

    You can check the most common questions and answers in the online Help&Support area of the Scroll Bar AS 2.0 component (most of the answers are the same for the AS 3.0 version).

    Best regards,
    Flashtuning


    #  /  posted on Oct 17, 2008
  • Hi,

    Thanks for your interest. First if you have purchased the product the "has bought the file" red image should be displayed under your avatar like you see for other users posting comments.

    The answer is yes you can reset the scroller position using the scrollPercentage property. You can use this property after the content was fully loaded.

    You can check the most common questions and answers in the online Help&Support area of the Scroll Bar AS 2.0 component (most of the answers are the same for the AS 3.0 version).

    Best regards,
    Flashtuning


    #  /  posted on Oct 17, 2008
  • Hi


    Great component, but i?m having problems when i add the scroller to the displaylist at runtime and use the scroll mode “scrollBar”.


    This works fine:
    ————————————————————————————————————-
    var myMc:mc1 = new mc1();
    myMc.name = “myMc”;
    myMc.x = 50;
    myMc.y = 50;
    addChild(myMc);


    var newScroller:FtScrollBar = new FtScrollBar();
    this.addChild(newScroller);


    newScroller.scrollMode = “full”;
    newScroller.x = myMc.x myMc.width 30;
    newScroller.y = myMc.y;
    newScroller._height = 200;
    newScroller.viewAreaWidth = myMc.width;
    newScroller.viewAreaHeight = newScroller._height;
    newScroller.targetMovieClip = “myMc”;
    newScroller.useMouseWheel = “true”;
    newScroller.activateEasing = “true”;
    newScroller.easeType = “inertia”;
    newScroller.easeDelay = 0.5;
    ————————————————————————————————————-


    This works fine:
    ————————————————————————————————————-
    var myMc:mc1 = new mc1();
    myMc.name = “myMc”;
    myMc.x = 50;
    myMc.y = 50;
    addChild(myMc);


    var newScroller:FtScrollBar = new FtScrollBar();
    this.addChild(newScroller);


    newScroller.scrollMode = “buttons”;
    newScroller.x = myMc.x myMc.width 30;
    newScroller.y = myMc.y;
    newScroller._height = 200;
    newScroller.viewAreaWidth = myMc.width;
    newScroller.viewAreaHeight = newScroller._height;
    newScroller.targetMovieClip = “myMc”;
    newScroller.useMouseWheel = “true”;
    newScroller.activateEasing = “true”;
    newScroller.easeType = “inertia”;
    newScroller.easeDelay = 0.5;
    ————————————————————————————————————-


    This does NOT work:
    ————————————————————————————————————-
    var myMc:mc1 = new mc1();
    myMc.name = “myMc”;
    myMc.x = 50;
    myMc.y = 50;
    addChild(myMc);


    var newScroller:FtScrollBar = new FtScrollBar();
    this.addChild(newScroller);


    newScroller.scrollMode = “scrollBar”;
    newScroller.x = myMc.x myMc.width 30;
    newScroller.y = myMc.y;
    newScroller._height = 200;
    newScroller.viewAreaWidth = myMc.width;
    newScroller.viewAreaHeight = newScroller._height;
    newScroller.targetMovieClip = “myMc”;
    newScroller.useMouseWheel = “true”;
    newScroller.activateEasing = “true”;
    newScroller.easeType = “inertia”;
    newScroller.easeDelay = 0.5;
    ————————————————————————————————————-


    The scrollbar in this last mode stops working and the scrollbar does not respon either by draging the scrollbar or using the mousewheel.


    Please advice.


    Thanks!
    Anders


    #  /  posted on Jan 14, 2009
  • @andersj:


    Hi,


    We’re glad you’ve found the Advanced Scroll Bar component useful.


    When using the Scroll Bar in scrollBar mode you need to set also the sliderOffset parameter value like this for example:


    scrollbar.sliderOffset = 4;


    sliderOffest represent the gap distance between the slider top / bottom end and the track top / bottom ends.


    Best regards,
    Flashtuning


    #  /  posted on Jan 15, 2009
  • That did it, thank you very much, and once again….awsome scroller


    Anders


    #  /  posted on Jan 16, 2009
  • Hi again!


    I am working on a project where i would like to have one up and one down button placed beside eachother.


    The buttons would use the scrollbar?s functionality, but having the scrollbar itself being invisible. Is there a way to call the scroll up/down functions (from other buttons) to accomplish this ?


    i have looked inside the documentation but i cannot find any method to call the scroll up/down functions in this way.


    Help would be appreciated


    Best Regards
    Anders


    #  /  posted on Jan 26, 2009
  • Hi,


    Use the scrollPercentage property of the Scroll Bar component.


    sb.scrollPercentage = 50; (a value between 0 and 100)


    Make sure the content is fully loaded before using this property.


    Best regards,
    Flashtuning


    #  /  posted on Jan 26, 2009
  • Product has been working great, but for some reason now, whenever the swf is published, the content scrolls to the bottom. You have to scroll it back up to start reading the copy. Any ideas what is causing this?


    Thanks, Matt


    #  /  posted on Jan 29, 2009
  • Hi,


    Use the activateEasing and set the easingType and easingDelay parameters from Advanced Options group (this is a Flash Player 10 issue – not the scroller).


    Best regards,
    Flashtuning


    #  /  posted on Jan 31, 2009
  • I am trying to scroll a flash data grid component with no luck so far. Am I missing something extra that needs to be enabled in order for the scroll bar to scroll the data grid component? It shows the scroll bar but does not allow me to click and drag the scroll bar once I publish.


    Any insight as to how to get this to work with the AS3 Flash DatGrid component would be much appreciated.


    Thanks


    #  /  posted on Feb 16, 2009
  • Any Example you can give me showing how to attach this to a flash AS3 data grid would be appreciated. I have tried numerous ways and nothing has been successful. I have tried attaching the FtScrollBar to the dataGrid through ActionScript, I have tried placing the component on the stage and then pointing to the targetMovieClip pointing to the data grid with both the data grid and scroll bar on the same level. I have placed the datagrid into a new movie clip and then placed that and the scroll bar on the same level and so far nothing has resulted in being able to scroll an AS3 dataGrid as mentioned in the features.


    Thanks in advance, other than this not working with the dataGrid every other test I have done works great on any other movie clip and the component is a great scroll utility now if I can get it to work on a dataGrid it would be perfect.


    #  /  posted on Feb 17, 2009
  • Hi,


    Can you explain what exactly happens when you attach the Scroll Bar to a Data Grid place inside a Movie Clip.


    Did you properly set the viewAreaWidth and viewAreaHeight parameter values (to be less than the grid size , else the scroller will automatically hide or disable depending on the autoHide parameter value).


    Best regards,
    Flashtuning


    #  /  posted on Feb 17, 2009
  • I have tried every which way you have described and the viewAreaWidth and viewAreaHeight are smaller than the dataGrid in every instance.


    Can I either send you along my example or can you send along an example to me showing the scroll bar working with a dataGrid?


    When I try attaching to a dataGrid anytime the scroll bar is inactive, no roll overs, no nothing, can’t click or move it, when I attach it to a movie symbol that is not a dataGrid it works just fine.


    Let me know whether I can send you something or you can send me an example, you can email me at temp@u4c.com and then I will provide you with my registered email through flash components unless of course you can access it. Or however you require to be able to show a working example of the scroll bar working with a dataGrid.


    Please let me know, this was the sole reason we purchased your component because it stated in the features it would work with a dataGrid in AS3.


    Thanks in advance.


    #  /  posted on Feb 17, 2009