Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): David R / David Dharmaraj R (Daverms)
Created: 12/17/2008
Components: Documentation, Examples
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Major / Unknown
Locale/System: English / Win All
Vote Count: 0
Problem:
The example provided with the "CentaurAlpha2FeaturesGuide.pdf" (turn to page 29) titled "Using the Image class" lacks an namespace,
"xmlns:cf="coldfusion.service.mxml.*" in the <cfapplication> tag, which results in error while compiling the examples.
Please update the documentation.
Method:
test.mxml
---------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
xmlns:cf="coldfusion.service.*" creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.rpc.events.ResultEvent;
function init():void{
img.execute();
}
function handleResult(event:ResultEvent):void {
mx.controls.Alert.show("result=" + event.result.toString());
}
function handleError(event:Event):void {
mx.controls.Alert.show(event.toString());
}
]]>
</mx:Script>
<cf:Config id="configid" cfServer="127.0.0.1" cfPort="8501"
servicePassword="service" serviceUserName="service"
Centaur Alpha 2 Release Notes - 30
result="handleResult" fault="handleError"/>
<!-- Add border-->
<cf:Image id="img" action="addborder" color="red" thickness="5"
source="http://127.0.0.1:8501/cat.jpg"/>
</mx:Application>
----------------------
Try compiling the above program in command line as,
C:\ColdfusionCentaur\wwwroot\dav>mxmlc -library-path+=C:\ColdfusionCentaur\wwwroot\CFIDE\scripts\AIR\cfservices.swc test.mxml
and you will get the above error.
Thanks,
David R
Result:
C:\ColdfusionCentaur\wwwroot\dav\test.mxml (25):
Error: Type was not found or was not a compile-time constant: Config
C:\ColdfusionCentaur\wwwroot\dav\test.mxml (26):
Error: Type was not found or was not a compile-time constant: Image
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037078
External Customer Info:
External Company:
External Customer Name: David Dharmaraj R
External Customer Email: 443F56B144BB54C5992016B7
External Test Config: 12/17/2008
Attachments:
Comments: