User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: [BUG] Crash with Global Hand and Invisible String

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [BUG] Crash with Global Hand and Invisible String

    So if you do these three things a SWF application will crash:

    • Have an invisible string
    • (SWF Object) Change the Global Hand to ON (doesn't matter if it is turned back off again later)
    • Change to another frame


    Example:
    http://s-cdn.com/temp/andy/bug/SWFStringCrash.html
    Press 'space' at anytime and the application will freeze.

    Temporary Workaround:
    Leave the string invisible and move it offscreen.

    This may sound like an unlikely sequence of events but in a game I am working on right now I really need these things. I am using an invisible string to hold map data, the Global Hand turns on when the player is over a button and I need to change to another frame for the next screen.

    Tested in Firefox 3.6.6 and IE 8 with Flash Version: 10.1.53.64
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: [BUG] Crash with Global Hand and Invisible String

    For Francois - what happens is this fails when the global hand is turned to on:

    Code:
    RangeError: Error #2006: The supplied index is out of bounds.
    	at flash.display::DisplayObjectContainer/addChildAt()
    	at Objects::CText/setHandCursor()
    causing this to happen when the object is destroyed, because the child doesn't exist:

    Code:
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
    	at flash.display::DisplayObjectContainer/getChildIndex()
    	at Objects::CText/delSprite()
    	at Sprites::CRSpr/kill()

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [BUG] Crash with Global Hand and Invisible String

    Strange - I wonder if it's somehow related to my recent thread on invisible strings as well, and them not being counted in the object list in some way or another... no idea why moving it off-screen would help with that, though.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [BUG] Crash with Global Hand and Invisible String

    For the 'workaround' of moving it offscreen, I just meant that instead of making the string invisible I have been moving it offscreen where it can't be seen instead. If I made it invisible and moved it offscreen it would still crash.

    I think you're right in saying it might be related to the post you made. At any rate, there seems to be some problems with invisible strings.

  5. #5
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [BUG] Crash with Global Hand and Invisible String

    Ah - yes, that was actually my solution to my strings issue as well - instead of making strings invisible, their Y position is just set to beyond the bottom of the screen.

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: [BUG] Crash with Global Hand and Invisible String

    Why not just set thier alterable string to "" ?
    Working as fast as I can on Fusion 3

  7. #7
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [BUG] Crash with Global Hand and Invisible String

    That can work, but sometimes you don't want to do that, if you're relying on the content of a string even though it happens to be invisible at the time.

  8. #8
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: [BUG] Crash with Global Hand and Invisible String

    In that case why not add spaces so that it goes outside the string bounding box and thus can't be seen?
    Working as fast as I can on Fusion 3

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [BUG] Crash with Global Hand and Invisible String

    What's wrong with moving it? :/

  10. #10
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: [BUG] Crash with Global Hand and Invisible String

    It can be seen with the zoom glitch.
    Working as fast as I can on Fusion 3

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Using a Global Value within Global String?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 20th August 2013, 12:32 PM
  2. Set global hand cursor on, messes up transparency!
    By SoftWarewolf in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 19th June 2012, 07:15 AM
  3. Crash with edit box and set global string
    By MJK in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 12th September 2011, 07:58 AM
  4. [BUG] Global Value and Global String the same name
    By LB in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 18th January 2010, 09:11 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
  •