Hello again and sorry for the typos in my original mail.
I am listing my actual and working code at the bottom.

Still my question is: is it possible to replace
        private var user0_mc:MovieClip;
        private var user1_mc:MovieClip;
        private var user2_mc:MovieClip;

by an array, if those 3 mc's are located in the
authoring envoironment (i.e. not attached by AS)?

Thank you
Alex



class Table extends MovieClip {
        private var table_id:Number;

        private var user0_mc:MovieClip;
        private var user1_mc:MovieClip;
        private var user2_mc:MovieClip;

        function Table() {
                stop();
                // make this movie clip behave as a button      
                onRelease = function() { }
        }

        public function update(table_id:Number, info_str:String) {
                this.table_id = table_id;
                var info_array:Array = info_str.split(newline);
                
                for (var i:Number = 0; i < 3; i++) {
                        trace('info_str[' + i + ']: ' + info_array[i]);
                        if (info_array[i])
                                this['user' + i + '_mc'].update(info_array[i]);
                }
        }
}


--
http://preferans.de
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to