are there any direct-L members or flashCoder members that would be
interested in a script for Flash that has the same functionality as
sendAllSprites in Director?

Below is a  two step implementaion of the script(s).


//Place this on the frame where you plan to stop and have interactivity.
//Flash does not at least in 5 compile an object with references to all the
MCs so we have to do that work for it.

_root.MCOBJ = new Object();//create the obj
function compileMCS(path){//compiles the obj
        for(i in path){
                if(typeof(path[i])=="movieclip"){
                        if(path!= path[i]){
                                //MCARRAY.push(path[i]);
                                _root.MCOBJ[path[i]] = path[i];
                                compileSprites(path[i]);
                        }else{
                                break;
                        }
                }
        }
}
compile MCS(_root);


// I generally declare my functions on the first frame, so this is where I
would put this.
function sendAll MCS(target,func,val){
        for(i in target){
                target[i][func](val);
        }
}

// a test:
sendAll MCS(_root.MCOBJ,"myFunction",(attributes));




 Brian Douglas  (:ub)
============================================================================



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to