Hello Flep,
I liked a lot your Pixellation Image Gallery but I'm having issues trying to add it in a project I'm working. I saw you saying in another thread that this gallery was intended to be embed in a html file but my project require it to be loaded in a main swf. I decided to open this new thread hoping we could find a solution. Its very important to me so please bare with me.
My project is a flash presentation (using a projector). For my photo gallery section I will have a container where I need to add the pixellation swf. I tried:
Code:
var imgGallerySwf:MovieClip;
var imgGalleryLoader:Loader = new Loader();
imgGalleryLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoadingGallery);
imgGalleryLoader.load(new URLRequest("ImageGallery.swf"));
function doneLoadingGallery($evt:Event):void
{
imgGallerySwf = MovieClip(imgGalleryLoader.content);
this.addChild(imgGallerySwf);
imgGallerySwf.stop();
}
and what I getting is:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Pixellation/::init()
at Pixellation$iinit()
I made a research and seems that the function init() at Pixellation.as is calling something that is not yet on the stage. This might have something with the LoadingXML class (or the xml file) when called from the main swf but I couldn't realise how to make it be loaded. I'm on AS3 for just 2 weeks, even though I learn pretty fast. Can you help me to find what I'm missing? It would be of great help.
Thanks