hi

Is it possible to attach a movieclip in a custom class in actionscript 2?

here is an example

class com.BannerApp extends MovieClip {

//Constructor
public function BannerApp() {

// clip structure for movies
var mcBackground:MovieClip              = this.attachMovie("mcBackground",
"mcBackground", 10 ,{_x:0, _y:0});
var mcBannerContainer:MovieClip =
this.createEmptyMovieClip("mcBannerContainer", 20, {_x:6, _y:0});
var mcBanner:MovieClip                  =
mcBannerContainer.createEmptyMovieClip("mcBanner", 10, {_x:6, _y:0});
var mcMask:MovieClip                    = this.attachMovie("mcMask", "mcMask", 
30, {_x:3,
_y:0});
mcBannerContainer.setMask(mcMask);
...

the mcBackground and mcMask clips are in the library and exporting in the
first frame but they don't seem to be doing anything (they trace undefined)

thanks
a


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to