This content has been marked as final. Show 3 replies
i suspect that the object does still exist on the fifth frame. have you confirmed this in the debugger?
i think you should first check if your getValue and setValue functions are being called okay, by including a trace in their first lines.
i suspect that your call to setValue is not being pathed correctly
i.e. it should work if you had:
Thank you for your immediate reply. You are right, I should write _root. on it. Im just wondering why this is so? and when our object is lost?
Lastly, any idea how can I remove the object, I mean totally removing it ? Thanks.
if you are calling an object from a different path, you need to reference the object's path. if you were to replace your script inside the simpleButton handler(on (click)) with trace(this), you will discover that script inside the simpleButton event refers to the instance of the button. see livedocs
you can remove objects with the delete statement.