User Tag List

Results 1 to 5 of 5

Thread: [Request] 'Destructor' conditions

  1. #1
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Request] 'Destructor' conditions

    something that would make handling the destruction of objects a little easier would be a special "destructor" condition (as "Destroyed" or similar under an object's conditions menu)

    it would be a triggered event, of course, which is called when an object is destroyed; not just from the Destroy action, but also by anything else that destroys an object, such as "destroy object if too far from frame". i'm not sure if you can even check for when the latter happens and handle objects accordingly, unless you code the whole "far from frame" thing yourself

    there might also be an expression along the lines of destructor("Object"), which returns a certain value representing exactly what called the destructor. some ideas i had in mind for this value:

    0 - destructor hasn't been called
    1 - destructor called by Destroy action
    2 - destructor called by "too far from frame"
    3 - destructor called due to Next Frame/Restart Frame/Jump To, etc
    4, 5, etc - other ones i have missed

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] 'Destructor' conditions

    a brilliant idea

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] 'Destructor' conditions

    I agree.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] 'Destructor' conditions

    So do I
    For the expression, there should also be a number for "Destroyed by an extension".

  5. #5
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] 'Destructor' conditions

    Agreed, there's numerous ways an object might die and it would be useful for any user-side cleanup.

Similar Threads

  1. Less VS More conditions
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th December 2011, 09:24 AM
  2. What is Immediate conditions?
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th May 2009, 08:12 AM
  3. OR ? Smaller conditions
    By Blood_Wist in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th December 2008, 09:49 AM
  4. AND conditions
    By maestro1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th February 2008, 08:11 AM
  5. AND OR conditions
    By Golds in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 7th September 2007, 01:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •