Hi,

Flash uses local shared object to store data, in order to make the
comunication between javascript and flash you can use
"ExternalInterface" to make flash functions available to javascript,
something like this.

-- FLASH

function SaveFlashFunction(valor:String):Void {
     var so:SharedObject;
     so = SharedObject.getLocal("data","/");
     so.data.valor = valor
     so.flush();
}

function GetFlashFunction():String{
    var so:SharedObject;
    so = SharedObject.getLocal("data","/");
    return  so.data.valor;
}

ExternalInterface.addCallback("Save", this, SaveFlashFunction);

-- JAVASCRIPT

var Storage = {
                mvname : "flashstorage",
        mvsrc : "flash/Storage.swf",
                flash : function(mname){
               return ( (navigator.appName.indexOf("Microsoft") != -1) ?
window[mname]:document[mname]);
        },
                _save : function(fieldValue){
             if(!_this._flash(_super.mvname))return;
             this._flash(this.mvname).SaveFlashFunction(fieldValue);
        },
                _printSwf : function(){
                                var htm = "";
                htm += '<object 
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=8,0,0,0" width="0" height="0" id="'+this.mvname
+'">';
                htm += '<param name="movie" value="'+this.mvsrc+'" />';
                htm += '<param name="quality" value="high" />';
                htm += '<param name="bgcolor" value="#fff" />';
                htm += '<param name="allowScriptAccess" value="always">';
                htm += '<embed src="'+this.mvsrc+'" allowScriptAccess="always"
quality="high" bgcolor="#CCCCCC" width="0" height="0"
name="'+this.mvname+'" align="middle" type="application/x-shockwave-
flash" pluginspage="http://www.macromedia.com/go/getflashplayer"; />';
                htm += '</object>';
                return htm;
                }
}

Storage._save("Fujar David Jarquin");


There is a lot of flash / javascript implementation for local storage
(remember flash player for security reasons only has 100kb per domain
by default, you can change that on the Settings option of the
flashplayer)

Example:
www.nuff-respec.com/technology/cross-browser-cookies-with-flash

Documentation about Flash Shared Objects:
http://livedocs.adobe.com/flash/9.0_es/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000319.html
http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/comment-page-1/

Documentation about Javascript - Flash Comunication
http://jquery.thewikies.com/swfobject/
http://blog.unijimpe.net/integrar-flash-y-javascript/
http://code.google.com/p/swfobject/
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002201.html



On 10 ene, 06:32, "jQuery Lover" <ilovejqu...@gmail.com> wrote:
> No, it's just the first place to look at :)
>
> Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
>
>
>
> On Sat, Jan 10, 2009 at 3:13 PM, aldana <ald...@gmx.de> wrote:
>
> > yes, I had a look. But couldn't find anything. Did I overlook something?- 
> > Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

Reply via email to