|
Posted by Onideus Mad Hatter on 12/06/06 08:11
On Wed, 6 Dec 2006 01:46:12 -0600, trippy <silverbells@tacoshells.com>
wrote:
>> Problem is that Flash
>> can't do that (it can pretty much do everything else, just not save
>> stuff unless it's XML...which is rather...dumb).
>Very Cute. I like that.
What gets me is that they claim it's done for security purposes, but
if it's a mostly benign format to begin with like an image or a sound
file I don't see where the harm would be, especially when you can
already let the user save any image, sound, etc that's been preloaded
into its library.
>Dude, I don't see it happening. The only way you're going to get it
>exported as an image file is to do it through the GUI and Mr. End User
>doesn't happen to have that functionality. You can load pretty much
>everything and teh Moon but saving's an apparently much different
>proposition. Without that, you're pretty fucked when it comes to your
>FileReference object's download method. It does make sense, you can't
>even right click on something in flash, much less save it to your
>computer.
....um, actually you're wrong. In Flash you can actually create your
own custom context menus and as long as it's content that's loaded
within the SWFs library, the user can save it:
http://www.blog.lessrain.com/?p=205
The only downside is that content created from scratch cannot be saved
like that...or so they say, it might actually be possible to hack
content loaded within the SWFs library and inject newly created
content directly into it...haven't tried that yet, mostly cause it'd
take too long and may not actually work.
It is very much possible to do though with the use of PHP along with
it, the trick is finding the best means of transferring the data from
the SWF file to the PHP script. Once each pixel color code is sent to
the PHP script it can easily construct a savable graphic.
Probably the easiest method would be to have the Flash file save the
pixel data in the form of an XML file and then have the PHP script
simply work off that...the only downside to that is coming up with a
viable means of session tracking. I was thinking I could use a basic
file name with a date/time stamp on it and maybe use include the users
IP as apart of the file name, then after the XML file is created on
the server it'll launch the PHP script which will then access the
pixel data in the XML file, construct the savable image and then
delete the XML file off the server.
Overall the only reason I don't much like that idea is that it would
be writing and rewriting a lot of data to the servers HDs, which would
equate to needless wear and tear when I can use GET variables...so
long as I find some way of encoding the data so that it's small enough
to fit in the URI.
I saw this the other day:
http://www.flashguru.co.uk/actionscript-3-new-capabilities/
Check out the flash.net.Socket
See that's the thing about Actionscript now, it's like all new
territory, a lot of stuff is certainly possible...but no one has
actually done it yet so there's no basis of comparison, no tutorials,
no examples, you just have to hack through it on yer own until you
find out what you can do with it.
One idea is that using the flash.net.Socket and the ByteArray class I
might be able to encode pixel data directly as say a PNG file and then
attach it to an email that would then be sent to the users email addy
via the flash.net.Socket.
Only downside to that is, as I said, no one has actually done it to my
knowledge so you'd be flyin blind and it'd probably take you twice as
long to figure it out that way as it would one of the other ways I
mentioned.
That flash.net.Socket is REALLY cool, you could create your own Flash
Usenet browser if you wanted.
--
Onideus Mad Hatter
mhm ¹ x ¹
http://www.backwater-productions.net
http://www.backwater-productions.net/hatter-blog
Hatter Quotes
-------------
"You're only one of the best if you're striving to become one of the
best."
"I didn't make reality, Sunshine, I just verbally bitch slapped you
with it."
"I'm not a professional, I'm an artist."
"Your Usenet blinders are my best friend."
"Usenet Filters - Learn to shut yourself the fuck up!"
"Drugs killed Jesus you know...oh wait, no, that was the Jews, my
bad."
"There are clingy things in the grass...burrs 'n such...mmmm..."
"The more I learn the more I'm killing my idols."
"Is it wrong to incur and then use the hate ridden, vengeful stupidity
of complete strangers in random Usenet froups to further my art?"
"Freedom is only a concept, like race it's merely a social construct
that doesn't really exist outside of your ability to convince others
of its relevancy."
"Next time slow up a lil, then maybe you won't jump the gun and start
creamin yer panties before it's time to pop the champagne proper."
"Reality is directly proportionate to how creative you are."
"People are pretty fucking high on themselves if they think that
they're just born with a soul. *snicker*...yeah, like they're just
givin em out for free."
"Quible, quible said the Hare. Quite a lot of quibling...everywhere.
So the Hare took a long stare and decided at best, to leave the rest,
to their merry little mess."
"There's a difference between 'bad' and 'so earth shatteringly
horrible it makes the angels scream in terror as they violently rip
their heads off, their blood spraying into the faces of a thousand
sweet innocent horrified children, who will forever have the terrible
images burned into their tiny little minds'."
"How sad that you're such a poor judge of style that you can't even
properly gauge the artistic worth of your own efforts."
"Those who record history are those who control history."
"I am the living embodiment of hell itself in all its tormentive rage,
endless suffering, unfathomable pain and unending horror...but you
don't get sent to me...I come for you."
"Ideally in a fight I'd want a BGM-109A with a W80 250 kiloton
tactical thermonuclear fusion based war head."
"Tell me, would you describe yourself more as a process or a
function?"
"Apparently this group has got the market cornered on stupid.
Intelligence is down 137 points across the board and the forecast
indicates an increase in Webtv users."
"Is my .sig delimiter broken? Really? You're sure? Awww,
gee...that's too bad...for YOU!" `, )
[Back to original message]
|