lingo-l duplicate cast members

2004-08-14 Thread Slava Paperno
Every now and then I see a duplicate of a cast member (a script) appear for no 
apparent reason. Both copies have the same name, different dates, and different cast 
member number--and identical text (unless I edit one before I notice the duplicate). 
I've seen this happening in Dir MX 9, and I remember this was mentioned as a problem 
that was resolved in an update--but this is now happening in MX 10 (Windows XP), so it 
must be me doing something dumb. What can it be???

I don't see cast members of any other type cloning themselves--only behaviors and 
movie scripts--but that may be because most of my work involves behaviors and scripts. 
I use the New Script Window menu command pretty often--could this be related? I've 
never been able to catch a member in the act... always notice them later.

Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l Esc key and exitLock in Dir 10

2004-08-01 Thread Slava Paperno
Thanks, Sean! Yes, in OS X, the closeRequest handler is called when you click the Quit 
command in the OS X system menu or the Close box in the projector's title bar, and 
also when you press Escape (with exitLock set to true). Perfect!

closeRequest is not in Dir MX 10 Help, but there is a Technote on it at 
http://www.macromedia.com/support/director/ts/documents/closerequest.htm. It says this 
is an undocumented feature of Dir MX 10.

For some reason, the Escape key is mentioned in the Technote as pertaining to Windows 
only. I see it doing exactly the same thing in OS X (Panther).

Slava

At 07:58 AM 7/27/04 +1200, you wrote:

It seems that even in Dir 10 there's no way to trap the Esc key when exitLock is set 
to false. I other words, suppose I want to enable the standard OS X ways of quitting 
the application--the X button and the Quit command in the system menu--but don't 
want Esc to close the projector. Is there a way to do that?

Director 10 Help says that Escape key is also supported in Windows. It doesn't 
list Escape among the keypresses that quit the projector. Bu on my OS X Mac, Escape 
quits the projector unless exitLock is true. I want to enable the X button and the 
Quit command in the system menu, but I don't want Escape to close the application.

Is there a way?

I don't have a machine running OSX handy to test, but can you set the exitLock to 
TRUE and call quit from an on closeRequest handler (which should be called when the 
user clicks on the close control)? I'm not sure though if this handler fires when you 
choose Quit from the system menu.

Sean Wilson 

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Re: lingo-l Esc key and exitLock in Dir 10

2004-08-01 Thread Slava Paperno
You're right, Jeff--I still can't trap the Escape key when the projector runs under OS 
X. I wanted to use Escape for other purposes, like I do in Windows. Bummer.

S.

At 10:10 AM 8/1/04 -0700, you wrote:
At 1249 -0400 08/01/2004, Slava Paperno wrote:
Thanks, Sean! Yes, in OS X, the closeRequest handler is called when you click the 
Quit command in the OS X system menu or the Close box in the projector's title bar, 
and also when you press Escape (with exitLock set to true). Perfect!
...

Well, ALMOST perfect. :)  Perfection would have to include passing a parameter along 
with the event that says by which widget/method the user requested the close.  That 
way we could have a different response, when appropriate, for ESC, Alt-F4, Cmd-Q, the 
Close Box, etc.
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Re: lingo-l Esc key and exitLock in Dir 10

2004-08-01 Thread Slava Paperno
This works in Windows, where I use QuitMsg from mediamacros, but I can't find a way to 
make it work in OS X. With exitLock set to true, pressing Esc calls up closeRequest 
exactly the way it is called up when the user clicks the Close button in the title bar 
or the Quit command in the application's system menu or the Dock. As Jeff pointed out, 
there's no way to tell what called closeRequest--the Esc key or one of the other 
methods.

I'd be happy if someone could prove me wrong.

S.

At 11:32 AM 8/2/04 +1200, you wrote:

You're right, Jeff--I still can't trap the Escape key when the projector runs under 
OS X. I wanted to use Escape for other purposes, like I do in Windows. Bummer.

Hang on - can't you set the exitLock so that it won't quit your projector and set a 
keyDownScript to monitor for the escape key's keyCode and respond appropriately? This 
is what I've done on Windows prior to DMX 2004.


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Re: lingo-l Esc key and exitLock in Dir 10

2004-08-01 Thread Slava Paperno
I should have added that in OS X closeRequest is called BEFORE the keyDownScript 
handler or a keyDown test can be applied--Esc seems to bypass that test.

S.

At 07:50 PM 8/1/04 -0400, you wrote:
This works in Windows, where I use QuitMsg from mediamacros, but I can't find a way 
to make it work in OS X. With exitLock set to true, pressing Esc calls up 
closeRequest exactly the way it is called up when the user clicks the Close button in 
the title bar or the Quit command in the application's system menu or the Dock. As 
Jeff pointed out, there's no way to tell what called closeRequest--the Esc key or one 
of the other methods.

I'd be happy if someone could prove me wrong.

S.

At 11:32 AM 8/2/04 +1200, you wrote:

You're right, Jeff--I still can't trap the Escape key when the projector runs under 
OS X. I wanted to use Escape for other purposes, like I do in Windows. Bummer.

Hang on - can't you set the exitLock so that it won't quit your projector and set a 
keyDownScript to monitor for the escape key's keyCode and respond appropriately? 
This is what I've done on Windows prior to DMX 2004.


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l how to crash Dir MX 9 and 10 in Mac OS X

2004-07-31 Thread Slava Paperno
My movie was written entirely in Windows--first in Dir MX 9, then in MX 10. I've just 
started testing it in Dir MX 9 and 10 under Mac OS X and discovered that a certain 
block of Lingo always crash Director, causing it to close without a warning or any 
error messages. I wonder if this is a well-known thing.

My beginSprite hanlders used this sequence:

on beginSprite me
  sprite(me.spriteNum).loc = point(X, Y)
  sprite(me.spriteNum).member.font = gMyFont
  sprite(me.spriteNum).member.fontSize = gMyFontSize
  sprite(me.spriteNum).member.color = gMyFontColor
  sprite(me.spriteNum).member.bgColor = gMyBgColor
end

The same field member is always assigned to each sprite--that assignment does not 
change as the movie runs and is not even made through Lingo.

The statements that manipulate the member's properties work fine in Windows, but cause 
Director to quit without a warning in Mac OS X--every time, like a clock.  When the 
same block of Lingo was moved to a movie script, the crashes stopped.

I think I can see that there may be a timing issue when the sprite's member reference 
is not yet valid until after beginSprite has run. Or is it something else? It's 
curious that this has never caused a problem in Windows, on a machine that is in the 
same processor speed category, more or less.

Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l baOpenURL() fails for local file in Panther

2004-07-26 Thread Slava Paperno
In my movie, both in projector and authoring, baOpenURL() works for remote Web pages 
(http:// etc) but fails for a local file. It returns 1 as if the browser was 
successfully opened, but in fact the browser is closed.

This is under OS X 10.3.4. Can someone confirm or disprove this, please?

This is with Director 10, and the default browser is Safari 1.2.2 that came with the 
OS.

if baFileExists(the moviePath  help.htm) then
 PUT baOpenURL(the moviePath  help.htm, )
end if

Thanks,

Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l misbehaving scrollbar on Mac OS X

2004-07-25 Thread Slava Paperno
I have a movie where the text members' scrollbars msibehave in a particular way, and I 
wonder if there's a cure for that--or if that's something I'm ignorant about.

The text member is assigned to the sprite when the playhead enters the frame. In 
several frames, the same sprite has different text members assigned to it.

The member is sometimes taller than the sprite, and sometimes not. A handler looks at 
the two heights and changes the boxType of the member accordingly (#fixed or 
#scrolled).

The problem I see is that when the text member is given a #scroll boxType, the 
scrollbar that appears looks like a portion of the normal scrollbar: it has only the 
up-arrow, and a portion of the slider.

This happens only to relatively short members (the sprite height is about 50 pixels, 
the memebr height is about 100 pixels, and the font size is such that two or three 
lines can fit, with one or two lines being scrolled off. But the sprite is tall enough 
for the scrollbar to show both buttons, and I have seen sprites the same height that 
do have normal scrollbars--even in the same move.

It doesn't matter whether the boxType is changed through Lingo or Property Inspector: 
if I use the PI and select #fixed, I see what one expects to see; if I then select 
#scroll, I see a chopped-off scrollbar with only one button.

Thi is under OS X 10.3.4 (aka Panther), with Director 10 (MX 2004), in authoring.

Thanks for any tips!

Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l Esc key and exitLock in Dir 10

2004-07-25 Thread Slava Paperno
It seems that even in Dir 10 there's no way to trap the Esc key when exitLock is set 
to false. I other words, suppose I want to enable the standard OS X ways of quitting 
the application--the X button and the Quit command in the system menu--but don't want 
Esc to close the projector. Is there a way to do that? 

Director 10 Help says that Escape key is also supported in Windows. It doesn't list 
Escape among the keypresses that quit the projector. Bu on my OS X Mac, Escape quits 
the projector unless exitLock is true. I want to enable the X button and the Quit 
command in the system menu, but I don't want Escape to close the application.

Is there a way?

Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l projector icon formats in OS X

2004-07-25 Thread Slava Paperno
What graphic formats does the projector icon accept in Publish Settings under Mac OS 
X 10.3 (Panther)? I've tried pict and tif and png, but my projector still has the 
standard Director icon. Help doesn;t explain this, a search for a technote doesn'r 
bring anything up, and I don;t have the manuals. Thanks for any tips!

A related question: I want to use transparency in my icons, and this used to work by 
pasting an image into the Get Info window, but now my transparent areas come out 
black. What am I doing wrong?

I thought there was an icon editing utility in OS X, but I cant find it...

Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l Do MX 9 and MX 2004 co-exist?

2004-07-15 Thread Slava Paperno
The Upgrade Guide on the MM site doesn't mention this. Can someoone please tell me if 
the MX 9 continues to function normally on a Windows XP machine where the new MX 2004 
is installed?

Thanks!

Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


RE: lingo-l All those DLLs

2004-07-15 Thread Slava Paperno
Tom,

Shouldn't your Point 4 include and any subfolders within it? I've always used 
subfolders within the Xtras folder but never knew how many levels down the projector 
looks. It might be useful to know. Thanks for an excellent writeup, I'll save it. 

Slava

At 10:36 AM 7/15/04 -0700, you wrote:
Upon projector launch the code follows this detection process:

1. Look inside the projector, are the DLL's there? If yes, unpack them to a temp 
directory and link against those temporary copies. If not proceed to step 2.

2. Look next to the projector, are the DLL's there? If yes, load and use those 
copies. If not proceed to step 3.

3. (D8 and newer only, if in D7 go to step 4) Look for a folder named Xtras next to 
the projector, are the DLL's there? If yes load and use those copies. If not proceed 
to step 4.

4. Check the system directory for copies of the needed DLL files, if found load and 
use them, if not the projector launch fails.
...

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l Director error code -1101

2004-07-11 Thread Slava Paperno
Sorry to bother you guys with a trivial question, but I did look at the MM site first: 
where is a table of Director MX (9) error codes? Is -1101 in that table? I'm getting 
it when trying to encode a wave to MPEG3 in WIndows XP using AudioXtra (but it's not 
an AudioXtra code). Thanks!

Slava  

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Re: lingo-l Director error code -1101

2004-07-11 Thread Slava Paperno
Thanks to Pedja and Colin for responding. Pedja's suggestion won't work for me because 
I need to convert wave and aiff files at runtime, in projector. I don't know of a 
Lingo equivalent to convert swa to wav, and that command doesn't even exist on the 
Mac. Colin's guess doesn't seem to apply because baFileExists() finds the file, and 
the Audio Xtra plays the file fine. Here's the complete problem, using AudioXtra, 
which in turn uses Director's built-in 32 Kbs mp3  (as I understand it):

PUT baFileExists(locInputFile)
-- 1
PUT locOutputFile
-- C:\WALSampler\WalSampler\test.mp3
PUT axLoadSound(Current, file, locInputFile)
-- 0
PUT axGetSoundList()
-- [Test, Current]
PUT axPlay(locCurrSoundName)
-- 0 [the sound plays fine]
PUT axGetEnvironmentInfo(convertNumChannels) 
-- 1
PUT axGetEnvironmentInfo(convertSampleRate)
-- 44100
PUT axGetEnvironmentInfo(convertSampleDepth)
-- 16
locFormatString = MPEG3
PUT axGetEnvironmentInfo(availableConversionFormats) contains locFormatString
-- 1
PUT axConvertToFile ( locCurrSoundName, locOutputFile, locFormatString) 
-- -1101

-1101 is not an AudioXtra error code.

Any tips would be appreciated.

Slava

At 09:49 AM 7/11/04 -0400, you wrote:
I think that error -1101 is file/folder not found. That would suggest you're trying 
to read from a file that isn't there.

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l Director error code -1101

2004-07-11 Thread Slava Paperno
At 10:49 AM 7/11/04 -0400, Colin Holgate wrote:
Do you have write access to C:\WALSampler\WalSampler\?

Yes, I successfully used Director's Convert WAV to SWA for this file, placing the 
output in the same folder. So it appears Director has no trouble writing to that 
folder. I even wondered if the subfolder name being the same as the folder name may 
screw things up, and renamed it, but the result is the same. Thanks again. S.

S. 

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l Director error code -1101

2004-07-11 Thread Slava Paperno
Maurucio has now sent me a projector that he built under DMX 2004. Like on your 
system, it returns error -84 for recordings at 22050 /16 / 2 and 44100 /16 / 2, but 
succeeds without complaining for mono recordings at the same two sample rates.

The mono recordings it produces are actually 16 KBits/sec, not 32. I suppose the 32 
rate that is quoted is for stereo? The 5 second mono recording that Mauricio's test 
projector made for me is 10, 126 bytes.

I don't know if you ever ran into this, but with Audio Xtra 4.1, I was never able to 
record at 22050 under Windows XP. Under Windows 2000, fine, but the recordings made at 
22050 on all Win XP machines I tried crash Director when played back. At the same 
time, they play fine in other applications, like Sound Recorder and various sound 
editors. Scott and Gertrude tried to troubleshoot that, but couldn't find the culprit. 
I had to rectrict my product to recording at 11025 or 44100 on XP machines.

Slava

At 01:36 PM 7/12/04 +1200, you wrote:

Sorry, I steered you wrong there. With DMX2004 I get an error code of -84 returned 
(which also doesn't belong to the Audio xtra).

And one final update before we should perhaps take it off-list: it works with DMX2004 
if I record mono, or use axSetEnvironmentInfo(convertNumChannels, 1) prior to 
axConvertToFile() and I can find NO combination that works with DMX

-Sean 

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l stopEvent and the Function keys

2004-07-02 Thread Slava Paperno
Thanks for your response, Kurt. I'm sure input can be validated that way, although 
it's not very efficient, especially since my users' input comes from the entire range 
of ANSI 32 to 255 decimal, and the offset function insists on using its own judgement 
on character equivalencies (lower  case vs. upper case vs. accented characters in 
various languages don't coincide). When I need an offset, I have to go by ANSI 
numbers. This may not apply to the characters that are entered by function keys... 
Still, it would be cleaner to stop the event.

So we still don't know if it's true and legitimate behavior for a projector to treat 
certain function keys diferently from other function keys and from other keys... they 
can be detected but not stopEvent'ed. Bummer! All these workarounds when there's a 
suppsoed to be a straightforward mechanism...

But thanks for writing. I'll probably use your solution.

Slava

At 12:44 PM 7/2/04 -0400, Kurt Griffin wrote:
I'm trying to intercept and cancel function key presses by using statements like 
this in the handler that is assigned as the keyDownScript:

if the keyCode = 11 then  --the F 12 key
   stopEvent
   exit
end if

The values of keyCode for the function keys are between 96 and 101, and also 103, 
109, and 11. The reason I want to intercept these keypresses is that they enter junk 
into the editable member that has the focus.

My intercept works for all function keys except F1, F2, F4, and F12. The interesting 
part is that any of these keypresses is detected, but only the other function key 
presses can be stopped. The F1, F2, F4, and F12 seem to be impervious to stopEvent. 
What am I doing wrong? How do I stop these keys from entering junk into editable 
members?

This is in Dir MX (9) and Windows XP.

Well, you could tackle it from the other direction. Make a string of acceptable 
characters, and do something like this:

(untested email code, in the form of a behavior for your editable text sprite)
--
property pAcceptableCharsString = abcdefghijklmnopqrstuvwxyz1234567890!,.:;'? etc.

on keyUp me
  if offset(the key, pAcceptableCharsString)  0 then
pass
  end if
end
--

hth,
Kurt

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l stopEvent and the Function keys: (messy) solution

2004-07-02 Thread Slava Paperno
Thanks to everyone who responded or thought about this. Function keys on a PC can be 
detected by their keyCodes, but it's messy because F12 has the same keyCode (11) as 
the key for the letter B. In a projector, all function keys input character decimal 16 
into an editable field. So my solution is first to try and detect those function keys 
that my projector makes use of by their keyCode values. Next, detect the other ones by 
this condition: (CharToNum(the key) = 16) and use stopEvent to cancel them

I still don't know how one would detect the F12, or why F1, F2, and F4 can be detected 
but cannot be stopEvent'ed.

Slava

At 01:30 PM 7/2/04 -0400, Slava Paperno wrote:
At 12:44 PM 7/2/04 -0400, Kurt Griffin wrote:
I'm trying to intercept and cancel function key presses by using statements like 
this in the handler that is assigned as the keyDownScript:

if the keyCode = 11 then  --the F 12 key
   stopEvent
   exit
end if

The values of keyCode for the function keys are between 96 and 101, and also 103, 
109, and 11. The reason I want to intercept these keypresses is that they enter 
junk into the editable member that has the focus.

My intercept works for all function keys except F1, F2, F4, and F12. The 
interesting part is that any of these keypresses is detected, but only the other 
function key presses can be stopped. The F1, F2, F4, and F12 seem to be impervious 
to stopEvent. What am I doing wrong? How do I stop these keys from entering junk 
into editable members?

This is in Dir MX (9) and Windows XP.

Well, you could tackle it from the other direction. Make a string of acceptable 
characters, and do something like this:

(untested email code, in the form of a behavior for your editable text sprite)
--
property pAcceptableCharsString = abcdefghijklmnopqrstuvwxyz1234567890!,.:;'? etc.

on keyUp me
  if offset(the key, pAcceptableCharsString)  0 then
pass
  end if
end
--

hth,
Kurt

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l F12 defamation retracted

2004-07-02 Thread Slava Paperno
I have to apologize to the F12 key: it returns keyCode 11 only on my PC with the 
Russian keyboard driver activated. It normally returns keyCode 111.

Humbly,

S.

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l stopEvent and the Function keys

2004-07-01 Thread Slava Paperno
I'm trying to intercept and cancel function key presses by using statements like this 
in the handler that is assigned as the keyDownScript:

if the keyCode = 11 then  --the F 12 key
   stopEvent
   exit
end if

The values of keyCode for the function keys are between 96 and 101, and also 103, 109, 
and 11. The reason I want to intercept these keypresses is that they enter junk into 
the editable member that has the focus.

My intercept works for all function keys except F1, F2, F4, and F12. The interesting 
part is that any of these keypresses is detected, but only the other function key 
presses can be stopped. The F1, F2, F4, and F12 seem to be impervious to stopEvent. 
What am I doing wrong? How do I stop these keys from entering junk into editable 
members?

This is in Dir MX (9) and Windows XP.

Thanks,

Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Re: lingo-l stopEvent and the Function keys

2004-07-01 Thread Slava Paperno
Hm... I must be missing something important here. How exactly do I do this with Buddy 
API? I want to allow input to editable fields and I want to stop the function keys 
from inputting junk... What Buddy API calls do you recommend? Thanks! S.

At 07:40 PM 7/1/04 -0400, you wrote:
I think buddyAPI could help with this if the keycode stuff isn't working out...

~Mathew

Slava Paperno wrote:
I'm trying to intercept and cancel function key presses by using statements like 
this in the handler that is assigned as the keyDownScript:
if the keyCode = 11 then  --the F 12 key
   stopEvent
   exit
end if
The values of keyCode for the function keys are between 96 and 101, and also 103, 
109, and 11. The reason I want to intercept these keypresses is that they enter junk 
into the editable member that has the focus.
My intercept works for all function keys except F1, F2, F4, and F12. The interesting 
part is that any of these keypresses is detected, but only the other function key 
presses can be stopped. The F1, F2, F4, and F12 seem to be impervious to stopEvent. 
What am I doing wrong? How do I stop these keys from entering junk into editable 
members?
This is in Dir MX (9) and Windows XP.
Thanks,
Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l hex 07 06 in output file resolved

2004-06-29 Thread Slava Paperno
A few days ago, I posted a message about the hex 97 06 characters in my output files 
that were supposed to be plain text. I wrote them out using Ultimate File IO Xtra from 
http://www.reallingo.cc (RealLingo.cc). It turned out that the Xtra uses these two 
characters as a delimiter when appending to files so you can later find your splices 
in the file with the read function in the same Xtra. This, of course, makes your files 
no plain text. I wrote to Mike at RealLingo, and he saw my point right away and made 
the delimiters an option by adding another parameter to the function call. A mystery 
solved!

Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Re: lingo-l Text question

2004-06-28 Thread Slava Paperno
You have to do this manually, through lingo. E.g., if you put a button on the stage 
that says Italics, this would be the button's script:

on mouseUp me
  locFocusMember = sprite(the keyboardFocusSprite).member 
  
  if locFocusMember.type  #text then
alert Before using this button, select the text.
exit
  end if
  
  locSelStart = locFocusMember.selection[1] --boundaries of current selection in the 
text box, if any
  locSelEnd = locFocusMember.selection[2] --boundaries of current selection in the 
text box, if any
  
  if (locSelStart = 0) or (locSelStart = locSelEnd) then
alert Before using this button, select the text.
  else
  locFocusMember.char[locSelStart..locSelEnd].fontStyle = [#italic]
  end if
end mouseUp

Slava

At 12:16 PM 6/28/04 -0500, you wrote:
In a editable text member, can you edit the format on a word or words
while the movie is playing? So, in the statement (Hello, World) changing
the word Hello to a different color and font size. 


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l CR, LF, and RETURN

2004-06-26 Thread Slava Paperno
I thought I understood the CR/LF situation vis-a-vis RETURN until today I discovered 
that RETURN is written out to a text file as chars hex 07 and 06... Where did these 
come from? What am I missing? I'm using the Ultimate FileIO Xtra to write strings to a 
file. This is with Dir MX (9) and Win XP.

Any bright light shed on this would be appriciated on this dark night... Or maybe I 
should just go to bed.

Thanks!

Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l Video Recommedations in Director

2004-06-09 Thread Slava Paperno
All that being absolutely correct, I want to report that my MPEG-1 videos are 720 x 
400, and so far (after a year) I haven't run into any problems. I compress with vegas 
and playback with MpegAdvance Xtra from Tabuleiro, cross-platform.

Slava

At 06:27 PM 6/9/04 +0200, Bertil Flink wrote:
 For MPEG1, I would use 400x304 instead of 400x300. MPEG1 compresses in 16
 pixel blocks, so for the best quality/most efficient MPEG1 you should always
 use dimensions that are divisible by 16.
 

Or 384 x 288, which seems to be more common.

Bertil Flink
Creative Media

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l Sorting Challenge

2004-05-31 Thread Slava Paperno
Is there an xplat Xtra that expands Directors limited ability to sort lists?

Or, can someone please advise me on how to implement this sort?

I have a linear list where the value of each item is a property list,
[  [#Prop1: abc, #Prop2: 02, #Prop3: 02],
   [#Prop1: abc, #Prop2: 02, #Prop3: 01],
  [#Prop1: xyz, #Prop2: 02, #Prop3: 01],
  [#Prop1: abc, #Prop2: 01, #Prop3: 01],  ]

I need to sort the outer linear list on the compound values of the three properties in 
the inner lists, so I get this:

[  [#Prop1: abc, #Prop2: 01, #Prop3: 01],
   [#Prop1: abc, #Prop2: 02, #Prop3: 01],
   [#Prop1: abc, #Prop2: 02, #Prop3: 02],
   [#Prop1: xyz, #Prop2: 02, #Prop3: 01]  ]

If this were a database table with three fields and four records, I'd use a compound 
index, Prop1 + Prop2 + Prop3. How can I achieve the same result in Director MX?

The size of my lists and the number of properties in each list are quite modest, so 
peformance is not really an important factor.

Any advice will be appreciated.

Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l Sorting Challenge

2004-05-31 Thread Slava Paperno
Thanks to all for your instant solutions! You're great. S.

At 01:16 PM 5/31/04 -0400, grimmwerks wrote:
Well, if you were using 2004 and created a global flash object, then you
could toss each of these into an associative array, then sort using the
properties quite easily.

At 01:28 PM 5/31/04 -0400, Mathew wrote:
Hi Slava,

Here is a simple solution using lingo only:

Create a new holder and set it to be sorted.

Loop through each of your items(that have prop1, prop2, prop3) and add them to a 
'sortkey' property:
[
   [#sortkey:_abc_02_02, [#Prop1: abc, #Prop2: 02, #Prop3: 02]],
   [#sortkey:_abc_02_01, [#Prop1: abc, #Prop2: 02, #Prop3: 01]],
   [#sortkey:_xyz_02_01, [#Prop1: xyz, #Prop2: 02, #Prop3: 01]],
   [#sortkey:_abc_01_01, [#Prop1: abc, #Prop2: 01, #Prop3: 01]]
]

The first _ is in there cause props can't start with a number, in the case that you 
want to sort by prop 2 or 3 as the first sortitem.

The items should be sorted properly, and you can loop through the list to recreate 
the original list in a sorted format.

This works ok for medium to small lists... if you are doing anything huge keep in 
mind this solution is O(2n) complexity - it will ALWAYS have to traverse all the 
items in the list once to assign the key, and another time to write the new list back 
out.

Anyone have any other methods they use?

~Mathew

At 07:11 PM 5/31/04 +0200, Per-Erik wrote:
I'd create a new list with the values of the combine properties and sort
that one and in the same time making the same changes to the original list.

My code:

on sortList iList
  -- Creating the list to sort --
  tList = []
  repeat with tData in iList
-- This is similar to the 'Prop1 + Prop2 + Prop3' you used. --
tValue = tData[#Prop1]  tData[#Prop2]  tData[#Prop3]
tList.append(tValue)
  end repeat
  
  -- Tha actual sorting --
  tCount = iList.count
  repeat with i = 1 to tCount - 1
j = tCount
repeat while j  i
  -- Checking the list you just created --
  if tList[j-1]tList[j] then
-- Making the change in the list you crated --
tData  = tList[j-1]
tList[j-1] = tList[j]
tList[j]   = tData

-- Making the change in the original list --
tData  = iList[j-1]
iList[j-1] = iList[j]
iList[j]   = tData
  end if
  j=j-1
end repeat
  end repeat
  return iList  
end

on test
  tt = [  [#Prop1: abc, #Prop2: 02, #Prop3: 02],  [#Prop1: abc,
#Prop2: 02, #Prop3: 01],  [#Prop1: xyz, #Prop2: 02, #Prop3: 01],
[#Prop1: abc, #Prop2: 01, #Prop3: 01]]
  put sortList(tt)
end

-- [[#Prop1: abc, #Prop2: 01, #Prop3: 01], [#Prop1: abc, #Prop2:
02, #Prop3: 01], [#Prop1: abc, #Prop2: 02, #Prop3: 02], [#Prop1:
xyz, #Prop2: 02, #Prop3: 01]]

Hope this help.

/Per-Erik Bergman
http://www.uncle.nu/




Slava Paperno wrote:
Is there an xplat Xtra that expands Directors limited ability to sort lists?
Or, can someone please advise me on how to implement this sort?
I have a linear list where the value of each item is a property list,
[  [#Prop1: abc, #Prop2: 02, #Prop3: 02],
   [#Prop1: abc, #Prop2: 02, #Prop3: 01],
  [#Prop1: xyz, #Prop2: 02, #Prop3: 01],
  [#Prop1: abc, #Prop2: 01, #Prop3: 01],  ]
I need to sort the outer linear list on the compound values of the three properties 
in the inner lists, so I get this:
[  [#Prop1: abc, #Prop2: 01, #Prop3: 01],
   [#Prop1: abc, #Prop2: 02, #Prop3: 01],
   [#Prop1: abc, #Prop2: 02, #Prop3: 02],
   [#Prop1: xyz, #Prop2: 02, #Prop3: 01]  ]
If this were a database table with three fields and four records, I'd use a compound 
index, Prop1 + Prop2 + Prop3. How can I achieve the same result in Director MX?
The size of my lists and the number of properties in each list are quite modest, so 
peformance is not really an important factor.
Any advice will be appreciated.
Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l turning off useHypertextStyles thru Lingo REPOST

2004-05-24 Thread Slava Paperno
I guess this wasn't a very exciting problem :-) No responses...

Even if no one has a solution, I'd really like to know if it's a legitimate quirk... I 
would then send it as such to updateStage.com. Could someone please confirm that they 
see the same behavior? It can be done in authoring and only takes a minute...

Thanks,

Slava
===
Posted on Sunday: 
This must be a known quirk: in Dir MX (9), when member().useHyperTextStyles is turned 
off through lingo at runtime, the Property Inspector shows it to be off, but the text 
of the member still shows all hyperlinks in blue and underlined, both on the stage and 
in Director's text editor.

I think I remember seeing a trick for forcing the member to recognize the new value of 
this property... something like member(X).media = member(X).media, but that doesn't 
work for me (in Windows XP).

Can someone help? If this is not a known quirk, then please do this and let me know if 
I'm the only one who sees it:

--use a reference to a text member currently on the stage
member(1).html = htmlbodya href='xyz'ABC/a/body/html
member(1).useHypertextStyles = false
update stage
put member(1).useHypertextStyles
--1

In spite of the 1 in the message box, on my screen ABC is still blue and 
udnerlined...

Any help or confirmation will be appreciated.

Slava


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Re: lingo-l turning off useHypertextStyles thru Lingo REPOST

2004-05-24 Thread Slava Paperno
Sorry, haven't seen either of those... Don't know how that could happen--I watch my 
email around the clock... Can I persuade someone to resend, perhaps off-list? Many 
thanks! Sorry for the extra traffic. S.

At 06:11 PM 5/24/04 -0400, you wrote:

On May 24, 2004, at 5:50 PM, Slava Paperno wrote:

I guess this wasn't a very exciting problem :-) No responses...

Both Alex da Franca and Chuck Neal replied. How much better can you do?

--
Troy
RPSystems, Ltd.
http://www.rpsystems.net

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l turning off useHypertextStyles thru Lingo

2004-05-23 Thread Slava Paperno
This must be a known quirk: in Dir MX (9), when member().useHyperTextStyles is turned 
off through lingo at runtime, the Property Inspector shows it to be off, but the text 
of the member still shows all hyperlinks in blue and underlined.

I think I remember seeing a trick for forcing the member to recognize the new value of 
this property... something like member(X).media = member(X).media, but that doesn't 
work for me (in Windows XP).

Can someone help? If this is not a known quirk, then please do this:

--use a reference ot a text member currently on the stage
member(1).html = htmlbodya href='xyz'ABC/a/body/html
member(1).useHypertextStyles = false
put member(1).useHypertextStyles
--1

In spite of the 1 in the message box, you'll see that ABC is still blue and 
udnerlined... at least that's what I see.

Any help will be appreciated.

Slava


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l html in D8 or D9

2004-05-21 Thread Slava Paperno
Please let us know what you discover, Mike, if you keep at it. I constantly use 
Director's HTML displaying capabilities because I have huge numbers of texts that are 
already formatted as HTML, including tables. Like you, I lament the incomplete 
implementation. I need a crossplatform solution and I don't need to put a browser on 
the stage--just nicely formatted HTML text. It seems like a very common need because 
of all those HTML pages that we use in so many other projects.

Thanks,

Slava

At 10:37 AM 5/21/04 -0700, you wrote:
I'd really like to display the HTML in the projector, too,
though.   I'll keep at it.

Thanks again,
Mike

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


RE: lingo-l Font problem

2004-05-19 Thread Slava Paperno
Zoran,

If your platform is Windows, I assume you have a Windows True Type font that has all 
the characters you need for Serbian, and that you have a character map for that font, 
i.e. you know the decimal number for each character in the font. These numbers should 
be between 128 and 255, inclusive.

I also assume you have a way to type these characters into a text editor such as 
Notepad.

With an address like kos.co.yu, I think those should be fair assumptions. If they're 
false, you should start by asking your compatriots for a font and a keyboard solution. 
Or download the free evaluation version of the $29 Cyrillic Starter Kit from 
www.cyrillic.com. It includes fonts and a keyboard mapper. The fonts remain yours even 
if you don't pay the $29 after the 45 day evaluation period.

Assuming the above, start by embedding your font in your Director movie (the Insert 
menu, etc.). Do not delete the asterisk that Director automatically adds to the font 
name, e. g. Timesse Cyr *. I'm not making this up--font Timesse Cyr that has all 
Serbian characters is included in the Cyrillic Starter Kit from www.cyrillic.com. The 
font is based on the standard Cyrillic Windows character set (code page), and a 
character map is part of the Help in Cyrillic Keyboard that comes with the Starter 
Kit. With that font, and keyboard, you'll be able to type in Director's Text editor. 
(You will not see Serbian in Director's Message window, but you can always copy any 
text from the Message window and paste it into Notepad or Word to read it.) You can 
use that font to display dialogs for the user with Buddy API's message boxes.

Use the embedded font in all your text members. Tell me what specific problems you 
have with Serrbian texts in your movie.

Slava

 t 11:55 PM 5/19/04 +0200, you wrote:
I do really need pointers. I've been having problems for years with Serbian
language which uses Ciryllic very similar to that of Russian. Thats why I am
asking for help.

Zoran
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:lingo-l-
 [EMAIL PROTECTED] On Behalf Of Slava Paperno
 Sent: Tuesday, May 18, 2004 5:14 PM
 To: [EMAIL PROTECTED]
 Subject: lingo-l Font problem

 I, too, will look forward to reading Kerry's article, since he's our
 leading expert in these things, but in the meantime, don't despair: I've
 been using Russian in my Director projects for years, with various
 Cyrillic fonts based on code page 1251 in Windows and Apple Cyrillic on
 the Mac (both OS 9 and OS X). It's all totally doable, including access to
 large databases in Russian, all sorts of string manipulation, user input
 in Ciryllic, and so on, and without using Flash or Unicode. Let me know if
 you need pointers.

 Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l Font problem

2004-05-18 Thread Slava Paperno
I, too, will look forward to reading Kerry's article, since he's our leading expert in 
these things, but in the meantime, don't despair: I've been using Russian in my 
Director projects for years, with various Cyrillic fonts based on code page 1251 in 
Windows and Apple Cyrillic on the Mac (both OS 9 and OS X). It's all totally doable, 
including access to large databases in Russian, all sorts of string manipulation, user 
input in Ciryllic, and so on, and without using Flash or Unicode. Let me know if you 
need pointers.

Slava

At 10:36 AM 5/18/04 -0400, you wrote:
 I tried to use the Czech font in DirectorMX2004 - but some 
 characters changes to other characters. Even by dynamically 
 loading the text form XML or text files the characters like u 
 changes to u. Please help me with this!

Ah, if you could only wait a couple of months, you could read the
article I just wrote.

In the meantime, I think you're running into a code page problem. Either
that, or you're using Unicode, which Director doesn't support. Flash
does, even in Director--just don't try to pass a Unicode string to or
from Director.

Windows uses ANSI encoding for text--kind of an extension of the old
ASCII encoding. ASCII is a 7-bit standard, and only covers characters
0-127. ANSI defines the other 128 characters. The upper range of ANSI is
where you will find characters like ü, È, and other accented characters
used in Western European languages. Macintosh uses a similar encoding,
but there are some differences in the top 128 characters.

ANSI is essentially the same as ISO 8859-1, or Latin 1, a specification
that defines character codes for just about every Western European
language. And here's the rub--Czech isn't Western European, and isn't
covered by ANSI or ISO 8859-1. It's specified by ISO 8859-2, which
covers Central and Eastern European languages that use the Roman
alphabet (as opposed to, say, Cyrillic or Greek).

Chances are that your font has Czech characters in it, but you can't get
to them. That's because the Czech characters are on code page 1250, and
English Windows, and English Director, uses Code Page 1252. 

Font publishers often include several national character sets--it's
simpler if you can just install Arial, and have Roman 1 on an English
system and Cyrillic on a Russian system. You could imagine a font as a
stack, something like this:
Code Page   ISO 8859
-   
12508859-2
12518859-5 (Cyrillic)
12528859-1 (Latin 1)
12538859-7 (Greek)
12548859-9 (Turkish)
12558859-8 (Hebrew)

And so on--read my article for more details.

Director doesn’t do a good job with anything other than code page 1252,
ISO 8859-1 on Windows, and the corresponding encoding on Macintosh. It's
a shame, really, because I can install a Russian font on my computer and
type a letter in Russian with Word (well, I could if I spoke Russian).

The best work-around I have found is to create a Czech font on code page
1252 and embed it in Director. It's more work than it needs to be, but
at least it works.

Cordially,

Kerry Thompson


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l Font problem

2004-05-18 Thread Slava Paperno
Hi Kerry!

At 05:44 PM 5/18/04 -0400, you wrote:
Slava, you said you have had success with these fonts. I'm guessing that
you are able to get Czech fonts to display on Latin-2 (code page 1250)
systems, and Russian on CP 1251 systems. I've had some success with
embedding Czech and Russian fonts on English Windows. You can get the
display to work sometimes, but xplat is pretty dicey, and of course,
input without a Russian keyboard is hopeless.

Cordially,

Kerry Thompson

I use code page 1251 on Windows and Apple Cyrillic character set on the Mac, and I 
only combine English and Russian. A number of fonts based on these two character sets 
work without any problems. It work every time. I embed the fonts and use them 
extensively in my movies. I don't ever rely on system-installed fonts. I've never 
dealt with Czech. 

Input in Russian is built into Windows and OS X, and works fine, but I don't even use 
that--I translate keystrokes. This allows me to offer a choice of several Russian kbd 
layouts. Some people are used to kbd layouts that are different from those built into 
Mac OS and Windows.

I found that I always have to build two sets of all text members: one for Windows and 
another one for the Mac. Never mind Director's fontmap.txt: it's a great idea that 
simply doesn't work for embedded fonts and non-ANSI character sets.

I use the V12 DBE database Xtra for storing and retrieving large amounts of vocabulary 
data. There are a couple of obvious tricks you have to use, but it works perfectly. 
I'm also test-running the new db Xtra from Tabuleiro that looks good and has SQL 
support (I use their MPEG Advance Xtra and have great rspect for the quality of their 
work).

Thanks from all of us for being a great help on this list, Kerry!

Slava 

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Re: lingo-l Window in front

2004-05-05 Thread Slava Paperno
Buddy API baWindowToFront()
S.
At 05:04 PM 5/5/04 -0500, you wrote:
Hello,
I am opening a projector.exe from a projector.  The problem is that the
projector that I am opening is opening behind the first projector
application. Is there a way tell which application should be in the
forefront.
Thank you,
Matt
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Hybrid DVD

2004-05-04 Thread Slava Paperno
Burning ROM can create hybrid discs on a PC if a Mac-formatted volume is 
attached to your PC. Burning ROM is the most advanced DVD-creation app that 
I know of. I've never used it with a Mac volume, though. It may be worth a 
call to their tech support.

Slava
At 10:42 AM 5/4/2004 -0500, you wrote:
Roxio says that they DO NOT support partitions of over 2 gig (HFS+), so now
I'm looking for a different solution.
I can create a partition of 3 gig, but once I copy over 2 gig of data to it,
Toast says NO WAY.
I tried creating a dmg with the Disk Copy, but since Toast is doing the
burning, still no luck.
I'm trying to read up on the HDIUtil, but that seems to be a scripting
solution, which will have a learning curve and the client is already ticked
due to the delays. :(
Back to my research,
John
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Hybrid DVD

2004-05-03 Thread Slava Paperno
Yes, it can. I do this with Toast 5 under OS X 10.2. Toast doesn;t care 
what size your hybrid disc is. Toast 5 doesn;t even call it a hybrid 
CD-ROM; it says hybrid disc. I put PC and Mac executables, shared data, 
and all the rest of it on my hybrid DVD-ROMs, and they work exactly as 
hybrid CD-ROMs do, showing only the right platform files on each platform.

Slava

At 11:55 AM 5/3/04 -0500, you wrote:
Can a DVD be burned the same way you burn a Hybrid CD-ROM?

Mac executable, PC executables and shared assests?

We need to share 3.5 gig of LARGE print art on Macs and PC. The interface is
built and works on a normal hybrid CD-ROM. Now we are trying to create the
HUGE hybrid. Any one done something like this and can give a little help?
I'm using Toast to do the burn.
Thanks in advance,
John
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l charToNum() on very large string

2004-05-01 Thread Slava Paperno
Are you at liberty to use other encryption schemes that don't require 
char-by-char conversion? UpdateStage has a bunch at 
http://www.updatestage.com/products_table.html#Encryption . I use BlowFish.

Slava

 At 10:15 AM 5/1/04 -0400, you wrote:
Conceptually, what I'm trying to do is pretty simple: I'm reading in chars 
from encrypted (XOR) binary files, converting chars to ASCII codes, XORing 
the integer vals, then writing decrypted chars back out to files.
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l Checking file (and path) validity

2004-04-18 Thread Slava Paperno
Can't you use the Buddy API function baFileExists()?

At 12:15 PM 4/19/04 +1000, you wrote:
Hi list

I am looking for a way to test if a movie name (and it's file path) are 
valid, and if so, go to that movie
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l unable to load movie playlist (on Mac OS X) SOLVED

2004-04-14 Thread Slava Paperno
I'm posting this to explain the reason for the weirdd failure, with an 
erroneous error message under Mac OS X with Director MX 9.0. I know same 
frivolous error message is displayed in other situations, and therefore I 
paste the responses I received. But my case seems to be new.

Here is the original problem description:
===
This is on a OS X machine.  A Director MX (9.0) stub projector displays 
this error message when I attempt to start it, and quits:

Unable to load the movie playlist. Does the INI file exist? It must contain
a section [Movies] with an entry 'Movie01=pathname.dir'
===
I found numerous reports of this bug caused on WIndows machines by paths 
that are longer than 126 characters. Some people say this happens on Macs 
as well.

In my case, the cause of the failure under Mac OS X 10.2 was that the 
partition where the projector and all its files were installed had the same 
name as the projector. As soon as I renamed the partition, the problem went 
away. The length of the names in my case doesn't seem to matter.

Here are some of the posts that you kind people sent in reponse to my plea:

===
We had a case recently, that if an individual folder name is longer than 27
chars (or something close) that this would cause problems on the Mac as
well.
===
The file causing the error is nested too deep in a file path.  If the path 
to your executable is more than 127 characters (on the PC, not sure the
full count on the MAC) the error you are experiencing will occur.  This 
path INCLUDES the name of the executable.  I filed this bug several months 
ago with Macromedia (before they shipped the MX2004) but apparently it has 
not been fixed.
===
Search the Lingo-L and Direct-L archives on this one. The problem has been
around since D7. But there are some recent postings on it, at least one of
which was mine. It happens on Windows too.

http://www.mail-archive.com/[EMAIL PROTECTED]/
http://www.mcli.dist.maricopa.edu/director/digest/index.html
===
I hope this may help the next victim.

Slava 

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l intercepting Taskbar/System menu Close command

2004-04-11 Thread Slava Paperno
It's important for me to be able to intercept the Close/Quit command so I 
can warn the user of unsaved data.

In my Dir MX (9.0), I set exitLock to true and use QuitMsg Xtra (Windows) 
from mediamacros to intercept the Close command when the user clicks Close 
in the window's system menu (accessed by the X in the upper right corner of 
the window). This works fine under Windows. Under Mac OS the X close 
command in the top left corner of the window is disabled which is fine with 
me. I provide by own Quit button.

However, I can't find a way to intercept the Close command when the user 
clicks Close after right-clicking the icon in the taskbar in Windows or 
clicks Quit Projector in the system menu (top left of the screen) in Mac 
OS X.

Is there a way to intercept those two Close commands?

If this is not possible in Dir 9.0 MX, can this be done in Dir 2004 MX?

Thanks!

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l unable to load movie playlist (on Mac OS X)

2004-04-07 Thread Slava Paperno
This is on a OS X machine.  A Director MX (9.0) stub projector displays 
this error message when I attempt to start it, and quits:

Unable to load the movie playlist. Does the INI file exist? It must contain 
a section [Movies] with an entry 'Movie01=pathname.dir'

I confess that even though an INI file named the same as the projector 
exists in the same folder, it does not contain section [Movies], but I tend 
to think that the problem is elsewhere. I found a technote about this very 
error message at the MM site, but that note is about Windows and a long 
path, which is not the case here.

The reason I think the message is frivolous is that I have two identical 
partitions on this Mac, with identical contents. The same projector runs 
fine in one of them, but aborts with this error message in the other. The 
only difference between the two is that this stub projector was created in 
the partition where it runs successfully.

The projector was made as described in the technote on fast-start 
projectors, last updated in 2004. The four library files are in the Xtras 
folder. There's 90 MB of free space on the partition. The projector is in 
the root folder of the partition.

What am I doing wrong? What else should I check?

Gratefully,

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l exit button

2004-03-24 Thread Slava Paperno
Use the Buddy API function baMsgBx().

Also, look into exitLock, a movie property.

S.

At 10:40 AM 3/24/04 -0800, you wrote:
Help!

Ok, I lost my head some where on the road to work today.

How do i make a quit button or exit button with Yes or No button.

Fred W
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l EXE

2004-02-28 Thread Slava Paperno
A user of a Director projector cannot generate another projector, if that's 
what you mean. But you can write your projector in a way that will allow it 
to read your user's slides and display them. If you want the user to be 
able to compile his own slide shows, the user does not need to generate an 
EXE file. You can provide an exe file, and have the user generate and 
organize the data that your exe projector will display for him. That can be 
done.

But if your purpose is to allow the user to compile all his data into one 
exe file, then the answer is no, this cannot be done without using the full 
authoring power of Director.

Slava

At 10:34 PM 2/28/04 -0800, you wrote:
lets say a user creates a slide show with a Director
projector. can that user create an exe. of his/her
slide show. is this possible?


__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Changing icon on exe

2004-02-19 Thread Slava Paperno
Look in the list archives, and you'll find lots of pointers. This subjects 
is revived every couple of months. I've used Microangleo (icon editor) and 
IconWorkShop from Axialis, both pretty good. Microangelo has a technote in 
the FAQ somewhere on their site written specifically for Director users.

There are two essentially similar approaches: you can edit the projector 
exe file to give it a new icon, but a more productive way is to edit the 
icon in the file called Projec32.skl in Director folder. Once that is done, 
every new projector will have the new icon.

Slava

At 01:48 PM 2/20/04 +1100, you wrote:
When I create an exe, how do I change its icon? I want to use my own 
custom icons on my projects rather than the standard Director icon that is 
automatically assigned.

Cheers
Alan
Alan Neilsen
Multimedia Developer
Learning Services
Deakin University
Geelong Waterfront Campus
Geelong, Victoria 3217
Telephone : +61 03 5227 8155
E-mail: [EMAIL PROTECTED]
Please feel free to visit us at -
Learning Services: http://www.deakin.edu.au/learningservices
Exemplars of our work: http://cowan.ls.deakin.edu.au/exemplars/
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l Mac/Win upper-ANSI chars and MX 2004

2004-02-12 Thread Slava Paperno
I know Kerry will know a thing or ten about this, but I hope other 
knowledgeable parties are also listening.

Most of my movies include text members in Russian. The Cyrillic character 
sets that are used in applications that don't support Unicode are located 
in the 128-255 decimal range of the single-byte character set. The 
character sets are different for MacOS and Windows.

I know that Director's TXT fontmap file for character set conversion does a 
good job converting non-English Latin characters between Mac and Windows, 
provided you use system-installed fonts. I was never able to get it to work 
for embedded fonts, which is what my movies use. As soon as I open and save 
a Windows text cast on the Mac, or vice versa, the casts are hopelessly 
ruined. My non-breakable rule is never to save on the Mac a cast with text 
members in Windows Cyrillic, and vice versa.

Does anyone know how the new Director's cross-platform arrangement works in 
this context? Since my casts have never been cross-platform, should I buy 
two MX 2004 boxes (or two downloads)?

Thanks!

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l Mac/Win upper-ANSI chars and MX 2004

2004-02-12 Thread Slava Paperno
Thanks for writing, Mark. I did install the update you mention, and things 
work fine for system-installed fonts, but not for embedded fonts. I 
wouldn't call it corruption; the text casts and members behave as they 
should, but they are not readable, beause the characters are remapped. 
They're remapped consistently according to some table that  is used, I 
suppose, when fontmap.txt tables cannot be used for some reason. The worst 
thing is that there are groups of characters that are all replaced with the 
same character, so a reverse translation becomes impossible.

It was like this in Director 8.5 and 8, and 7, too. Keeping a separate set 
of casts on each OS was the only solution I was able to find. Works 
fine--but do I have to maintain that in MX 2004? And can I maintain 
separate platform-specific casts with this new cross-platform arrangement?

Someone mentioned the downloadable trial version of MX 2004, so maybe I'll 
just get that and play. I will report if I learn anything outside the list.

Slava

At 10:55 PM 2/12/04 -0600, you wrote:
Hi Slava

Did you ever attempt to update the fontmap update to Director MX would solve
the problem, or did you ever consider seeing if the corruption was a result
of incorrect mapping of the character map on the Mac for the fonts that you
used? The update I was thinking about was:
http://www.macromedia.com/support/director/ts/documents/dmx_update.htm

but I'm not sure if that would do anything but its just a thought. Not sure
of any changes to MX2004, but then again I wouldn't notice something that I
don't use.
Sincerely
Mark R. Jonkman
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Slava Paperno
 Sent: Thursday, February 12, 2004 10:18 PM
 To: [EMAIL PROTECTED]
 Subject: lingo-l Mac/Win upper-ANSI chars and MX 2004


 I know Kerry will know a thing or ten about this, but I hope other
 knowledgeable parties are also listening.

 Most of my movies include text members in Russian. The Cyrillic character
 sets that are used in applications that don't support Unicode are located
 in the 128-255 decimal range of the single-byte character set. The
 character sets are different for MacOS and Windows.

 I know that Director's TXT fontmap file for character set
 conversion does a
 good job converting non-English Latin characters between Mac and Windows,
 provided you use system-installed fonts. I was never able to get
 it to work
 for embedded fonts, which is what my movies use. As soon as I
 open and save
 a Windows text cast on the Mac, or vice versa, the casts are hopelessly
 ruined. My non-breakable rule is never to save on the Mac a cast
 with text
 members in Windows Cyrillic, and vice versa.

 Does anyone know how the new Director's cross-platform
 arrangement works in
 this context? Since my casts have never been cross-platform, should I buy
 two MX 2004 boxes (or two downloads)?

 Thanks!

 Slava

 [To remove yourself from this list, or to change to digest mode,
 go to http://www.penworks.com/lingo-l.cgi  To post messages to
 the list, email [EMAIL PROTECTED]  (Problems, email
 [EMAIL PROTECTED]). Lingo-L is for learning and helping
 with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l XPOST: Audio Xtra interest

2004-02-10 Thread Slava Paperno
Sounds almost too good to be true, but yes, this would be a useful addition 
to the arsenal of good audio Xtras that we have now. S.

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l why palletized images?

2004-01-17 Thread Slava Paperno
Thanks, Mark--I appreciate the information, and it sounds right. But what 
really irked me is that in over 100 earlier versions of this application it 
always worked fine, and then in version 119 it suddenly broke. So I went 
back to version 118 and reconstructed my later steps, and I'm back where I 
want to be... after more than two full days of duplicating my efforts. 
Still--I will save your advice in case I see this again. As you say,

Gratefully,

Slava

At 12:25 PM 1/18/04 +1100, you wrote:
On 18/1/04 4:01 AM, Slava Paperno wrote:

 I do switch image types, and maybe that's a no-no? But it works great in
 one of my dir files:

 member(pic).filename = blank.tif
 blank.tif is a 10 x 10 x 24-bit tiff image.
 I save/compress the movie. I play it, and then do:
 member(pic).filename = imageA.gif

 Looks great in one version of the movie, looks lousy in the other.

 I know the gif is 8-bit, but it looks great in the graphics editor and in
 one of my versions of the dir file.
Hi Slava,

From memory I think I've seen this issue as well. Once you switch to an 8bit
image using member(x).filename then the palette for that image 'sticks'
for all subsequent filename switches to images greater than 8 bit. Maybe
Director does a puppetPalette when you switch images this way.
My bet is that if you make your gif images 16bit then everything will work.
You could also try using
puppetPalette 0

before switching to the next image.


___ Mark Martin http://www.marmalademedia.com.au ___
___ Marmalade Multimedia ___
___ Canberra, Australia   [EMAIL PROTECTED] ___

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l why palletized images?

2004-01-16 Thread Slava Paperno
Thanks to Colin, Warren and Troy. I've checked the things you all 
mentioned. I think imageCompression  imageQuality only apply to saving 
movie as Shockwave, but I understand those comments, too. My problem 
happens in authoring as well as in standard projector.

I've reduced the problem to one image on the stage linked to an external 
file. All images look great in my graphics editor. I click a button in 
authoring, and the image is linked to an external file. I have two dir 
file. The scripts in the two dir files are identical. The sprites are 
identical, too. One dir file works fine, but in the other, the image's 
colors look like it has VGA palette applied to it. My paletteMapping is false.

I do switch image types, and maybe that's a no-no? But it works great in 
one of my dir files:

member(pic).filename = blank.tif
blank.tif is a 10 x 10 x 24-bit tiff image.
I save/compress the movie. I play it, and then do:
member(pic).filename = imageA.gif
Looks great in one version of the movie, looks lousy in the other.

I know the gif is 8-bit, but it looks great in the graphics editor and in 
one of my versions of the dir file.

Does this make sense? There must be some setting in one of the movies that 
makes it act differently, n'est pas? I have no palettes in the palette 
channel. The movies' palette is System-Win.

Slava 

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l adding a volume level meter to a sound recorder

2004-01-15 Thread Slava Paperno
I'm answering my own question from last summer. I was then working on a 
Director application that recorded sound and wanted to display a level 
meter so the user can see and adjust the input volume or just speak louder. 
It's also reassuring for the user to see that someting is actually 
happening. Last summer, I couldn't find a way to achieve this.

I've now been able to do exactly what I wanted using the asFFT Xtra from 
http://www.as-ci.net/asFFTXtra/index.html in conjunction with the Audio 
Xtra from http://www.updatestage.com/xtras/audio.html. Both are easy to 
use, and support from both vendors is outstanding. There was an interesting 
issue of compatibility that we were able to resolve within a day. Feel free 
to write to me on- or off-list for details.

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l why palettized images?

2004-01-15 Thread Slava Paperno
This must be somethig very simple--something I accidentally messed up--but 
I can't find what. All of a sudden all images on the stage are palettized, 
look like 8-bit color or worse. Yet all bitmaps in the movie have 
member().depth of 32 bits. According to Properties Inspector, all bitmaps 
have paletteRef set to SystemWindows, yet everything looks like the VGA 
palette is applied to all.

What could be causing this? What have I done?

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Disable button

2004-01-11 Thread Slava Paperno
The buttons in OSControl Xtra from openspark.com have a property that makes 
them enabled or disabled. When disabled, they look like any disabled button 
in the current OS, and don't accept any clicks.

Slava

At 09:52 PM 1/11/04 +0100, you wrote:
Is there a property I can set to deactivate/disable a button?
I would like to still display the button but it should be grayed out and 
if someone clicks on it it should do nothing.
The button should become active again after a certain amount of 
frames/markers.

I could do it manually by drawing the same button again with a different 
style and just display it as a basic sprite but if there's a property 
available it would be a cleaner solution.

Age
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l multi-select dropdown menus?

2004-01-10 Thread Slava Paperno
I use OSControls Xtra for doing exactly this. Once you learn how to use the 
Xtra, this is very easily done, and the Xtra is easy to learn. You'll only 
need to learn how to use their popup menu.

See http://xtras.openspark.com/

Slava

At 02:53 PM 1/10/04 -0500, you wrote:
Hey all:

Sorry if this ends up being a really stupid question -- I'm under the
gun right now.
I am trying to get a dropdown box working for a project that's due TODAY
which supports multiple selections, toggling on/off whatever you
selected and spitting the value(s) into a simple linear list. I don't
have time to roll my own nor start learning imaging lingo in order to
get the one on lingoworkshop up and running.  That one does what I want
and looks great, but as soon as you try to resize the sprite, it goes to
hell because it uses imaging lingo instead of a text or field member
like a normal person.  ;)
I need something quick and dirty that works without me having to do a
massive retrofit -- I just don't have time to deal with it.  One would
think this would have been solved long ago, but I've been scouring the
web to little avail.  I have about a half-dozen different examples from
here and there, each with one fatal flaw or another.  Even the wonderful
OS Control Xtra has every widget imaginable -- except this one!
Any help appreciated.

best,
FBC
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l multi-select dropdown menus?

2004-01-10 Thread Slava Paperno
SORRY--I have to take it back. OSControls popup menus don't allow muliple 
selectiosn. I wrote that at a mloment of temporary insanity. It's still a 
great Xtra, of course.

S.

Erroneously posted at a mloment of temporary insanity:
I use OSControls Xtra for doing exactly this.
At 02:53 PM 1/10/04 -0500, you wrote:
Hey all:

Sorry if this ends up being a really stupid question -- I'm under the
gun right now.
I am trying to get a dropdown box working for a project that's due TODAY
which supports multiple selections, toggling on/off whatever you
selected and spitting the value(s) into a simple linear list. I don't
have time to roll my own nor start learning imaging lingo in order to
get the one on lingoworkshop up and running.  That one does what I want
and looks great, but as soon as you try to resize the sprite, it goes to
hell because it uses imaging lingo instead of a text or field member
like a normal person.  ;)
I need something quick and dirty that works without me having to do a
massive retrofit -- I just don't have time to deal with it.  One would
think this would have been solved long ago, but I've been scouring the
web to little avail.  I have about a half-dozen different examples from
here and there, each with one fatal flaw or another.  Even the wonderful
OS Control Xtra has every widget imaginable -- except this one!
Any help appreciated.

best,
FBC
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l Dir MX 2004 and MP3

2004-01-06 Thread Slava Paperno
Can someone tell us if the new Director MX 2004, with its expanded media 
support, adds the capability to record sound and encode it to MP3? I'm 
currently using the AudioXtra from updateStage.com to record, and lame.exe 
as an external app to encode. This works well, but I wonder if any new 
developments have happened within the Director package itself. I understand 
the issue was licensing the rights to the encoding.

Or perhaps Ogg Vorbis is supported by MX 2004?

Thanks,

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l the controlDown on a Mac

2003-12-31 Thread Slava Paperno
This script is attached to a sprite with an editable text member:

on keyUp
  if the controlDown then
put the keyCode
  end if
end
I'm trying to understand why in my movie this works differently under 
Windows than under Mac OS X.

In Windows, if I keep the Ctrl key pressed as I tap letter keys, each time 
a letter key is tapped, its keyCode appears in the message window. That's 
what I expect.

On my Mac OS X computer, if I keep the Ctrl key pressed as I tap letter 
keys, only the first letter key results in its keyCode displayed in the 
message window. Unless I release the Ctrl key and then press it again, the 
other letter keys don't register as I tap them. It is as though the Mac 
doesn't know the Ctrl key is down unless I release it and then press it again.

Is this a known fact, or am I missing something?

The reason I need to figure this out is this:

My editable text field is for the user to type a search target. My 
TextCruncher Xtra then finds all occurrences of the target in the movie's 
texts, and the first find is displayed. I want the user to press Ctrl+N to 
see the next find.

This works fine in Windows, but in Mac OS X, if I keep Ctrl pressed while 
tapping the N key to see the other finds, only the first tap on the N key 
works as expected. The subsequent taps on the N key actually enter the 
letter n in the field. I have to release Ctrl and then press it again in 
order to achieve my results.

Is this just the way Mac OS X works, or am I approaching this in the wrong way?

Another unpleasant thing is that sometimes the control character (decimal 
14, Ctrl-N) actually gets input in the text field. I tried getting around 
that with this little trap:

on keyDown me
  if the controlDown than
stopEvent
  end if
end
I tried an identical handler for keyUp. But that works only some of the 
time--depending on how fast each key is released, and which is released 
first--Ctrl or the letter key. As far as I know, there's no keyStillDown 
handler in Lingo.

I'm sure other people must have dealt with similar situations. What should 
I do?

Thanks,

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l DVD-ROM: hiding Windows files from Mac OS X ANSWERED

2003-12-22 Thread Slava Paperno
Dear Valentin,

You were 100% right. Toast 5.1.3 doesn't care if your hybrid CD-ROM is a 
DVD. In fact, Toast doesn't even say hybrid CD-ROM in its list, it says 
hybrid disk. But you do have to lie a little and when selecting an ISO 
disc format, select CD-ROM. Which simply gives your DVD an ISO 9660 file 
system, like you said. Anyway, I went through exactly the same steps that I 
use when making a hybrid CD-ROM, only I used a DVD-size partition/volume on 
the Mac, and everything worked great. Now on the same DVD-ROM, I have a Mac 
OS X bundle that is not visible when the DVD is inserted in a PC, and 
WIndows projector and other files that are not visible under Mac OS.

Thank you,

Slava

At 01:42 PM 12/21/03 +0100, Valentin Schmidt wrote:
yes, I'm almost sure that's possible, but not with UDF file system, but
with ISO. A DVD-ROM can have an ISO filesystem instead of UDF, and I
think the computer doesn't care if it's a 700MB or a 4,7 GB volume, it
just cares for the filesystem, so if it can read a hybrid cd-rom, it can
read a hybrid dvd-rom as well. I could emulate creating such a
hybrid-ISO dvd-rom with
WinOnCd 6 without any problems, so I guess it should work with toast as
well.
valentin

Slava Paperno wrote:
 Is there a way to produce a DVD-ROM that shows only the Mac files  
when used  under Mac OS X, and only Windows files when used under 
Windows? In  other  words, is there such a thing as a hybrid 
DVD-ROM?   I know how to make a cross-platform DVD-ROM (the UDF file 
system is  itself  cross-platform), and I have made a DVD-ROM using 
Toast 5.1.3 under  Mac OS X  that has both OS X and Windows projectors, 
and they run fine from  this DVD,  each under its own OS. I know I 
could place them in separate folders  and  call them Mac and Windows. 
But it would be even nicer for the end  user if  the files for the 
other OS were not visible, as on a hybrid CD-ROM.
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l DVD-ROM: hiding Windows files from Mac OS X

2003-12-21 Thread Slava Paperno
This is slightly off the subject of Lingo, and I apologize for that, but 
still think the issue may be of interest to some members.

Is there a way to produce a DVD-ROM that shows only the Mac files when used 
under Mac OS X, and only Windows files when used under Windows? In other 
words, is there such a thing as a hybrid DVD-ROM?

I know how to make a cross-platform DVD-ROM (the UDF file system is itself 
cross-platform), and I have made a DVD-ROM using Toast 5.1.3 under Mac OS X 
that has both OS X and Windows projectors, and they run fine from this DVD, 
each under its own OS. I know I could place them in separate folders and 
call them Mac and Windows. But it would be even nicer for the end user if 
the files for the other OS were not visible, as on a hybrid CD-ROM.

Is there a way to do this?

(I don't need any info on video DVDs--this is only about DVD-ROM.)

Thanks!

Slava 

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l baOpenURL and hyperlinkClicked

2003-12-15 Thread Slava Paperno
Thanks, but yes I have--and in any case, this wouldn't explain why the same 
function works fine in the same projector and the with the same Xtras when 
it is used in a button scripts rather than in a hyperlinkClicked handler.

Can someone reproduce the error?

S.

At 11:27 AM 12/15/03 +0100, Bertil Flink wrote:
Have you included the FontXtra with the Projector or in the Xtras folder?
I think it's needed for anti-aliased #text among other things, not only 
for embedded fonts.



Bertil Flink
Creative Media
- Original Message -
From: Slava Paperno [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 15, 2003 4:28 AM
Subject: lingo-l baOpenURL and hyperlinkClicked
 I've been using Buddy API's baOpenURL() with no problems until I tried to
 put it in a hyperlinkClicked handler. This is the entire handler:

 on hyperlinkClicked me, data, range
locResult = baOpenURL(data, Normal)
put data  locResult --projector opens a debugging window
 end hyperlinkClicked

 This works fine in authoring, but in a projector, it consistently causes
 the Player Error message, Handler not defined, #FontName.

 I'm using Dir MX under Windows XP, with Buddy API 3.6 (registered). The
 error never happens when the same baOpenURL is placed in a button script
 (in the same projector, with the same Xtras).

 Other Xtras used in the same projector are OSControls and TextCruncher.

 Buddy 3.6 is the current version, and I did check Gary's Bug Watch 
page. Am
 I missing something, or can someone else reproduce this?

 Thanks,

 Slava

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l baOpenURL and hyperlinkClicked

2003-12-14 Thread Slava Paperno
I've been using Buddy API's baOpenURL() with no problems until I tried to 
put it in a hyperlinkClicked handler. This is the entire handler:

on hyperlinkClicked me, data, range
  locResult = baOpenURL(data, Normal)
  put data  locResult --projector opens a debugging window
end hyperlinkClicked
This works fine in authoring, but in a projector, it consistently causes 
the Player Error message, Handler not defined, #FontName.

I'm using Dir MX under Windows XP, with Buddy API 3.6 (registered). The 
error never happens when the same baOpenURL is placed in a button script 
(in the same projector, with the same Xtras).

Other Xtras used in the same projector are OSControls and TextCruncher.

Buddy 3.6 is the current version, and I did check Gary's Bug Watch page. Am 
I missing something, or can someone else reproduce this?

Thanks,

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l bulleted lists in text members

2003-12-09 Thread Slava Paperno
I know this line of lingo will create a bulleted list in the text member:

member(1).html = html  ullione/lilitwo/li/ul  /html

But does someone know how to *type* a bulleted list in Dir MX's text editor?

Thanks,

Slava 

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l bulleted lists in text members

2003-12-09 Thread Slava Paperno
Thanks for responding, Warren. A bulleted list, of course, involves more 
than just typing the bullet character. It's a paragraph format. When you 
set up a bulleted list through the HTML of member, as I showed, you can 
continue pressing Enter at the end of an item, and the next line is 
automatically bulletted and indented. You can even do this for multilevel 
lists. This proves that the Dir text editor can do it--but it's very 
awkward to have to start each of your bulletted lists by monkeying with 
html, and it seems odd that with the Dir text editor being capable of this 
paragraph format, there's no easy way to simply apply this format as you 
can in most text editors--at least no way that I can see. That's why I 
thought that there may be something I'm missing. Nut if you don't know of a 
way either, then maybe I'm not missing much.

I was only talking about editing text in authoring--I'm writing a long Help 
text where I need bulleted lists.

Gratefully,

Slava

At 12:48 PM 12/9/03 -0600, you wrote:
On Dec 9, 2003, at 11:16 AM, Slava Paperno wrote:

I know this line of lingo will create a bulleted list in the text member:

member(1).html = html  ullione/lilitwo/li/ul  /html

But does someone know how to *type* a bulleted list in Dir MX's text editor?
On Mac you can do option-8 to get a bull char: •

There's an ALT+ sequence for Win but I don't recall what it is.

For end users, what I found some time ago was that it was much, MUCH 
easier to just add a bullet button to a text editor window. That way if 
the user wanted a bullet char, s/he could just click the bullet char 
button and the right character (determined by numToChar) would be inserted 
at the cursor's current location.

Note that in either case you have to add the bullets at the beginning of 
each line yourself. Director won't do it automagically for you, a la Word, 
and I sincerely pray it never does (because Word's autoformatting is 
usually more trouble than it's worth).

If you want to set it up so end users can have that sort of 
autoformatting, you could probably just do keyup detection:

  on keyUp
if the key = RETURN then
  -- add your bullet
end if
pass
  END keyUp
You could also be clever and have the program add bullets only if the key 
is ENTER, not RETURN (ENTER being the one on the numeric keypad). That way 
your return key works as expected, but the user can still have bullets 
inserted automatically.

[I say 'keyUp' here because a ham-fingered user might end up inadvertently 
adding a half dozen returns by mistake, simply with a keyDown, but there's 
only one keyUp generated per any keystroke. So for trying to do things 
like autoformatting or user keystroke detection where you're testing a lot 
(and thus slow down system response or have to deal with a buffer of many 
events), keyUp might make more sense.]

Warren Ockrassa | President,  nightwares LLC  [EMAIL PROTECTED]
 nightwares LLC | Consulting  Programming http://www.nightwares.com/
 Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Chapter samples | http://www.nightwares.com/director_beginners_guide/
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l DVD Creation

2003-11-26 Thread Slava Paperno
Double negatives in a foreign language may be confusing... Yes, you can 
combine DVD Video content and DVD-ROM (like CD-ROM) on the same DVD disc. 
When placed in a DVD Player, it will play the DVD Video content--not an 
interactive Director aplication. When placed in your computer's DVD drive, 
it will play your interactive Director application. Your computer can play 
the DVD Video content as well, of course.

To author the DVD Video content, you cannot use Director--you need a 
different application, a DVD authoring package.

You said to work on the DVD drive on my system and I assume you mean your 
computer.

Slava

At 02:09 PM 11/26/03 -0800, you wrote:
At 9:04 PM +0530 11/26/03, you wrote:
snip

That does not mean that you can't combine DVD Video and DVD ROM content.
e.g. titles that play like a DVD Video on your DVD player and like CD
ROM on your computer.
snip

If I understand you correctly, it mean I can create an interactive title
in Director and burn it on a DVD (iso format?) for it to work on the DVD
drive on my system.
as before - no this is NOT possible -
(largely because DVD players are quite limited in what they can do)
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l Lingo equivalent to scrollIntoView

2003-11-22 Thread Slava Paperno
I did post a thank-you message and the solution in case it helps someone 
later on in the archives. The solution is to use the charPosToLoc() 
function and the scrollTop property of the text member. Even though the Dir 
MX docs say that charPosToLoc() is a field function, it does work with text 
members as well. Thanks again to those who suggested this.

Slava

At 04:55 PM 11/21/03 -0600, Warren Ockrassa wrote:
I thought I'd seen that question answered earlier this week. Hmm.
At 13:39 Uhr -0500 21.11.2003, Slava Paperno wrote:
Would someone please share their script or strategy for scrolling a 
*text* member so that member.word[X] becomes visible? I know how to do 
this when the text lines are short, but line wrapping for longer lines 
breaks everything I tried. Thanks!
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l highlighting a chunk in text member

2003-11-21 Thread Slava Paperno
Many thanks to those who responded to my question about scrolling a certain 
word into view in a text member. Member.charPosToLoc() and of course 
Member.scrollTop is what I needed.

Now a related question: what's the best way to highlight a chunk of text in 
a text member? Color doesn't work for me because I want to keep 
useHypertextStyles, and the links will not change their color. Changing 
font size for a chunk makes the whole text jump and doesn't look right. I 
can't find a way to change the background for a chunk of text in a text 
member. Fields are great because you can use hihlite(), but what do people 
use in text members for the same purpose as hilite() in a field member?

Thanks,

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l highlighting a chunk in text member

2003-11-21 Thread Slava Paperno
Thanks, Jeff--I don't know why it didn't occur to me that selection is a 
great highlighting device in a text member. I'll take your cue and write it 
off as a Friday night slowdown. S.

At 06:36 PM 11/21/03 -0800, you wrote:
The following statement sets the selection
displayed by the sprite of text member myAnswer
so that characters 6 through 10 are highlighted:
  member(myAnswer).selection = [6, 10]
At 2050 -0500 11/21/2003, Slava Paperno wrote:
what's the best way to highlight a chunk of text in a text member?
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l highlighting a chunk in text member

2003-11-21 Thread Slava Paperno
My question still remains: what's a good way to highlight a chunk of text 
in a text member, other than by color or font size? I can't use color 
because hyperlinks don't allow a color change and I want to keep 
useHyperText as true. I don't want to use font size because the text jumps 
when that's done.

I can't use the selection property of the member because my members are not 
eidtable.

Thanks,

Slava 

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l scrollIntoView

2003-11-19 Thread Slava Paperno
Would someone please share their script or strategy for scrolling a *text* 
member so that member.word[X] becomes visible? Thanks!

Slava  

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l pageHeight

2003-10-16 Thread Slava Paperno
I thought pageHeight was a field member property (and the Dir MX Lingo 
Dictionary and Help confirm that), not a text member property. Yet Property 
Inspector shows fixed values for pageHeight for my text members. I don't 
know where they come from. What sets them and what defines their values 
*before* a text member is assigned to a sprite?

I also thought that pageHeight only made sense when the member is assigned 
to a sprite. PageHeight then reflects the height of the portion of the 
member that is currently visible (limited by the height of the sprite). Yet 
with my text members, pageHeight is an inherent property that has a value 
even when the member is not assigned to a sprite.

What am I thinking wrong?

Thanks,

Slava  

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l cast member list

2003-10-01 Thread Slava Paperno
Is there a quick and efficient way to get the names of all members in a 
cast as a list? It seems there must be something better than looping 
through the cast, no?

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l task bar icon, closing

2003-08-27 Thread Slava Paperno
Under Windows, all my projectors use the QuitMsg Xtra 
(http://mediamacros.com/files/quitmsg.zip) to intercept the system Close 
command when the user clicks the X in the top right corner of the projector 
window. This works great, and I couldn't live without this Xtra, because 
one really has to be able to warn the user about unsaved data, etc.

However, the QuitMsg Xtra does not intercept the Windows Close command when 
the user selects it from the context menu that pops up when you right-click 
the projector's icon in the taskbar--at least not under Windows 2000 and XP.

Does anyone know how to achieve that?

And another related item: in many aplications, the tooltip that pops up 
when you move the mouse over the icon in the taskbar contains more than the 
application's name... the name of the current document, for example. Does 
anyone know how to do this for a projector?

A projector is not really a conforming Windows app until things like that 
can be standardized.

Thanks,

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l BaFileList() and .sort

2003-08-26 Thread Slava Paperno
They *are* in order, alphanetically speaking. If you want file2 to come 
right after file1, use leading zeroes when naming them, file01, file02, 
etc. If you have more than 99 files, use two leading zeroes.

S.

At 10:53 AM 8/26/03 -0400, you wrote:
So I'm using baFileList with a list of files as such:

slide1.jpg, slide2.jpg, slide3.jpg..slide10.jpg, slide11.jpg

When I do a sort on this list I always get
slide1.jpg, slide10.jpg, slide11.jpg, slide2.jpg
I thought sorting it would flip it all in order?

Any ideas?

My first thought is going 1 -- x and creating a new list with each entry
being made at it's numberbut that seems like a crazy workaround.
I can't renumber the files ie 001...

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l government / video question

2003-08-17 Thread Slava Paperno
I've had good luck with MPEG-1 recently. Plays great on Windows and Macs 
without installing anything, and even the warnings about non-standard video 
window sizes have so far proven to be unjustified. I've used 720 x 404 
video in one product and couldn't find a Windows machine that would not 
play it well inside a Director movie. This is with MPEG Advance Xtra from 
Tabuleiro.

The video quality at that size is no worse than Sorenson done at half the 
size and blown up.

Slava

At 01:53 AM 8/17/03 -0500, you wrote:
On Sunday, Aug 17, 2003, at 00:48 America/Chicago, grimmwerks wrote:

Has anyone developed any cd-roms/cbts for the government?
Grimm, surely you know that given the current state of paranoia in the US, 
we're ALL doing video for the government, advertently or in.

I'm actually finishing up something I need to hand in (not subcontracted 
or anything) and I'm trying to figure out the best type of video to use...

of course personally Sorenson / QT can't be beat; especially for it's 
scaling feature...but I've no way of knowing if these users have - or 
would be allowed to - install QT on their machines.
Um, maybe you should ask someone, such as the group for which you're 
making the production? Or did you just start creating stuff without any 
idea at all what your final user base would be? (I'd find that hard to 
believe of you.)

I mean really, how could you get this close to finishing something but 
still not know what your final target platform was?

Warren Ockrassa | President,  nightwares LLC  [EMAIL PROTECTED]
 nightwares LLC | Consulting  Programming http://www.nightwares.com/
 Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Chapter samples | http://www.nightwares.com/director_beginners_guide/
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l RE:Mpeg pathing problem

2003-08-14 Thread Slava Paperno
John,

Assuming you're using MPEG Advance Xtra from Tabuleiro, here is the 
approach that works for me when I have to switch source mpg movies while 
the projector is running.

In the stopMovie handler, I have this Lingo (it prevents saving the movie 
with a hardcoded path to something I don't want to hard code):

on stopMovie
if the runMode contains author then
member(curr_video).filename = @media/blank.mpg
--media is a folder at the same level as the projector, and 
blank.mpg is a small but valid MPEG-1 movie, just a few white frames.
end if
end

When the user selects the movie he wants to watch, I use this:

member(curr_video).filename = @media/  CurrMovieFileName
--CurrMovieFileName inclides the filename extension but no path, e.g. 
Clip3.mpg

This works in more than one movie that I made.

Slava

At 10:56 PM 8/12/03 -0500, you wrote:
on 8/12/03 10:25 PM, Brad Hile at [EMAIL PROTECTED] wrote:

 I know this is basic but have you tried the searchPaths.
 I use advanceXtra and still had to use this on one project as I kept losing
 the video.
 -- assuming your vids are on the CD with your App
 set videoPath = the moviePath  video
 add the searchPaths, videoPath
I've used both these approaches in the past. The video is linked into
Director through its own dialog box, with its own set of parameters. There
is where the problem is, because I can't override where IT wants to look.
I'm going to call up Tech support tomorrow and RAISE hell.

Thanks for the suggestions,
John
===
John R. Sweeney Jr.([EMAIL PROTECTED])
Interactive Multimedia Developer/
Digital Media Specialist
OnDemand - Interactive, Inc.
847.651.4469 (cell)  847.310.5959 (office/fax)
===
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l when/why is pupperSprite necessary?

2003-07-30 Thread Slava Paperno
Thanks, Mark,

At 07:32 AM 7/30/03 -0700, you wrote:
Does it work any better if you swap out members of the same type? I seem to 
recall that D7 would actually bug out if you swapped a sprite's member type 
out from under it. I avoid it so I don't know how newer versions behave.

Yes, when the member is of the same type, on-the-fly swapping is no 
problem. It is also unproblematic in a small test movie.

I thought that I may have some code somewhere that keeps reversing the 
member swap or the visibility setting, e. g. in an exitFrame handler, but 
there's none. The exitFrame calls are not responsible, and I don't have any 
idle handlers.

S. 

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l when/why is pupperSprite necessary?

2003-07-30 Thread Slava Paperno
Nope, no other puppetting. And I just tried tirning the member DTS off, and 
also the stageColor trick. That doesn;t help. But the puppetting trick 
always does. Thanks. S.

At 11:01 AM 7/30/03 -0700, Mark A. Boyd wrote:
At 08:41 2003-07-30, Slava Paperno wrote:
I thought that I may have some code somewhere that keeps reversing the 
member swap or the visibility setting, e. g. in an exitFrame handler, but 
there's none. The exitFrame calls are not responsible, and I don't have 
any idle handlers.
I hate to ask the obvious, but is there a chance that you puppeted that 
sprite channel earlier and forgot to unpuppet it?

Another thought. Since #text members are Direct-to-stage by default, I 
wonder if replacing 'updateStage' with the old 'the stageColor = the 
stageColor' trick might work?
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l when/why is pupperSprite necessary?

2003-07-29 Thread Slava Paperno
I thought the puppetSprite command became more or less unnecessary a few 
versions ago, and that a sprite's behavior can now be controlled through 
Lingo in almost all situations, but I'm finding that I can't live without 
this command any more in Dir MX (Windows XP).

This used to work without puppetting

sprite(1).member = member(MyText, Texts)
--you see the text of the member on the stage
sprite(1).member = member(MyBitmap, Bitmaps)
updateStage
--you see the bitmap on the stage
But this simple sequence no longer works for me (in projector or in 
authoring). After the second command, I still see the text on the stage, 
even though the Message window tells me the sprite's member is a bitmap:

put sprite(1).member.name
--MyBitmap --BUT I see the text--the stage hasn't been updated.
This solves the problem:

sprite(1).member = member(MyText, Texts)
puppetSprite 1, true
sprite(1).member = member(MyBitmap, Bitmaps)
puppetSprite 1, false
updateStage
--I see the bitmap on the stage
I see the same story with setting sprite(1).visible to false and then true: 
the Message window tells me the prite is visible, but it's not on the stage 
unless I puppet it.

What's the story?

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l when/why is pupperSprite necessary?

2003-07-29 Thread Slava Paperno
Thanks for thinking about it, Colin.

I do use updateStage (my example that you cite below shows it), but without 
puppetting, the sprite that is reported to have a bitmap member assigned to 
it displays its previous text member instead. Similarly, the sprite that 
reports its visibility as true is in fact invisible--although the 
visibility button in the Score and the Object Inspector claim that it is 
visible.

S.

At 11:23 PM 7/29/03 -0400, you wrote:
updateStage
--I see the bitmap on the stage
I see the same story with setting sprite(1).visible to false and then 
true: the Message window tells me the prite is visible, but it's not on 
the stage unless I puppet it.

What's the story?


I think it's just the updatestage that's making it work. How is it if you 
don't do the puppetsprites, but do just the updatestage?
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l when/why is pupperSprite necessary?

2003-07-29 Thread Slava Paperno
Thanks, Anan,

I do use the updateStage, see my original post. Without puppetting, I still 
don't see the bitmap member that my Lingo assigns to the sprite. I see the 
text member that was assigned to it previously. The Message window and the 
Object Inspector all report that the member attached to the sprite is a 
bitmap, yet I see text, even after the updateStage--unless I puppet the 
sprite first.

Thanks, Buzz, I, too, thought it was a quirk, and of course I rebooted the 
machine. But this is consistently happening on several computers (as a 
projector, under Win2K) and on my authoring Win XP machine in authoring.

The movie is kind of heavy and full of handlers and stuff (tens of 
thousands of lines of Lingo), maybe that has something to do with it.

S.

At 09:10 AM 7/30/03 +0530, you wrote:
 But this simple sequence no longer works for me (in projector or in
 authoring). After the second command, I still see the text on the stage,
 even though the Message window tells me the sprite's member is a bitmap:

Try using just the updatestage command without using puppetsprite.

sprite(1).member = member(MyText, Texts)
sprite(1).member = member(MyBitmap, Bitmaps)
updateStage
My bet is that this should work.

Regards,
Anand Ravi
Slava's original post:

This used to work without puppetting

sprite(1).member = member(MyText, Texts)
--you see the text of the member on the stage
sprite(1).member = member(MyBitmap, Bitmaps)
updateStage
--you see the bitmap on the stage
But this simple sequence no longer works for me (in projector or in 
authoring). After the second command, I still see the text on the stage, 
even though the Message window tells me the sprite's member is a bitmap:

put sprite(1).member.name
--MyBitmap --BUT I see the text--the stage hasn't been updated.
This solves the problem:

sprite(1).member = member(MyText, Texts)
puppetSprite 1, true
sprite(1).member = member(MyBitmap, Bitmaps)
puppetSprite 1, false
updateStage
--I see the bitmap on the stage
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Dictionary Search - conceptual/approach issues

2003-07-26 Thread Slava Paperno
Have you looked at TextCruncher from 
http://www.updatestage.com/xtras/xtrahome.html? That's what people use for 
fast text searches. Simple string searches like those you've tried are very 
slow. S.

At 03:56 PM 7/26/03 +0100, you wrote:
Dear List

Long time no post - I trust you are all well. This is more of a concept
query than an actual coding one...
I've got a client who is converting a book of legal terms into a CD-ROM for
faster searching. All she seems to want to do is replicate the pages of the
book with each frame in the score containing multiple items of text, and
typing a term into the search field will jump to the specific frame that
contains the entered term.
Now I've come up with two ways I can acheive this, and the prototypes work
fine, but both have their problems:
#1 A list of terms with associated frame references contained in a central
data store (a field member in this case) and basically looping through each
line until the search term is found and getting the frame reference ready
for a navigation jump (wildcards and partial matches will be added later).
The problem with this is that it'll take FOREVER to enter all approx 16,000
terms which in turn will make the search loop a bit on the slow side.
#2 A list of page references containing the first and last words of each
page (basically specifying a range to check the search term against) and
then looping through these testing to see which range our search term falls
into. Now this approach is a lot tighter and faster (approx 80 items instead
of 16,000) but has no way of checking to see if the search term specifically
exists - it's just testing to see in which range the component letters will
fall.
So, I look to you all for any other ideas or concepts. Given the size of the
book she's converting, I'd rather like to avoid me or her typing in all
16,000+ terms, but without a definitive list of what's contained in the book
I can't see how to test if the search term would exist or not.
Hope this makes sense!

TIA
Ross
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Filename, path and other

2003-07-26 Thread Slava Paperno
Look up the @ symbol and the searchPaths in the Lingo Dictionary.

S.

At 12:19 PM 7/26/03 -0300, you wrote:
Oops, sorry I've clicked the wrong button in the other email :-/

Hi list,

I think this is a dummy question but It's frying my brain.
I have a folder with many dxr files. In another folder outside of this one I
have some images that I'm linking dinamically to those .dxr files. How I
need to make the path in order to link this images correctly??
Everytime I rename the root folder (where the two other folders are) or
change from mac to pc, the link to the images stops working.
Thank's in advance

Rodrigo

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Filename, path and other

2003-07-26 Thread Slava Paperno
At 03:50 PM 7/26/03 -0300, you wrote:
Hi,

I've tried to use @, but I couldn't understand it's function exactly, since
it wont work as I wanted. If not ask to much, can you send me some example
in how to use it??
thank's
If your movie/projector may run either under Windowas or on a Mac, you can 
never be sure whether the path is going to be separated by \ or by :

One way to get around this is to determine the current path separator:

locPatSep = the last char of the moviePath
MyPathFile = the moviePath  graphics  locPathSep  bimbo.tif
You can use this when linking an extrernal cast member, for example, or 
when using FileIO.

The above two lines will work on both the Mac and Windows machines.

But another way to achieve the same thing is with this one line:

MyPathFile = @/graphics/bimbo.tif

The above line will work both under Mac OS and Windows. You can use this 
when linking an extrernal cast member, for example--but not when using FileIO.

You can also use @ to refer to a folder above the movie folder , or at the 
same level in a different branch of the tree by using multiple slashes more 
or less the way you use ..\..\graphics in DOS, e.g. 
@//graphics/myfile.jpg. Lingo Dictionary has better examples, I'm sure.

Slava


Em 26 Jul 2003, [EMAIL PROTECTED] escreveu:

Look up the @ symbol and the searchPaths in the Lingo Dictionary.

S.

At 12:19 PM 7/26/03 -0300, you wrote:
Oops, sorry I've clicked the wrong button in the other email :-/

Hi list,

I think this is a dummy question but It's frying my brain.
I have a folder with many dxr files. In another folder outside of this one
I
have some images that I'm linking dinamically to those .dxr files. How I
need to make the path in order to link this images correctly??
Everytime I rename the root folder (where the two other folders are) or
change from mac to pc, the link to the images stops working.


Thank's in advance

Rodrigo
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Dropdown List

2003-07-25 Thread Slava Paperno
Wow! Many thanks, Daniel,

Slava

At 03:48 PM 7/25/03 -0500, you wrote:
Hi Peter,

I have a text based menuing system (although it used to be in fields and 
was changed to take advantage of anti-aliasing) that might suit your 
needs.  It is viewable from and available from the following URL:
http://www.bluejade.com/public_resources/director/rich_text_walking_menu.html

The examples most similar to what you seem to want are the age and menu 
color menus.

Regards,

Daniel
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l OSX/9 bundle puzzle: foo.app = foo.app SOLVED (sort of)

2003-07-09 Thread Slava Paperno
Thanks again, Matt! I'm sorry about the notation I used. It doesn't really 
matter--I used the format that is most readable. The XML formatting doesn't 
always work in email. I used the Save As command in the OS X Property List 
editor.

My bundle now works both under OS X and OS 9, although it is still called 
Start.app under OS 9 (isntead of being called Start). But the icon is 
the right one, and clicking it does launch the OS 9 application. Under OS X 
the extension .app is hidden, but otherwise it works the same.

If someone at MM wants to improve their write-up at 
http://www.macromedia.com/support/director/ts/documents/bundle_proj.htm my 
experience may be useful.

Under Getting This on a CD, the MM writeup says that the alias to the OS 9 
projector should be placed at the root, and in the same paragraph, it 
says the alias should be placed at the same level as the bundle. In fact, 
it should be placed at the same level as the Contents folder.

It also seems that the alias to the OS 9 projector has to have the filename 
extension .alias although I'm not entirely sure about this. If I were 
editing that write-up, I'd make it more clear where the name elements are 
arbitrary and where they have to conform to a certain scheme. The MM 
downloadable example does not include an alias to the OS 9 projector, so 
it's not helpful in this respect.

The MM write-up says nothing about the contents of the plist files and does 
not explain which properties must match which filenames, etc. Much of the 
info in the plist files is optional, but some of it seems crucial. (E.g., 
what in the world is com.macromedia.Otto--do we need to use that?)

The MM downloadable example does not use a custom icon, which requires 
another property added to info.plist:

key: CFBundleIconFile
string: MyIconFilename
MyIconFilename here is the name of the icns file that you place in the 
Resources folder in the bundle. I think indicating the .icns extension in 
the string above is optional. I create my icns files using the IconComposer 
from the OS X 10.2 Developer Tools (?) goodies disk.

I still don't know why the bundle's folder name extension app is not 
hidden under OS 9,  but it functions correctly now.

Again, thanks for responding, Matt, and I hope this thread may be useful to 
someone in the future (until the MM page is updated).

Slava

 At 09:44 AM 7/9/03 -0400, you wrote:
Slava,

I am not exactly sure what format your plist files are in, but in the
bundles I have done, they are in an XML format...
Based on the download from:
http://www.macromedia.com/support/director/ts/documents/bundle_proj.htm
My  info.plist file reads (watch for linebreaks):
?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist SYSTEM
file://localhost/System/Library/DTDs/PropertyList.dtd
plist version=0.9
dict
keyCFBundleInfoDictionaryVersion/key
string6.0/string
keyCFBundlePackageType/key
stringAPPL/string
keyCFBundleSignature/key
stringfoo!/string
keyCFBundleName/key
stringfoo/string
keyCFBundleIconFile/key
stringMyIcon.icns/string
keyCFBundleIdentifier/key
stringcom.macromedia.Otto/string
keyCSResourcesFileMapped/key
false/
keyCFBundleExecutable/key
stringstubX/string
keyCFBundleShortVersionString/key
string1.0/string
keyCFBundleVersion/key
string1.0/string
keyCFBundleGetInfoString/key
string1.0, © 2002 Macromedia.  All rights reserved./string
/dict
/plist
and the contents of the pkgInfo file looks like:
APPLfoo!
So the bundle signature of the info.plist file matches the line in
pkgInfo.
Is your notation an alternative to this syntax, or is it just simplified
for readability?
Also notice, that I added the CFBundleIconFile key to the existing plist
file so that you can use a custom icon for the projector bundle. I
believe there were some good postings on how to create icon resource
files (.icns) and corresponding paste-able icons for the getInfo window
earlier this year in either this list's archives or the Direct-L list...
I can't locate the exact message at the moment though...
Hope this helps!
~Mathew
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Slava Paperno
Sent: Tuesday, July 08, 2003 6:28 PM
To: [EMAIL PROTECTED]
Subject: RE: lingo-l OSX/9 bundle puzzle: foo.app = foo.app
Thanks a million for responding, Matt. Here they are:

{
 CFBundleDevelopmentRegion = English;
 CFBundleExecutable = Start;
 CFBundleGetInfoString = Start Application;
 CFBundleIconFile = Start.icns;
 CFBundleInfoDictionaryVersion = 6.0;
 CFBundleName = Start;
 CFBundlePackageType = APPL;
 CFBundleShortVersionString = 1.0;
 CFBundleSignature = CFINTRO;
 CFBundleVersion = 1.0;
}
{
 BuildVersion = 02;
 CFBundleShortVersionString = 1.0;
 CFBundleVersion = 1.0;
 ProjectName = Start;
 ReleaseStatus = GM

Re: lingo-l lingo.ini -- necessary?

2003-07-09 Thread Slava Paperno
Not necessary, but handy. You can define global variables there, and your 
projector will read them. You can establish settings there as well, such as 
set the soundkeepdevice to 0. In other words, if there's a setting or 
variable you want to be able to change without modifying your movie or 
rebuilding the Projector, lingo.ini is a great place to do it. E.g., if 
your projector is a stub that starts the real movie by using go to movie 
X, then you can define the movie that will be started by setting a global 
variable in lingo.ini. That way, as you rename your main movie, you don;t 
have to rebuild the projector--just change the variable's value in lingo.ini.

Slava

 At 11:43 AM 7/9/03 -0400, you wrote:
Hi all...

In Bruce Epstein's book Lingo In A Nutshell, page 566, it talks about
including the lingo.ini file alongside the projector.  This, I assume, is in
addition to the projectorName.ini file I always include.  I've never
included a lingo.ini file when distributing my stuff on a CD (Windows), but
things have always worked.  Is it really necessary to do this?
Thanks,
Michael M.
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l OSX/9 bundle puzzle: foo.app = foo.app SOLVED (sort of)

2003-07-09 Thread Slava Paperno
Thanks for your clarifications, Howdy-Tzi :-). Very nice! I have one more 
comment that may be helpful (and I still don't know the answer to my big 
question at the bottom).

At 12:48 PM 7/9/03 -0500, you wrote:
The MM write-up says nothing about the contents of the plist files and
does not explain which properties must match which filenames, etc.
That's true; however, Mac's OSX is crawling with plist files that can
be copied and altered.
I've gone through *all* bundles on my OS 10.2 Mac and found *none* that 
include the ClassicMacOS folder or applications. Since my problem was 
exactly OS 9, I found this exercise pretty fruitless :-) So if someone can 
add a paragraph or two about the essential or the most useful properties, 
this effort will be appreciated by many of us, I'm sure. The pointer your 
have provided below is very elucidating... I'd look like a regular idiot if 
all my CD-ROMs went around the world with the name Otto in them :-)

..what in the world is com.macromedia.Otto--do we need  to use that?)
That is the name of your preferences file. You can rename it anything
you want, since you can't change the file's contents anyway.
Information on how to properly name preferences files is available from
Apple, but briefly they follow the Java scheme of your domain name
backward, finished by the name of the app. So if I had a program named
goofball I'd use the name com.nightwares.goofball for the prefs file.
...

Do you know why my bundle still shows up as Start.app rather than Start 
under OS 9.2? It shows up as Start under OS X 10.2.

Once again, thanks a million for your expert input,

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Where do I add xtras

2003-07-08 Thread Slava Paperno
Alan,

If your projector calls the other movies, and they call each other, add the 
Xtra to the movie that you build into the projector. But a better 
arrangement, the so-called fast-start projector is one where all Xtras 
are in their own folder, and none of them is included in any of the movies 
or projector. If you have Director MX, you can read about this on p. 584 in 
Using Director MX. If you don't you can still read about this in a TechNote 
at 
http://www.macromedia.com/support/director/ts/documents/d8_fast-start_stub_proj.htm

Slava

At 04:35 PM 7/8/03 +1000, you wrote:
Hi

There are a number of mp3s in my project, each in its own movie.  I need 
to include the MPEG 3 Import Export xtra, but am not sure where it should 
be.  Do I only need to add it to the .exe movie (projector), or do I need 
to add it to each of the movies that contains mp3s, or both?

Alan Neilsen

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l OSX/9 bundle puzzle: foo.app = foo.app

2003-07-08 Thread Slava Paperno
I'm trying to create a Mac OS 9 / OS X bundle for my Director  application, 
and I've run into a puzzle. I wonder if anyone else has seen the same thing.

I followed the directions at 
http://www.macromedia.com/support/director/ts/documents/bundle_proj.htm

One of the first claims made there is that a volume root folder that you 
name foo.app will actually display its name as foo and will appear to 
be an application rather than a folder (both under OS 9 and OS X) until you 
Ctrl-click it and select Show Package Contents. This works fine for me 
under OS X but fails under OS 9.2.

I burned the volume to a CD under OS X. The disk works fine under OS X on 
other machines, but on OS 9.2 machines, the name of the folder is foo.app 
and it looks and acts just like a folder. I can start my application by 
opening this folder and then opening folder Contents inside, and then 
double-clicking the alias for the OS 9 projector in that folder--but that 
should not be necessary.

A couple of things I discovered while practicing this arcane art:

If you use lingo.ini and MyProjector.ini, these have to be duplicated and 
placed alongside each of the two projectors. This is not mentioned in the 
MM writeup.

If you use the moviePath anywhere in your movies, that will return the 
actual path on the volume, i.e. MyVolume:foo.app:contents:MacOS: etc. This 
was not apparent to me at first. The consequences are dramatic for a movie 
that needs to access files by specifying the complete path.

Any tips on why my volume's root foo.app folder is still called foo.app 
under OS 9.2 would be appreciated.

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


RE: lingo-l OSX/9 bundle puzzle: foo.app = foo.app

2003-07-08 Thread Slava Paperno
Thanks a million for responding, Matt. Here they are:

{
CFBundleDevelopmentRegion = English;
CFBundleExecutable = Start;
CFBundleGetInfoString = Start Application;
CFBundleIconFile = Start.icns;
CFBundleInfoDictionaryVersion = 6.0;
CFBundleName = Start;
CFBundlePackageType = APPL;
CFBundleShortVersionString = 1.0;
CFBundleSignature = CFINTRO;
CFBundleVersion = 1.0;
}
{
BuildVersion = 02;
CFBundleShortVersionString = 1.0;
CFBundleVersion = 1.0;
ProjectName = Start;
ReleaseStatus = GM;
SourceVersion = 0200;
}
Start is the name of my projectors and the topmost folder, Start.app. (I 
used foo.app in my original post because that's what the MM write-up uses.)

Slava

At 05:58 PM 7/8/03 -0400, Mathew Ray wrote:
What do your plist files look like?

~Mathew

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Slava Paperno
Sent: Tuesday, July 08, 2003 4:39 PM
To: [EMAIL PROTECTED]
Subject: lingo-l OSX/9 bundle puzzle: foo.app = foo.app
I'm trying to create a Mac OS 9 / OS X bundle for my Director
application,
and I've run into a puzzle. I wonder if anyone else has seen the same
thing.
I followed the directions at
http://www.macromedia.com/support/director/ts/documents/bundle_proj.htm
One of the first claims made there is that a volume root folder that you

name foo.app will actually display its name as foo and will appear
to
be an application rather than a folder (both under OS 9 and OS X) until
you
Ctrl-click it and select Show Package Contents. This works fine for me
under OS X but fails under OS 9.2.
I burned the volume to a CD under OS X. The disk works fine under OS X
on
other machines, but on OS 9.2 machines, the name of the folder is
foo.app
and it looks and acts just like a folder. I can start my application by
opening this folder and then opening folder Contents inside, and then
double-clicking the alias for the OS 9 projector in that folder--but
that
should not be necessary.
A couple of things I discovered while practicing this arcane art:

If you use lingo.ini and MyProjector.ini, these have to be duplicated
and
placed alongside each of the two projectors. This is not mentioned in
the
MM writeup.
If you use the moviePath anywhere in your movies, that will return the

actual path on the volume, i.e. MyVolume:foo.app:contents:MacOS: etc.
This
was not apparent to me at first. The consequences are dramatic for a
movie
that needs to access files by specifying the complete path.
Any tips on why my volume's root foo.app folder is still called
foo.app
under OS 9.2 would be appreciated.
Slava
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Registering fonts

2003-07-02 Thread Slava Paperno
Andrew,

Is this Windows or Mac OS? Have you checked the user's permissions? Windows 
won't allow a Restricted User  to install fonts.

Slava

At 03:06 PM 7/2/03 +0200, you wrote:
Hi all.

I am using the buddy xtra to install a font on the user's
machine by copying the font from the CD into the PCs fonts
folder (win).  On some machines this seems to do the trick,
and the font is immediately available for use by the
projector.  On a few other test machines, it is not.
Is there something else I need to do to make the computer
recognize the font?  I don't want to use an embedded font,
because the embedded font doesn't seem to display correctly
(whereas installing it on the machine makes it work fine).
I have searched the archives, but can't seem to find anything
on this topic.  Appreciate any help out there.
Andrew
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l need to attach a behavior

2003-06-30 Thread Slava Paperno
Look up scriptList and ScriptInstanceList in the Lingo Dictionary.

S.

At 02:10 PM 6/30/03 -0500, you wrote:

Is there a way for lingo to attach a behavior to a sprite and then
unattach it as well?
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Allowing the user to change fonts

2003-06-12 Thread Slava Paperno
Matt,

If you have an embedded font in your movie, you can do this to see a list 
of all fonts currently on the system:

put member(YourEmbeddedFontMemeber).fontList()

You can offer this list tot he suer to chose from, and then set the font 
property of your text members to the selected value:

member(MyTextMember).font = UsersCHgoice.

Slava

At 09:56 AM 6/12/03 -0500, you wrote:

Hello,

I'm having trouble finding a way for the user to change a font.
The ideal way would be to have a dialog box show the users fonts and
there for allow them to select the font of choice.
Also if I'm not mistaken if there is a font that is chosen that is not a
common font when the project is played on a different computer, will it
not
Display a default font? Is there a way around this?
Thank you,

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l Sound Import Export.x32 crashes Win XP movie

2003-06-10 Thread Slava Paperno
Short version:
sound(2).play for an external member that is a wave file causes the movie 
to crash both in authoring and projector under Windows XP. The same movie 
plays fine in authoring and projector under Windwos 2000.

Long version:
I wonder if anyone has encountered this error under Windows XP. I get it 
both in authoring and in projector. The same movie runs fine under Windows 
2000. The error message that I see is generated by Windows. It is displayed 
by one of Microsoft's error report collection routines. It also compiles a 
report in an external txt file that Microsoft wants you to send to them. 
Here is the essence of it.

Error signature
AppName: director.exe
AppVer: 9.0.0.383
ModName: director.exe
ModVer: 9.0.0.383
Offset: 00013b97
The message is a little more specific when it happens in my projector: it 
points to the Macromedia Sound Import Export.x32 Xtra.

Macromedia Projector
Error signature:
AppName: [name of my projector]
AppVer: 9.0.0.383
ModName: sound import export.x32
ModVer: 9.0.0.383
Offset: bf37
The actual report that would be sent to MS contains the same details about 
the culprit (the x32 file) plus its copyright and various other idetifying 
details (but nothing esle about the error itself).

The version numbers refer to Director MX that was used to create the 
projector and to author the movie. When the crash happens in authoring, I 
first see two messages from Director: A fatal error has occurred. Director 
will quit now. and then Warning! Director is completely out of memory and 
must exit immediately.

The crash happens when the movie issues sound(2).play for an external 
member that is a wave file. This is perfectly consistent in both authoring 
and projector. The same projector runs fine under Windows 2000.

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l transparency in Mac OS X icons

2003-06-09 Thread Slava Paperno
Thanks, Tzi! Your suggestions have been most useful, and I want folks on 
the list to know that it really takes no more than a few hours of playing 
to get the hang of those bundles and icons. It all works for me now 
(including transparency :-) It seems that most of the properties in 
info.plist can be ignored or used at will. Slava

At 09:53 AM 6/9/03 -0500, you wrote:
On Monday, Jun 9, 2003, at 00:43 America/Chicago, Slava Paperno wrote:

But there are still mysteries galore in that info.plist file that no one 
tells you about...
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


lingo-l transparency in Mac OS X icons

2003-06-08 Thread Slava Paperno
What's up with transparency in icons in OS X? In OS 9 I used to be able to 
paste a PNG image into the Get Info Icon, and what was transparent in the 
PNG remained transparent in the icon. Now in OS X 10.2.6, The transparent 
areas become black.

If I have to use an icon editopr to achieve transparency in OS X icons, 
what's a good one to use?

Thanks!

Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l CGI challenged

2003-06-08 Thread Slava Paperno
Phil,

Feel free to use http://132.236.21.132/form_input.cfm

Slava

At 08:54 PM 6/8/03 -0700, you wrote:
I'd like to test the getNetText and postNetText commands on a CGI script, 
but don't know anything about writing cgi scripts.

Is it possible to throw together a simple cgi script onto my web site that 
will just echo back parameters I pass in?

Thanks
Phil
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l transparency in Mac OS X icons

2003-06-08 Thread Slava Paperno
Carl,

At 01:04 AM 6/9/03 -0400, you wrote:
Hmmm. Where were you _copying_ the image from?
All I've managed to get is rectangles with white where I wanted transparency.
When I was successful with this, I actiually copied from the *icon* of the 
image file. That was under OS 9.1.When I stopped being successful with this 
under OS 9.2, I also got white where I used to get transparency, using ther 
same method. But now in OS X 10.2.6 I get black!

Anyway, I've now installed Icon Composer from the Apple Developer Tools 
that Tzi referred me to, and learned how to make a real icon with all those 
images and masks, and in the last 10 minutes I've also learned how to make 
the OS X bundle display my icon. But there are still mysteries galore in 
that info.plist file that no one tells you about. The writeup about bundles 
on the MM site is great for an overview, but it doesn't tell you anything 
about any of the properties that are in the info.plist file. I'm sure some 
of them don't apply and some are optional, but I don't know where to find 
out. That write-up doesn't even tell you what creator type to use for 
projectors.

S.

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l Projectors for WinXP affected by custom icons? Addendum

2003-06-06 Thread Slava Paperno
Carl,

You may want to look up Microangelo and icon in the list archives for 
the past month. This came up a few times and people posted various bits of 
info about this subject. I discovered the same situation when switching the 
D version and Windows version, and my solution is to use Microangelo from 
www.microangelo.us and follow their specific directions for Director users 
in their Web page FAQ. Slava

At 09:30 AM 6/6/03 -0400, you wrote:
I wrote:

The D8.5 projectors I'm sending to my client are being 'rejected' by his 
system as, not valid win32 application. They work on Win 98. He's 
running XP.

He's got DMX, I tried to tell him how to make his own stub projector, 
making sure that FileIO was included, but apparently the 
ModifyMovieXtras dialog is different in MX from 8.5 so I couldn't help 
him there. So I've told him to copy the Xtras folder from his Director 
into the folder of my stuff. Maybe that'll work.

What're my chances?

What've I missed?
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l re: Custom icon screwing up Windows projector

2003-06-05 Thread Slava Paperno
My pleasure! Visit www.microangelo.us/FAQ.asp and scroll halfway down (or 
Find Director in the page). You'll see short step-by-step instructions 
for changing a Director porjector's icon. I've been using that program and 
that procedure with Dir 8.5 under Windows 2000, and it works as advertised. 
Under Windows XP with Director MX I continue using the skl files that I 
made for 8.5 under WIndows 2000, and they work fine, too.

The process is essentially this: you use Microangelo to modify Director's 
Projec32.skl file (a Director resource). When you make a projector with the 
modified Projec32.skl in Director's folder, the projector has your modified 
icon. End of story. Just have to be careful and keep the original 
Projec32.skl in a safe place.

I keep a customized version of the Projec32.skl file for each of my 
projects, and before making a projector, I copy the the corresponding skl 
file to Director's folder. Since I use fast-start stub projectors for my 
projects, I don't have to make projectors that often, so it's not that much 
of a hassle.

Slava

At 09:18 AM 6/4/03 -0700, you wrote:
Slava - you mentioned the latest version of MicroAngelo comes with a Read 
Me file for Director users. I didn't see this - can you give more details?

I was wondering why I didn't see a simple 1-2-3 set of steps for us 
(Director users) somewhere in the help file etc.

KMc
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


  1   2   >