How can I delete an object when clicked?
I have an object (in this case an image) on a card that I want the user to delete. If I put the following script into the image, Rev complains that the script is still executing so it won't complete. on mouseUp delete me end mouseUp Error: (Object: stack locked, or object's script is executing) Bill Vlahos ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How can I delete an object when clicked?
Hi Bill, Try this: on mouseUp send (delete the long name of me) to this card in 0 secs end mouseUp That will: 1) allow the current handler to quit executing before the delete is attempted. 2) let the delete be done by an object not being deleted. Phil On 7/24/10 12:59 PM, Bill Vlahos wrote: I have an object (in this case an image) on a card that I want the user to delete. If I put the following script into the image, Rev complains that the script is still executing so it won't complete. on mouseUp delete me end mouseUp Error: (Object: stack locked, or object's script is executing) Bill Vlahos -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How can I delete an object when clicked?
Phil, This script doesn't do anything. Bill On Jul 24, 2010, at 1:11 PM, Phil Davis wrote: Hi Bill, Try this: on mouseUp send (delete the long name of me) to this card in 0 secs end mouseUp That will: 1) allow the current handler to quit executing before the delete is attempted. 2) let the delete be done by an object not being deleted. Phil On 7/24/10 12:59 PM, Bill Vlahos wrote: I have an object (in this case an image) on a card that I want the user to delete. If I put the following script into the image, Rev complains that the script is still executing so it won't complete. on mouseUp delete me end mouseUp Error: (Object: stack locked, or object's script is executing) Bill Vlahos -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How can I delete an object when clicked?
On Sat, Jul 24, 2010 at 11:38 PM, Bill Vlahos bvla...@mac.com wrote: Phil, This script doesn't do anything. Bill On Jul 24, 2010, at 1:11 PM, Phil Davis wrote: Hi Bill, Try this: on mouseUp send (delete the long name of me) to this card in 0 secs end mouseUp Hi Bill, In the script of your cd, add a handler to manage the deletion command deleteMe pTheTarget delete pTheTarget end deleteMe and in the script of the btn execute: on mouseUp send deleteMe the target to this cd in 0 millisecs end mouseUp -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How can I delete an object when clicked?
As Richard Gaskin would say, Works a treat. Thanks. Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jul 24, 2010, at 2:51 PM, zryip theSlug wrote: On Sat, Jul 24, 2010 at 11:38 PM, Bill Vlahos bvla...@mac.com wrote: Phil, This script doesn't do anything. Bill On Jul 24, 2010, at 1:11 PM, Phil Davis wrote: Hi Bill, Try this: on mouseUp send (delete the long name of me) to this card in 0 secs end mouseUp Hi Bill, In the script of your cd, add a handler to manage the deletion command deleteMe pTheTarget delete pTheTarget end deleteMe and in the script of the btn execute: on mouseUp send deleteMe the target to this cd in 0 millisecs end mouseUp -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution