Re: lingo-l Getting separate parts of a number

2004-09-02 Thread Colin Holgate
convert to a string, set the delimeter to a period, grab the last 
chunk and convertint it back to float and save to add back on
That sounds like a lot more work than my two lines.
[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 Getting separate parts of a number

2004-09-02 Thread Colin Holgate
At 11:46 AM -0400 9/2/04, Troy Rollins wrote:
I was hoping to see you get it to one line though.
Sounds like a challenge:
anArray = string(float).split(.)
That's pseudo ActionScript!
[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 Getting separate parts of a number

2004-09-02 Thread Colin Holgate
At 2:47 PM -0400 9/2/04, Troy Rollins wrote:
I don't know of any Lingo split function. You'd need to 
instantiate an object, etc. to get access to that method, no?
Don't let reality get in the way.
[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 Getting separate parts of a number

2004-09-01 Thread Colin Holgate
There are probably various ways to cheat this. Here's one:
afloat = 12.34567
wholenumber = bitor(afloat,0)
fraction = afloat-wholenumber
put wholenumber  fraction
-- 12 0.3457
[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 Collating multiple returns from sendAllSprites

2004-08-24 Thread Colin Holgate
I use a simpler, sloppier technique:
global someglobal
someglobal = 0
sendallsprites #GetCheckboxValues, myCheckboxGroupID
and in the sprites:
on GetCheckboxValues me, groupID
 global someglobal
if groupID = pThisGroupID and someglobal then someglobal = 
someglobal + pMyValue
end

[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 Collating multiple returns from sendAllSprites

2004-08-24 Thread Colin Holgate
At 1:08 PM -0400 8/24/04, Cole Tierney wrote:
I use a simpler, sloppier technique:
global someglobal
someGlobal?! Time for bath, you! ;)
But if you're collaborating with another programmer who happens to 
be fond of the name someGlobal you could play it safe by 
preserving and restoring it's contents before and after using it.
I don't go in for all the gThis and pThat stuff. My variables tend to 
give a good idea what they are all about, without being too long 
winded.

[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 flash members vs. bitmap members

2004-08-21 Thread Colin Holgate
I was tempted to do a quick reply earlier to give an opinion, but I 
decided to try making something first, to see if I was right. Here's 
what I made:

http://staff.funnygarbage.com/colin/walkers.html
The walk cycle you'll see is seven images long, made up from 360x240, 
32-bit with alpha channel bitmaps. There are 30 of them at the stage 
at the same time, all of them scaled to different amounts. It's 
probably as hard a test for bitmaps in Director as I can think of.

When the page loads you'll be seeing those 30 sets of seven images 
scaled, and depending on your machine it will be sluggish or slow. If 
you click somewhere, or type 2, you'll switch to a 30 Flash sprite 
version, which will be a bit smoother. You may also notice that the 
scaling on the Flash sprites is slightly cleaner than the bitmap ones.

That might seem like a win for Flash, but click again, or press 3, 
and you'll see a bitmap version where I scaled the bitmaps to 180 x 
120 before using. That takes them closer to the intended use size. 
You should see a noticeable improvement in speed.

So, even in a fairly worse case of 32-bit sprites with alpha 
channels, bitmaps of about the right size for the job should perform 
very 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 Sound queueing

2004-08-21 Thread Colin Holgate
Anybody come across this and any insights on how to work around it?
What is your sounddevice set to?
[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 flash members vs. bitmap members

2004-08-21 Thread Colin Holgate
Great test!
Did you use lock-step for the flash member(s), by the way?
I suspect not, but right now the behavior is quite realistic, with 
fewer girls moving more quickly  to cover more ground...
Yes, I used lock-step, otherwise it wouldn't have been a fair test. 
The bitmaps were film loops, so neither the Flash or bitmap versions 
needed any scripting to make the walk cycle loop.

[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 Empty sprite

2004-08-15 Thread Colin Holgate
There is only one sprite in the movie (sprite 16) and its source member
points to an empty slot in cast window.
http://www.peb965.cv.ua/list_questions/dir/empty_sprite.dir
This is a very handy feature of Director's. Quite often you may want 
to replace a bitmap with a new one. You could import the new bitmap, 
select it, select the right sprite, and do an exchange. Alternately 
you could delete the cast member and import into that slot, and the 
sprite will show the new bitmap. Your example movie is half way 
through that process.

[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 D5-7 help files

2004-07-31 Thread Colin Holgate
You may want the Dir 4 help file too.
Quite a change btw D4  D5 with the introduction of behaviors (as I recall).
Want it?
Behaviors was with D6. D5 had Xtras, more shockwave features, and 
Text members. It's fairly easy to find reviews online for some of the 
versions. For example, here's one for D5:

http://desires.com/2.1/Toys/Macrofun/Director5/director1.html
[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 D5-7 help files

2004-07-31 Thread Colin Holgate
SE 16 was bundled with Dir 4, wasn't it?
Not sure, but it was in the D5 studio package.
[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 misbehaving scrollbar on Mac OS X

2004-07-26 Thread Colin Holgate
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.
I see that too. My work around is to only set the boxType to scroll 
when there are enough lines in the text member for it to need a 
scroll bar.

[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 Flash Asset within Director 8.5

2004-07-12 Thread Colin Holgate
I have director 8.5  and I'm trying to use a Flash 7 / MX file within
it, it doesn't seem to want to show the file.
If there an updated flash asset Xtra for 8.5 that will play more recent
versions of flash?  I can't find it anywhere.
Don't think you can. Will your Flash thing work if you save it as a 
Flash 5 SWF?

[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 Colin Holgate
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!]


Re: lingo-l Director error code -1101

2004-07-11 Thread Colin Holgate
Do you have write access to C:\WALSampler\WalSampler\?
[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 Going backward

2004-07-10 Thread Colin Holgate
Whenever you are using the newer version of Director there is a facility
of updating files. I wonder, can i somehow make reverse action? In
particular, i'd like to transform a 8.5. file to 8.0 one.
Read this, especially the second half:
http://director-online.com/buildArticle.php?id=1034
[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 Shockwave and Internet Database

2004-07-05 Thread Colin Holgate
Is there a better way to do this? Or am I doing something incorrectly?
Apparently you are. Do you have object and embed tags in your asp?
[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 Hi-res printer fonts

2004-06-24 Thread Colin Holgate
I need to get a high-res (1200 dpi) printer font for Chinese and
Cyrillic--we need to do high-quality print output. Does anybody have any
ideas how to get those? I've only dealt with on-screen fonts.

Either TrueType or Postscript fonts should do all that automatically.
[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 dual monitor projector?

2004-06-22 Thread Colin Holgate
I do not agree in all points. I guess this is not a CD-Rom for sale, is it?
It is a special project for a limited, known range of customers. Since
almost every modern graphic card can handle two monitors (even the ATI SE
series) I would recommend to run the stage on monitor 1 and a MIAW in
monitor 2.
If you're just going to show video on the second monitor, then a MIAW 
might well work. If any graphics need to span or move between the two 
areas, having the stage fill both screens is very convenient.

[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 dual monitor projector?

2004-06-22 Thread Colin Holgate
But the thread was about having a controller on one monitor and the output
on the second, right.
I may have missed that part. The ones I've done have had a touch 
screen for the first display, and additional graphics or video shown 
on the second display. Having scripts in the first monitor area that 
send messages or talk directly with sprites that are on the stage in 
the second monitor area, is a bit simpler than communicating with a 
MIAW. Also there's more peace of mind about whether the video sprites 
are getting their fair share of the processor time.

[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 dual monitor projector?

2004-06-21 Thread Colin Holgate
I am about to start a project which will use two monitors - one will 
run video and the other the interface. Has anyone done this? Is the 
best way to treat the stage as one large stage covering both 
monitors?
Any pitfalls? Advice?
Yes, yes, and yes. It may vary depending on which video board you're 
using (unless it's a Mac, in which case there's no problem). The main 
thing to know is that some video boards will only fill one monitor if 
you make the projector Full Screen. The easy solution is to not make 
it Full Screen, but instead to set the rect of the stage at run time 
to be across the two monitors.

Another thing you may find is that less capable video boards will 
give less capable performance. Some of that can be worked around if 
you are willing to drop one or both monitors to 16 bit.

[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 Lingo training

2004-05-29 Thread Colin Holgate
I do not want to start a significantly off-topic thread, but would like some
opinions on the need for Lingo/Director, Flash/ActionScript training. If
anyone wants to respond, but feels Lingo training is off-topic, please do so
off list. Additionally, if anyone (Tab?) feels that any resulting
conversation that does ensure on the list, should be taken off-list, please
speak up.
I can't imagine anything more on topic!
Do you know the Motion Over Time people? They do a lot of training, 
some of which may be Lingo. Perhaps a good option for you is to move 
into a smaller place, and offer yourself up for training in other 
people's offices.

[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 zScript Xtra

2004-05-28 Thread Colin Holgate
Sorry to ask this here on the list, but I can't get through to the 
vendor and know some of you are using zScript Xtra from Zeus Prod. 
(Bruce Epstein).
According to this page:
http://www.zeusproductions.com/products/zscptfaq.html
the Xtra should come with documentation.
[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 MX Online Live Seminar Series

2004-05-26 Thread Colin Holgate
From the sound of it, the aim was to show Flash component 
integration, using the DVD controller as an example. A lot of people 
attending might have been interested in the older aspects of Flash 
integration.

[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 linked assets in shockwave: server problem

2004-05-22 Thread Colin Holgate
Are you sure that the externally linked casts area fully loaded 
before you rely on using them? I'm using external casts in something 
I'm doing, and it also streams mp3s, and it seems to be working. I am 
doing a preloadnetthing of the cast file before using it, and making 
sure the getstreamstatus is Complete.

[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 overwriting lingo commands

2004-05-18 Thread Colin Holgate
what I want to do is something like:
on alert any
alert(string(any))
end
which of course doesn't work, because it creates an recursive circle ad
infinitum.
An easy solution is:
on alert thestring,reallymeanit
  if voidp(reallymeanit) then
 alert here's what you were trying to say:  thestring,true
  else
 pass
  end if
end

[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 Lingo Animation Optimization Test

2004-05-14 Thread Colin Holgate
  I am looking forward to seeing how this could be reduced to one line
of code. ;-)
I'll leave that up to Colin. He's the one-line champion.
I have a special version of Director that has an entire feature set 
built into it to allow animation without script. It's quite amazing, 
and has this thing called the score. With that I can reduce it all 
to zero lines of code.

[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 javascript syntax

2004-05-13 Thread Colin Holgate
We all know there are faults to be found but I, for one, am very, very happy
about JavaScript integration. I remember sitting in the sneak at the last
UCON (1999? 2000? -- I think it was circa D6 because I was doing a
lecture/workshop introducing behaviors) when an enthusiastic Director
engineer showed the use of JavaScript within Director. Excited, I felt like
I was the only one in a packed audience that even gave a damn. I was so
surprised and the engineer doing the demo was visibly crushed. (I can't
recall who it was.) So, I hereby express my gratitude, on behalf of myself
and many future students, that the ability exists to translate
skills/experience from other JavaScript efforts into learning Director.
I was in the audience too, and I guess you have to remember that 
Flash wasn't as Javascript like at the time, and everyone in the 
world was being told at the time that all other languages were about 
to die because everybody should be using Java. I still got the 
impression that many in the audience were excited about the idea, 
many others were only intrigued because at least the language being 
shown started with the right four letters, if you still wanted to be 
employable in a few months. For people like me it would have been as 
exciting to see Swahili as an alternative to Lingo.

[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 Sorting lists properly

2004-05-11 Thread Colin Holgate
  The problem is though is
 that it only takes the first two characters into
 consideration when it sorts it, so when I add numbers
 like 1, 17, 129, etc the 129 appears before the 17 in
 the list.
Yuck. So it does, even in a linear list, even with numbers and no alpha
characters.
How do you get it to go wrong? Here's what I get:

t = [1,17,129]
put t
-- [1, 17, 129]
sort t
put t
-- [1, 17, 129]
t = [129,1,17]
put t
-- [129, 1, 17]
sort t
put t
-- [1, 17, 129]
[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 Flickering on Quicktime Movies

2004-05-07 Thread Colin Holgate
Hello, It's me again think I also figure out the problem... one of the
problem is if I remove the background image (which has animated gif)... the
flicker effect dissaper... I could change the background to bitmap..the
quicktime goes smooth so the problem is the animated GIF vs Quicktime,
am I right ? is there any way to resolve the problem ?


Yes, don't use an animated GIF. What is the reason you wanted 
animation behind the video anyway?

[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 Colin Holgate
Is HFS a 2 gig limit on hybrid burns?  Do you know?
Quite likely. Try HFS+.
I could be wrong, but I think toast will only create HFS hybrids. 
Hdiutil can make a hybrid with HFS+.
The default disc type that comes up in Toast is Mac OS Extended and 
PC (Hybrid) CD.
[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 Colin Holgate
My coworker may have an older version of toast. He was recently 
having trouble making an HFS+ hybrid.
The normal old way to make hybrid discs in Toast was to have a Mac 
volume and a PC folder. I'm pretty sure that the Mac volume can be 
HFS+. Trying to make a hybrid disc with old Toast from a Mac folder 
and a PC folder would be quite hard.

[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 Black flashes in MX2004- solved

2004-05-04 Thread Colin Holgate
Well I finally found out what was causing the Flash- or at least it 
appears to be fixed.
In publish settings choosing
Lock Stage Size to Movies size
Makes the problem go away. The movies were all the same size anyway but

Any chance you also changed the Reset color option too?
[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 Is there no way to create a projector that maximizes?

2004-05-02 Thread Colin Holgate
Does anyone have any way to make a projector that maximizes?  The maximize
button in the upper right corner of projectors (on Win XP, 2000, 98 -
haven't tried mac) is always deactivated.
A quick test here shows that it's easy. I had this movie script:

on exitframe
  member(sr).text = string((the stage).rect)
  go the frame
end
where sr is a field member sat on the stage. I make the projector, 
having set the Display Template options to have a maximize box, and 
the maximize works as it should. The stage changes to fill most of 
the screen, and the rect of the stage figure has changed. Clicking 
the maximize button again shrinks the stage back to the normal size.

If I do a resize before maximize twice, it returns to the resized sized.

[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 Is there no way to create a projector that maximizes?

2004-05-02 Thread Colin Holgate
Further on that thought, does anyone have, or know of any generic 
window geometry behaviors? Something designed to scale objects or 
maintain their spacial relationships depending on window size and 
shape?
The whole issue is harder than you might think. The really easy 
solution is to change the drawrect, but that has the drawbacks of 
being lower resolution, and more processor demanding. The better 
solution quality wise would be to resize all your sprites, which is 
what your question is asking I think. The main problem with that is 
that different sprites will scale in different qualities, and things 
like text sprites are likely to wrap differently.

The real solution to a stage resize perhaps should be to rearrange 
your sprites to match the new layout, including coping with now 
differently wrapped text. If you're that determined to make the 
projector seem like a normal application, you have to take care of 
all the usual consequences.

[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 Colin Holgate
But again, OSX is just slow with text.
I'm handling fairly big chunks of text in OS X without it seeming 
slow. How big is the original string that needs to be converted to a 
list of numbers? Also, how many times do you have to do that 
conversion, and does it really matter if it takes a while?

[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 Colin Holgate
I just copied a groklaw page into a text member (about 63K) and ran the
above on a dual mirror 1.25GHz G4. (10.2.6) Here are the results:
-- 63679
-- Walk: 14603
-- Delete: 9509


I added this to your routine:

  reallyBigString = parentString
  myCodeList = []
  start = the milliseconds
  wcnt = reallybigstring.word.count
  repeat with w = 1 to wcnt
thisbit = reallyBigString.word[1]
cnt = thisbit.length
repeat with i = 1 to cnt
  append(myCodeList, charToNum(thisbit.char[i]))
end repeat
if w  wcnt then
  append(myCodeList, 32)
  delete word 1 of reallyBigString
end if
  end repeat
  put Delete Words:   string(the milliseconds - start)
and on my 1 GHz iMac saw this:

test
-- 72540
-- Walk: 29125
-- Delete: 21993
-- Delete Words: 2956
I think the real slowdown in the approach is that when you ask for 
the nth character of a string it takes n times some amount to grab 
that character (which in a 7 character case would mean an average 
of 7*35000*that amount). In your optimized case you were trading 
63679 of those walk through the list for 63679 deletes of the first 
character, and that will take some time, but not as much time. Hence 
your reduction from 14603 to 9509. With my longer string and slower 
processor that translated to 29125 reduced to 21993.

My addition to your routine take the data in word chunks, and uses 
your delete approach too. That means its only ever grabbing the first 
word, and then it is walking through the characters of that word, but 
it never has too far to walk. The result is an overall reduction of 
29125 down to 2956, close to ten times faster.

Interestingly, if I change the character walk through of the word so 
that it uses the delete approach too, the routine becomes slower.

By the way, I'm surprised that the much bigger problem hasn't shown 
up, and that is that you can't deal with zero as a string. If the 
original need was to decipher images, surely you get cases where the 
data equals zero?

[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 Colin Holgate
and on my 1 GHz iMac saw this:
I was getting my machines mixed up, my iMac is 800 MHz.

[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 Colin Holgate
 I added this to your routine:
As usual, Colin is a stud.


Ok, if you want studly performance, I tried a different approach:

on chunky chunk
  m = the milliseconds
  thetext = member(test string).text
  c = the number of chars in thetext
  chunkcount = c/chunk
  thelist = []
  repeat with a = 0 to chunkcount
thesechars = char a*chunk to (a+1)*chunk of thetext
repeat with b = 1 to chunk
  append thelist,chartonum(char b of thesechars)
end repeat
  end repeat
  howlong = the milliseconds - m
  put Char count:  c  return  How long:  howlong
end
You can call this by putting this in the message window:

chunky n

where n is an integer that you can vary to see where the sweet spot 
is. I already have timings, but I'll leave you to amaze yourself.

Here's a tester version that you can give a range of chunk sizes to:

on chunkytest n1,n2
  bestyet = the maxinteger
  bestn = 0
  repeat with chunk = n1 to n2
m = the milliseconds
thetext = member(test string).text
c = the number of chars in thetext
chunkcount = c/chunk
thelist = []
repeat with a = 0 to chunkcount
  thesechars = char a*chunk to (a+1)*chunk of thetext
  repeat with b = 1 to chunk
append thelist,chartonum(char b of thesechars)
  end repeat
end repeat
howlong = the milliseconds - m
if howlong  bestyet then
  bestyet = howlong
  bestn = chunk
end if
  end repeat
  put Sweet Spot:  bestn  return  How Long:  bestyet
end
[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 Colin Holgate
and Wow, what a nice surprise. I'm going to try dropping it in now.


To save you some time, the sweet spot seemed to be about 220 character chunks.

[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 Colin Holgate
#2 Use Colin's first-char approach to grab each char  then use that 
as an index into the prooList to get it's charToNum()
That wasn't my idea, but even so, the lookup table only gives a 
slight speed increase because it's the string[i] part that is slow, 
not the chartonum() part.

But wait, I tested it anyway, and it turns out that the property list 
lookup to save doing chartonum() ends up taking longer than just 
doing the chartonum, so no prize for Buzz at all!

[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!]


RS (was: Re: lingo-l doubleclick)

2004-04-30 Thread Colin Holgate
Rich Shupe lives!

[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 doubleclick

2004-04-29 Thread Colin Holgate
But the  doubleclick remains set at 1 and you can't  write code to 
reset it.  Is there any way around this?  Can i use something other 
than a doubleclick?
How are you reading it? The normal approach is something like:

on mouseup
  if the doubleclick then dostuff
end
[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 Tell won't work

2004-04-27 Thread Colin Holgate
Im trying to communicate a miaw with another movie. no
luck at all. all get is script errorCannot perform
tell
can anyone help?


Which Director version, and what's the syntax you're using?

[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 Borderless MIAWs

2004-04-26 Thread Colin Holgate
I'm sure this has been covered before, but is there a way to get a
borderless MIAW?
In MX 2004, turn off all the Display Template options.

[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 Borderless MIAWs

2004-04-26 Thread Colin Holgate
Do you do it with something like window(x).windowType = bitmap name?
set the windowtype of window whatever to member(one bit bitmap)

or some dot syntax variation if you like.

[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 is memberNum property?

2004-04-24 Thread Colin Holgate
Where did the memberNum property dissapear in dmx04? It's not in the docs
but still pops up as a keyword. If it's gone, what do I substitute it with?
If you read the whole entry for the word member, you get told about 
membernum too.

[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 capture RETURN key problem (D8)

2004-04-23 Thread Colin Holgate
Behavior follows:

on keyDown
  --put the key
  if the key = RETURN then
DoIt
  end if
end
You need to do a pass for it to get to the field. Also, you might 
want to check for enter as well:

on keydown
  if the key = return or the key = enter then
 doit
  else
 pass
  end if
end
[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 capture RETURN key problem (D8)

2004-04-23 Thread Colin Holgate
You need to pass the event through the keyDown handler to the field:

on keyDown
  -- put the key
  if the key = RETURN then
DoIt
  end if
  pass
end
That would still put the return into the field, which you may not want.

[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 Scroll bar issues

2004-04-22 Thread Colin Holgate
Ideas on how to get around this?
Custom scroll bar.

[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 SIL again

2004-04-18 Thread Colin Holgate
on exitFrame(me)
  sp.locH = sp.locH + 1
end
That should be sprite(sp).loch = sprite(sp).loch + 1

[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 problem 205

2004-04-17 Thread Colin Holgate
Again the DirMx04 screenshot. I launched the app, and after clicking the
recent file link I had this popped up:
http://www.peb965.cv.ua/list_questions/problem205.htm


It's listed as being something fixed in Director 7.02:

http://www.macromedia.com/support/director/ts/documents/702_fixlist.htm

so I'm not sure why it would happen now.

[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 MX 2004 channel naming?

2004-04-14 Thread Colin Holgate
You can only set the name using the sprite inspector name field. Once 
it's named you can set anything you like using its name, in the usual 
forms, such as sprite(name).property = value, or set the property 
of sprite name to value.

You can find the channel number by using the spritenum, as in channum 
= sprite(name).spritenum or channum = the spritenum of sprite 
name. It will only return the first channel with a sprite of that 
name.

[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 Autoloading director

2004-04-10 Thread Colin Holgate
Is there a way to autoload and play director i.e. when someone puts the CD
in which the director projector is present, can director automatically open
up instead of the user to click on the diamond exe file? If so, could
someone please tell me what the exact lingo would be for that?
It isn't Lingo, it's a text file on the CD-ROM that enables this. 
Here's a page dedicated to telling you all about it:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/autorun/autoplay_works.asp

(Here's a TinyURL version: http://tinyurl.com/7jm2)
[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 Autoloading director

2004-04-10 Thread Colin Holgate
  And no, before you ask, bumping up the frame rate does NOT make your
  program run faster.  In fact, quite the contrary.
Just out of curiosity, why would it run slower at a faster frame rate?
It wouldn't, in the case of a movie that isn't achieving you initial 
frame rate. If you have a movie that is easily achieving its intended 
frame rate, setting the rate to a higher amount will just cause 
Director to take more of the available time. That might in some cases 
work against other things such as QuickTime playback (which could use 
the extra time Director isn't taking).

If you have a movie that is set to say 15 or 30 fps, and is still 
jerky, you need to solve bigger problems.

[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 Go back to handler name

2004-04-09 Thread Colin Holgate
::blushing::

oops...should have said open-apple... guess it shows how much I use 
director on the mac :0)
Did you use it a lot on the Apple ][?

[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-bug: contains() and offset() mix up chars

2004-04-08 Thread Colin Holgate
i just wondered, is the following a known director bug?

c=numtochar(138)
put (c contains numtochar(154))
-- 1
put offset(numtochar(154),c)
-- 1
That is odd, but not as disturbing as the fact 
that you can't do option-u u (to get a ΓΌ) in 
Director now.

[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 find property-names of flash obect

2004-04-05 Thread Colin Holgate

As they enumerated
in the object inspector, there must be a way to find them, but can this
be done with lingo?
sprite(FlashSpriteNum).showProps()

??
I think it's the properties within the Flash member that were needed, 
which you can get with sprite(n).objectlist.

[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 quickTimeVersion()

2004-04-02 Thread Colin Holgate
Are your files located in a Mac area that VPC is logged onto? Have 
you tried copying all your files to VPC's C drive? I have seen errors 
similar to yours when trying to test a PC projector that is residing 
on a Mac volume connected via sharing.

[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 quickTimeVersion()

2004-04-02 Thread Colin Holgate
yes it was! But the Projector without 'checking' Quicktime version works well.
Now I tryed it with copie the files to VPC Disc and an ohter time 
run it from CD-ROM in the VPC -- ther are all the same results.
It was a short lived theory. Does your VPC have QuickTime installed by the way?

[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 Camera capture

2004-03-26 Thread Colin Holgate
http://www.proplanet.nl/SaniNetViewer/?Badkamer=2003.05.01-10.56-BXES35472D
What does the SecureNet Xtra 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!]


RE: lingo-l Camera capture

2004-03-26 Thread Colin Holgate
http://www.proplanet.nl/SaniNetViewer/?Badkamer=2003.05.01-10.56-BXES35472D
What does the SecureNet Xtra do?
By the way, the movie never gets past 30% loaded, and reloading the 
page brings up the PrintoMatic Xtra certificate again.

[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 Cursor command not working

2004-03-22 Thread Colin Holgate
What would cause a cursor command not to work in a mouseWithin handler?
Below, it gets to the cursor line, but doesn't do anything.
Of course it doesn't. You have about six skillion conditionals to be 
tested first, with deep bracket access. The poor Lingo interpreter 
doesn't have time to get to the cursor command.
I think Warren may be wrong here (I mean, I know he may be wrong, I 
think that he is wrong). You've said that it gets to the cursor line 
and nothing happens, that should mean that the complexity of the 
script isn't the problem. I would check the two cast members, make 
sure they are both 1 bit graphics.
[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 mTime???

2004-03-22 Thread Colin Holgate
mTime isn't in the docs anywhere that I can find. Has anybody seen this,
or used it? Is it deprecated Lingo? Any idea why he used mTime instead
of movieTime (he's on vacation in the Caribbean, so I can't ask him).
I think that mTime was short lived Lingo for setting the movietime of 
a QT3 member, during the Director 6.5 period (when a QuickTime member 
and a QT3 member were not the same thing). With D7 you had to use 
QT3, and so QuickTime sprites were controlled with movietime again.

In other words, if you're now in D7 or later, all his mTimes can be movietimes.

[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 DMX 2004 Keyboard Short Cuts?

2004-03-19 Thread Colin Holgate
It's under Edit - Find - Selection, Ctrl + /
So you can prepare yourselves mentally, it's now command-shift-F 
(control-shift-F) in 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!]


Re: lingo-l DMX 2004 Keyboard Short Cuts?

2004-03-19 Thread Colin Holgate
Aha! My complaints were heard. That's good.
Now if I could just figure out a workable one-hand fingering for that.
My hands aren't so big, and I'm coping fine with command-shift-F. 
Command-/ would require a big hand stretch, or letting go of the 
mouse.

[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 DMX 2004 Keyboard Short Cuts?

2004-03-19 Thread Colin Holgate
those two keys (cmd  /) are actually next each other on my kbd
 (an older mac kbd w/a cmd key on each side of the space bar)
Mine too, but on the mouse side of the keyboard for me.

[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 DMX 2004 Keyboard Short Cuts?

2004-03-19 Thread Colin Holgate
Yeah, but I was thinking Ctr-Shift-F on Windows.

I guess it's thumb-pinky-index finger on Mac, which is easy.
Right. Could you manage pinky-third finger- index finger? It's not a 
typical press, but it's less bending than command-shift-F.

[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: QuickTime Director

2004-03-18 Thread Colin Holgate
Although Alfred ends with the same advice I gave, I'm not sure of his 
reasoning. It's true that QuickTime has all the previous frames 
kicking around in memory, but that is true of all codecs and all 
QuickTime versions since 2.0. It would be true with S3 movies whether 
they are dither copy or composition (dither copy). It is also true 
that Director has been confused by this in the past, into thinking 
that you were out of RAM, but I don't know if that's been a problem 
since the QT3 Xtra came in with Director 6.5.

[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 Frame events (was: What happend to fps?)

2004-03-18 Thread Colin Holgate
I don't think I ever use enterFrame() at all, since by that time the current
frame is already visible.  What advantages do you see in using enterFrame()
rather than exitFrame()?
It's a rare occasion when James has missed picking up on a trick!

The very short version is: exitframe script extends the duration of 
the current frame, enterframe uses part of the duration of the 
current frame. The difference in some cases can have an extreme 
effect on your overall frame rate, as much as twice the frame rate is 
possible.

For example, if you are set to 30 fps, and have a script overhead of 
1/30th of a second, putting that script into the exitframe script 
will leave you with a 15 fps movie. Putting it in the enterframe 
script will leave it at 30 fps.

[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 delayed messages

2004-03-18 Thread Colin Holgate
Date: Thu, 18 Mar 2004 10:33:59 -0500
It's taking over 45 minutes for messages to reach lingo-l at the 
moment. Strange.

[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 delayed messages

2004-03-18 Thread Colin Holgate
Date: Thu, 18 Mar 2004 11:22:27 -0500

Date: Thu, 18 Mar 2004 10:33:59 -0500
It's taking over 45 minutes for messages to reach lingo-l at the 
moment. Strange.
Not any more.

[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 delayed messages

2004-03-18 Thread Colin Holgate
It's taking over 45 minutes for messages to reach lingo-l at the 
moment. Strange.
Not even remotely. I've seen delays as long as three hours and more. 
Characteristically my replies take at least 30 minutes to hit the 
list.
The point being that it's just lingo-l, other lists are snappy 
enough. So is lingo-l at the moment (sent at 11:56am, we'll see...).

[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: QuickTime Director Crashing

2004-03-17 Thread Colin Holgate
QuickTime 6.5 is not an option, my client is standardized on QT 5.02.
It ought to work in 5.02. The key frame spacing sounds good, but the 
data rate seems a tad high for machines that are old enough to be on 
5.02. Should cause a crash though.

You might look over the QuickTime Settings control panel, to see what 
the video hardware settings are.

[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: QuickTime Director

2004-03-17 Thread Colin Holgate
Sorenson3 should work with QT5.x, although i seem to remember there were
teething troubles with some of the very earliest releases. I might be
imagining it. (Colin, does that ring bells?)
That B-Frames thing macmec just mentioned is the only thing that comes to mind.

[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 Movie Clip registration

2004-03-17 Thread Colin Holgate
Is there any way to set the regpoint on a movie clip? I've tried it in
the PI and the message window. It doesn't throw an error, but the
regpoint doesn't change.
I can't see a way to do it even in Flash. Are you trying to change 
the rotation point? You can do that to a Flash sprite, but I don't 
know if you can do it to an individual movieclip.

[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 Movie Clip registration

2004-03-17 Thread Colin Holgate
I actually meant a film loop.
No can do.
Apparently not. One thing to know, if you do fix them manually, 
rather than tweak the placement of the sprites on the stage, you 
could fix the animations themselves by expanding the film loop, make 
the changes, and remake the film loop.

[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: QuickTime Director

2004-03-17 Thread Colin Holgate
1. When I go into QuickTime control panels- video settings and change it to
safe mode, I never crash anymore. But I am not allowed to give this
instruction to my users, considered too technical.
The fix that was tried to sort ought video burn-in issues may help you too:

Open one of the QuickTime movies that always causes a crash, get info 
on the video track, and under Graphics Mode change it from the 
default of dither copy to the bottom entry in the list, 
composition (dither copy). The movie will play back looking the 
same, but won't try to use the hardware acceleration that gets used 
when you're not in Safe Mode.

Doing that would allow you to fix the problem without the customer 
changing anything.
[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 Movie Clip registration

2004-03-17 Thread Colin Holgate
It sounds then as if the size of the big film loop is 800 x 600 + the 
amount of width needed to contain the characters coming in from the 
side. Could you just align all your film loop sprites to their top 
left corners? Unless you have characters walking in from the left 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 RE: QuickTime Director

2004-03-17 Thread Colin Holgate
I tried your fix and it did seem to stop the computer from crashing but the
video performance is not great. The soundtrack sync seems to get lost. Is
there anything else I can do to help performance a bit?
What is the sounddevice set to?

[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 Knowing when text wraps

2004-03-16 Thread Colin Holgate
Is there a way to detect via Lingo whether a line of text has wrapped?
Charpostoloc will tell you. If the Y coordinate of the first 
character of the line is not the same as the Y coordinate of the last 
character,  then it wrapped.
[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 Help On Mpeg

2004-03-16 Thread Colin Holgate
With QuickTime, it can handle MPEG-1 files. I don't think QT supports
MP2, though--correct me if I'm wrong, guys.
Allow me: You need to be licensed to play MPEG-2, which you do by 
buying the MPEG-2 extension from Apple. Assuming you've done that, 
MPEG-2 can play in QuickTime in Director.

Tabuleiro can give you all the MPEG support you'll need. I think his
Xtra is xplat now, too.
I'm not sure if this relies on being licensed for MPEG-2 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 Need Help On Mpeg

2004-03-16 Thread Colin Holgate
  Allow me: You need to be licensed to play MPEG-2, which you do by
 buying the MPEG-2 extension from Apple. Assuming you've done that,
 MPEG-2 can play in QuickTime in Director.
Thanks, Colin. Does that cover Windows QT also? Historically, QT Windows
has lagged behind the Mac by about a generation.
I had to check, but yes it does. There's separate products for OS 9, 
OS X, and Windows.

[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 QuickTime Director

2004-03-16 Thread Colin Holgate
What are the key frame spacing in the files? What are you doing when 
they crash the machine?

[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 QuickTime Director

2004-03-16 Thread Colin Holgate
  Do I have to load or unload the movies?

I usually don't. It may save a second here and there, but it shouldn't
cause them to crash.
Related to this, it often a good idea to have the QuickTime movie be 
paused, and set it playing once the frame is settled down.

[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 'auto distort' screwed up when generating more than 90 bitmaps

2004-03-12 Thread Colin Holgate
Workaround (hah!) is to use imaging lingo (slower, and requires coding
experience). Anyone written a tool miaw to make 'auto distort' obsolete?
(I also noticed that 'auto filter' slipped out of MX without a murmur. I
actually had this working at one time, but it was pretty horrible. I think
it's a shame we can't use 'filter bitmap' in imaging lingo.).
You might not think anyone uses 'auto distort', but I do, especially when
I am teaching, because it's a quick way of getting an animated series of
bitmaps together.
Well, even I don't use the tool, but it was easy to figure out the 
problem. It's not a bug, it's a rounding issue. You'll notice that 91 
rotations totals about 3/4 worth,because:

put (360/91) * 91
-- 273
Did you try it with 120 bitmaps? Works fine.

I've thought of a way to do nicer rotations, I might give it a go later.

[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 MIAW, Flash and redrawing (Is Back)

2004-03-09 Thread Colin Holgate
What are the minimum steps to show the problem? I tried having a DTS 
Flash in a MIAW and closing it, but the stage stays intact even 
without any special work around.

[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 speed comparison between DTS and non-DTS Flash

2004-03-09 Thread Colin Holgate
While trying to make Flash go wrong, I tried timing DTS versus 
non-DTS. I was using a Flash movie that has an extreme amount of 
curves (206 frame animation that has no sounds, no bitmaps, just 
curves, and yet is 3.7 MB). I set the Flash member to be lock-step, 
and set the Director movie to 999 fps. I spread the Flash sprite out 
to 206 frames in the score, and put a put the timer, starttimer, go 
1 script at the end.

The time for the 206 frames DTS was 680 ticks for high quality and 
380 ticks for low quality. Non-DTS was 740 and 450. As I mentioned, 
it's a demanding animation, which should cause the most difference 
between DTS and non-DTS. Even with this case the performance 
difference was only in the 10-15% range, which may not be enough gain 
if you have to jump through hoops to work around DTS issues.

[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 speed comparison between DTS and non-DTS Flash

2004-03-09 Thread Colin Holgate
I think your argument is that setting Director to do as little as 
possible will mean that as much of the time taken was clearly taken 
by the Flash sprite. I can counter that argument by saying that if I 
make the Flash sprite smaller it goes a lot faster, meaning that the 
proportion of time taken by Director is small.

One way to test how much time Director is taking would be to set a 
frame rate of 999 and put this in the 206th frame (assuming you're 
about to test the speed of a 206 frame Flash sprite):

on exitframe
  put the timer
  starttimer
  go 1
end
My iMac isn't as fast as my PowerBook, but even it gets through those 
frames in 15 ticks. If I puppettempo 3, that drops to 8 or 9 
ticks. I'm certain that if a Flash sprite that takes 680 ticks to 
draw all of its frames this way, 665 of those ticks are down to the 
Flash sprite.

Another concern about not using lock-step to test the Flash 
performance is that the Flash movie might skip frames to play at its 
intended frame rate.

Whatever the case, my DTS and non-DTS test were done the same way, 
which should mean that the test is valid.

[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 MIAW, Flash and redrawing (Is Back with more info)

2004-03-09 Thread Colin Holgate
I'm using a GoURL command inside Flash that call a function in 
Director that has the command go to frame.. of movie ...
I think Kerry (I'm doing all Kerry's thinking tonight) was getting at 
the danger of going directly from a button in a Flash sprite to 
another Director movie where that Flash sprite doesn't exist. That 
used to cause crashes, and might even now lead to strange symptoms. 
Your getUrl ought to set a global variable, or maybe trigger a 
timeout script, to do the navigation to the next movie after the 
getUrl call has finished.

Back to your description, it sounds now like its the area occupied on 
the stage by a DTS Flash sprite that is being affected by the MIAW 
going away. That's different to what I was testing, where I was 
making a DTS Flash sprite in a MIAW go away with a bitmap on the 
stage.

The stagecolor = the stagecolor you were doing, is that in the stage 
movie, or the MIAW?

[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 speed comparison between DTS and non-DTS Flash

2004-03-09 Thread Colin Holgate
  Whatever the case, my DTS and non-DTS test were done the same way,
 which should mean that the test is valid.
I'm not saying your tests aren't valid, just that you're testing for
something different than I would. Your tests show one important aspect
of the effect of DTS. I'm interested in other aspects. Not disputing
your observations, just wondering if the results would be different with
a different test.


I was trying to give Flash the best case. I think that in all other 
cases the proportion of time taken by non-Flash things increases, and 
so the difference between DTS and non-DTS becomes even less important.

[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 MIAW, Flash and redrawing (SOLVED)

2004-03-08 Thread Colin Holgate
So this is really a multi-pronged tool.


Now you're just bragging.

[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 MIAW, Flash and redrawing (SOLVED)

2004-03-08 Thread Colin Holgate
Is there a problem with using Flash DTS? (other than this redraw 
issue which I have not seen)
I would have thought DTS would be the best way to go?
If you ave a Flash sprite that is filling the area it's in, and you 
don't need to see other sprites behind it or place other sprites on 
top of it, then DTS would be ok (other than junk that might be left 
on the stage). Often though Flash sprites are irregular shaped, and 
the idea is to have them as one layer in the interface. In those 
cases you can't use DTS, because it would create a white rectangle 
where the sprite goes.

[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 MIAW, Flash and redrawing (SOLVED)

2004-03-07 Thread Colin Holgate
Thanks
It worked perfectly after I have used the the stageColor = the 
stageColor command, I wander way there is not documentation about 
this very useful command.


It's not normally something you would ever set (unless you were maybe 
reproducing the A Clockwork Orange title sequence). Nobody seemed to 
mention that the cause of the problem was having a DTS Flash sprite. 
Did it really need to be DTS?

[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 finding the last substring within a string

2004-03-05 Thread Colin Holgate
F:\All Risk
Training\modules\serviceInterruption\serviceInterruption.cst
...that I want to find the last position of serviceInterruption and
chop it off so that the string is F:\All Risk
Training\modules\serviceInterruption\.
If the cast happens to be next to the movie, you end up with the same 
as the moviepath. The general solution of getting the folder path 
from a file path, would be this:

oldid = the itemdelimiter
the itemdelimiter = the last char of the moviepath
delete the last item of filepath
folderpath = filepath  the itemdelimiter
the itemdelimiter = oldid
That would work cross platform.

[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 cross platform xtras in external folder

2004-03-05 Thread Colin Holgate
on Mac, if your projector is 'start', place 'start.pct' (or maybe 
'start.pic', I forget which) next to your projector.


.pct

[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 finding the last substring within a string

2004-03-05 Thread Colin Holgate
Thanks...but actually in my case, the movie isn't next to the cast.  :-)

I'll just have to write something weird to do it.
I hope you read the reset of my message, which was the something 
weird you would have to write?

[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 finding the last substring within a string

2004-03-05 Thread Colin Holgate
   F:\All Risk
  Training\modules\serviceInterruption\serviceInterruption.cst

 The itemDelimiter = \
 delete the last item of...


Or to see that in the new MX'04 Lingo dot-syntax:

tStr = F:\All Risk
Training\modules\serviceInterruption\serviceInterruption.cst
_player.itemDelimiter = \
delete tStr.item[tStr.item.count]
put(tStr)
-- F:\All Risk Training\modules\serviceInterruption
Neither of those suggestions leaves you with the trailing delimiter. 
See my few verbose lines to see how to do it.

[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 finding the last substring within a string

2004-03-05 Thread Colin Holgate
Colin:
Forgive me, but I'm not sure what you mean by reset of the message.


I meant rest of my message, the bit that says this:

oldid = the itemdelimiter
the itemdelimiter = the last char of the moviepath
delete the last item of filepath
folderpath = filepath  the itemdelimiter
the itemdelimiter = oldid
That will get the folder path from a given file path.

[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   3   4   5   6   >