User Tag List

Results 1 to 3 of 3

Thread: Oddity: xPos array on drawing text is set to 100

  1. #1
    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)

    Oddity: xPos array on drawing text is set to 100

    I had some trouble loading a frame after adding a debug string to it - it caused an IndexOutOfBoundsException on line 291 of CServices.cs, in the drawIt function ( xPos[currentXPos] = x; ) I'm not entirely sure what the xPos array does, but I'm guessing that it keeps track of the X offset of the characters to draw in the string? It's always initialized to 100 on line 251, so I think this causes an exception for strings that can display over 100 characters on one line... I've patched over it temporarily by upping the array length to 1000.

    Code:
                if (xPos == null)
                {
                    xPos = new int[1000];
                }
    I can private-message the MFA that does this, if needed.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    I'll have a look at it when my work on MMF2.5 is complete (end of the month

  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)
    Thanks - I'm happy to have that prioritized

Similar Threads

  1. [BUG RC1] Clear Text Array
    By kiko in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 14th May 2013, 06:02 PM
  2. Always set xpos to a relative value
    By ac3raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th August 2011, 02:55 AM
  3. Loading text into an array
    By KeithM in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th March 2010, 10:30 AM

Posting Permissions

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