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

  • SEARCH
  • Home
  • 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 805375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:04:20+00:00 2026-05-15T00:04:20+00:00

I have two columns: the left one is a Canvas containing an mx:Tree and

  • 0

I have two columns: the left one is a Canvas containing an mx:Tree and the right one is a Canvas containing a Canvas (to allow for scrolling) of some custom Sprites that go along with the tree nodes on the left. I made the right Canvas scrollable (horizontal and vertical) and I want the vertical scroll to also scroll the left Canvas so that the tree nodes line up with their representations on the right.

The scrolling portion works fine and when I embed with wmode=”window” there are no problems. Unfortunately, the customer requires dynamic HTML to overlap the Flash at times and when using wmode=”opaque” or “transparent”, there are issues. The scrolling still works, per se, but Flash does not seem to redraw either Canvas appropriately. The Canvases become out of sync and artifacts often remain on the right side.

I catch a scroll event on the right column and update the scroll position on the left column like so:

        public function onTimelineScroll(scrollEvent:ScrollEvent):void {
            leftColumn.verticalScrollPosition = rightColumn.verticalScrollPosition; 
        }

Removing this event listener allows the right column to draw correctly.

Any suggestions on how I can fix this? Unfortunately, wmode=”window” is not an option. Perhaps there is a better way to scroll?

Thanks.

  • 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-15T00:04:20+00:00Added an answer on May 15, 2026 at 12:04 am

    Well, as horrible as the solution turned out to be, I ended up having to implement a hack to solve my problem. I added:

    rightColumn.horizontalScrollPosition = rightColumn.horizontalScrollPosition + 1;
    rightColumn.horizontalScrollPosition = rightColumn.horizontalScrollPosition - 1;
    

    in order to force the canvas to redraw and it works flawlessly with no noticeable degradation in performance and no jerkiness. Now sure if there is a better way to force the canvas to redraw.

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

Sidebar

Related Questions

Let's say I want to have two columns. The right one is 200px wide,
I have two tables with the same columns, and I need to copy one
I have two columns side by side that are different colors. The background has
I have UIPickerView with two columns and in one column I want to display
i have two arrays (actually one, but i created two for each columns). I
I have two columns in Excel, like this: A B 0.5 0.4 0.6 0.59
I have the following two columns: SELECT b.ip_address AS IP ,b.mask AS MASK FROM
I have two tables with the following columns: table1: id, agent_name, ticket_id, category, date_logged
I have two tables with the same columns tbl_source (ID, Title) tbl_dest (ID, Title)
I have a listview with two columns and I'm using a context menu to

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.