i've made the following simple test:
in a movie called 'sharedLib' i've crated a MC containg some
in its linkage dialog-box i've checked all the 3 'export'
the class 'myIcon', and in the url put 'sharedLib.swf' (the
automaticaly set to 'MovieClip'). in another movie, called
i've added an empty MC, placed it on the stage, and checked
the 'import for
runtime sharing' check-box in its 'linkage' dialog-box, named
'myIcon' and in the url put 'sharedLib.swf'.
when previewed the graphic from 'sharedLib' is seen in
however, when i add the following code to the 'destination'
first frame -
var newIcon:MovieClip = new myIcon();
i got a compile error saying 'call to a possibly undefined
so how do i approach a runtime-shared clip?
btw - when i turned both movies to AS2 and changed the code
'this.attachMovie(...)' it worked fine.