Retrieve the name and change _width and _height to a movie Loaded with loadmovie()
Posted on 2003-12-02
hello, my problem is concerned with the name of a movie, which I have loded with the loadmovie function.
I have included the code for this in an on release event in a button a goes as follows:
_level0.forLoading.stop() // just for a few seconds so _width and _height can be retrieved and changed.
var the_name = "_level0.forLoading." " //(what goes here I have tried _name, _droptarget, _tabChildren and others but nothing works._ name returns "forLoading", the others "undefined")
thanks in advance!
in order for you to understand why I need this code , I should say that I need it so ! don't have to put the name of the loaded movie again in every button, but to retrieve it so it can be done automatically. and by that change its _width and _height cause these cannot change without the name. _width, _height and _name always referer to the empty movie "forLoading"