Groups | Blog | Home
all groups > macromedia flash flash remoting > may 2004 >

macromedia flash flash remoting : SharedObject -- can it store mp3's or pictures?


tan270luke
5/5/2004 7:59:11 PM
hellow all ... I'd like to thank you in advance for taking a look at this

// OBJECTIVE
I have designed a site that utilizes flash remoting to connect to my database
and query dynamic content (includeing text, jpgs and mp3s). I would like to be
able to preload and store them in a shared object for later use in the site.

// PROLOGUE
The text files load and store perfectly into the shared object. I am able to
retreive them for later use.

// PROBLEM 1 (this is not so important)
I found documentation that says you can't store more than 100kb in a shared
object before it queries the user to ask if they would like to approve of the
transfer of data. Is there a workaround?

// PROBLEM 2 (very important)
I would like to load the mp3's and pictures into the shared object but it
doesn't seem to even load into the swf using remoting (AMFPHP) to query the
data from the database. At first i tried to load the binary data that is the
mp3 .. so that it was loading text and not a file, but it resulted in errors
and no data being loaded. The remoting is returning all data that is text but
no media data. Can i only use remoting to load reference urls for the data?
(and then have to load it when i need it?)

Please keep in mind i am not trying to stream the audio ... i am trying to
load it into a container in the movie or a shared object file.

Follow your bliss,
luke
Troyan
5/9/2004 12:10:06 AM
You can save it, but not render a image or a mp3 in a Flash with the
binary "source" of the file. You would need to really save the file
and then import it.

[]s


--
- Rio de Janeiro, Brasil
- Troyan <dnunes[at]email[dot]com>

Pong The Greek
5/9/2004 12:51:57 AM
Hi,

Re Problem 1

You can store as much as you want in a shared object but you require the users
agreement at least once.
You must know from the beginning the maximum size you might be requiring and
then you state via actionscript that you want the shared object to be of lets
say 10000 Kb then when it runs on the users pc it will ask for his agreement.
That is a one time procedure which cannot be avoided (from what I read from MM
documentation). For details check

[L=http://www.macromedia.com/support/flash/action_scripts/local_shared_object/]h
ttp://www.macromedia.com/support/flash/action_scripts/local_shared_object/[/L]


Re Problem 2

I cannot answer with confidence but I imagine that you cannot save an mp3 or
image file into a text file. So, it seems to me as not possible.

Regards
AddThis Social Bookmark Button