mrvicio Posted November 19, 2011 Share Posted November 19, 2011 Hi all, i have a doubt res = resource if i have a "addEventHandler" in the res1 atached to a resource-element (res2), and this resource stop when the res2 start again with a diferent "elementDataxxx", the EventHandler above will work? Link to comment
qaisjp Posted November 19, 2011 Share Posted November 19, 2011 You mean in res1 there is addEventHandler("onResourceStart", res2, dosomething) and then res1 is stopped. Then when res2 starts (and res1 is stopped) it wont work. WHY? The event handler is removed when the res is stopped. Link to comment
mrvicio Posted November 20, 2011 Author Share Posted November 20, 2011 (edited) I mean in res1 there is addEventHandler("onResourceStart", res2, dosomething) and then res2 is stopped. Then when res2 starts again the addEventHandler("onResourceStart", res2, dosomething) will be triggered? Edited November 20, 2011 by Guest Link to comment
mrvicio Posted November 20, 2011 Author Share Posted November 20, 2011 i dont thinks so but thanks! Link to comment
12p Posted November 20, 2011 Share Posted November 20, 2011 It will obviously work. Don't be afraid of trying it by yourself, anyway. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now