Hi,
I'm trying to create a button dynamically. I'm trying to use a createEmptyMovieClip method to create a "movie clip" and then giving it an onRelease event handler. But this doesn't seem to work.
But when i make a movie, add it to the library and then attach it through attachMovie method, then the onRelease method seems to work.
Any ideas on why i can't do this?
Also, when i create a movie using createEmptyMovieClip and hten loadMovie(jpg) it loads correctly. But when I createEmptyMovieClip and hten specify it's width and hten try the loadMovie method, it doesn't seem to load it....
Any help in either of these issues will be great.
Thanks,
I'm trying to create a button dynamically. I'm trying to use a createEmptyMovieClip method to create a "movie clip" and then giving it an onRelease event handler. But this doesn't seem to work.
But when i make a movie, add it to the library and then attach it through attachMovie method, then the onRelease method seems to work.
Any ideas on why i can't do this?
Also, when i create a movie using createEmptyMovieClip and hten loadMovie(jpg) it loads correctly. But when I createEmptyMovieClip and hten specify it's width and hten try the loadMovie method, it doesn't seem to load it....
Any help in either of these issues will be great.
Thanks,