4 comments found

robkee Purchased

I bought this item and my SWF works great; images and thumbnails are all perfect. However, I’m having a huge problem adding it to my stage. I get this error when I try to call my .swf …

TypeError: Error #1009: Cannot access a property or method of a null object reference. at Main()

I’m using this AS3 code to bring the movie in..

var myLoader:Loader = new Loader(); myLoader.load(new URLRequest(“concepts.swf”)); stage.addChild(myLoader) myLoader.x = -55; myLoader.y = 45;

Please help, I really like this purchase but it’s useless if I can’ add it to my stage. I’m publishing in Flash 9. Is there something in the Main.as that I need to add?

I need to get this image viewer up and ready ASAP !


sike Author
Hi, you need to move the statement with stage instance to a init function, which may look like:
public function Main():void{ 
            if (stage) init();
            else addEventListener(Event.ADDED_TO_STAGE, init);

private function init(e:Event = null):void {
    removeEventListener(Event.ADDED_TO_STAGE, init);
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    //stage.addEventListener(Event.RESIZE, resizeHandler);                
    sw = stage.stageWidth;
    sh = stage.stageHeight;  
And I appreciate if you can rate my item, thanks.
hounds Purchased


i need to resize the flah window from 590×300 to 590×400.

I have edited the flash file size and published, and edited the html but now the file won’t load. What have i done wrong, can you help please.

sike Author

Hi, please make sure the file’s location is correct. Or you can drop me a line with your online preview via my profile page. Please don’t post the preview here. Thank.s

Hi I would like ot place this slideshow inside my own fla, can you tell me how I can do this please?