Hi people!
The last time I used Actionscript, the current standard was 2.0, and I realize things have changed. I encounter my problem when trying to load a swf into a movieclip-container on the “main page”.
homeBTN.addEventListener(MouseEvent.CLICK, myButtonFunction);
function myButtonFunction(event: MouseEvent) {
_root.contents.loadMovie(“commercial.swf”);
}
Flash responds with:
1119: Access of possibly undefined property contents through a reference with static type flash.display:DisplayObject.
The coding in line three used to work in AS2.0, and I’ve been searching the web forward and back for many hours now without a final solution.
Could anyone please give me some pointers?
Thanks in advance