Hi
Wondered if someone so chould help. I am trying to build a test version of an app that loads in a list of images on phone. However when I install and run the app it returns an error of -3. Now, i cannot for the life of me find any documentaion on what the errorcodes relate to:
My AS code is below:
-----------------------------------------------------------------------
//Import APIBridge library
import com.nokia.lib.Device;
import com.nokia.lib.Service;
import si.apibridge.*;
var myDevice:Object = new Device();
myDevice.DisableAutoRotation(true);
var bridge:APIBridge = new APIBridge(onBridgeError);
//Create a new media service
var media = bridge.Service("Service.MediaManagement", "IDataSource");
function callBack(transactionID:String, eventID:String, outParam:Object) {
if (outParam.ErrorCode == 0) {
var outList = outParam.ReturnValue;
var outputEntry = null;
do {
outputEntry = outList.next();
if (null != outputEntry) {
var filename = outputEntry.FileName;
text_txt.text += "-"+filename+"\r";
} else {
break;
}
} while (true);
} else {
var errorId = outParam.ErrorCode;
text_txt.text = "Error code=: "+errorId;
}
}
function getMedia()
{
var filter = {FileType:"Image", Key:"FileExtension", StartRange:".jpg"};
// Define the input parameters
var inParam = {Type:"FileInfo", Filter:filter};
media.GetList(inParam,callBack);
}
function onBridgeError (outParam:Object) {
trace("APIBridge error " + outParam.ErrorCode + " " + outParam.ErrorMessage);
}
media_btn.onRelease = function(){
getMedia();
}
------------------------------------------------------------------
As a note. I am wrapping the flash up as a wrt and then packaging as a sis with api bridge within. Any ideas would be great. Testing on a n95 wiht latest firmware, exported out as flash lite 3.0
cheers
ade




