For simplicity sake, I created a movie which has a attachmovie in it.
LinkName: SCK
Now, if I create another move and add this swf movie to it and the attachment(symbols) are also loaded. If I try to use the attachmovie link name with script in the new movie it interfers with the first movie swf.Code:#initclip var s = new MovieClip(); s.init=function(){ this.v1; } Object.SCK = function(){} Object.SCK.prototype = s; Object.registerClass('cSCK',Object.SCK); delete s; #endinitclip
The only way to separate the two symbol library script logic is to change the object name as follows.
Linkname: mSCK
How do I setup the script so that I can use it in any movie clip so that it is independent, without having to change the object name. This would be just like the KC8 components. I can add as many buttons as I like to each movie, as long as I identify them different names.Code:#initclip var s = new MovieClip(); s.init=function(){ this.v1; } Object.mSCK = function(){} Object.mSCK.prototype = s; Object.registerClass('mSCK',Object.mSCK); delete s; #endinitclip
Hopefully, this is not confusing. Any suggestions would be great.




Reply With Quote