User Tag List

Results 1 to 7 of 7

Thread: Destroying string objects

  1. #1
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Destroying string objects

    I hope this wasn't answered anywhere, but my searches gave no result.

    It seams we can't destroy a string object. Here's a simple test : put a string object and a counter in your frame, then
    "Upon pressing Space Bar"=> Destroy String Object

    "Always" => Set counter to number of String Objects

    Even after pressing space bar the counter will stay to 1.

    Build244beta3

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2006
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroying string objects

    I see that too. The string dissapears (which is all that really matters) but the counter doesn't change and the debugger still reads 2 objects. Since the string dissapears I don't think it matters much.

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroying string objects

    Actually it does for me
    I sure can find a workaround, but I'd rather have things working properly

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroying string objects

    I don't know if this applies to your situation, but can't you just subtract one from the counter each time a string is destroyed?

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Posts
    302
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroying string objects

    here is a theory:

    when the last string is destroyed, mmf can no longer count the number of strings, cause there are no objects, thus the action has no effect. So instead of setting the value to how many there are, it does nothing.

  6. #6
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Destroying string objects

    I think the String object is a special object and there is always one copy even if there is no more objects in the frame.

  7. #7
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroying string objects

    It's amazing i never realized this

    The part that really bothers me is that a condition such as "Deceleration=100" is always triggered once the last string object is destroyed. But of course we can use workarounds for this.

Similar Threads

  1. unintentionally destroying 2 overlapping objects
    By wizlore in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 21st November 2011, 09:08 AM
  2. creating and destroying objects limit?
    By DaveC in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th September 2011, 09:52 PM
  3. Destroying specific objects which have been create
    By Apex in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 4th September 2011, 01:59 AM
  4. Fade in - out issue when destroying objects
    By AndyH in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 29th October 2010, 02:57 PM
  5. destroying moving string
    By KeithM in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th March 2010, 02:06 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
  •