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

Filed under: Flex Apollo

Liked this page?

Tweet it

Subscribe to the RSS feed or sign up for the newsletter now.

Posts related to Apollo : une première application

Name (required)

Email (required)

Website

Leave a Reply

  • About Me


    photo of Samantha Halfon Samantha Halfon
    Software Engineer
    blueKiwi software
    Paris, France
    I enjoy playing with my computer(s), listening to Bob Dylan (and related artists) and watching movies (especially if they were directed by Martin Scorsese or John Cassavetes). Sometimes, I play a little guitar... If not doing any of the above, I am either riding a small red bike around Paris, or, making videos. About my videomaking please check out World Wide Angle and its blog.