>
Scrollbar in Movieclip/Sprite not working
Welcome, Guest

by pooja on Wednesday, 09 September 2009
Scrollbar in Movieclip/Sprite not working


Its quite simple and easy to add a scrollbars in a Sprite or a MovieClip object. Simply create a ScrollPane object and add it on to the stage or any DisplayContainer object. Then create a new instance of the Sprite on which the scrollbars are required. Then simply set that Sprite object as the source of the ScrollPane object.

            var sp:ScrollPane = new ScrollPane();

            addChild(sp);
            var spr:Sprite = new Sprite();
            spr.graphics.beginFill(0xfff0F0);
            spr.graphics.drawRect(0,0,500,200);
            spr.graphics.endFill();
            sp.source = spr;

 But if the following error is encountered

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at fl.containers::ScrollPane/drawBackground()
    at fl.containers::ScrollPane/draw()
    at fl.core::UIComponent/callLaterDispatcher()

 All you need to fix this problem is to add a ScrollPane object in the library from the Components panel. 



Blogger Image
My Blog Title

Product Engineering, software engineering company, Product Development, Product Migration, Product Re-engineering, Product Maintenance, Product Testing Commercial Application Development, Business Software development, commercial software for startups, Application Support and Maintenance, software testing Product Maintenance, Outsource product maintenance, product support and maintenance Product Migration, Product Re-engineering, product re-engineering services Product Research, Product Engineering, UI Prototyping Services Software Testing Services, Quality Assurance services, professional software testers, Load Testing, Functional Testing, Cross Platform, Browser Testing, Test Automation, Testing Tools, software quality analysis Functional Testing Services, software quality analysis, Software Testing Services, Application Testing Services, Functional Testing Types Automated Testing, Automated Testing Services, automation testing, test script development, Automation Test Tools, outsource automation testing Load Testing, Performance Testing Services, Load Testing Tools Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Benefits of IT Outsourcing, Offshore Software Development companies, offshore software development firms Outsource planning, IT outsourcing, IT development services, offshore IT companies, offshore software development Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering