FLASH question
- Started
- Last post
- 10 Responses
- theclassof1934
Okay,
I have flash actionscript that is running a drawing appliation set to a randomized group of algorithms. All of the drawings it makes are unique. So, I want to save all of the drawings after they are made and post them in a log on a new page I am developing.Can I write a script that will save each drawing, directly to another area of the page after the flash player has made the drawing in real time?
- theclassof19340
anyone?
- urban100
Are you creating each drawing as it's separate mc? You can do a pull window flash container movie and position each drawing mc onto that.
- theclassof19340
thanks urban.
just beginning to use flash... actually started this week.
so, one more question...
what is a pull window flash container.
- fusionpixel0
you can save all the points to a database and just pull it out whenever you need it.
I remember there is a guy who does that with a drawing app. anyone can draw in his app and he saves all the points to a db, so people can see the drawing again.
- urban100
oops... it was full, not pull
just set the width and height of the flash object params in the HTML code to 100%. also make sure you have:
Stage.scaleMode = “noScale”;
at the _root of your main movie. you may need to add listener objects onto the stage to adjust the mc positions when the browser window is resized depending on what you are wanting.
- fusionpixel0
What the heck?
- urban100
ugh... i've been programming in flash all day and not thinking clearly...lol
i wasn't sure how the drawing was to be outputted or displayed... an mc or actual data points. but yeah saving them to a db would be a good route as well
- theclassof19340
how do the saved points in the db become lines?
is there a script that I need to write to connect the dots?
- urban100
yeah you would have to write a class or several functions to handle capturing all the data points into an array as the drawing is generated. then send the data to a php script to insert the points into a database or textfile (using amfphp would prob be easiest).
then you would also need a php script that fetches the points for a selected drawing from the database. then use your remoting method (amfphp) to send the array of points back to flash in which you would step through them and redraw it.
- theclassof19340
thank you kindly... the both of you.