A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Data Visualization

  1. #1
    Junior Member
    Join Date
    Feb 2009
    Posts
    3

    Data Visualization

    Hi Im trying to create a small data visualization project. i'm wanted multicoloured balls to fall the mouse round the screen and when you click one it brings up data from an xml document. im currently using a image of a ball is there away to generate one in flash

    Im new at this so any help would be appriceated

    so far this is what i have

    ball.onEnterFrame = function() {
    var xMouse = _root._xmouse;
    var yMouse = _root._ymouse;
    if(Math.abs(xMouse - this._x) < 1) {
    this._x = xMouse;
    this._y = yMouse;
    } else {
    this._x -= (this._x-xMouse) / 40;
    this._y -= (this._y-yMouse) / 40;
    }
    }

    ball2.onEnterFrame = function() {
    var xMouse = _root._xmouse;
    var yMouse = _root._ymouse;
    if(Math.abs(xMouse - this._x) < 1) {
    this._x = xMouse;
    this._y = yMouse;
    } else {
    this._x -= (this._x-xMouse) / 90;
    this._y -= (this._y-yMouse) / 90;
    }

  2. #2
    Senior Member
    Join Date
    Jul 2008
    Posts
    391
    Generate what? A ball? You can use the Graphics class to draw a filled in circle.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center