  | |  | Classes and createEmptyMovieClip | Classes and createEmptyMovieClip
2004-04-12 - By Matthew Zoern
Back Got a weird one... Hope someone can help.
I want to create an empty Movie clip inside of the item that I have my
class attached. (line 2)
As soon as I trace it for some reason I am getting an "undefined " (line
3)
if I don 't use "this " then the movie clip is created on the main
stage... wtf?
1. headItemClass.prototype.openList = function() {
2. this.createEmptyMovieClip( "subListCont ", 1);
3. trace(this.subListCont);
4. for(i=0; i <this.subList.length; i++){
5. this.subListCont.attachMovie( "subItem_mc ", "subItem " + i, i,
{_y:subListCont._height, title:this.subList[i].name,
image:this.subList[i].image, artistID:this.subList[i].artistID});
//this.subList[1].name
6. };
7. };
matthew
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
send message to the list: mailto:flashpro@(protected)
[FlashPro] list info, subscribe, archive: http://flash-list.com/
There 's also a WebPro mailing list: http://webdesign-list.com/
cutting-edge sounds for flash: http://flash-sounds.com/
|
|
 |