i need help with saving

Talk / ask questions about Macromedia Flash and related software.

Moderators: HeRetiK, The inner Core

originalkrn
latency
latency
Posts: 2
Joined: Wed Dec 22, 2004 4:18 am

i need help with saving

Postby originalkrn » Wed Dec 22, 2004 4:21 am

arite - i need a quick help in flash - i saw it done on the Comicgen flash.


www.ronaldsworld.com/sketchpad.html

arite - i just made that for a site and i got it the way i want it (some pointers would be nice tho :D), but what i am wondering is how would i have it so it saves the picture that one draws and posts it onto a gallery. Any help would be nice. thanks

User avatar
Syn
divine
divine
Posts: 3604
Joined: Sat Jun 14, 2003 6:08 am
Location: 127.0.0.1
Contact:

Postby Syn » Wed Dec 22, 2004 4:39 am

WoOOOooOo~

it's just like paint!
Except you can't zoom in to draw..or save...
or make your own colors...
Image

User avatar
Goofy-Goober
divine
divine
Posts: 1591
Joined: Sun Sep 26, 2004 1:18 am
Location: Computer (Full of internets)
Contact:

Postby Goofy-Goober » Wed Dec 22, 2004 4:42 am

i believe it isnt in flash but in a different server on its own
Under the spreading chesnut tree
I sold you and you sold me:
There lie they, and here lie we
Under the spreading chestnut tree.

originalkrn
latency
latency
Posts: 2
Joined: Wed Dec 22, 2004 4:18 am

Postby originalkrn » Wed Dec 22, 2004 6:18 am

any idea on how that would be done? i dont even know how to send anything to a server from a flash file. Also - I wish i could zoomin (maybe ill try and figure it out) and the color thing - im completely lost.

User avatar
HeRetiK
Site Admin
Site Admin
Posts: 7931
Joined: Mon Mar 31, 2003 7:50 pm
Location: yurop
Contact:

Postby HeRetiK » Wed Dec 22, 2004 10:37 am

it's saved in 2 ways.

the first option saves it using FlashMX's sharedObject.

you create a sharedObject like this:

Code: Select all

_root.<mySO> = SharedObject.getLocal("<sharedObjectName>");


save variables like this:

Code: Select all

_root.<mySO>.data.<myVariable> = _root.<myVariable>;


and load them like this:

Code: Select all

_root.<myVariable> = _root.<mySO>.data.<myVariable>;


of course the <> are just to mark out the parts where you insert your own variable names. You can also save arrays this way.


the submit button saves it using php & mySQL.

User avatar
Syn
divine
divine
Posts: 3604
Joined: Sat Jun 14, 2003 6:08 am
Location: 127.0.0.1
Contact:

Postby Syn » Wed Dec 22, 2004 10:38 am

omg Hery..

when you talk like that it makes me so hot...


XD
Image

User avatar
HeRetiK
Site Admin
Site Admin
Posts: 7931
Joined: Mon Mar 31, 2003 7:50 pm
Location: yurop
Contact:

Postby HeRetiK » Wed Dec 22, 2004 6:50 pm

Code: Select all

rawr

User avatar
Schnabel von Rom
divine
divine
Posts: 2422
Joined: Mon Aug 02, 2004 8:25 pm
Location: Teh town

Postby Schnabel von Rom » Wed Dec 22, 2004 9:04 pm

Could someone tell me what XD mean?

dickwad
ueberdivine
ueberdivine
Posts: 9942
Joined: Mon Apr 14, 2003 3:17 pm
Location: on the corner of nothin' and nowhere

Postby dickwad » Wed Dec 22, 2004 10:06 pm

it's a sideways face laughing.

XD

see?

User avatar
Schnabel von Rom
divine
divine
Posts: 2422
Joined: Mon Aug 02, 2004 8:25 pm
Location: Teh town

Postby Schnabel von Rom » Thu Dec 23, 2004 1:39 pm

silly me.

dickwad
ueberdivine
ueberdivine
Posts: 9942
Joined: Mon Apr 14, 2003 3:17 pm
Location: on the corner of nothin' and nowhere

Postby dickwad » Thu Dec 23, 2004 2:07 pm

silly you indeed.

User avatar
Bloodshot
distorted
distorted
Posts: 660
Joined: Sun Jun 08, 2003 12:13 pm
Location: Australia

Postby Bloodshot » Sat Jan 29, 2005 3:08 pm

HeRetiK
Posted: Wed Dec 22, 2004 10:37 am Post subject:
it's saved in 2 ways.

the first option saves it using FlashMX's sharedObject.

you create a sharedObject like this:

Code:
_root.<mySO> = SharedObject.getLocal("<sharedObjectName>");


save variables like this:

Code:
_root.<mySO>.data.<myVariable> = _root.<myVariable>;


and load them like this:

Code:
_root.<myVariable> = _root.<mySO>.data.<myVariable>;


of course the <> are just to mark out the parts where you insert your own variable names. You can also save arrays this way.


the submit button saves it using php & mySQL.


All hail HeRetiK![/quote]
Image


Return to “Flash”

Who is online

Users browsing this forum: No registered users and 1 guest