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. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Laurent CUCHET Sent: 11 June 2007 08:42 To: Flashcoders mailing list Subject: [Flashcoders] >> function - AS2 Hi I got function with button Is there a way to use this with the button and by AS ?? For exemple if the movie go to image 5 it make the btn function work Thank you this.cli_mc.hu_btn.onPress = function() { cli_mc._visible = 0; _root.mtit_txt.text = "Cliniques"; _root.categ_var = "CLINIQUE"; _level41.mar = "cli"; _root.liste(); }; _______________________________________________ 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 _______________________________________________ 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