Re: Print

2002-04-09 Thread maheshm


Try this,

vTempImage = (the stage).image.duplicate()
new(#bitmap).name = "screenDump"
member("screenDump").image = vTempImage
-- ** Lingo to print the member("screenDump") comes here ** --
member("screenDump").erase()

HTH,
mahesh

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



Print

2002-04-09 Thread Reena Ravindran

Hi

Is there anyway to print a particular screen from within the presentation
i.e if a user wants to print all the matter that is there on the a screen
can it be printed at a click of a button.

Reena

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



Projectors made from D8.5

2002-04-09 Thread Manisha Sinha

Can anybody tell me how to set the minimum system requirements for a
magazine authored in Director 8.5 with liberal use of Flash MX in terms of
action scripting, animation and video.

Currently the system requirements set are (set one and a half years back) :
Pentium 200; 32 MB RAM; Sound Card; 16 Bit Color Display; Best viewed on 800
x 600.

I have started getting reports that the magazine (on cd rom) is "very" slow
on this config.

Is there any rule book to follow to set min system requirements.

Do Projectors made from D8.5 would need faster systems for smooth running as
compared to projectors made from D8 and D7.

Any help will be greatly appreciated.

Thanks

Manisha
[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: User to draw a shape

2002-04-09 Thread Buzz Kettles

if they're clicking on the stage, then make a frame script do the 
work, but if you need to use the frame script for something else, 
then use a background sprite with a behavior on it.

create the shape on the fly (use score recording to make the sprite & 
new(#shape) to make the member).  Use the mouse drag to stretch the 
sprite().rect while the mouse is down.

hth

-Buzz

At 10:47 AM +1000 4/10/02, you wrote:
>Hi,
>
>I wish the user the click on the stage and drag the mouse out. While the
>mouse is down and being dragged, a rectangle/shape shape is drawn.
>
>Any ideas on how to write the code.
>
>
>Leah
>
>DISCLAIMER
>The information contained in the above e-mail message or messages
>(which includes any attachments) is confidential and may be legally
>privileged.  It is intended only for the use of the person or entity
>to which it is addressed.  If you are not the addressee any form of
>disclosure, copying, modification, distribution or any action taken
>or omitted in reliance on the information is unauthorised.  Opinions
>contained in the message(s) do not necessarily reflect the opinions
>of the Queensland Government and its authorities.  If you received
>this communication in error, please notify the sender immediately and
>delete it from your computer system network.
>
>[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: visible and invisible sprites

2002-04-09 Thread chenggc

Hi,

> > This script has always been there  in the score.
> >
>Is it a frame script? It needs to be in a frame before the end of the
>sprite a span.


Yes it is.It's always been there. 

> >  >Either that, or move the code to make sprite 250 visible to another
> > >place, where you really want it to become visible.
> >
> > How do I accomplish this?
> >
>Umm... I think that you can take it from here. I don't know your movie
>or your code, so I can't really tell you. And, to be honest, that's
>pretty simple logic--I don't mean to be unkind, but if you're going to
>succeed as a Lingo programmer, you probably need to be able to figure
>these things out.

Well, the original code that I provided used to work, then when I used it again, it 
could not.

That was why I posted it.  Are such things possible?


That's why I asked those questions.

Anyway I'll look at the code again and try to debug it. 


Noelle


[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: play soundfile problems

2002-04-09 Thread Buzz Kettles

Don't yank the soundDevices.
Warren is mistaken - that shouldn't do a thing except make sound worse.

Just to remind everyone, PCM .WAV files are the 'normal' kind.

If you want to support IMA.WAV, it might work if you include the 
Sound Import Export (it includes support for IMA-WAV 
(micro-documented in the d702 readme, I think)

BUT A MUCH BETTER SOLUTION, is to use Sound Forge to convert 
everything to normal WAV files.

-Buzz

At 10:03 PM +0100 4/9/02, you wrote:
>  > This is really reminiscent of something else I seem to recall reading
>>  about a year ago regarding Win2K and the preferred driver that
>>  Director uses when it's playing sounds. Try getting into your movie's
>>  list of Xtras and removing everytihng except MacroMix; try another
>>  one using just the QT stuff (no other sound drivers). If memory
>>  serves what's happening is some kind of clash between the Director
>>  drivers and the ever-so-intelligently-designed Windows "architecture"
>>  they're supposed to employ.
>>
>>  --
>>
>>Warren Ockrassa | http://www.nightwares.com/
>>Director help | Free files | Sample chapters | Freelance | Consulting
>>  Author | Director 8.5 Shockwave Studio: A Beginner's Guide
>>  Published by Osborne/McGraw-Hill
>>http://www.osborne.com/indexes/beginners_guides.shtml
>
>Well I've experimented and the following seems true (in this case): if the
>WAV file is any format but PCM it won't play. I tried removing each of the
>xtras you suggested and trying with just one or the other with little effect
>on the problem. My distrust of the Windows XP architecture (makes Gaudi look
>linear! :)  ) means I'm rebuilding as a dual boot win 98 se \win xp pro. The
>other limitations placed on me by XP are becoming tiresome: new software
>bill as a result of XP  $250 and rising
>
>wobbly
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.343 / Virus Database: 190 - Release Date: 22/03/2002
>
>[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: copying tween path

2002-04-09 Thread Colin Holgate

>This is potentally a vey east questoin to answer, but
>none the less. How can I copy a motion tween path to
>another sprite so that the 2 objects can grow, shrink
>and spin the same way?


That almost sounds like a Flash question. If it was a Director one, do this:

copy the sprite into a second channel (you can do that by 
option-dragging it from one channel to another in the score window)

select the other cast member you want to follow the same path, and 
type Command-E. That will exchange the duplicate sprite's member for 
the other cast member.

You should now have two sprites that look different, but follow the same 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!]



copying tween path

2002-04-09 Thread Rob Barras

This is potentally a vey east questoin to answer, but
none the less. How can I copy a motion tween path to
another sprite so that the 2 objects can grow, shrink
and spin the same way?

Thanks to whonever answers this.
revolt5150

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
[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!]



User to draw a shape

2002-04-09 Thread Constantino, Leah

Hi,

I wish the user the click on the stage and drag the mouse out. While the
mouse is down and being dragged, a rectangle/shape shape is drawn.

Any ideas on how to write the code.


Leah

DISCLAIMER
The information contained in the above e-mail message or messages 
(which includes any attachments) is confidential and may be legally 
privileged.  It is intended only for the use of the person or entity 
to which it is addressed.  If you are not the addressee any form of 
disclosure, copying, modification, distribution or any action taken 
or omitted in reliance on the information is unauthorised.  Opinions 
contained in the message(s) do not necessarily reflect the opinions 
of the Queensland Government and its authorities.  If you received 
this communication in error, please notify the sender immediately and 
delete it from your computer system network.

[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: problems with streaming swa in dcr

2002-04-09 Thread Buzz Kettles

I'd check the Shockwave installation.
perhaps you have a corrupted Xtra?

btw:  what version of Director?

hth

-Buzz

At 4:48 PM -0500 4/9/02, Robert Wright wrote:
>Hello All -
>
>I have an odd behavior occurring in a dcr of mine.
>
>This dcr has a single inserted swa file that it is pointing to. This swa
>file contains a number of cue points. I'm using the 'on cuePassed' handler
>to determine when to go to the next frame (works like a bulleted list slide
>show.)
>
>Problem is that this works fine in authoring mode and in IE5.1-Mac ... but
>fails on both IE6.0-Win2000 and NS6.2.2-Win2000. It fails by ignoring the
>cuepoints (or perhaps even the audio) altogether... which means you never
>hear anything... and it just sits there.
>
>For testing purposes, I have a frame script that is putting the state of the
>swa file into a field on screen... In the windows browsers... state is
>always 3 (playing).
>
>I have the preloadbuffer set to 10 secs. The audio is approx. 30 secs. in
>length. The bitrate of the swa file is 24 kb/sec.
>
>I am developing on Mac OS 9.2 - D8.0. I'm sure I have forgotten some
>information that might help you help me... so please let me know.
>
>Any help, suggestions would be greatly appreciated... have an impatient
>client that wants to see a new WIP ASAP. Enough with the acronyms -- :)
>
>One more thing... I have checked pathing... with no new luck. Currently
>using relative pathing to external swa file.
>
>Thanks,
>
>Robert
>--
>*
>Robert Wright
>VP of Production
>DxR Development Group, Inc.
>e: [EMAIL PROTECTED]
>t: (618) 453-5871
>f: (618) 453-5309
>*
>
>[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: visible and invisible sprites

2002-04-09 Thread Kerry Thompson

> This script has always been there  in the score.
> 
Is it a frame script? It needs to be in a frame before the end of the
sprite a span.


>  >Either that, or move the code to make sprite 250 visible to another
> >place, where you really want it to become visible.
> 
> How do I accomplish this?
> 
Umm... I think that you can take it from here. I don't know your movie
or your code, so I can't really tell you. And, to be honest, that's
pretty simple logic--I don't mean to be unkind, but if you're going to
succeed as a Lingo programmer, you probably need to be able to figure
these things out.

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



Re: visible and invisible sprites

2002-04-09 Thread noelle cheng

Hi,

 >You probably need to loop with something like

 >on exitFrame
 >go the frame
 >end

This script has always been there  in the score.


 >Either that, or move the code to make sprite 250 visible to another
 >place, where you really want it to become visible.

How do I accomplish this?

Noelle

[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: Character substitution

2002-04-09 Thread Kerry Thompson

> Wouldn't something like this work?
> 
> repeat while offset(stringToCheck,charToFind)
> 
>   -- get the found character's position in the string
>   tCharNum = offset(stringToCheck,charToFind)
> 
>   -- put in the replacement character
>   put replacementChar after stringToCheck.char[tCharNum]
> 
>   -- remove the original character
>   delete stringToCheck.char[tCharNum]
> 
> end repeat
> 
Actually, that's very similar to what I ended up doing--I'm looping
through the characters in the string looking for charToNum > 127, then
doing a substitution. 

I was looking for a faster way--one Lingo command, hopefully, sort of
like Pascal's "in" function. I don't mind doing the coding--I'm just
looking for faster execution.

Maybe I'll just post the code and see what improvements people suggest.

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



RE: Character substitution

2002-04-09 Thread Thomas Higgins

Wouldn't something like this work?

repeat while offset(stringToCheck,charToFind)

  -- get the found character's position in the string
  tCharNum = offset(stringToCheck,charToFind)

  -- put in the replacement character
  put replacementChar after stringToCheck.char[tCharNum]

  -- remove the original character
  delete stringToCheck.char[tCharNum]

end repeat

The repeat loop would run until you've found all instances of the character you want 
to remove and replaced them with the new character. No if...then... structures of 
mammoth proportions, just one loop, nice'n'pretty.

Cheers,
Tom


> -Original Message-
> From: Kerry Thompson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 09, 2002 3:51 PM
> To: [EMAIL PROTECTED]
> Subject:  Character substitution
> 
> 
> There's gotta be a better way to do this (and I should know it).
> 
> I need to convert some high-ANSI Spanish characters to their 
> unaccented
> ASCII equivalents. For example, ó (that's o with a right-accent, if it
> doesn't make it across e-mail) needs to be o, no accent. Basically, I
> need to remove all the accented characters from a file name, 
> and replace
> them with unaccented characters.
> 
> I can do an series of "if" checks, checking offset(). There are 12
> accented Spanish characters, though--that's a lot of if...or..or..or..
> 
> Is there a simpler way to check? Contains() doesn't do it, and I don't
> see a way to do it with a list.
> 
> 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!]
> 
[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!]



Character substitution

2002-04-09 Thread Kerry Thompson

There's gotta be a better way to do this (and I should know it).

I need to convert some high-ANSI Spanish characters to their unaccented
ASCII equivalents. For example, ó (that's o with a right-accent, if it
doesn't make it across e-mail) needs to be o, no accent. Basically, I
need to remove all the accented characters from a file name, and replace
them with unaccented characters.

I can do an series of "if" checks, checking offset(). There are 12
accented Spanish characters, though--that's a lot of if...or..or..or..

Is there a simpler way to check? Contains() doesn't do it, and I don't
see a way to do it with a list.

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



RE: visible and invisible sprites

2002-04-09 Thread Kerry Thompson

>  >   on endSprite me
>  > sprite(250).visible = TRUE
>  >   END endSprite
> 
> After a  pause, whether there is a mouseup or  not, sprite b becomes
> permanently visible.
> 
There's your clue right above--when the playback head passes out of
sprite a's sprite span, you get an endSprite message, and that's setting
sprite b back to visible.

You probably need to loop with something like

on exitFrame
  go the frame
end

Either that, or move the code to make sprite 250 visible to another
place, where you really want it to become visible.

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



Re: visible and invisible sprites

2002-04-09 Thread noelle cheng

Hi,

 >Well, you need to make sure that sprite b is in channel number 250.
 >If it's not this won't work.

It's done.

 >Also, make sure you add  the 'me' keywords if these are behaviors.

This was done too.


 >As suggested you can also do this:
 >
 >   on mouseUp me
 > sprite(250).visible = not ( sprite(250).visible )
 >   END mouseUp
 >
 >   on endSprite me
 > sprite(250).visible = TRUE
 >   END endSprite
 >
 >The change in the mouseUp will toggle the visibility of sprite 250,
 >either switching it on if it's off, or off if it's on.

I sincerely apologise for bringing this issue up again but  I have still 
much difficulty in trying to achieve the effect of making sprite b visible 
only when there is a mouse-up on sprite a.

The code that was provided above has the effect of  making  sprite b 
invisible on the screen when this screen is open. After a  pause, whether 
there is a mouseup or  not, sprite b becomes permanently visible.

May I add here that there are a few pairs of sprites a and b on the stage 
at a given time.

How then is the effect that I need achieved?

Noelle 

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



problems with streaming swa in dcr

2002-04-09 Thread Robert Wright

Hello All -

I have an odd behavior occurring in a dcr of mine.

This dcr has a single inserted swa file that it is pointing to. This swa
file contains a number of cue points. I'm using the 'on cuePassed' handler
to determine when to go to the next frame (works like a bulleted list slide
show.)

Problem is that this works fine in authoring mode and in IE5.1-Mac ... but
fails on both IE6.0-Win2000 and NS6.2.2-Win2000. It fails by ignoring the
cuepoints (or perhaps even the audio) altogether... which means you never
hear anything... and it just sits there.

For testing purposes, I have a frame script that is putting the state of the
swa file into a field on screen... In the windows browsers... state is
always 3 (playing).

I have the preloadbuffer set to 10 secs. The audio is approx. 30 secs. in
length. The bitrate of the swa file is 24 kb/sec.

I am developing on Mac OS 9.2 - D8.0. I'm sure I have forgotten some
information that might help you help me... so please let me know.

Any help, suggestions would be greatly appreciated... have an impatient
client that wants to see a new WIP ASAP. Enough with the acronyms -- :)

One more thing... I have checked pathing... with no new luck. Currently
using relative pathing to external swa file.

Thanks,

Robert
-- 
*
Robert Wright
VP of Production
DxR Development Group, Inc.
e: [EMAIL PROTECTED]
t: (618) 453-5871
f: (618) 453-5309
*

[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: OT: Maybe a BIIG sorry is in place????

2002-04-09 Thread Kerry Thompson

> Well hope at least 1 copy of it reaches the list =)
> 
I got one copy--and only one. Nice hack, Mikael.

Interesting--three of us posted answers within a few minutes of each
other, and all the solutions were recursive. I guess it really is the
way to go ^_^

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



Re: Tempo Changes any time effects channels are manipulated.

2002-04-09 Thread Chad Mefferd (Morris Publishing)

on 4/9/02 3:21 PM, Howdy-Tzi at [EMAIL PROTECTED] wrote:

> At 14:36 -0500 04/09/2002, Chad Mefferd (Morris Publishing) wrote:
> 
>> I get no results for puppetTempo anywhere in my casts.
> 
> Hell. Try a search for "tempo" (no quotes) and uncheck the "whole
> words only" option. Something someplace must be resetting your
> framerate.

You were right, of course.
> 
> Now that I think about hit, how can you tell the frame rate is being
> forced to 30? I mean, what is it in Director's interface that is
> telling you the frame rate is 30, and how are you trying to set it to
> something differently?
> 
The Control Panel and the clearly visible effect on playback. I can of
course set it back by typing 15 in the fps window. Which would stick until
manipulating anything at all in the effects channels.


>> Thanks for the tip on searching scripts though.
> 
> No problemop. Pretty darned handy feature, that! ;)

Thanks again for your help.

Sincerely,

Chad Mefferd
Art Director
Morris Companies

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



OT: Maybe a BIIG sorry is in place????

2002-04-09 Thread Mikael Wirén

Hi all,
Sorry about this pointless (maybe) mail.
But my mailprogram just did the strangest thing. It wouldnt let me reply to
a mail from the list, kept bouncing it back to me. So i reposted it a few
times =/
So if the same mail pops up on the list a couple of times don´t kill me,
kill my ISP instead.
Well hope at least 1 copy of it reaches the list =)

/Micke


Mikael Wirén
Knowledge Network
Lillhagsvägen 36
124 71 BANDHAGEN
Tel: +46 (0)8 556 204 50
Mob: +46-(0)709-15 24 30
Mail: [EMAIL PROTECTED]
Web: HTTP://www.knowledgenetwork.se



[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: list all files inside a folder (that has manyfolders in it)?

2002-04-09 Thread James Newton

Changhsu P. Liu <[EMAIL PROTECTED]> wrote:

> Is there a way to list all the files inside a folder where there are many
> folders inside a folder and more folders inside each individual folders.

Hi Changhsu,

Here is a handler that uses recursion to create a nested property list
with the format:

  ["file1": 0, "folder1": ["file2": 0, "subFolder1": ["file3": 0]]]

Element names appear as properties.  File names have a value of 0 while the
value of folder names is a property list of files and folders.  This version
was written for the old FileXtra written by Kent Kersten of
LittlePlanet.com.  The principle would work equally well with a number of
other xtras, or even with getNthFileNameInFolder().

Cheers,

James





on GetFileTree(folderPath) ---
  -- Returns an alphabetical list of elements in  as a
  --  property list, or an error symbol if the folderPath is invalid.
  --
  --  should be a string path name.
  --
  -- Requires FileXtra
  
  
  -- Determine which character FileXtra will use to indicate a folder
  pathDelimiter = the last char of the applicationPath
  
  if not stringP(folderPath) then
return #invalidString
  end if
  
  -- Ensure that folderPath ends with pathDelimiter
  if the last char of folderPath <> pathDelimiter then
folderPath = folderPath & pathDelimiter
  end if
  
  -- Create and sort the property list that will be returned
  fileTree = [:]
  fileTree.sort()
  
  contents = DirectoryToList(folderPath)
  if ilk(contents) <> #list then
return #invalidPath
  end if
  
  i = contents.count()
  repeat while i
element = contents[i]
if the last char of element = pathDelimiter then
  -- element is a folder: user recursion to get subfolder contents
  fileTree.addProp(element, GetFileTree(folderPath&element))
else -- element is a file
  fileTree.addProp(element, 0)
end if
i = i - 1
  end repeat
  
  return fileTree
end GetFileTree

[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: list all files inside a folder (that has many folders in it)?

2002-04-09 Thread Mikael Wirén

Sorry bout the long code snippet, but i didnt have time to sort out the
specifics, so i just dumped the whole script in here.
> Is there a way to list all the files inside a folder where
> there are many
> folders inside a folder and more folders inside each
> individual folders.
Yes there is here is a handler i wrote doing a customized installer back
in -99 so it´s a bit chunky. but it´s what ur looking for i think.
BUT
The installer fell on that at the time there were no way to actually update
the progressbar while a file was being read, so we had to go with
instashield after all since the mainfile was larger than 400 meg =).

property pNewPath
property folderList
property pNotList
on beginSprite me
  pNewPath = member("savePath").text
  pNotList = []
end

on createFolderTree me --THIS IS PROLLY WHAT U WANT.
  baRegister(  ) --So noone uses
my buddy licence =)
  --Creates the path if its not existent
  ok = baFolderExists( pNewPath )
  if ok = 0 then
baCreateFolder( pNewPath )
  end if

  -- pseudo progress
  sprite(4).loc = point(15,108)
  sprite(4).trails = TRUE
  -- end pseudo progress


  foldList = baFolderList(the moviePath)
  folderList = []
  repeat with n = 1 to foldList.count
repeat with g = 1 to pNotList.count
  notFolder = pNotList[g]
  if foldList[n] = notFolder then
next repeat
  else
folderList.add(the MoviePath & foldList[n])
  end if
end repeat
  end repeat
  repeat with i = 1 to foldList.count
the itemDelimiter = "\"
aName = foldList[i]
if aName.item.count > 1 then
  subList = baFolderList(aName)
else
  subList = baFolderList(the moviePath & aName)
end if
if subList.count > 0 then
  repeat With x = 1 to sublist.count
newFolder = sublist[x]
folderList.add(the moviePath & aName & "\" & newFolder)
  end repeat
else
  exit repeat
end if
  end repeat
  digIn(folderList)
  createMainFiles()
end

on digIn orgFolderList --DONT FORGET THIS PART TOO SINCE THIS IS THE
RECURSIVE PART
  tempList = []
  repeat with x = 1 to orgFolderList.count
aFolder = orgFolderList[x]
put aFolder
checkDepth = baFolderList(aFolder)
if checkDepth <> [] then
  repeat With e = 1 to checkDepth.count
aName = checkDepth[e]
tempList.add(orgFolderList[x] & "\" & aName)
folderList.add(orgFolderList[x] & "\" & aName)
digIn(tempList)
  end repeat
else
  exit repeat
end if
  end repeat
  startCreatingFiles()
end

on startCreatingFiles me
  the itemDelimiter = "\"
  destList = []
  repeat with m = 1 to folderList.count
aFolder = folderList[m]
delete item 1 to 4 of aFolder
aDest = pNewPath & aFolder
destList.add(aDest)
  end repeat
  --Creates the folderTree
  repeat with f = 1 to destList.count
aNewFolder = destList[f]

-- Updatesa the text over the progressbar used
member("progName").text = aNewFolder
--end update

baCreateFolder(aNewFolder)

-- pseudo progress
sprite(4).locH = sprite(4).locH + 1
updateStage
--End pseudo progress

  end repeat
  -- copys the files to the right folder
  repeat with d = 1 to folderList.count
aFoldPlace = baFileList(folderList[d], "*.*")
repeat with a = 1 to aFoldPlace.count
  aFile = aFoldPlace[a]
  aOrigin = folderList[d] &"\"& aFile
  aTarget = destList[d] &"\"& aFile

  -- Updaterar texten
  member("progName").text = aFile
  --end uppdaterar texten

  aCheck = baCopyFile(aOrigin, aTarget , "Always")

  -- pseudo progress
  sprite(4).locH = sprite(4).locH + 1
  updateStage
  --End pseudo progress

  if not aCheck = 0 then
alert "Summin´s not right chum"
exit repeat
  else
next repeat
  end if
end repeat
  end repeat

end

on createMainFiles me
  mainFileList = baFileList(the moviePath, "*.*")
  repeat with s = 1 to mainFileList.count
aMainFile = mainFileList[s]

-- Updaterar texten
member("progName").text = aMainFile
--end uppdaterar texten

mainFile = baCopyFile(the moviePath & aMainFile, pNewPath & aMainFile,
"Always")

-- pseudo progress
sprite(4).locH = sprite(4).locH + 1
updateStage
--End pseudo progress

if not mainFile = 0 then
  alertH(#copyF)
  exit repeat
else
  next repeat
end if
  end repeat
  createStartMenuGroup()
  put folderList
end

on createStartMenuGroup me
  if the machineType = 256 then
check = baCreatePMGroup( "Vision Park" )
if check = 1 then
  --baCreatePMIcon( pNewPath & "polis2.exe", "Polis 2","",0)
  --baCreatePMIcon( pNewPath & "unInstall.exe", "Avinstallera Polis
2","",0)
  --alertH(#skapaR)
else
  alertH(#skapaF)
end if
createFolderLog()
  end if
end

on unInstallFiles me
  put folderList
  repeat with i = 1 to folderList.count
aFolder = folderList[i]
the itemDelimiter = "\"
delete item 1 

Re: play soundfile problems

2002-04-09 Thread Wobbly


> This is really reminiscent of something else I seem to recall reading
> about a year ago regarding Win2K and the preferred driver that
> Director uses when it's playing sounds. Try getting into your movie's
> list of Xtras and removing everytihng except MacroMix; try another
> one using just the QT stuff (no other sound drivers). If memory
> serves what's happening is some kind of clash between the Director
> drivers and the ever-so-intelligently-designed Windows "architecture"
> they're supposed to employ.
>
> --
>
>   Warren Ockrassa | http://www.nightwares.com/
>   Director help | Free files | Sample chapters | Freelance | Consulting
> Author | Director 8.5 Shockwave Studio: A Beginner's Guide
> Published by Osborne/McGraw-Hill
>   http://www.osborne.com/indexes/beginners_guides.shtml

Well I've experimented and the following seems true (in this case): if the
WAV file is any format but PCM it won't play. I tried removing each of the
xtras you suggested and trying with just one or the other with little effect
on the problem. My distrust of the Windows XP architecture (makes Gaudi look
linear! :)  ) means I'm rebuilding as a dual boot win 98 se \win xp pro. The
other limitations placed on me by XP are becoming tiresome: new software
bill as a result of XP  $250 and rising

wobbly


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.343 / Virus Database: 190 - Release Date: 22/03/2002

[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: list all files inside a folder (that has many folders in it)?

2002-04-09 Thread Kerry Thompson

> Is there a way to list all the files inside a folder where there are
> many folders inside a folder and more folders inside each individual
> folders.
> 
Here's a little utility I wrote to do just that. You'll notice that it's
recursive--that's the best way to do something like this. 


-- recursive routine to add all the files in the folder, and all the
files in all its subfolders,
-- to a list and write it to a file in that folder
on mCreateStoryFileList storyPath
  
  lFileList = []
  -- get a list of items in the folder  
  itemsToCheck = GetFilesInFolder (storyPath)
  numItemsToCheck = itemsToCheck.count
  
  -- step through the items in the folder and add them to the list  
  repeat with i = 1 to numItemsToCheck
ithItemInFolder = itemsToCheck[i]
fullPath = storyPath & ithItemInFolder
if baFolderExists(addPathSeparatorIfNecessary(fullPath)) then
  -- This item is a folder, so call myself recursively
  -- to get all the items in the subfolder
  lSubList = mCreateStoryFileList
(addPathSeparatorIfNecessary(fullPath))
  lSubListCount = lSubList.count
  repeat with j = 1 to lSubListCount
lFileList.add(lSubList[j])
  end repeat
else
  -- this item is a file, so we need to add it to the list
  -- first we need to trim the leading items in the path
  theItem = fullPath
  repeat while offset("story", theItem.item[1]) = 0
delete item 1 of theItem
  end repeat
  
  -- delete one last item--the story path
  delete item 1 of theItem
  
  -- We don't want to add ourselves to the files list
  if offset("Story Files List", theItem) = 0 then
lFileList.add(theItem)
  end if
end if
  end repeat
  
  return lFileList
  
end mCreateStoryFileList

on GetFilesInFolder aFolderPath
  
  fileList = [ ]
  repeat with i = 1 to the maxInteger
n = getNthFileNameInFolder(aFolderPath, i)
if n = EMPTY then exit repeat
append(fileList, n) 
  end repeat
  return fileList
end

-- addPathTerminatorIfNecessary appends path separator character if not
already on the end
on addPathSeparatorIfNecessary pathString
  
  strLen = pathString.length
  if offset("mac", the Platform) > 0 then -- it's a Mac
if pathString.char[strLen] <> "" then
  pathString = pathString & ""
end if
  else --it's Windows
if pathString.char[strLen] <> "\" then
  pathString = pathString & "\"
end if   
  end if
  
  return pathString
end addPathTerminatorIfNecessary


[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: Tempo Changes any time effects channels are manipulated.

2002-04-09 Thread Howdy-Tzi

At 14:36 -0500 04/09/2002, Chad Mefferd (Morris Publishing) wrote:

>I get no results for puppetTempo anywhere in my casts.

Hell. Try a search for "tempo" (no quotes) and uncheck the "whole 
words only" option. Something someplace must be resetting your 
framerate.

Now that I think about hit, how can you tell the frame rate is being 
forced to 30? I mean, what is it in Director's interface that is 
telling you the frame rate is 30, and how are you trying to set it to 
something differently?

>Thanks for the tip on searching scripts though.

No problemop. Pretty darned handy feature, that! ;)

-- 

  Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
  http://www.osborne.com/indexes/beginners_guides.shtml
[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: Tempo Changes any time effects channels are manipulated.

2002-04-09 Thread Chad Mefferd (Morris Publishing)

on 4/9/02 10:06 AM, Howdy-Tzi at [EMAIL PROTECTED] wrote:
 

> 
> Odds are pretty good that you'll discover some bit of code buried
> someplace is using a puppetTempo command.

Odds are pretty good I'm a lazy oaf! I found the problem on a sound clip
with cue points I copied over from another movie. On one of the cue points
rather that being set to wait for the cue point it was set to change tempo
to 30fps. It was clear out on the end of my time line waiting to be used so
I didn't notice it. I guess I'll know from now on if I've got a tempo change
lurking on the effects channels anywhere it will force a tempo change any
time the effects channels are manipulated.

Thanks for all your help guys!

Sincerely,

Chad Mefferd
Art Director
Morris Companies

[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: Tempo Changes any time effects channels are manipulated.

2002-04-09 Thread Chad Mefferd (Morris Publishing)

on 4/9/02 10:06 AM, Howdy-Tzi at [EMAIL PROTECTED] wrote:

> At 09:24 -0500 04/09/2002, Chad Mefferd (Morris Publishing) wrote:
> 
>> I'm affraid I'm working exclusively in d8.
>> 
>> I get a  value for a find of 'puppet tempo' in all casts & I know I
>> haven't used puppet tempo anywhere in my project.
> 
> Not puppet tempo -- puppetTempo. There's a difference. What Buzz was
> describing was the method used to locate Lingo keywords. You open any
> script anywhere in your Cast and hit cmd-F (ctrl-F if you're into
> pain), then type in puppetTempo as the search term, selecting the
> 'all casts' option. (I don't know how you can possibly get a 
> return when you use the search box.)
> 
> Odds are pretty good that you'll discover some bit of code buried
> someplace is using a puppetTempo command.

Thanks Howdy,

I get no results for puppetTempo anywhere in my casts. I did get results of
on mouseEnter, so I was at least using the search correctly. Sorry no
puppetTempo anywhere to be found.

Thanks for the tip on searching scripts though. I won't forget that soon.

Thanks a bunch,

Chad Mefferd
Art Director
Morris Companies

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



list all files inside a folder (that has many folders in it)?

2002-04-09 Thread Changhsu P. Liu

Is there a way to list all the files inside a folder where there are many 
folders inside a folder and more folders inside each individual folders. I 
can use baFolderList to find all the folders and go inside each folder to 
find all the files with baFileList, but I can only go a specified depth. Is 
there a way to go deep as long as it required?

Thanks for any suggestions,


Changhsu Liu

[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: LineCount issue

2002-04-09 Thread Dale Withroder

numLines=member(myName).line.count

note the "dot" between "line" and "count"

At 09:46 PM 04/09/2002 +0400, you wrote:
>
>Hello.
>
>I try to use member(numb).lineCount but Director always shows me
>script error. In all of the cases - I tryed to use not HTML formatted
>texts, large areas, small ones - I always get the script error. Why
>is it so?
>
>Thanks, Luna.
>
>[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 prog
>ramming Lingo.  Thanks!]
>
--
Dale Withroder   PH: 1-888-233-8469
[EMAIL PROTECTED]   FAX: 1-800-669-1132
multimedia underling http://www.pro-mentoring.com
Professional Mentoring   ICQ:  13411058
--
Money is better than poverty, if only for financial reasons.
 —Woody Allen

[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: LineCount issue

2002-04-09 Thread Howdy-Tzi

At 21:46 +0400 04/09/2002, Luna 17 wrote:

>I try to use member(numb).lineCount but Director always shows me
>script error. In all of the cases - I tryed to use not HTML formatted
>texts, large areas, small ones - I always get the script error. Why
>is it so?

Probalby because lineCount works for #field members only, and you're 
using a #text member.

-- 

  Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
  http://www.osborne.com/indexes/beginners_guides.shtml
[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: LineCount issue

2002-04-09 Thread Kerry Thompson

> I try to use member(numb).lineCount but Director always shows me
> script error.
> 
lineCount is a #field cast member property. It won't work with a #text
cast member.

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



Re: Passing Parameters into Flash from Director

2002-04-09 Thread grimmwerks


getproperty/setproperty and of course any variable you create, ie 
_root.whateverVariablename=whatever

On Tue, 9 Apr 2002, Chris Rasmussen wrote:

> I'm aware of the callFrame command, used to call an ActionScript from a
> Director event. But is there a way to pass variables directly to an
> ActionScript?
> 
> My client wants to use a Director slider to control the volume of sound
> in a SWF, and he doesn't want to put it in the Flash movie itself.
> 
> 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!]



RE: LineCount issue

2002-04-09 Thread Thomas Higgins

Fields:
member("field").lineCount

Text:
member("text").line.count

Cheers,
Tom

> -Original Message-
> From: Luna 17 [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 09, 2002 10:46 AM
> To: [EMAIL PROTECTED]
> Subject:  LineCount issue
> 
> 
> 
> Hello.
> 
> I try to use member(numb).lineCount but Director always shows me
> script error. In all of the cases - I tryed to use not HTML formatted
> texts, large areas, small ones - I always get the script error. Why
> is it so?
> 
> Thanks, Luna.
> 
> [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!]



LineCount issue

2002-04-09 Thread Luna 17


Hello.

I try to use member(numb).lineCount but Director always shows me
script error. In all of the cases - I tryed to use not HTML formatted
texts, large areas, small ones - I always get the script error. Why
is it so?

Thanks, Luna.

[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: visible and invisible sprites

2002-04-09 Thread Howdy-Tzi

At 01:02 +0800 04/10/2002, noelle cheng wrote:

>Am I correct to say that these two lines of code remain?
>
>on mouseUp
>   set the visible of sprite (250) =true
>
>end
>
>
>
>on endSprite
>   set the visible of sprite (250) =true
>
>end
>
>I placed the line of code provided onto sprite b.
>However, when I played the file, sprite b remained invisible, even 
>after sprite a was pressed.
>
>Have I made another mistake?

Well, you need to make sure that sprite b is in channel number 250. 
If it's not this won't work.

Also, make sure you add  the 'me' keywords if these are behaviors.

As suggested you can also do this:

   on mouseUp me
 sprite(250).visible = not ( sprite(250).visible )
   END mouseUp

   on endSprite me
 sprite(250).visible = TRUE
   END endSprite

The change in the mouseUp will toggle the visibility of sprite 250, 
either switching it on if it's off, or off if it's on.

-- 

  Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
  http://www.osborne.com/indexes/beginners_guides.shtml
[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: quiz creation

2002-04-09 Thread Irv Kalb

Hey, that's a good one.  It looks like the good folks at DOUG have a 
bad link.  "Booky" was the name of the hard disk on my old Mac!  It 
should point to somewhere on DOUG's site.

I'll send you a copy of the proper files off-list.

Irv

At 1:19 AM +0800 4/10/02, noelle cheng wrote:
>  >However, there are many ways to store the questions.  For a
>>different
>>approach, check out my article on "Data Cast Members" also on
>>Director-Online at:
>>
>>http://www.director-online.com/accessArticle2.cfm?id=442
>>
>>In the last part of this article, I describe how you can store and
>>access questions for a multiple choice test.
>
>Thank you, but may I ask this?
>
>When I tried to run the .dir  provided  at the end of the article, I 
>was unable to  play the file.
>Is it because  I can't find the replacement for 
>Booky:Articles:Players? What is this?
>
>The winzip file consists of only players.cst file and Data cast members file.
>
>Noelle
>
>[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 / Director / Shockwave development for all occasions. 
  
   (Home-made Lingo cooked up fresh every day just for 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!]



Passing Parameters into Flash from Director

2002-04-09 Thread Chris Rasmussen

I'm aware of the callFrame command, used to call an ActionScript from a
Director event. But is there a way to pass variables directly to an
ActionScript?

My client wants to use a Director slider to control the volume of sound
in a SWF, and he doesn't want to put it in the Flash movie itself.

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: visible and invisible sprites

2002-04-09 Thread Howdy-Tzi

At 17:56 +0100 04/09/2002, Malcolm Beddows wrote:

>start by making a movie script with the sprites visibility set to 0

Well, the issue there is twofold. One, the movie script might not 
execute before the sprite appears on the screen; and two, slapping a 
behavior on the sprite lets its visibility be set without having to 
remember to update your move code whenever you move the sprite to a 
different channel.

Director's startMovie happens after sprite initializers in frame 1, 
believe it or not. :\

-- 

  Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
  http://www.osborne.com/indexes/beginners_guides.shtml
[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: quiz creation

2002-04-09 Thread noelle cheng


 >However, there are many ways to store the questions.  For a
 >different
 >approach, check out my article on "Data Cast Members" also on
 >Director-Online at:
 >
 >   http://www.director-online.com/accessArticle2.cfm?id=442
 >
 >In the last part of this article, I describe how you can store and
 >access questions for a multiple choice test.

Thank you, but may I ask this?

When I tried to run the .dir  provided  at the end of the article, I was 
unable to  play the file.
Is it because  I can't find the replacement for Booky:Articles:Players? 
What is this?

The winzip file consists of only players.cst file and Data cast members file.

Noelle

[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: visible and invisible sprites

2002-04-09 Thread noelle cheng


Hi,

 >>I used the following code.  Yet Sprite b is already visible >>when  I
 >>reach this screen. How do I correct my mistake?
 >
 >Attach the following behavior to sprite b:
 >
 >   on beginSprite me
 > sprite(me.spriteNum).visible = FALSE
 >   END beginSprite
 >
 >Then it should start out non-visible. You can remove the >beginSprite
 >line from the other script setting sprite 250's visible to false >as
 >well; it's redundant.


Am I correct to say that these two lines of code remain?

on mouseUp
   set the visible of sprite (250) =true

end



on endSprite
   set the visible of sprite (250) =true

end

I placed the line of code provided onto sprite b.
However, when I played the file, sprite b remained invisible, even  after 
sprite a was pressed.

Have I made another mistake?


Noelle

[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: visible and invisible sprites

2002-04-09 Thread Malcolm Beddows

start by making a movie script with the sprites visibility set to 0

then us this script:

on mouseUp

sprite(250).visible  =  not sprite(250).visible

end

hope this works

-Original Message-
From: noelle cheng [mailto:[EMAIL PROTECTED]]
Sent: 09 April 2002 17:08
To: [EMAIL PROTECTED]
Subject:  visible and invisible sprites


Hi,

I do apologise  for posting  another message to the list today, but I have 
yet another question to ask.

On  the screen, I have a  button sprite, a, which controls another sprite, 
b, which is supposed to be invisible.  When I click on the sprite 
a,  sprite b, becomes visible.  Then sprite b remains visible throughout on 
the screen until the user leaves this screen .

I used the following code.  Yet Sprite b is already visible when  I reach 
this screen. How do I correct my mistake?


on beginSprite
   set the visible of sprite (250) = false

end
on mouseUp
   set the visible of sprite (250) =true

end


on endSprite
   set the visible of sprite (250) =true

end

In addition, this sprite also has a change cursor and button 
rollover  behavior.

Am I doing too many things on a single sprite?

Thank you.

Noelle

[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: may behaviors originally written in D7 be used in D8.5?

2002-04-09 Thread Buzz Kettles

& if you are using D8.5, the Behavior Library includes updated 
versions of the behaviors with the Find/Replace already done for you.

-Buzz

At 4:36 PM +0100 4/9/02, you wrote:
>noelle cheng <[EMAIL PROTECTED]> wrote:
>>  I have used a behavior originally written in D7 by James Newton for my
>>  program...
>>  JUMP BACK BUTTON
>
>Hi Noelle,
>
>The line continuation character ¬ was changed to \ in Director 8 to avoid
>cross-platform complications.  The character ¬ is numToChar(194) on
>Macintosh and numToChar(172) on Windows.  The Windows character "Â" -
>numToChar(194) - and the Mac character "¨" - numToChar(172) - also
>functioned as line continuation characters prior to Director 8.5, which led
>to abberant behaviors within strings.
>
>Director 8.0 accepts both old and continuation characters, but Director 8.5
>refuses to recognise the old one if you recompile the script.
>
>In Director 8.5, ou need to replace ¬ by \ everywhere in your scripts. To do
>this, open a script containing the ¬ character, select it, then choose the
>menu item Edit | Find | Select (Ctrl/Command-H), to find the next occurence
>of the character.  Now use the menu item Edit | Find | Text...
>(Ctrl/Command-F), to open the Find dialog.  The ¬ character should already
>be entered int the Find field.  In the Replace field, type \ (Shift-Option-/
>on Macintosh).  Choose the All Casts radio button and the Wrap Around check
>box, then click on Replace All.
>
>An alert will appear, warning you that you cannot undo Replace All.  Click
>OK: you may have to wait a few moments while Director makes the change in
>all your scripts.
>
>--
>
>Since I wrote the D7 version of the Jump Back Button behavior, I have
>written a set of new behaviors that deal with the same feature in a more
>elegant way.  You can find these new behaviors in a couple of demonstration
>movies.  To download these from the Internet, type the following commands in
>your message window
>
>go movie "http://perso.planetb.fr/newton/History.dir";
>go movie "http://perso.planetb.fr/newton/GoMarker.dir";
>
>Cheers,
>
>James
>
>[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: Text cursor still shows after moving text box offst age!

2002-04-09 Thread Watson, Christopher

Thanks, Buzz...the scrollTop force-feed worked.

-Christopher

-Original Message-
From: Buzz Kettles [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 4:46 PM
To: [EMAIL PROTECTED]
Subject: RE:  Text cursor still shows after moving text box
offst age!


have you tried either of these ?

member().scrollTop = member().scrollTop
-- an attempt to wake up the scroller display ...

or

the stageColor = the stageColor

hth

-Buzz
[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: visible and invisible sprites

2002-04-09 Thread Howdy-Tzi

At 00:08 +0800 04/10/2002, noelle cheng wrote:

>I do apologise  for posting  another message to the list today

Well you should too. There's nothing more annoying than having people 
post and post and post. (I'm kidding, of course! ;)

>I used the following code.  Yet Sprite b is already visible when  I 
>reach this screen. How do I correct my mistake?

Attach the following behavior to sprite b:

   on beginSprite me
 sprite(me.spriteNum).visible = FALSE
   END beginSprite

Then it should start out non-visible. You can remove the beginSprite 
line from the other script setting sprite 250's visible to false as 
well; it's redundant.

-- 

  Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
  http://www.osborne.com/indexes/beginners_guides.shtml
[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!]



visible and invisible sprites

2002-04-09 Thread noelle cheng

Hi,

I do apologise  for posting  another message to the list today, but I have 
yet another question to ask.

On  the screen, I have a  button sprite, a, which controls another sprite, 
b, which is supposed to be invisible.  When I click on the sprite 
a,  sprite b, becomes visible.  Then sprite b remains visible throughout on 
the screen until the user leaves this screen .

I used the following code.  Yet Sprite b is already visible when  I reach 
this screen. How do I correct my mistake?


on beginSprite
   set the visible of sprite (250) = false

end
on mouseUp
   set the visible of sprite (250) =true

end


on endSprite
   set the visible of sprite (250) =true

end

In addition, this sprite also has a change cursor and button 
rollover  behavior.

Am I doing too many things on a single sprite?

Thank you.

Noelle

[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: quiz creation

2002-04-09 Thread Florian Bogeschdorfer



Florian Bogeschdorfer wrote:
> 
> noelle cheng wrote:
> >
> > Hi,
> >
> > I am interested in creating a multiple choice quiz and have found an
> > excellent example at Director -online.com entitled Creating a Multiple
> > Choice Quiz Using XML.
> >
> > http://www.director-online.com/accessArticle.cfm?id=1014
> >
> > I would be grateful if you could explain the following:
> >
> > 1. Is it neccessary to create an XML file to store the questions? Or is
> > there another way to  create quiz questions?
> 
> No

I meant NO, you don't need XML. Yes you can do it in another way - see
my previous posting


> 
> >
> > 2. From the article:
> >
> > "Because this movie accesses external files, running from your hard drive
> > within a browser requires that the movie path contain dswmedia."
> >
> > But what if I wanted to created a projector file? Would it be the same method?
> 
> >From a projector you can read and write to the harddisk as you want.
> 
> I would recommend the Quiz solution from Gary Rosenzweig in his book
> "Advanced Lingo for games". It has the basic Quiz and you can do all the
> other things around.
> 
> regards, Florian
> 
> >
> > Thanks very much for  your help.
> >
> > Noelle
> >
> > [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!]



RE: quiz creation

2002-04-09 Thread Brian Romanko


> Hi,

Hello

> 1. Is it neccessary to create an XML file to store the questions? Or
is 
> there another way to  create quiz questions?

You can do a quiz like this storing your content anywhere. Some people
use XML, others use databases, text files, text members, or script
members. You could even store them in your own binary file format.
However, XML is a great solution for something like this.  In dynamic
software, like many assessment packages it is preferrable to separate
the content from the code.  So, if you need to go in and change the
questions, it is much easier to edit an XML document than finding
hard-coded values within a script somewhere.  If you are new to
Director, and programming in general, I recommend sticking to the DOUG
article.  If you wanted to switch to generating question data from other
sources, a bit of rewriting would need to be done.

> But what if I wanted to created a projector file? Would it be the same
method?

I don't remember the article exactly, but projectors can open text files
(XML) from anywhere, so the file doesn't necessarily have to reside in
the DSWMedia folder.  You could even paste the XML content into a text
member and just use that as your source, not having to worry about
external files.  However, I must reiterate that keeping the files
external adds to the flexability.  Plus, the DOUG article has all that
code already written for you.


HTH

Brian Romanko
Lead Developer - Neo/SCI Corporation
Member - Greater Rochester Macromedia User Group




[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: quiz creation

2002-04-09 Thread Florian Bogeschdorfer

Chapter 13, the trivia game

noelle cheng wrote:
> 
>  > >2. From the article:
>  > > "Because this movie accesses external files, running from your hard drive
>  > > within a browser requires that the movie path contain dswmedia."
>  > > But what if I wanted to create a projector file? Would it be the same
> method?
> 
>   >From a projector you can read and write to the harddisk as you want. I
> would recommend >the Quiz solution from Gary Rosenzweig in his book
> "Advanced Lingo for games". It has >the basic Quiz and you can do all the
> other things around.
> 
>   Sorry, but I am uncertain. Which chapter is the Quiz in "Advanced Lingo
> for Games"?
> 
> Also the projector will ultimately be cut onto a cd-rom. How may I ensure
> that the path is there?
> 
> Thank you for  taking the trouble to clarify,
> 
> Noelle
> 
> [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: may behaviors originally written in D7 be used inD8.5?

2002-04-09 Thread James Newton

noelle cheng <[EMAIL PROTECTED]> wrote:
> I have used a behavior originally written in D7 by James Newton for my
> program...
> JUMP BACK BUTTON

Hi Noelle,

The line continuation character ¬ was changed to \ in Director 8 to avoid
cross-platform complications.  The character ¬ is numToChar(194) on
Macintosh and numToChar(172) on Windows.  The Windows character "Â" -
numToChar(194) - and the Mac character "¨" - numToChar(172) - also
functioned as line continuation characters prior to Director 8.5, which led
to abberant behaviors within strings.

Director 8.0 accepts both old and continuation characters, but Director 8.5
refuses to recognise the old one if you recompile the script.

In Director 8.5, ou need to replace ¬ by \ everywhere in your scripts. To do
this, open a script containing the ¬ character, select it, then choose the
menu item Edit | Find | Select (Ctrl/Command-H), to find the next occurence
of the character.  Now use the menu item Edit | Find | Text...
(Ctrl/Command-F), to open the Find dialog.  The ¬ character should already
be entered int the Find field.  In the Replace field, type \ (Shift-Option-/
on Macintosh).  Choose the All Casts radio button and the Wrap Around check
box, then click on Replace All.

An alert will appear, warning you that you cannot undo Replace All.  Click
OK: you may have to wait a few moments while Director makes the change in
all your scripts.

--

Since I wrote the D7 version of the Jump Back Button behavior, I have
written a set of new behaviors that deal with the same feature in a more
elegant way.  You can find these new behaviors in a couple of demonstration
movies.  To download these from the Internet, type the following commands in
your message window

go movie "http://perso.planetb.fr/newton/History.dir";
go movie "http://perso.planetb.fr/newton/GoMarker.dir";

Cheers,

James

[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: quiz creation

2002-04-09 Thread Irv Kalb

No, you do not need to store your questions in XML.  If that is a 
convenient format for you, (e.g., you have a simple way of generating 
your questions in this form), then it is a perfectly good way to do. 
However, there are many ways to store the questions.  For a different 
approach, check out my article on "Data Cast Members" also on 
Director-Online at:

   http://www.director-online.com/accessArticle2.cfm?id=442

In the last part of this article, I describe how you can store and 
access questions for a multiple choice test.

Irv

At 5:35 PM +0800 4/9/02, noelle cheng wrote:
>Hi,
>
>I am interested in creating a multiple choice quiz and have found an 
>excellent example at Director -online.com entitled Creating a 
>Multiple Choice Quiz Using XML.
>
>
>http://www.director-online.com/accessArticle.cfm?id=1014
>
>
>I would be grateful if you could explain the following:
>
>1. Is it neccessary to create an XML file to store the questions? Or 
>is there another way to  create quiz questions?
>
>
>2. From the article:
>
>"Because this movie accesses external files, running from your hard 
>drive within a browser requires that the movie path contain 
>dswmedia."
>
>But what if I wanted to created a projector file? Would it be the same method?
>
>Thanks very much for  your help.
>
>Noelle
>
>
>
>[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 / Director / Shockwave development for all occasions. 
  
   (Home-made Lingo cooked up fresh every day just for 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!]



Re: Tempo Changes any time effects channels are manipulated.

2002-04-09 Thread Howdy-Tzi

At 09:24 -0500 04/09/2002, Chad Mefferd (Morris Publishing) wrote:

>I'm affraid I'm working exclusively in d8.
>
>I get a  value for a find of 'puppet tempo' in all casts & I know I
>haven't used puppet tempo anywhere in my project.

Not puppet tempo -- puppetTempo. There's a difference. What Buzz was 
describing was the method used to locate Lingo keywords. You open any 
script anywhere in your Cast and hit cmd-F (ctrl-F if you're into 
pain), then type in puppetTempo as the search term, selecting the 
'all casts' option. (I don't know how you can possibly get a  
return when you use the search box.)

Odds are pretty good that you'll discover some bit of code buried 
someplace is using a puppetTempo command.

-- 

  Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
  http://www.osborne.com/indexes/beginners_guides.shtml
[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: Re: script should play in run time.

2002-04-09 Thread Howdy-Tzi

At 01:41 -0700 04/09/2002, nitin sharma wrote:

>is there any way to this thing. by that i can give
>that facility to user that he can change the any
>property of any sprite, in run time.

Again, you can try attaching scripts dynamically as behaviors using 
the scriptInstanceList command. You cna also use setScriptList, which 
is considerably trickier, but allwos you to actually set properties 
on the fly that are retained when the movie is saved (just as you 
would with the behavior dialog box, but in runtime, and without 
having to use the dlog box).

These are rather tortuously complex operations to perform. I'd 
suggest starting really simply with something like this, a new 
behavior:

   on beginSprite me
 put me.spriteNum
   end

...and then attaching that to a sprite you've made using scriptInstanceList.

I'm not sure exactly what it is you're going after any more. I 
thought you'd gotten to the point, somewhat earlier, that you could 
set scripts dynamically at runtime, and could change properties on 
the fly. This is beginning to sound a lot like a project you're doing 
for a client; if that's the case perhaps a description of what, 
precisely, you want to accomplish might be helpful.

Please note that opening up the Director command suite to outside 
users in a context other than the Director UI itself (if that's what 
you want to do) is entirely doable, but requires some pretty 
comprehensive programming skills in Director and Lingo, as well as 
quite a lot of practice simply creating huge quantities of code...

-- 

  Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
  http://www.osborne.com/indexes/beginners_guides.shtml
[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: play soundfile problems

2002-04-09 Thread Howdy-Tzi

At 00:43 +0100 04/09/2002, Wobbly wrote:

>Now I'm really confused...
>I'm running Windows XP pro and director 8.5.1.
>
>from time to time output fails switching between wav files and mp3's.
>Playing a MOV from the same projector makes output available again.

This is really reminiscent of something else I seem to recall reading 
about a year ago regarding Win2K and the preferred driver that 
Director uses when it's playing sounds. Try getting into your movie's 
list of Xtras and removing everytihng except MacroMix; try another 
one using just the QT stuff (no other sound drivers). If memory 
serves what's happening is some kind of clash between the Director 
drivers and the ever-so-intelligently-designed Windows "architecture" 
they're supposed to employ.

-- 

  Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
  http://www.osborne.com/indexes/beginners_guides.shtml
[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: clarification: prepare vs. enter frame

2002-04-09 Thread Howdy-Tzi

At 15:17 -0700 04/08/2002, Buzz Kettles wrote:

>I'm not quite sure WHERE in the docs this form of subtlety would go.

How about as an addendum to the material on page 190 of the using 
Director text?

>Now, I'm just living with the way the thing works.

Of course you are, but you've had more time to get used to the idea. 
It's still kind of new to me. Undoc'd inconsistencies -- particularly 
those as subtle by crucial as this -- have a way of torquing me off 
for a few weeks. ;)

-- 

  Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
  http://www.osborne.com/indexes/beginners_guides.shtml
[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!]



Play & Stop Button

2002-04-09 Thread Jason Je

Hi, Nitin...

Thanks for understanding what I have said to you... :)

As far as your question on Director... I don't quite get your point...

Basically what you want to do is to try to turn on and off those buttons 
within Director's main tool bar, right???
I don't think that can be done...
Say that you are not playing your movie file... then the button will be STOP 
on the tool bar because you are not running anything...
Then there is no way you could run any script to turn PLAY on because there 
is no movie running within the Director's authoring mode...

>just like that when i press on stop button the main
>stage play button should stop(off)

When you press your own STOP button which has below script in it, that means 
that Director is still running and pointing one specific frame... which 
means that PLAY button on the main tool bar should be ON...
What do you think???

>if i set
>
>on exitframe
>go to the frame
>end

HTH

Jason

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com

[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: Tempo Changes any time effects channels aremanipulated.

2002-04-09 Thread Chad Mefferd (Morris Publishing)

on 4/8/02 5:37 PM, Buzz Kettles at [EMAIL PROTECTED] wrote:

> What was adjusted?
> 
> Also, is this a d8 movie opened & edited in d8.5 (where the default
> frame got boosted from 15 to 30)?
> 
> another suggestion:
> open a script window & do a find (all casts) for 'puppetTempo'.
> 
> -Buzz

Buzz,

I'm affraid I'm working exclusively in d8.

I get a  value for a find of 'puppet tempo' in all casts & I know I
haven't used puppet tempo anywhere in my project.

Thanks for the insights,

Chad Mefferd
Art Director
Morris Companies

[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: QuickTime vs.Bitmap sequence in Director

2002-04-09 Thread Colin Holgate

>I don’t want to use the QT because it would involve a potential QT 
>install for my user. The Flash inside of Director requires no 
>install when it is played in the projector. I’ll use QT if I have to.
>
>They both run at the same speed on my computer, so I’m really 
>thinking of performance on lower end computers.


If it's just a slide show, then the best quality option would be to 
load them into Flash, save that out as a SWF, experiment with the 
JPEG quality until the file is the size you are happy with, and then 
use that in Director.


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



QuickTime vs.Bitmap sequence in Director

2002-04-09 Thread Nmuta Jones

I have several 3D animation sequences that I can export either as a 
quicktime movie or as bitmap sequences.

This is all being packed inside of a Director Projector.

QT compression would be Sorensen 3 with a maximum 150 KB per second .

Which would be faster--
1. Bitmap sequences in Director
2. QuickTime in Director

I don’t want to use the QT because it would involve a potential QT install 
for my user. The Flash inside of Director requires no install when it is 
played in the projector. I’ll use QT if I have to.

They both run at the same speed on my computer, so I’m really thinking of 
performance on lower end computers.

Thanks

nj

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com

[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: Tempo Changes any time effects channels aremanipulated.

2002-04-09 Thread Chad Mefferd (Morris Publishing)

on 4/8/02 5:06 PM, Kerry Thompson at [EMAIL PROTECTED] wrote:

>> Can anyone explain why the tempo for a movie would change from  15 fps
>> to 30 fps any time anything is adjusted in the effects channels of the
>> score?
>> 
> Is it possible you are using a transition that changes the frame rate?
> 
> 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!]
> 
Nope. Sorry I'm not.

Thanks,

Chad Mefferd
Art Director
Morris Companies

[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: Tempo Changes any time effects channels aremanipulated.

2002-04-09 Thread Chad Mefferd (Morris Publishing)



on 4/8/02 4:59 PM, Howdy-Tzi at [EMAIL PROTECTED] wrote:

> At 16:46 -0500 04/08/2002, Chad Mefferd (Morris Publishing) wrote:
> 
>> Can anyone explain why the tempo for a movie would change from  15 fps to 30
>> fps any time anything is adjusted in the effects channels of the score?
> 
> What kinds of effects are you referring to? Palette changes, for
> instance, might have such an effect.

On any of them. If I move a sound member, set a cue point, pallette change,
add a behavior or transition (I don't use the canned transitions).

Thanks,

Chad Mefferd
Art Director
Morris Companies

[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: quiz creation

2002-04-09 Thread noelle cheng


 > >2. From the article:
 > > "Because this movie accesses external files, running from your hard drive
 > > within a browser requires that the movie path contain dswmedia."
 > > But what if I wanted to create a projector file? Would it be the same 
method?

  >From a projector you can read and write to the harddisk as you want. I 
would recommend >the Quiz solution from Gary Rosenzweig in his book 
"Advanced Lingo for games". It has >the basic Quiz and you can do all the 
other things around.




  Sorry, but I am uncertain. Which chapter is the Quiz in "Advanced Lingo 
for Games"?

Also the projector will ultimately be cut onto a cd-rom. How may I ensure 
that the path is there?

Thank you for  taking the trouble to clarify,

Noelle

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



Drops live!

2002-04-09 Thread Drops

Cari amici vicini e lontani, siamo lieti di annunciarvi che giovedi 11
aprile, intorno alle ore 21:30, i Drops si esibiranno al Camarillo ( ex-
Jazz e dintorni), locale sito a Mola di Bari in via de Amicis 24.
Esserci è obbligatorio per almeno due ragioni: la prima è che questa è la
prima esibizione in terra di Bari dal giorno in cui il nostro CD ha
finalmente visto la luce ( CD che potrete naturalmente acquistare in
quest'occasione...) e la seconda, invece, è una piccola sorpresa...;-)
Vi aspettiamo tutti giovedi allora!
Non mancate!
Drops

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



Resolution of the playsound files problem (not the anomily)

2002-04-09 Thread Wobbly

Dear list,
the following code is functioning. Is there a more elegant solution?

on aMenuClicked menuName, clickLine, menuSprite

global mp3files,wavfiles

case menuName of 


"mp3songdisplay" 


importFileInto member (26),(mp3files[clickLine])

"wavsongsdisplay"

importFileInto member (26),(wavfiles[clickLine])

end case


sound(1).play(member(26))

end

wobbly


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.343 / Virus Database: 190 - Release Date: 22/03/2002


[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: quiz creation

2002-04-09 Thread Florian Bogeschdorfer



noelle cheng wrote:
> 
> Hi,
> 
> I am interested in creating a multiple choice quiz and have found an
> excellent example at Director -online.com entitled Creating a Multiple
> Choice Quiz Using XML.
> 
> http://www.director-online.com/accessArticle.cfm?id=1014
> 
> I would be grateful if you could explain the following:
> 
> 1. Is it neccessary to create an XML file to store the questions? Or is
> there another way to  create quiz questions?

No

> 
> 2. From the article:
> 
> "Because this movie accesses external files, running from your hard drive
> within a browser requires that the movie path contain dswmedia."
> 
> But what if I wanted to created a projector file? Would it be the same method?

>From a projector you can read and write to the harddisk as you want.

I would recommend the Quiz solution from Gary Rosenzweig in his book
"Advanced Lingo for games". It has the basic Quiz and you can do all the
other things around.

regards, Florian


> 
> Thanks very much for  your help.
> 
> Noelle
> 
> [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!]



quiz creation

2002-04-09 Thread noelle cheng

Hi,

I am interested in creating a multiple choice quiz and have found an 
excellent example at Director -online.com entitled Creating a Multiple 
Choice Quiz Using XML.


http://www.director-online.com/accessArticle.cfm?id=1014


I would be grateful if you could explain the following:

1. Is it neccessary to create an XML file to store the questions? Or is 
there another way to  create quiz questions?


2. From the article:

"Because this movie accesses external files, running from your hard drive 
within a browser requires that the movie path contain dswmedia."

But what if I wanted to created a projector file? Would it be the same method?

Thanks very much for  your help.

Noelle



[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: may behaviors originally written in D7 be used inD8.5?

2002-04-09 Thread Andreas Gaunitz P11

In D8+, Use backslash instead: \


-A.


>on getBehaviorDescription me
>   return "¬
>JUMP BACK BUTTON"&RETURN&RETURN&"¬
>
>
>Is this "¬ not acceptable in D8.5?
>
>If so, how would I modify this?


[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: sync projectors

2002-04-09 Thread Andreas Gaunitz P11

My opinion: No way to sync 2 projectors with frame accuracy. Use 
MIAW, or just a wide stage that extends over the 2 monitors.

-A.



>I have not yet used 3D shockwave sprites, but I don't believe that 2
>projectors will perform that good.
>
>If you want to sync - how fast would that be? I don't think you can do
>that via netmessages. A call to an external server would work, but I
>guess it might lead to high delays.
>
>What if you use setprefs/getprefs or maybe the vlist xtra which allows
>you to write a list to disk very fast and then read the list from the
>other projector?
>
>florian
>
>"Luiz Gustavo Castelan Póvoas" wrote:
>>
>>  *** REPLY SEPARATOR  ***
>>
>>  On 4/8/2002 at 6:03 PM Florian Bogeschdorfer wrote:
>>
>>  >I do 2-monitor-stuff all day using a MIAW. No two projectors
>>  >
>>  >florian
>>
>>  But i noticed a GREAT performance decrease on a miaw containing a 
>>Shockwave3D
>>  sprite. thats Why i may not use MIAW, but it still possible.


[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: script should play in run time.

2002-04-09 Thread nitin sharma

hi all

 actually i want that user can change the colors of
any property of a ball by script in runtime
(which is written by him in a text field).

there i m useing script = the text of sprite 1
the all things is fine but script can not execute with
out stoping the entire stage.

is there any way to this thing. by that i can give
that facility to user that he can change the any
property of any sprite, in run time.

lots of thanks in advance

nitin

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
[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: sync projectors

2002-04-09 Thread Florian Bogeschdorfer

I have not yet used 3D shockwave sprites, but I don't believe that 2
projectors will perform that good.

If you want to sync - how fast would that be? I don't think you can do
that via netmessages. A call to an external server would work, but I
guess it might lead to high delays.

What if you use setprefs/getprefs or maybe the vlist xtra which allows
you to write a list to disk very fast and then read the list from the
other projector?

florian

"Luiz Gustavo Castelan Póvoas" wrote:
> 
> *** REPLY SEPARATOR  ***
> 
> On 4/8/2002 at 6:03 PM Florian Bogeschdorfer wrote:
> 
> >I do 2-monitor-stuff all day using a MIAW. No two projectors
> >
> >florian
> 
> But i noticed a GREAT performance decrease on a miaw containing a Shockwave3D
> sprite. thats Why i may not use MIAW, but it still possible.
> 
> 
> Luiz
> 
> [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!]



may behaviors originally written in D7 be used in D8.5?

2002-04-09 Thread noelle cheng

Hi,

I  would be grateful if  the list could explain the following:

I have used a behavior originally written in D7 by James Newton for my 
program.

On recompiling the script, I receive this error:

script error: String does not  end correctly
  return "¬

as in

on getBehaviorDescription me
   return "¬
JUMP BACK BUTTON"&RETURN&RETURN&"¬


Is this "¬ not acceptable in D8.5?

If so, how would I modify this?

TIA for your help.

Noelle

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