Cast member name limit bug

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default Cast member name limit bug

    I can assign a long name to a member's name property, but if I try to
    retrieve it by that name, it fails.

    For example, the following statement is successful, and you can even see
    the long name in the cast window:

    MyMember.name = "C:\Dev\Company\Restructure\Source\imported files\more
    imported files\PdcMod1 centered with a really long file name that's now
    even longer.swf"

    However, the following returns an empty member:

    AMember = member("C:\Dev\Vucom\Restructure\Source\imported files\more
    imported files\PdcMod1 centered with a really long file name that's now
    even longer.swf")

    Is this a known bug?

    Gary Guest

  2. Similar Questions and Discussions

    1. 3D cast member access
      hi all, i want to exchange 3d model data with a director app and a 3rd party application at runtime. because the data must go both ways and...
    2. How to let objects in a cast member be a child of agroup(or a model) in another cast member?
      I want to add a model to the scene. I try this code: member('world').newgroup('gr2') member('world').group('gr2').addchild(member('r2').model(1)) ...
    3. 3d cast member with transparent bg
      Hello. I'm trying to implement a simple game like this: - When reached a frame, some new #shockwave3d cast members are created, and each of them...
    4. copy cast member
      Hi, I need making a copy of member 1 from cast 2 to member 3 from cast 1... how to make? please, in lingo...... no (ctrl +c and ctrl+v)
    5. Allow user to print a cast member
      I would like to give the users option to print a small size text file, while they play the Projector. Can anyone tell me what should I do to achieve...
  3. #2

    Default Re: Cast member name limit bug

    Notice the extension .swf has been chopped off the member's name.

    Andrew Morton
    Andrew Morton Guest

  4. #3

    Default Re: Cast member name limit bug

    Andrew Morton wrote:
    > Notice the extension .swf has been chopped off the member's name.
    It's not chopped off for me. I can see the entire name. In fact, I
    copied the name from the cast window and pasted it from there into my
    message.

    Gary Guest

  5. #4

    Default Re: Cast member name limit bug

    i didnt know such a problem existed.
    It does stop working at character 128.(longer names than 127 chars fail)
    seems like a planned limitation...


    gabriel


    Gabriel Guest

  6. #5

    Default Re: Cast member name limit bug

    Here's a workaround I came up with:

    -----------------------------------------------------------------------------
    -- Returns the cast member with the specified name.
    -- Takes into account names longer than 127 characters.
    -----------------------------------------------------------------------------
    on GetIconMember(MemberName)

    if MemberName.length < 128 then
    return member(MemberName)
    else
    repeat with i = 1 to the number of members of castlib "Internal"
    if member(i).name = MemberName then
    return member(i)
    end if
    end repeat
    end if

    return void

    end
    Gary Guest

  7. #6

    Default Re: Cast member name limit bug

    Instead of going through all the trouble of scripting for file names
    that are too long, just stick with the old conventional 8.3 file naming
    scheme.
    I noticed that any file name that's longer than 8.3 gets truncated like
    a DOS name: 123456~1.ext - I saved myself a bunch of headaches by
    sticking with the 8.3 format. I do not know if this applies to later
    versions of Director, but it seems to help in Dir 8.5.

    HTH

    Gary wrote:
    > Here's a workaround I came up with:
    >
    > -----------------------------------------------------------------------------
    >
    > -- Returns the cast member with the specified name.
    > -- Takes into account names longer than 127 characters.
    > -----------------------------------------------------------------------------
    >
    > on GetIconMember(MemberName)
    >
    > if MemberName.length < 128 then
    > return member(MemberName)
    > else
    > repeat with i = 1 to the number of members of castlib "Internal"
    > if member(i).name = MemberName then
    > return member(i)
    > end if
    > end repeat
    > end if
    >
    > return void
    >
    > end
    DigitalPimp Guest

  8. #7

    Default Re: Cast member name limit bug

    The original poster was talking about a limit on a cast member name. You're
    talking about file names.

    If you upgrade to 8.5.1, I think you'll find that your truncation issue will
    disappear.

    Judy

    "DigitalPimp" <dgtlpmp247@netscape.net> wrote in message
    news:bor452$msr$1@forums.macromedia.com...
    > Instead of going through all the trouble of scripting for file names
    > that are too long, just stick with the old conventional 8.3 file naming
    > scheme.
    > I noticed that any file name that's longer than 8.3 gets truncated like
    > a DOS name: 123456~1.ext - I saved myself a bunch of headaches by
    > sticking with the 8.3 format. I do not know if this applies to later
    > versions of Director, but it seems to help in Dir 8.5.
    >
    > HTH
    >
    > Gary wrote:
    >
    > > Here's a workaround I came up with:
    > >
    >
    > --------------------------------------------------------------------------
    ---
    > >
    > > -- Returns the cast member with the specified name.
    > > -- Takes into account names longer than 127 characters.
    >
    > --------------------------------------------------------------------------
    ---
    > >
    > > on GetIconMember(MemberName)
    > >
    > > if MemberName.length < 128 then
    > > return member(MemberName)
    > > else
    > > repeat with i = 1 to the number of members of castlib "Internal"
    > > if member(i).name = MemberName then
    > > return member(i)
    > > end if
    > > end repeat
    > > end if
    > >
    > > return void
    > >
    > > end
    >

    JPrice Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139