> this.cli_mc.hu_btn.onPress = function() { > buttonfunction(); > }; > > Function buttonfunction(){ > cli_mc._visible = 0; > _root.mtit_txt.text = "Cliniques"; > _root.categ_var = "CLINIQUE"; > _level41.mar = "cli"; > _root.liste(); > } > > -- Move your onPress code into another function, then you can > reference that function through ActionScript, and through > other functions like onPress.
or indeed just run this.cli_mc.hu_btn.onPress() manually - should work just fine. Danny _______________________________________________ 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