all groups > flash data integration > april 2006 >
You're in the

flash data integration

group:

flash graphs


Re: flash graphs Motion Maker
4/23/2006 6:11:52 PM
flash data integration:
Sounds doable. What part of it do you need help?

Data communications?

Drawing a rectangle and having it change in size?

Server side scripting?

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
Hello...

This might be simple to some fo you out there... I looked around and
everything seems complicated. I want a simple graph that displays totals
from a
mysql db using php.

The project: 6 movies...the movies have 3 questions (every question is
answered with a 1 if the user selected that answer, the remaining answers
will
be 0). In short movieA answers to question number 2 could be 21 for
example -
that means the PHP script added all the ones for that were answered 1 for
that
question.

ie:
movie: A
question: 2
answer1:0
answer2:1
answer3:0
answer4:0

My objective is to send this total back to flash and make a rectangular
verctor image (or simly a rectangle) grow based on the total received. Each
movie will have 3 bars referring to the 3 questions the answered - the bars
grow based on all the 1's gathered by the PHP script.

Hope this is not too confusing... greatly appreciate any help.

-davicho

flash graphs d_arc9
4/23/2006 9:29:56 PM
Hello...

This might be simple to some fo you out there... I looked around and
everything seems complicated. I want a simple graph that displays totals from a
mysql db using php.

The project: 6 movies...the movies have 3 questions (every question is
answered with a 1 if the user selected that answer, the remaining answers will
be 0). In short movieA answers to question number 2 could be 21 for example -
that means the PHP script added all the ones for that were answered 1 for that
question.

ie:
movie: A
question: 2
answer1:0
answer2:1
answer3:0
answer4:0

My objective is to send this total back to flash and make a rectangular
verctor image (or simly a rectangle) grow based on the total received. Each
movie will have 3 bars referring to the 3 questions the answered - the bars
grow based on all the 1's gathered by the PHP script.

Hope this is not too confusing... greatly appreciate any help.

-davicho
Re: flash graphs Motion Maker
4/23/2006 9:35:28 PM
You can use LoadVars or XML.

LoadVars for URL encoded data -- var1=value&var2=value&var3=value
XML for well XML.

Both have a sendAndLoad method.
LoadVars http://livedocs.macromedia.com/flash/8/main/00002336.html
XML http://livedocs.macromedia.com/flash/8/main/00002879.html

The examples there server as great templates.

If you need more help on those, this forum or the Flash Actionscript forum
are good places.


--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
Sry about that... I have the scripting done - I can figure how to send the
info
(it's really just a number, a total that is being sent from every question -
remember 3 per movie)... I need help once that info is sent... more
precisely... who or what (object in flash, if any) receives it and how to
make
that value make my bar (rectangle) grow accordingly... many thx....

-davicho

Re: flash graphs d_arc9
4/24/2006 12:02:41 AM
Sry about that... I have the scripting done - I can figure how to send the info
(it's really just a number, a total that is being sent from every question -
remember 3 per movie)... I need help once that info is sent... more
precisely... who or what (object in flash, if any) receives it and how to make
that value make my bar (rectangle) grow accordingly... many thx....

-davicho
Re: flash graphs d_arc9
4/24/2006 1:06:09 PM
Re: flash graphs Motion Maker
4/24/2006 1:32:47 PM
A rectangle graph should be doable without any serious math.

1. You can use the MovieClip graphics methods to draw. See:
http://www.macromedia.com/devnet/flash/articles/precision_drawing.html
2. You can resize or rescale a MovieClip that contains a rectangle.

I recommend the Adobe/Macromedia Flash Actionscript forum for a new post
"How to draw basic rectangle graphs" or something like that. You should find
more folks there who may have tackled the problem.

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
THx for your help... I am familar with the LoadVars object... but my
questions now is how do I translate that value received in Flash into a
rectangle that grows based on that value? thx...

AddThis Social Bookmark Button