Bonjour

Je démarre la programmation flash avec le framework flex.
J'ai besoin de faire des composants customisés. J'ai regardé la doc Adobe etc. Voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// src\flextest\Main.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
		xmlns:mx="http://www.adobe.com/2006/mxml"
		xmlns:flextest="*"
		backgroundColor="#123456">
 
	<mx:Box>
		<mx:Canvas id="myCanvas" x="0" y="0" width="700" height="500">
			<flextest:Game id="mGame" />
		</mx:Canvas>
	</mx:Box>
 
</mx:Application>
 
 
// src\flextest\Game.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:UIComponent
		xmlns:mx="http://www.adobe.com/2006/mxml"
		x="0"
		y="0"
		width="700"
		height="500">
 
</mx:UIComponent>
J'obtiens l'erreur suivante : src\flextest\Main.mxml: Error: Could not resolve <flextest:Game> to a component implementation.

Mon code me parait pourtant correct.
J'utilise FlashDevelop (et donc mxmlc) sous XP Pro.
Je me demande si je ne dois pas ajouter une option de compilation quelque part.

Quelqu'un a une idée ?

Merci d'avance
Rémi