Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / April 2006



Tip: Looking for answers? Try searching our database.

flash graphs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
d_arc9 - 23 Apr 2006 22:29 GMT
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
Motion Maker - 23 Apr 2006 23:11 GMT
Sounds doable. What part of it do you need help?

Data communications?

Drawing a rectangle and having it change in size?

Server side scripting?

Signature

Lon Hosford
www.lonhosford.com
May many happy bits flow your way!

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
d_arc9 - 24 Apr 2006 01:02 GMT
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
Motion Maker - 24 Apr 2006 02:35 GMT
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.

Signature

Lon Hosford
www.lonhosford.com
May many happy bits flow your way!

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
d_arc9 - 24 Apr 2006 14:06 GMT
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...
Motion Maker - 24 Apr 2006 18:32 GMT
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.

Signature

Lon Hosford
www.lonhosford.com
May many happy bits flow your way!

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...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.