May
9
Apollo : une première application
May 9, 2007 | Leave a Comment
Un tutorial en trois parties permet d’apprendre à utiliser quelques fonctions clés d’Apollo en développant un lecteur mp3. – openFilePanel
- onMouseDown Event
- Transparent Window
Le langage choisi par l’auteur est Flex.
L’auteur du tutorial utilise FlexBuilder et, du fait, ne se soucie plus de coder le fichier .xml décrivant l’application.Ci-dessous le fichier que j’ai utilisé pour ce projet :
1 2 3 4 5 6 7 8 9 10 11 | <?xml version="1.0" encoding="UTF-8"?> <application xmlns="http://ns.adobe.com/apollo/application/1.0.M3" appId="ApolloHelloWorld" version="1.0"> <properties> <name>Apollo Jukebox</name> <description>An application to play back mp3 files.</description> <publisher>Samantha Halfon - http://www.samanthahalfon.net</publisher> <copyright>2007</copyright> </properties> <!--<rootContent systemChrome="standard" transparent="false" visible="true">ApolloJukebox.swf</rootContent>--> <rootContent systemChrome="none" transparent="true" visible="true">ApolloJukebox.swf</rootContent> </application> |
Le tutoriel se trouve ici :
- http://flnotes.wordpress.com/2007/03/22/
creating-a-mp3-player-in-apollo-and-flex-2/
- http://flnotes.wordpress.com/2007/03/23/
making-the-mp3-player-window-transparent/
- http://flnotes.wordpress.com/2007/03/28/
displaying-id3-info-of-mp3-file-in-a-separate-window/
Pour aller plus loin, un pocket book destiné aux développeurs Flex est disponible gratuitement en téléchargement.
Enfin, pour automatiser les appels à amxmlc et adl pour compiler et lancer l’application :
1 | @echo off |
rem Batch script for Apollo Compilation and Execution
rem takes the mxml filename and the xml filename as parameters
rem By Samantha Halfon
rem Note: the folder containing amxmlc.exe and adl.exe must be in the path
rem EXEMPLE : ApolloCompAndRun.bat ApolloHelloWorld.mxml ApolloHelloWorld-apt.xml
rem start compilation and run application
amxmlc %1 & adl %2