My account: Login | Sign Up
Loading... 

'justBeforeDelete' event - it's possible? | Thread profile

Thread profile page for "'justBeforeDelete' event - it's possible?" on http://www.kirupa.com. This report page is a snippet summary view from a single thread "'justBeforeDelete' event - it's possible?", located on the Message Board at http://www.kirupa.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity, which are reported in a table below. Additional thread profile information is also shown in the following ways:

1) Top Contributing Authors
2) Related Threads on "eBay Auctions"
3) Related Threads on Other Sites

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a thread's popularity and/or exact posting volumes at any given reporting period.

Title: 'justBeforeDelete' event - it's possible?
Site: Kirupa Forum  Kirupa Forum - site profile
Forum: ActionScript 3.0  ActionScript 3.0 - forum profile
Total authors: 4 authors
Total thread posts: 12 posts
Thread activity: no new posts during last week
Domain info for: kirupa.com

Thread posts in 'justBeforeDelete' event - it's possible?:

1. 
Started 3 months, 2 weeks ago (2008-06-28 09:00:00)  by ad.sign
Anyone knows a way of setting a method inside a class to execute right before the class instance deletion? Tanks for helping!
Size: 181 bytes
Customize:  Customize "'justBeforeDelete' event - it's possible? :: ActionScript 3.0 :: Kirupa Forum"
2. 
Started 3 months, 2 weeks ago (2008-06-28 09:23:00)  by sekasi
I'm grasping at straws here, but do any of these apply; Event.REMOVED_FROM_STAGE // Obviously not before deletion but chances are you delete your object after you removechild it? Event.REMOVED // No idea what this actually listens for Event.CLOSE // Same here
Size: 426 bytes
Customize:  Customize "<b>Reply 1</b>: 'justBeforeDelete' event - it's possible? :: ActionScript 3.0 :: Kirupa Forum"
3. 
Started 3 months, 2 weeks ago (2008-06-28 09:51:00)  by ad.sign
Yeah, REMOVED_FROM_STAGE could be a way to go, but I'm actually concerned to do that before deletion of any type of AS3 object, not only the DisplayObject ones. REMOVED listens for the instance time just before the stage removal, and CLOSE listens for socket communications closures. I was wandering if there's any type of AS2 '__resolve' method I could put inside my class, but for just-...
Size: 745 bytes
Customize:  Customize "<b>Reply 2</b>: 'justBeforeDelete' event - it's possible? :: ActionScript 3.0 :: Kirupa Forum"
4. 
Started 3 months, 2 weeks ago (2008-06-28 10:01:00)  by sekasi
Sorry, not much. I mean the replacement for resolve are proxies. with override function etc..
Size: 132 bytes
Customize:  Customize "<b>Reply 3</b>: 'justBeforeDelete' event - it's possible? :: ActionScript 3.0 :: Kirupa Forum"
5. 
Started 3 months, 2 weeks ago (2008-06-28 10:17:00)  by ad.sign
I've tried extending Proxy and overriding the deleteProperty(name*):Boolean, and it does work for inner properties of my object. But my object itself cannot be deleted this way because delete is a statement. So in order to do that I should find ways to make the object container to extend proxy - what is unpractible. What do you think? Should Adobe implements that kind of feature?
Size: 438 bytes
Customize:  Customize "<b>Reply 4</b>: 'justBeforeDelete' event - it's possible? :: ActionScript 3.0 :: Kirupa Forum"
6. 
Started 3 months, 2 weeks ago (2008-06-28 10:20:00)  by ad.sign
And to make things worse, 'delete this;' returns true. But object doesn't go away, it keeps tracing and acting to external prompts... I can even keep calling its methods. LOL
Size: 213 bytes
Customize:  Customize "<b>Reply 5</b>: 'justBeforeDelete' event - it's possible? :: ActionScript 3.0 :: Kirupa Forum"
7. 
Started 3 months, 2 weeks ago (2008-06-28 13:15:00)  by sekasi
Well that's a different story, stuff doesn't go away after a delete if it has references to it like listeners or whatnot..
Size: 161 bytes
Customize:  Customize "<b>Reply 6</b>: 'justBeforeDelete' event - it's possible? :: ActionScript 3.0 :: Kirupa Forum"
8. 
Started 3 months, 2 weeks ago (2008-06-28 14:39:00)  by sekasi
quite frankly I don't see what the difference between an justbeforedelete event and something like calling a public function int he class, waiting for a event (custom event dispatch) and THEN delete it.. like a delete proxy in the main class.
Size: 281 bytes
Customize:  Customize "<b>Reply 7</b>: 'justBeforeDelete' event - it's possible? :: ActionScript 3.0 :: Kirupa Forum"
9. 
Started 3 months, 2 weeks ago (2008-06-28 16:33:00)  by Krilnon
Flash definitely doesn't support finalizers.
Size: 83 bytes
Customize:  Customize "<b>Reply 8</b>: 'justBeforeDelete' event - it's possible? :: ActionScript 3.0 :: Kirupa Forum"
10. 
Started 3 months, 1 week ago (2008-06-30 07:51:00)  by ad.sign
Sekasi, I see big difference. In your example we should get an external 3 step code to delete that instance. If we could count on a event like we're talking about, it should be reduced to 0. Krilnon, what other languages you know that support finalizers? Tanks everyone!
Size: 343 bytes
Customize:  Customize "<b>Reply 9</b>: 'justBeforeDelete' event - it's possible? :: ActionScript 3.0 :: Kirupa Forum"
 

Top contributing authors for 'justBeforeDelete' event - it's possible?

Name Posts
ad.sign 5
sekasi 4
Krilnon 2
McGuffin 1