Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 336121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:12:46+00:00 2026-05-12T10:12:46+00:00

I am having major issues with a ScrollPane component in Papervision3D. This issue has

  • 0

I am having major issues with a ScrollPane component in Papervision3D. This issue has been brought up at a couple of different forums, but not solved:

  • http://osflash.org/pipermail/papervision3d_osflash.org/2009-March/029503.html
  • http://www.nabble.com/ScrollPane-doesn%27t-size-or-display-properly-td22302394.html

I have tried dynamically creating a ScrollPane, as well as dragging one onto the stage and it always appears at its default size (100, 100) when added to a MovieClip in a PaperVision3D environment. I can’t even get a Tween to work on it’s size.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:12:46+00:00Added an answer on May 12, 2026 at 10:12 am

    Ok, here goes.

    I’ve tried to get it working with a MovieAssetMaterial, no luck.
    If I trace the stage inside a MovieAssetMaterial, the stage is null, and I’m guessing that’s why the scrollpane wouldn’t behave properly. It’s a container, therefore it needs the stage to set itself up properly.

    I have managed to get a scroll pane 200×200 on a papervision plane and interactive with a bit of workarounds. Here’s my code:

    package{
    
        import org.papervision3d.*;
        import org.papervision3d.view.*;
        import org.papervision3d.cameras.*;
        import org.papervision3d.materials.*;
        import org.papervision3d.objects.*;
        import org.papervision3d.objects.primitives.*;
        import org.papervision3d.scenes.*;
        import org.papervision3d.render.*;
    
        import flash.display.*;
        import flash.events.*;
    
        import fl.controls.*;
        import fl.containers.*;
    
        public class PV3DScrollPane extends MovieClip{
    
            private var viewport:Viewport3D;
            private var camera:Camera3D;
            private var scene:Scene3D;
            private var renderer:BasicRenderEngine;
            private var plane:Plane;
    
            public function PV3DScrollPane(){
                init3D();
            }
    
            private function init3D():void
            {       
                //setup 3d
                viewport = new Viewport3D(1024, 768, false, true);
                addChild(viewport);
                camera = new Camera3D();
                camera.z = -500;
                camera.zoom = 1;
                camera.focus = 500;
                camera.target = DisplayObject3D.ZERO;
                scene = new Scene3D();
                renderer = new BasicRenderEngine();
                //setup plane
                plane = makePlane();
                stage.addEventListener(Event.ENTER_FRAME, loop);
            }
    
            public function makePlane():Plane
            {
                //setup scroll pane
                var sp:ScrollPane = new ScrollPane();
                addChild(sp);
                sp.x = 1000;//hide it off stage, visible doesn't help much
                sp.source = 'http://www.helpexamples.com/flash/images/image1.jpg';
                sp.setSize(200, 200);
                //setup material & plane
                var mat:MovieMaterial = new MovieMaterial(sp, false, true, false);
                mat.interactive = true;
                var plane:Plane = new Plane(mat, 0, 0, 10, 10);
                scene.addChild(plane);
                return plane;
            }
    
            private function loop(evt:Event):void
            {
                    //plane.rotationY++;
                    renderer.renderScene(scene, camera, viewport);
            }
        }
    }
    

    And the explanations:
    I’ve tried using BasicView, but I couldn’t get the same results so I used the oldschool way of creating the scene,camera, rendered and viewport.
    Since ScrollPane needs the stage, I’ve added it to the stage then set its size.
    The I’ve created a MovieMaterial using the ScrollPane, and set its interactivity to true.
    I’ve ‘hidden’ the component by placing off stage. Setting visible to false got me back to the 100×100 issue.

    I’ve google a bit because I remembered UI Components used to work with papervision. And that is true, they used to work. Here is the post I remembered. Blitz Agency has a similar post a while back as well. You can find InteractiveMovieMaterial.as if you google for it, but it doesn’t work with the current papervision version, as there is no drawFace3D method anymore, things have changed a bit. After I made the fix I found a newer (2008) blog post on John Grden’s website about this issue. There is a similarity in the approach, but I didn’t go through all that trouble yet.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 220k
  • Answers 220k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use StackTrace class with constructor accepting Exception: static void ShowExceptionStackTrace(Exception… May 12, 2026 at 11:57 pm
  • Editorial Team
    Editorial Team added an answer Monitoring applications If you have a background process that monitors… May 12, 2026 at 11:57 pm
  • Editorial Team
    Editorial Team added an answer I think it can be done with an iconFunction... This… May 12, 2026 at 11:57 pm

Related Questions

Here is my current situation: I have a web page containing a couple scrollable
I've previously documented my opinions on Clearcase as a source control system, but unfortunately
I'm in the preliminary stages of designing a new web application, and have yet
I'm currently having a major issue with a python script. The script runs arbitrary

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.