[Flashcoders] Problem when applying dynamic mask [AS3]

2008-04-10 Thread Stuart (FunkDaWeb)
Hi i have another problem this time its to do with masking an object, here is the code that creates a movieclip then loads an image into to... bannerArea = newMovieClip(0xff, 0, 0, 420, 173); addChildAt(bannerArea,0); banner.loadImage(banners/ +

Re: [Flashcoders] Problem when applying dynamic mask [AS3]

2008-04-10 Thread jonathan howe
Hi, Stuart, This looks like a job for global function getDefinitionByName(), my new bff (learned from this list). You can't instantiate item just as a string. You need to call getDefinitionByName(item) and then use that as your class def. var classReference:Class = getDefinitionByName(item);

Re: [Flashcoders] Problem when applying dynamic mask [AS3]

2008-04-10 Thread Stuart (FunkDaWeb)
[imageLib-loadImage]: No files are loading ( + err + )); } } SM - Original Message - From: jonathan howe To: Flash Coders List Sent: Thursday, April 10, 2008 1:50 PM Subject: Re: [Flashcoders] Problem when applying dynamic mask [AS3] Hi, Stuart