Supprimer les contrôles dans un fichier SWF

Si vous développez en Flash, voici un truc utile qu'il vous faut connaître : l'utilisateur peut toujours, par défaut, zoomer une animation Flash comme bon lui semble, contrôler la tête de lecture de l'animation, etc... heureusement, il existe un moyen de retirer ces contrôles.

C'est pas très compliqué, même si vos connaissances en Actionscript sont rudimentaires ou inexistantes.

  1. Cliquez sur l'image-clé (en anglais : keyframe) principale de votre animation Flash
  2. Ouvrez la fenêtre de script (F9 sur PC, CMD+F9 sur Mac)
  3. Tapez-s'y ceci :

  1. Stage.showMenu = false;

Et puis voilà, les contrôles ne sont plus accessibles pour l'utilisateur.

Commentaires

Commenter sur ce sujet :

Le contenu de ce champ sera maintenu privé et ne sera pas affiché publiquement.
  • Les adresses de pages web et de messagerie électronique sont transformées en liens automatiquement.
  • Les lignes et les paragraphes vont à la ligne automatiquement.
  • You can enable syntax highlighting of source code with the following tags: <code>, <actionscript>, <apache>, <bash>, <dos>, <html>, <javascript>, <mysql>, <php>, <xml>.
  • Every instance heading tags will be modified to include an id attribute for anchor linking.
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.
  • Image links with 'rel="lightshow"' in the <a> tag will appear in a Lightbox slideshow when clicked on.
  • Links to HTML content with 'rel="lightframe"' in the <a> tag will appear in a Lightbox when clicked on.
  • Links to video content with 'rel="lightvideo"' in the <a> tag will appear in a Lightbox when clicked on.
  • Links to inline or modal content with 'rel="lightmodal"' in the <a> tag will appear in a Lightbox when clicked on.
  • Links to specified hosts will have a rel="nofollow" added to them.

  • Insert <!--tableofcontents [list: ol; title: Table of Contents; minlevel: 2; maxlevel: 3; attachments: yes;]--> to insert a mediawiki style collapsible table of contents. Arguments within [] are optional.

Plus d'informations sur les options de formatage