System Test (ActionScript)

 

Here is a tiny script which uses ActionScript methods from Flash.
You can get user 's system parameters, so you could adapt your movie.
Be careful, you ought to send parameters ( width, height ) to the web page which manages code exported by Swishmax, therefore you 'd use PHP or ASP.

⇒ animation ⇐

The script :
(variables txtdyn... are used to display results )

onLoad ()
{
       txtdyn1= Stage.width + " x " + Stage.height;
       txtdyn2= Stage.scaleMode;

       (System.capabilities.hasAudio) ? txtdyn3="yes" : txtdyn3="No";
       (System.capabilities.hasAudioEncoder) ? txtdyn4="yes" : txtdyn4="No";
       (System.capabilities.hasEmbeddedVideo) ? txtdyn5="yes" : txtdyn5="No";
       (System.capabilities.hasMP3) ? txtdyn6="yes" : txtdyn6="No";
       (System.capabilities.hasStreamingAudio) ? txtdyn7="yes" : txtdyn7="No";
       (System.capabilities.hasStreamingVideo) ? txtdyn8="yes" : txtdyn8="No";
       (System.capabilities.hasVideoEncoder) ? txtdyn9="yes" : txtdyn9="No";
       txtdyn10 = System.capabilities.language;
       txtdyn11 = System.capabilities.manufacturer;
       txtdyn12 = System.capabilities.os;
       txtdyn13 = string(System.capabilities.pixelAspectRatio);
       txtdyn14 = string(System.capabilities.screenDPI);
       txtdyn15 = string(System.capabilities.screenResolutionX) + " : " + string(System.capabilities.screenResolutionY);
}

 


Si vous aimez le site

 

Select a language if you need :


Page chargée en 0.003 sec.

Dernière Modification : Mer 25 Janvier 2017 8:56
Copyright © 1999-2017 Jean-Paul Molina Tous droits réservés.

to Google