Need to make flash charts/graphs

  • photos
  • Banned
  • Banned
  • photos
  • Posts: 33

Post 3+ Months Ago

http://www.globfx.com/products/swfchart/
kind of like that but I don't have the budget for this... Any ideas?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Dano
  • Novice
  • Novice
  • User avatar
  • Posts: 22

Post 3+ Months Ago

You must have to work a lot, for do it.

But you may be, begin, knowing the properties _xscale and _yscale.

Copy / Paste, this code, in the first frame of a new movie:

Code: [ Select ]
function build(Level:Number) {
    var New:MovieClip = createEmptyMovieClip("bar"+Level, Level);
    New._x = Level*60;
    New._y = 400;
    New.beginFill(0xDE0101,100);
    New.lineStyle(1, 0xAD0101, 100);
    New.lineTo(40, 0);
    New.lineTo(40, -150);
    New.lineTo(0, -150);
    New.lineTo(0, 0);
    New.endFill();
    return New;
}
var MC:MovieClip=build(1);
MC._yscale=50;
MC=build(2);
MC._yscale=100;
MC=build(3);
MC._yscale=10;
MC=build(4);
MC._yscale=75;
  1. function build(Level:Number) {
  2.     var New:MovieClip = createEmptyMovieClip("bar"+Level, Level);
  3.     New._x = Level*60;
  4.     New._y = 400;
  5.     New.beginFill(0xDE0101,100);
  6.     New.lineStyle(1, 0xAD0101, 100);
  7.     New.lineTo(40, 0);
  8.     New.lineTo(40, -150);
  9.     New.lineTo(0, -150);
  10.     New.lineTo(0, 0);
  11.     New.endFill();
  12.     return New;
  13. }
  14. var MC:MovieClip=build(1);
  15. MC._yscale=50;
  16. MC=build(2);
  17. MC._yscale=100;
  18. MC=build(3);
  19. MC._yscale=10;
  20. MC=build(4);
  21. MC._yscale=75;


The best way, its that you Write a class that create the graph, but I think that this code help you. :oops:

:ghost:

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 10 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.