Groups | Blog | Home
all groups > flash (macromedia) > march 2005 >

flash (macromedia) : Macromedia Provides the WORST documentation EVER


robW
3/30/2005 5:52:59 PM
Well, I don't have a dog in this fight with Macromedia.

For me, it's sort of like a very messy divorce. First there was love, then
angst, then anger, then the knock-down, drag-out.

Now I'm left dry, like a wrung-out dish rag too dry to wipe a counter top.

So, to push the metaphor a bit further, I send an alimony check to MACR more
from fear of reprisal than for hope of consideration, simply because the
reprisal is real and the consideration is nil. After the MX2004 debacle, the
sexiest offering gets only the most distant interest on my part; only the
most stridulant and screeching of client demands will force me to go into
that dark room and do that again. Thankfully those demands are few. Maybe
things will be different with "8-ball", but, once love is lost, it's hard to
get it back.

To solve your problem...I can't speak for the component in particular, but
components in general. When I'm in doubt of a component and find that I MUST
use it (and, I might add, it is immediately apparent that it is flawed
because it is not easy to use, nor is it flexible, and it requires radical
changes in the way I think or code, or, worst of all, it is too fat to fit
in my picture frame), I can generally find out quite a bit about it by
"dumping the object". This gives an alternate view from the actionscript
itself. For example, if you had a charting component called "myChart," you
could dump it as follows:

//where:
// sPre = string predecessor, used for spacing the trace commands
// idx = transient, multi-typed variable used as both an integer for
calculation and as an object for the object recursion


dumpObject(myChart, 0, "myChart");

function dumpObject (obj, nLevels, sName) {
var idx, sPre = '';
if (nLevels == null) {
nLevels = 0;
}
for (idx = 1; idx <= nLevels; idx++) {
sPre += '\t';
}
trace (sPre + sName + '{');
nLevels++;
for (idx in obj) {
if (typeof (obj[idx]) == 'object') {
dumpObject (obj[idx], nLevels, idx);
} else {
trace(sPre + idx + '=\"' + obj[idx] + '\"');
}
}
trace(sPre + '}');
}

Generally speaking this might help locating what the component is doing, its
functions, and what data it is looking for.

Hope this helps and isn't a redundancy or off target or something you've
already tried....BTW, I see that www.blue-pac.com has got out a new charting
component set. I haven't tried it out, but I've found their technical
support superlative.

Good luck!

jasonok6
3/30/2005 10:55:38 PM
First I need to vent, this company creates some of the most amazing software on
the planet and the WORST documentation on the planet. I dunno, maybe I just
haven't stumbled across a single source for thorough documentation of their
products on their cluttered maze of a site. With that being said I have spent
literally 2 days trying to find some kind of documentation on the Flash
Charting Components. I know this is a little outdated but that doesn't explain
having abosolutely no documentation on their site for it. About the only thing
from macromedia that I can find is this lovely page that points you to a
download of the charting components and then leaves you completely hanging on
how to use it.
http://www.macromedia.com/devnet/mx/flash/articles/components.html
My problem is adding dynamic data to a pie chart. From within flash i can see
that object FPieChart has a method called "addItem" which excepts an "object"
that does me absolutely no good really, it is expecting an object but certainly
it is expecting an object with certain propertys. If anyone out there knows
where i can find some decent documentation on this stuff it would be great.
And to you clever folks at macromedia, good work, but you need some help on
documenting your s$%t, your software is the only software i use that requires
me to go buy a book when i need to figure out how to do something.
Anton_FA2
3/31/2005 12:11:37 AM
After installing the Charting compents it says in the Extension Manager After
installing the extension, you can find Flash Charting Components in the menu of
the Components Panel in Flash MX. API documentation for the new components will
be available in the Reference Panel. Additional documentation will be listed in
the Help system However I could not find any panel called Reference, and I did
a search of the Help system using the word 'Chart' and could not find any
reference to the charting components.

Sorry I couldnt be more help. They do look like really useful components but
alas I wouldnt know how ho to use them either.
I flash therefore I am
3/31/2005 6:30:56 AM
Generally when the components expect an object, they take it in the format
of label,data

Try:

mychart.addItem("some data",10);
mychart.addItem("some more data",12);
mychart.addItem("yet even more data",4);

etc. - this seems to work.

plug in your instance name for "mychart". I can't seem to find an easy way
for it to accept object identifiers (like label:"somedata",data:10, for
example.

I flash therefore I am
3/31/2005 6:38:09 AM

Well I spoke too soon. Taking you literally at your word I tried:

myobj = new Object();
myobj.label = "some data";
myobj.data = 10;
mychart.addItem(myobj);

and it took that with no problem so it therefore logically follows that you
can also provide the data in this form:

mychart.addItem({label:"some data",data:10});
mychart.addItem({label:"some more data",data:12});
mychart.addItem({label:"yet even more data",data:4});

so I tried that and it worked too.




flash NO[at]SPAM po.htnet.hr
3/31/2005 6:54:00 AM
I think that flash documentation is great except documenting components :(
I have problem with skining components(scrollpane).
Think that problem is that they hide much code from us... some times
is better to make your own component than use some included.

http://free-po.htnet.hr/flash/


[quoted text, click to view]

I Agree



[quoted text, click to view]

I dont Agree

[quoted text, click to view]
AddThis Social Bookmark Button