LAZIOMATICA – Guida allo Sviluppo Software

La nuova forma del software su misura…

 

Shared Object in Flash Lite per gestire il seriale di un’applicazione

Sezione per il check  dell’autorizzazione:

function loadCompletePrefs (mySO:SharedObject) {

if (0 == mySO.getSize() ) // non è presente l’oggetto nel dispositivo
{
trace(“NO SHARED FOUND”)
// Se size è uguale a 0, è necessario inizializzare i dati:
gotoAndStop(“serial”) // salto alla sezione per impostare i dati..in questo caso l’inserimento del seriale

}
else
{
//mySO.clear();
// Traccia tutti i dati in mySO:
trace(“SHARED FOUND”)
trace( “Prefs:” );
for (var idx in mySO.data) {
trace( ” ” + idx +”: ” + mySO.data[idx] );
if (idx==”md5″) if( mySO.data[idx]==md5)
{
trace(“Autenticazione OK”)
// continua con elaborazione filmato da utente autenticato o autorizzato
}
else trace (“Autenticazione failed”)

}
}
}

// Istanziamo  l’oggetto condiviso:

var Prefs:SharedObject = SharedObject.getLocal(“Prefs”);

SharedObject.addListener( “Prefs”, loadCompletePrefs );

Sezione di scrittura dello SharedObject:

function saveSeriale (mySO:SharedObject) {
mySO.data.name = “Infodemo”;
mySO.data.email = “info@laziomatica.com”;
mySO.data.serial1 = sn01;
mySO.data.serial2 = sn02;
mySO.data.serial3 = sn03;
mySO.data.md5 = md5v;
mySO.flush();
var flushResult = mySO.flush(); // qui salviamo l’oggetto
switch (flushResult) {
case ‘pending’ :
md5.text += “pending”;
break;
case true :
md5.text += “Data was flushed.”;
break;
case false :
md5.text += “Test failed. Data was not flushed.”;
break;
}

}

var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
var keyCodev = Key.getCode();
if (keyCodev == ExtendedKey.SOFT2) {

if (key1.text==sn01 && key2.text==sn02 && key3.text==sn03)
{
md5.text=”OK CHECK”;
_focusRect = false;
//gestiamo lo shared object appena finito il suo recupero…che in questo caso è immediato poichè non esiste

Prefs = SharedObject.getLocal(“Prefs”);

SharedObject.addListener( “Prefs”, saveSeriale );
}
else  md5.text=”NO CHECK”;

}

}

};

// gestore di eventi tastiera
Key.addListener(keyListener);

Questo è tutto.

Filed under : Actionscript 2,Flash CS3,Flash CS4,Flash Lite,MOBILE
By admin
On 28 gennaio 2009
At 13:40
Comments : 0
 
 

Flash lite packager for Symbian S60 3rd Edition Platform

SWF2Go Professional enables you to create rich, powerful and engaging Flash Lite applications rapidly by combining the power of Python for S60 and Net60. Making professional class deployment packages is now one-click operation with new redesigned and friendlier user interface.

www.swf2go.com

Filed under : Actionscript 2,Flash CS3,Flash CS4,Flash Lite,MOBILE
By admin
On 18 gennaio 2009
At 19:36
Comments : 0
 
 

Adobe distributable player solution for Flash Lite Application

Distribute in a more simple way your mobile solution

The distributable player solution enables developers to create rich applications for the latest version of Flash Lite and directly distribute their content to millions of open OS smartphones providing a better on-device user experience. The solution mimics the successful Flash Player desktop model of content-triggered downloads for applications (rather than web-browsing). Developers and content providers no longer need to worry about whether the device has the latest Flash Lite runtime.

Original Links:

http://www.adobe.com/devnet/devices/index.html?navID=sell

Filed under : Flash CS3,Flash CS4,Flash Lite,MOBILE
By admin
On
At 19:34
Comments :Commenti disabilitati
 
 

Building an external XML-driven photo gallery in Flash Lite 2.0

In this article how to build an external XML-driven photo gallery in Flash Lite 2.0 like show in figures.The focus of this tutorial is primarily on creating the dynamic list that can load multiple numbers of thumbnails and some text, along with some value assigned to each of these text to be manipulated at the runtime.

Final application

Originale Link:

http://www.adobe.com/devnet/devices/articles/xml_photo_gallery.html

Filed under : Flash CS3,Flash CS4,Flash Lite,MOBILE
By admin
On
At 19:27
Comments : 0