Hi,
Air gives me SecurityError while trying to load local images, swf's and etc (under Air application directory), via LoaderMax.
The error doesn't occur when I publish the file in Flash 10 format.
The code i used was copy/pasted from LoaderMax's page:
import com.greensock.*;
import com.greensock.loading.*;
import com.greensock.events.LoaderEvent;
import com.greensock.loading.display.*;
//create a LoaderMax named "mainQueue" and set up onProgress, onComplete and onError listeners
var queue:LoaderMax = new LoaderMax({name:"mainQueue",onProgress:progressHandler,onComplete:completeHandler,onError:errorHandler});
//append several loaders
queue.append( new SWFLoader("swf/test.swf", {name:"mainClip", container:this}));
queue.load();
function progressHandler(event:LoaderEvent):void {
trace("progress: " + event.target.progress);
}
function completeHandler(event:LoaderEvent):void {
//var image:ContentDisplay = LoaderMax.getContent("mainClip");
//TweenLite.to(image, 1, {alpha:1, y:100});
trace(event.target + " is complete!");
}
function errorHandler(event:LoaderEvent):void {
trace("error occured with " + event.target + ": " + event.text);
}
I've read the other thread, but it didn't help me.
The loaderMax would give me so much advantage to create a project with Air, but somehow I don't get it to work with each other.