Ask a Question related to Macromedia Director Lingo, Design and Development.
-
Gary #1
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
-
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... -
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)) ... -
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... -
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) -
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... -
Andrew Morton #2
Re: Cast member name limit bug
Notice the extension .swf has been chopped off the member's name.
Andrew Morton
Andrew Morton Guest
-
Gary #3
Re: Cast member name limit bug
Andrew Morton wrote:
It's not chopped off for me. I can see the entire name. In fact, I> Notice the extension .swf has been chopped off the member's name.
copied the name from the cast window and pasted it from there into my
message.
Gary Guest
-
Gabriel #4
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
-
Gary #5
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
-
DigitalPimp #6
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
>
> endDigitalPimp Guest
-
JPrice #7
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



Reply With Quote

