bonjour je bosse sur application qui a été faite sur Flex builder 3, et qui fonctionnait, mais la je suis passé sous Flash builder 4.


j'ai installé le sdk 3.2

Il y a des erreurs suite au code suivant :
Could not resolve <mx: PrintAdvancedDataGrid> to a component implementation.
ligne 133
Erreur Flex
Comment régler ca ? J'ai regardé sur internet, mais rien ne résout mon probleme.

voici le 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<?xml version="1.0"?>
<mx:VBox
	xmlns:print="com.bnppa.ewf.prev.cge.simulation.view.print.*" 
	xmlns:mx="http://www.adobe.com/2006/mxml" 
	xmlns:printer="com.bnppa.air.view.printer.*"
	xmlns:formatters="com.bnppa.formatters.*"
	backgroundColor="#FFFFFF"
	width="100%"
	verticalAlign="top"
    paddingTop="3" paddingBottom="3" 
    paddingLeft="3" paddingRight="3" xmlns:renderer="com.bnppa.ewf.prev.cge.simulation.view.print.renderers.*">
 
    <mx:Script source="../../script/importModelLocator.as" />
 
    <mx:Script>
    	<![CDATA[
    		import com.bnppa.ewf.prev.cge.simulation.vo.simulationResult.SimulationResultVO;
    		import com.bnppa.ewf.prev.cge.simulation.view.helper.SimulatorUtils;
    		import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
    		import mx.controls.dataGridClasses.DataGridColumn;
    		import com.bnppa.ewf.prev.cge.simulation.vo.simulationResult.LoanDetailsVO;
    		import com.bnppa.utils.DateUtil;
    		import com.bnppa.collections.ExtendedArrayCollection;
    		import com.bnppa.ewf.prev.cge.simulation.vo.simulation.SimulationVO;
    		import com.bnppa.ewf.prev.cge.simulation.vo.simulation.LoanVO;
    		import com.bnppa.ewf.prev.cge.simulation.model.SimulationModelLocator;
 
			[Bindable]
            private var _pageNumber:Number = 1;
 
			[Bindable]
    		private var _simulation : SimulationVO = SimulationModelLocator.getInstance().simulation;
 
			[Bindable]
    		private var _twoAssured : Boolean = _simulation.assuredList.length == 2;
 
    		[Bindable]
    		private var _result : LoanDetailsVO;
 
    		[Bindable]
    		private var _loanVO : LoanVO;
 
    		[Bindable]
    		private var _assuredList : ExtendedArrayCollection = _simulation.assuredList;
 
    		public function showPage( pageType:String, loanVO : LoanVO, loanDetailsVO : LoanDetailsVO, pageNumber : Number, simulRes:SimulationResultVO ) : void
			{
				_loanVO 		= loanVO;
				_result	 		= loanDetailsVO;
				_pageNumber		= pageNumber;
 
				footer.loanVO	= loanVO; 
				footer.result	= loanDetailsVO;
				footer.simulationResult = simulRes;
				header.loanVO	= _loanVO; 
				header.amount	= (loanDetailsVO.loanYearList.length > 0 
									? loanDetailsVO.loanYearList[0].assuredAmount 
									: null);
				header.pageNumber = pageNumber;		
 
				loanDetails.percentHeight=100;
 
                if(pageType == "first") {
                    header.includeInLayout=true;
                    header.visible = true;
                    header.loanVO = _loanVO;
                }
                if(pageType == "first" || pageType == "middle") {
                    footer.includeInLayout=false;
                    footer.visible = false;
                }
                if(pageType == "middle" || pageType == "last") {
                    header.includeInLayout=false;
                    header.visible = false;
 
                }
                if(pageType == "last") {
                    footer.includeInLayout=true;
                    footer.visible = true;
                }
 
                validateNow();
            }
 
            private function getYearIndex( item : Object, column : AdvancedDataGridColumn ) : String
			{
				return "Année " + item.yearIndex;
			}
 
			private function getTitleLine( item : Object, column : AdvancedDataGridColumn ) : String
			{					
				return resourceManager.getString('application', item.titleLine);
			}
 
 
 
			private function getFormulaHeaderDC (assuredIndex : int) : String {
				var result : String;
 
				if (_assuredList.length >= assuredIndex)
					result = SimulatorUtils.getGarantiesDCToPrint(_assuredList.getItemAt( assuredIndex ).formula.formula);
 
				return result;
			}
 
			private function getFormulaHeaderComp (assuredIndex : int) : String {
				var result : String;
 
				if (_assuredList.length >= assuredIndex)
					result = SimulatorUtils.getGarantiesCompToPrint(_assuredList.getItemAt( assuredIndex ).formula.formula);
 
				return result;
			}
    	]]>
    </mx:Script>
 
 
    <formatters:ExtendedDateFormatter id="formatDate" formatString="DD/MM/YYYY" />
 
    <formatters:ExtendedCurrencyFormatter id="formatMoney" />
 
    <print:HeaderTotalPrint id="header" loanVO="{_loanVO}"/>
 
 
	<mx:PrintAdvancedDataGrid 
		id="loanDetails"
		draggableColumns="false" dragMoveEnabled="false"
	  	sortableColumns="false" sortExpertMode="false"
	  	width="99%"	dataProvider="{_result.loanYearList}"
	  	headerStyleName="printDGTitle"
	  	styleName="printValue"
	  	headerRenderer="com.bnppa.ewf.prev.cge.simulation.view.print.renderers.simpleHeaderRendererToPrint">
 
        <mx:groupedColumns>
 
            <mx:AdvancedDataGridColumn headerText="Année" labelFunction="getYearIndex" width="80" />
 
            <mx:AdvancedDataGridColumn headerText="Capital" width="80">
            	<mx:itemRenderer>
            		<mx:Component>
						<renderer:AmountRenderer amount="{data.assuredAmount}"/>
					</mx:Component>
            	</mx:itemRenderer>
            </mx:AdvancedDataGridColumn>
 
            <mx:AdvancedDataGridColumn headerText="Echéances" width="80" >
            	<mx:itemRenderer>
					<mx:Component>
						<renderer:AmountRenderer amount="{data.financialCommitment}"/>
					</mx:Component>
				</mx:itemRenderer>
            </mx:AdvancedDataGridColumn>
 
            <mx:AdvancedDataGridColumnGroup headerText="Assuré 1" textAlign="center">
 
	            <mx:AdvancedDataGridColumn headerText="{getFormulaHeaderDC(0)}" width="60" >
	            	<mx:itemRenderer>
						<mx:Component>
							<renderer:AmountRenderer amount="{data.assured1Cost.dcptia}"/>
						</mx:Component>
					</mx:itemRenderer>
	            </mx:AdvancedDataGridColumn>
 
	            <mx:AdvancedDataGridColumn headerText="{getFormulaHeaderComp(0)}" width="60" >
	         		<mx:itemRenderer>
						<mx:Component>
							<renderer:AmountRenderer amount="{data.assured1Cost.ixx}"/>
						</mx:Component>
					</mx:itemRenderer>
	            </mx:AdvancedDataGridColumn>
 
            </mx:AdvancedDataGridColumnGroup>
 
            <mx:AdvancedDataGridColumnGroup headerText="Assuré 2" textAlign="center">
 
				<mx:AdvancedDataGridColumn headerText="{getFormulaHeaderDC(1)}" visible="{_twoAssured}" width="60">
					<mx:itemRenderer>
						<mx:Component>
							<renderer:AmountRenderer amount="{data.assured2Cost.dcptia}"/>
						</mx:Component>
					</mx:itemRenderer>
				</mx:AdvancedDataGridColumn>
 
		        <mx:AdvancedDataGridColumn headerText="{getFormulaHeaderComp(1)}"  visible="{_twoAssured}" width="60">
		        	<mx:itemRenderer>
						<mx:Component>
							<renderer:AmountRenderer amount="{data.assured2Cost.ixx}"/>
						</mx:Component>
					</mx:itemRenderer>
		        </mx:AdvancedDataGridColumn>
 
            </mx:AdvancedDataGridColumnGroup>
 
            <mx:AdvancedDataGridColumn headerText="Total" width="60">
            	<mx:itemRenderer>
					<mx:Component>
						<renderer:AmountRenderer amount="{data.assuranceTotalCost}"/>
					</mx:Component>
				</mx:itemRenderer>
            </mx:AdvancedDataGridColumn>
 
        </mx:groupedColumns>
    </mx:PrintAdvancedDataGrid>
 
	<print:FooterTotalPrint id="footer"/>
 
</mx:VBox>



J'ai une autre question :

Comment fait on pour changer le programme qui s'occupe de l'execution pour un projet flex ? car sur ce projet, lorsque je fais executer, il m'ouvre une autre fentere de Flash Builder, avec rien d'ouvert dedans... je voudrais mettre le lecteur flash ou air

merci