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 8810519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:08:18+00:00 2026-06-14T03:08:18+00:00

Scrolling graph. Currently I show a real-time graph by drawing each piece of data

  • 0

Scrolling graph. Currently I show a real-time graph by drawing each piece of data as it is generated. To scroll, I simply move the container object left to compensate and erase all the data left of the bounds.

Simple, fast, surprisingly memory efficient…but is there a concern of the coordinates overflowing as I keep adding contents to the right and scrolling the container left? Is there a limit on the x coordinate of an (empty) object? I’m afraid if I keep scrolling the container left indefinitely and writing to ever increasing x coordinates the program would misbehave eventually. Would this occur? If so, at what max coordinates? Or does AS3 handle this automatically?

  • 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-06-14T03:08:20+00:00Added an answer on June 14, 2026 at 3:08 am

    I did a test, where I keep drawing an item to a container making it bigger and bigger, and moving it to the left. It stopped getting bigger at 105,000,000 pixels. After that the width reported 0 and the x property reported -107,374,182.4 and wouldn’t move beyond that.

    If you have bitmap data though, the FP10 limit is 8,191 pixels in width or height, and the total number of pixels cannot exceed 16,777,215 pixels.

    Here was my code used to test:

    var b:Sprite = new Sprite();
    addChild(b);
    
    b.x = stage.stageWidth * .5;
    var t:Timer = new Timer(100);
    t.addEventListener(TimerEvent.TIMER,tick);
    t.start();
    
    var moveAmt:Number = 50;
    function tick(e:Event):void {
        b.x -= moveAmount;
        b.graphics.beginFill(Math.random() * 0xFFFFFF);
        b.graphics.drawRect(b.width,0,moveAmount,stage.stageHeight);
        b.graphics.endFill();
        trace(b.width + "  :  " + b.x);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firefox's new smooth scrolling feature causes the scroll callback to trigger at each step
When scrolling the div the table cells move, but the cell text stays in
i need horizontal scrolling script in javascript, but don't have much time to write
I have a horizontal scrolling website and depending on the scroll position I have
I have a scaling/scrolling UIScrollview that I can place views on (think Drawing objets,
I have a scrolling div that loading in data via ajax & json from
I am using jqPlot to show candlestick chart and the data is from XML
Scrolling a TStringGrid using its horizontal scroll bar will scroll a column at a
I have two horizontally scrolling UIScrollViews stacked vertically on top of each other within
I'm currently working on an iPad JS/HTML app, using native scrolling to view a

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.