4 comments found

  • Exclusive Author
  • Has been a member for 4-5 years
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
  • Europe

nice fade :-)

  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
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 !

Thanks!

sike
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;  
    loadXML();                
}
And I appreciate if you can rate my item, thanks.
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
hounds Purchased

hi

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
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

  • Bought between 10 and 49 items
  • Has been a member for 5-6 years

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

Thanks


by
by
by
by
by
by