Re: lingo-l Shockwave and Internet Database

2004-07-06 Thread Valentin Schmidt
hi matt,

here some sample code (php) that worked for netscape as well:

object classid=clsid:166B1BCA-3F9C-11CF-8075-44455354
codebase=http://download.macromedia.com/pub/shockwave/cabs/director/sw.
cab#version=8,5,0,0 width=718 height=370
param name=src value=mixer.dcr?foo=?=$foo; ?!--Anti-cache--
param name=swStretchStyle value=none
param name=bgColor value=#00
param name=sw1 value=?=$host;?!--Backend-URL--
param name=sw2 value=?=$lang;?!--Sprach-ID--
param name=sw3 value=?=$start_mix_id; ?!--Soundcard-ID--
param name=sw4 value=?=$skin_id;?!--Skin-ID--
param name=sw5 value=?=$set_id;?!--Set-ID--
param name=sw6 value=?=$host;?!--Converter-URL--
param name=sw7 value=?=$mode;?!--Debugging-Switch--
embed src=mixer.dcr?foo=?=$foo; ? bgColor=#00 logo=FALSE
width=718 height=370 swStretchStyle=none bgColor=#00
type=application/x-director
pluginspage=http://www.macromedia.com/shockwave/download/;
sw1=?=$host;? sw2=?=$lang;? sw3=?=$start_mix_id;?
sw4=?=$skin_id;? sw5=?=$set_id;? sw6=?=$host;?
sw7=?=$mode;?/embed
/object

valentin

- Original Message - 
From: Matt Wells [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 3:40 AM
Subject: lingo-l Shockwave and Internet Database




 Hello,

 I have a site were the user signs in under an asp page and pulls there
 information form a database. With this I need to integrate shockwave
 into it.
 The only way I have found to do this is the externalParamValue(sw1).
 And for some reason it will not work in the Netscape browser.

 The reason for the externalParamValue(sw1) is to pull the sql
 statement into shockwave so that shockwave will pull the correct
 information form the database according to the users login.

 Is there a better way to do this? Or am I doing something incorrectly?

 Thanks,
 Matt



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

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


lingo-l SWA parser + MP3 parser

2004-06-26 Thread Valentin Schmidt
Hi list,

I've written a little lingo script for converting MP3 files to SWA files
by adding a SWA header. It's main benefit is that you don't need any
audio editor for inserting cuepoints (especially on the mac, where
Director lacks a AIFF to SWA conversion functionality), and that you can
add, delete or change cuepoints in SWA files at anytime (even at
runtime). Another benefit is that you can create SWA files that have
ID3v1 tags (which you can't when using Director for wav to swa
conversion on windows). The script uses binaryIO xtra (or alternatively
fileIO for small files). The zip also contains a MP3 parser that can
read and write ID3v1 tags, read ID3v2 tags and retrieve various other
properties from mp3 files. I hope some of you find this usefull.

 download:
http://staff.dasdeck.de/valentin/lingo/mp3_swa/

Please report any problems and bugs. The script worked ok with my test
files, but, as there are no public specs for the SWA format, I had to
reverse engineer the SWA header by trial and error method, and there
are some bytes left I don't know what they are good for.

Best,
Valentin

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


Re: lingo-l preserve regpoint with imported png at runtime

2004-06-16 Thread Valentin Schmidt
Hi Frank,

you can set mymember.centerRegPoint=false.
or you could import the new png offstage (or with sprite.visible=0), set
the correct regpoint with
mysprite.regpoint=point(x,y), and then show the sprite.
if all your images need different regpoints, you could store them in a
(property) list, like
regpoints=[first.png:point(x,y), ...]

valentin

Frank Di Luzio wrote:
 Hi List,

 I'm putting together a product catalog which imports png images as
 overlays
 for an underlying image. Therefore, it is absolutely necessary that I
 preserve the regPoint of the png. In Authoring mode, I can set the
 filename or use importFileInto to load the images into the
 application
 and all images align properly. However, in a projector, the regpoint
 is
 centered for imported images. I tried turning the trimWhiteSpace off
 before
 importing, but that didn't help. I'm using Dir 9.0 on a Windows
 machine.

 Do you know of any solution, or do I have to tell the artist to
 insert a
 pixel in the top left and bottom right of all the images. (I always
 test
 early, so no images have been created yet).

 Thanks,
 Frank

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

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


Re: lingo-l preserve regpoint with imported png at runtime

2004-06-16 Thread Valentin Schmidt
hi frank,

a quick test showed me that it's important that your image is linked as
external file from the beginning (even the dummy, if there is one).

with code like the following you can restrict the sensitive area to the
non-transparent part of the image:
on mouseUp me
  s=sprite(me.spriteNum)
  m=s.member
  col=m.image.extractAlpha().getPixel(the mouseloc-point(s.left,s.top))

  if col=0 then return -- or use ilk(col)#color
  if col.paletteIndex=0 then return

  alert(MOUSEUP)
end



valentin


Frank Di Luzio wrote:
 - Original Message -
 From: Frank Di Luzio [EMAIL PROTECTED]

 surprised that it works with bitmap member (i.e. it doesn't appear
 in the list view of the property inspector).

 I found it. I was looking at the member and not at bitmap properties

 Well, I almost got it to work. The trimwhiteSpace is doing the trick
 but not
 the first time around. Its seems very sensitive as to where it is
 set. So I
 will figure it out,
 BUT now the entire bitmap area is sensitive to the mouse!  I got it
 all
 regisitered, but the transparent areas are not invisible for the
 mouse! Now
 I have to figure that out.

 BTW, I have the same mouse sensitivity problem with the pixel in the
 corners
 trick.

 I'll see what I come up with.

 Frank

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

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


Re: lingo-l Lingo discourse paradigm

2004-06-06 Thread Valentin Schmidt
Hi Peter,

I couldn't replicate this bug on my machine, neither with dir8.5.1 nor
with dir mx, and neither with win xp nor with win 98.

some thoughts:
- maybe something is screwed with the font that is used? you could check
if you get the same result when you change the system's default font for
dialogs (Tahoma 8pt on my computer) in the System settings.
- what about the property inspector (which uses another font)? do you
have the full how many there?
- you could try if changing [#comment: ... to [comment: ... makes a
difference (you never know...)

Valentin

Peter Bochan wrote:
 Hi all,

 Well, I guess the time has come when Director can really be
 considered a
 wise application. Buggy times are left far away in the dismal past and
 bright future prospects are seen in the two handwritten letters
 confined in
 a round circle saying di. So, what am I driving at: I'm not quite
 sure
 whether it's the di or win03 but gpdl method definitely didn't go
 to
 primary school in the year of two thousand and four. I have previously
 posted a similar issue connected with the phrase sound channel and
 now I
 have been playing with different combinations of words and arrived at
 the
 following outcome:

 In the blank movie make the behavior with the only lines in it:

 property p

 on getPropertyDescriptionList(me)
   description = [:]
   description.addProp(#p, [#comment:how many, #format:#integer,
 #default:1])
   return(description)
 end

 drag it to anything you like and you'd obviously get a parameters
 window
 saying how many, dude. But that's not how it turned out on my win03
 machine. It says only how.

 If I try to put down how much in the #comment section, I still get
 how.

 If I write how huge, how tremendous, how man how mac (tough
 how
 win works... see below why), how mus, how numerous, how
 nominate
 don't work.

 If I write how few it works! If I write how little it works as
 well!

 So to draw the paradigm I have tested it for quite a bit and came to
 the
 following conclusion:

 In the #comment section of gpdl, to observe the mentioned
 malfunctioning you
 type the following combination of letters anyLetter and w (that is
 a,b,c,d,f,g,h,... + 'w') and the succeeding word should start in
 letter m. The m-word can be as long as you want provided it's not
 shorter than 4 chars and it doesn't contain chars e, i, otherwise
 it'll break the
 idyll. E.g. ow mkkk, bw macr, zw mrocks, hw mhavok. There are
 exceptions
 though, if you type hw mbed or mw mbid it won't work because
 e/i is
 succeeded by d.

 These samples show mentioned results on my machine, and I tried them
 on v.
 8.5.1. on win98 and it still showed the same negative ones.

 What is characteristic though that if you type the m-word really
 long
 it'll stretch the parameters window accordingly but without being
 visible in
 there.

 You might think: so what? It's not a bug after all, just a minor
 authoring
 quirk, but, tomorrow I have sort of judgment day: I'll defend my M.A.
 thesis, so I made up my mind to post something to my favorite lingo-l
 and to
 try to connect lingo topic with English language topic, that's why
 it's
 somewhat about discourse.

 Best regards,

 Peter Bochan
 Master of Arts (tomorrow...hopefully...fingers crossed)
 College of Foreign Languages
 Chernivtsi National University
 Ukraine

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

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


lingo-l clipboard xtra - mac version

2004-06-03 Thread Valentin Schmidt
as announced before, now there there is also a mac os x version (beta,
or maybe alpha, not sure :-)

http://staff.dasdeck.de/valentin/xtras/clipboard/macosx/

valentin

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


lingo-l clipboard xtra news

2004-06-01 Thread Valentin Schmidt
Hi List,

sorry for the spamming, just a short note on my clipboard xtra:
- the xtra can also be used to export VectorShape-members as SWF files
(Flash movies), also at runtime (projectors).
- the paste-path-into-VectorShape-member-functions also works with
Photoshop (so the list of supported applications is now Illustrator,
Freehand, Fireworks and Photoshop)

maybe it would be nice to have a dockingEnabled Tool-MIAW for those
VectorShape-import/export-features (just as inspiration :-)
there are some new demo-movies in the recent zip
(clipboardXtra_v3c.zip).

And I've started to work on a mac version.

Valentin


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


Re: lingo-l Shell Xtra

2004-05-29 Thread Valentin Schmidt
Hi Steve,

thanks a lot for your donation! Such an asynchronous operation can't be
achieved with the current version, but I think it's possible, and I will
try to implement it (as an additional method) in the next version.

thanks again,
valentin

Stephen Guerin wrote:
 Valentin,

 Fantastic!

 I messed around with v02 for the better part of the day interacting
 with
 python scripts. The _stdout and _stderr callbacks are working great.
 Very
 useful indeed. I sent a paypal to you as a small token of thanks.

 Is there a way to asynchronously call shell_cmd or shell_exec so that
 Director can play normally while the shell programs is running?
 Perhaps a
 threading feature for ver03? :-)

 Thanks again.

 -Steve

 
 http://www.redfish.com[EMAIL PROTECTED]
 624 Agua Fria Street  office: (505)995-0206
 Santa Fe, NM 87501mobile: (505)577-5828

 -Original Message-
 From: Valentin Schmidt [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 28, 2004 5:47 AM
 To: [EMAIL PROTECTED]
 Subject: Re: lingo-l Shell Xtra


 Hi Stephen,

 I've updated the win version of the xtra yesterday, the new version
 has callback functions for catching stdout and stderr output during
 execution (see new readme and demo.exe/demo.dir). But there is still
 no interactive access to stdin, I have to think about this for a
 while, I will let you know if I find out how this can be implemented.

 Valentin


 Stephen Guerin wrote:
 Cool work, Valentin. I liked the curl interaction in your demo.

 Any chance Shell xtra can be used to handle bilateral communications
 with a
 shell program while it's continually running(perhaps accessing
 stdin, stdout
 and stderr streams)? I'm interested in using Director for
 interactive visualizations of simulation models written in Java and
 C++. I'd like to
 handle mouse events in director and change the models during
 runtime. Conversely, I'd like to be notified by the programs if the
 model has changed
 so my visualization can update itself.

 Thanks,

 Steve
 
 http://www.redfish.com[EMAIL PROTECTED]
 624 Agua Fria Street  office: (505)995-0206
 Santa Fe, NM 87501mobile: (505)577-5828

 -Original Message-
 From: Valentin Schmidt [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 27, 2004 8:34 AM
 To: [EMAIL PROTECTED]
 Subject: lingo-l Shell Xtra


 Hi list,

 I'm working on an cross-platform (win and mac os x) scripting xtra
 called Shell Xtra that can be used to execute command line
 programms (hidden) and return the output back to director.
 On mac os x (only tested on jaguar, so far) it's something like a
 hidden terminal window, on windows like a hidden DOS box.

 It's still very alpha, but I'm a bit stuck at the moment, and could
 use some feedback about bugs, improvements and its general
 usefulness.
 So if anybody has a bit time to spend for it, you are welcome to
 download and test the current version from
 http://staff.dasdeck.de/valentin/xtras/shell/

 Valentin



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

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


Re: lingo-l Shell Xtra

2004-05-28 Thread Valentin Schmidt
Hi Stephen,

I've updated the win version of the xtra yesterday, the new version has
callback functions for catching stdout and stderr output during
execution (see new readme and demo.exe/demo.dir). But there is still no
interactive access to stdin, I have to think about this for a while, I
will let you know if I find out how this can be implemented.

Valentin


Stephen Guerin wrote:
 Cool work, Valentin. I liked the curl interaction in your demo.

 Any chance Shell xtra can be used to handle bilateral communications
 with a
 shell program while it's continually running(perhaps accessing stdin,
 stdout
 and stderr streams)? I'm interested in using Director for interactive
 visualizations of simulation models written in Java and C++. I'd like
 to
 handle mouse events in director and change the models during runtime.
 Conversely, I'd like to be notified by the programs if the model has
 changed
 so my visualization can update itself.

 Thanks,

 Steve
 
 http://www.redfish.com[EMAIL PROTECTED]
 624 Agua Fria Street  office: (505)995-0206
 Santa Fe, NM 87501mobile: (505)577-5828

 -Original Message-
 From: Valentin Schmidt [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 27, 2004 8:34 AM
 To: [EMAIL PROTECTED]
 Subject: lingo-l Shell Xtra


 Hi list,

 I'm working on an cross-platform (win and mac os x) scripting xtra
 called Shell Xtra that can be used to execute command line
 programms (hidden) and return the output back to director.
 On mac os x (only tested on jaguar, so far) it's something like a
 hidden terminal window, on windows like a hidden DOS box.

 It's still very alpha, but I'm a bit stuck at the moment, and could
 use some feedback about bugs, improvements and its general
 usefulness.
 So if anybody has a bit time to spend for it, you are welcome to
 download and test the current version from
 http://staff.dasdeck.de/valentin/xtras/shell/

 Valentin

 [To remove yourself from this list, or to change to digest mode,
 go to http://www.penworks.com/lingo-l.cgi  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: lingo-l Shell Xtra

2004-05-28 Thread Valentin Schmidt
Hi Florian,
just take it and use, it's freeware. In case you use it for a commercial
project and make
millions of dollars/euros with it, I wouldn't reject a little donation
(I have a PayPal account for
[EMAIL PROTECTED])

Valentin


Florian Bogeschdorfer wrote:
 Hi Valentin!

 I love it! You are saving my ... .

 How can I buy it for using it next week in an existing project?

 Florian

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Valentin Schmidt
 Sent: Thursday, May 27, 2004 4:34 PM
 To: [EMAIL PROTECTED]
 Subject: lingo-l Shell Xtra

 Hi list,

 I'm working on an cross-platform (win and mac os x) scripting
 xtra called Shell Xtra that can be used to execute command
 line programms
 (hidden) and return the output back to director.
 On mac os x (only tested on jaguar, so far) it's something
 like a hidden terminal window, on windows like a hidden DOS box.

 It's still very alpha, but I'm a bit stuck at the moment, and
 could use some feedback about bugs, improvements and its
 general usefulness.
 So if anybody has a bit time to spend for it, you are welcome
 to download and test the current version from
 http://staff.dasdeck.de/valentin/xtras/shell/

 Valentin

 [To remove yourself from this list, or to change to digest
 mode, go to http://www.penworks.com/lingo-l.cgi  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: lingo-l Shell Xtra

2004-05-28 Thread Valentin Schmidt
Thanks for all your feedback. I've just uploaded a new version for mac
os x:
http://staff.dasdeck.de/valentin/xtras/shell/macosx/v02.sit

New in this mac version:
- no more external shell.bundle needed, just the xtra itself
- callback function _stdout for linewise retrieving of stdout. Usefull
for example for programms that give intermediary feedback (progress
status etc.) during their execution.

Unfortunately I couldn't find any way to separate the stout and stderr
streams on the mac (where the implementation is totally different from
the PC version).
But you can use the  operator to redirect the output:
- adding  21 to your command will redirect stderr to stdout and
return both to director (as function return value and as callback
value).
- adding  21 1myfile will redirect stderr to director and stdout to
file myfile.
For example. shell_cmd(curl -v myurl.com/myfile 21 1mypath/myfile)
will fetch a file with curl and show download status information at
stderr that is redirected to stdout so that you can catch it with the
_stdout callback.

Valentin


Troy Rollins wrote:
 On May 28, 2004, at 7:47 AM, Valentin Schmidt wrote:

 I've updated the win version of the xtra yesterday, the new version
 has callback functions for catching stdout and stderr output during
 execution (see new readme and demo.exe/demo.dir).

 Outstanding. Can the same be accomplished with OSX?

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


Re: lingo-l Shell Xtra

2004-05-28 Thread Valentin Schmidt
Hi Peter,

the xtra is only meant for execution of commandline programms, i.e.
programms without a GUI, and to return their output to Director. To
start applications like explorer, iexplore, notepad, msconfig, mmc etc.
use the lingo open()-command or Buddy API's baRunProgram()-function..

Best,
Valentin

Peter Bochan wrote:
 Just downloaded the v02 one. Cool. Been playing around with it and the
 following issues popped up:

 Works: services.msc, cmd (though it become internal one, but
 cool), explorer, winver, notepad, dxdiag, mmc, calc.

 Throws an error (doesn't work): far, iexplore.

 Does nothing: msconfig.

 Yours is better (than the internal cmd one): ipconfig /displaydns
 (and many
 more), ping 000.0.0.0.

 Though I have no idea of what an xtra is, and I can't simply say
 This one
 is good while This one needs some improvements I should admit Good
 work. I classify these kind of things as: Know how

 Win03, DMX04

 Cheers
 Peter Bochan



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

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


lingo-l Shell Xtra

2004-05-27 Thread Valentin Schmidt
Hi list,

I'm working on an cross-platform (win and mac os x) scripting xtra
called Shell Xtra that can be used to execute command line programms
(hidden) and return the output back to director.
On mac os x (only tested on jaguar, so far) it's something like a hidden
terminal window, on windows like a hidden DOS box.

It's still very alpha, but I'm a bit stuck at the moment, and could use
some feedback about bugs, improvements and its general usefulness.
So if anybody has a bit time to spend for it, you are welcome to
download and test the current version from
http://staff.dasdeck.de/valentin/xtras/shell/

Valentin

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


Re: lingo-l overwriting lingo commands

2004-05-19 Thread Valentin Schmidt
Thanks for all your replies. For the alert-example I could use the
alertHook for the effect I want, but I was just wondering if there was
any method that would work in general. I guess there is none for
moviescripts, but I have to use parent-scripts.

Colin:
I couldn't get your solution to work, pass didn't work with alert
(nor with put) (dir mx, win xp pro).

Valentin

Troy Rollins wrote:
 On May 18, 2004, at 8:18 PM, Valentin Schmidt wrote:

 on alert any
 alert(string(any))
 end

 Don't you actually want alerthook?

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


Re: lingo-l Font problem

2004-05-18 Thread Valentin Schmidt
but you don't neccessarily need unicode, but you can embed a normal
font that contains all the czech characters and make sure that the text
you want to display is encoded with the codepage as required by the font
(this works for kyrillic, greek text etc., so I guess it should work
with czech as well).

valentin

Deane Venske wrote:
 Hi There,

 I have some bad news for you, and some good news. The bad news is the
 Director doesn't support unicode, and if you're using unicode
 characters
 they are not going to work in straight up text/field sprites. Good
 news is
 that you can embed flash into your director which supports unicode
 really
 well, we currently are using UTF16 encoded strings through flash in
 our
 director projects.

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

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


lingo-l overwriting lingo commands

2004-05-18 Thread Valentin Schmidt
hi list,

does anyone know if/how I can overwrite an existing lingo command with a
custom function in a moviescript, but then use the original command
inside my custom function (with dir version before MX2004)?

what I want to do is something like:

on alert any
alert(string(any))
end

which of course doesn't work, because it creates an recursive circle ad
infinitum.

any ideas?

valentin

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


Re: lingo-l director-bug: contains() and offset() mix up chars

2004-04-26 Thread Valentin Schmidt
hi roymeo,

sorry, maye I was a bit unclear, those charcodes (0x8A and 0x9A, or in
other words: #138 and #154) are the codes for german special chars ä
(a umlaut) and ö (o umlaut) in the MAC ROMAN CODEPAGE. the letters you
mention are correct for the ANSI CODEPAGE (iso-8859-1/windows-1251) . In
fact, I discovered those bugs when I wrote a script that converts mac
roman text to ansi text, and which works fine for all other letters
except those. But anyway, it definetely is a bug, because I would expect
that contains() and offset() work for all chars (except for 0x00), no
matter what letter they stand for. it's a strange behavior to mix up
chars in such basic string functions.

valentin


roymeo wrote:
 I just tested this on the PC

 those are the upper and lower case s with a reversed ^ over them.
 S and s

 This is confirmed by my HTML Reference book (up to HTML 4):

 #138; in HTML is Uppercase S with canon (nonstandard)
 #154; in HTML is Lowercase s with canon (nonstandard)

 along with the note:

 Note: in the standard, the values from 127 to 159 are not
 assigned.  Authors are advised not to use them.  Many of them only
 work
 under windows or produce different characters on other operating
 systems or
 with different default font sets.
 -- p 1008 in HTML: The Complete Reference, Second Edition, ©1999

 I believe the regular place for the lowercase umlat characters are:
 0228 = ä
 0235 = ë
 0239 = ï
 0246 = ö
 0252 = ü
 those characters have been typed in on the numeric keypad while
 holding the
 ALT key on a PC, so those numbers certainly work for me on a WinPC.

 I suggest you make sure you're using the correct character reference.

 (and when someone has a suggestion or question about what you're
 doing, you
 might consider double-checking your info...)

 rö¥meõ

 At 12:04 AM 4/9/2004, you wrote:
 hi daniel,

 no, those are the mac char codes for the german special chars ä (a
 umlaut) and ö (o umlaut), both lower case.

 valentin

 In this case, is it possible that these two characters (138 and 154)
 are lower and upper case versions of one another?


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

 -
 roymeo(AT)brokenoffcarantenna.com
 -
 i used to love you
 back when you wrote poetry


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

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


Re: lingo-l director-bug: contains() and offset() mix up chars - solved: no bug

2004-04-26 Thread Valentin Schmidt
I appologize, I should have read your mail more carefully, I've missed
the point. Of course you are right, those codes are upper and lower case
of the same weird (in ANSI codepage) char, and contains() and offset()
both ignore cases. I don't know why I hadn't thought of that simple
solution before. Thanks for opening my eyes.

Sorry, director, for this calumny ;-)

valentin


roymeo wrote:
 I just tested this on the PC

 those are the upper and lower case s with a reversed ^ over them.
 S and s

 This is confirmed by my HTML Reference book (up to HTML 4):

 #138; in HTML is Uppercase S with canon (nonstandard)
 #154; in HTML is Lowercase s with canon (nonstandard)

 along with the note:

 Note: in the standard, the values from 127 to 159 are not
 assigned.  Authors are advised not to use them.  Many of them only
 work
 under windows or produce different characters on other operating
 systems or
 with different default font sets.
 -- p 1008 in HTML: The Complete Reference, Second Edition, ©1999

 I believe the regular place for the lowercase umlat characters are:
 0228 = ä
 0235 = ë
 0239 = ï
 0246 = ö
 0252 = ü
 those characters have been typed in on the numeric keypad while
 holding the
 ALT key on a PC, so those numbers certainly work for me on a WinPC.

 I suggest you make sure you're using the correct character reference.

 (and when someone has a suggestion or question about what you're
 doing, you
 might consider double-checking your info...)

 rö¥meõ

 At 12:04 AM 4/9/2004, you wrote:
 hi daniel,

 no, those are the mac char codes for the german special chars ä (a
 umlaut) and ö (o umlaut), both lower case.

 valentin

 In this case, is it possible that these two characters (138 and 154)
 are lower and upper case versions of one another?


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

 -
 roymeo(AT)brokenoffcarantenna.com
 -
 i used to love you
 back when you wrote poetry


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

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


lingo-l vertexList of curve through arbitrary points

2004-04-25 Thread Valentin Schmidt
hi list,

does anyone have a formula for generating the vertextList of a
vectorShape that represents the smoothest curve (continuous slope)
through a set of given points p1, p2,..., pn?

thanks,
valentin

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


Re: lingo-l highlighting lines in a multi-line field

2004-04-25 Thread Valentin Schmidt
hi nik,

here is a simple behavior that uses a shape-sprite (filled rect) in a
higher channel than the field and with ink set to
reverse ink::

---
property pS
property pM
property pShape


on beginSprite me
  pS=sprite(me.spriteNum)
  pM=pS.member
end


on exitFrame me
  ln=pS.pointToLine(the mouseLoc)
  if ln0 then
y=max(pS.top + pM.lineHeight*(ln-1) - pM.scrollTop,pS.top)
pShape.width=pS.width+1
pShape.height=min(pM.lineHeight,pS.bottom-y)
pShape.loc=point(pS.left+1,y)
  else
pShape.rect=rect(-100,0,0,0)
  end if
end

on getPropertyDescriptionList me
  pl = [:]
  pl[#pShape] = [#comment:Shape-Sprite, #format:#sprite, #default:
sprite(0)]
  return pl
end
-

I also have a imaging lingo solution that allows multiline/multiple
seperated line selects.

valentin



nik crosina wrote:
 Hi,
 I am trying to find a convenient way to highlight complete lines of
 field castmembers. I know I can use the .highlight, but would like to
 highlight the complete line and not just as much of the line as
 covered by words (e.g. a line might only be half full)

 Has anyoen of you done that before, or knows a script I can adapt? I
 am experimenting with shape castmembers put behind the lines, maybe
 that is a way?

 Thanks on a Sunday...
 Best
 NIk


 ___
 Cost effective technology solutions for business. Sign up for a free
 trial today!

 http://www.officemaster.net

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

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


Re: lingo-l vertexList of curve through arbitrary points

2004-04-25 Thread Valentin Schmidt
hi dave,

thanks, but I think it's not exactly what I'm looking for. I need a
formula for connecting arbitrary points with a smooth curve, more like a
function plot.

valentin

Dave McColgin wrote:
 Hi valentin,

 I'm not sure if this is what you want:
 http://tinyurl.com/3yab7

 There are parameterized drawArc and a drawEllipse actionscript files
 for
 free with no restrictions. They use it to draw shapes, but I've used
 them to simply plug in y's and get back x's (or vice versa), like the
 set of points you said you wanted. It's Flash but they are generic
 algorithms, and you shouldn't need more math than Lingo provides.

 Hope it helps
 dave

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Valentin
 Schmidt
 Sent: Sunday, April 25, 2004 12:40 PM
 To: [EMAIL PROTECTED]
 Subject: lingo-l vertexList of curve through arbitrary points

 hi list,

 does anyone have a formula for generating the vertextList of a
 vectorShape that represents the smoothest curve (continuous slope)
 through a set of given points p1, p2,..., pn?

 thanks,
 valentin

 [To remove yourself from this list, or to change to digest mode, go to
 http://www.penworks.com/lingo-l.cgi  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: lingo-l no subject

2004-04-25 Thread Valentin Schmidt
the font of word 23 of member myField = Arial
the font of char 666 of member myField = Arial

nik crosina wrote:
 Hi,
 
 Another question re fields (my favorite types, ...):
 
 can i control the font of field text with lingo down to a word level.
 I realised that in the field window I can select multimple fonts for
 the text of one field, so I am thinking there must be a way of doing
 it with lingo as well?   
 
 needed for:
 a field that shows the results of a database search (one result per
 line) with the first character of each line being a tick box (font
 'wingdings 2') which then I want users to be able to tick as well  
 
 thanx  seeyah
 Nik
 
 
 ___
 Cost effective technology solutions for business. Sign up for a free
 trial today! 
 
 http://www.officemaster.net
 
 [To remove yourself from this list, or to change to digest mode, go
 to http://www.penworks.com/lingo-l.cgi  To post messages to the list,
 email [EMAIL PROTECTED]  (Problems, email
 [EMAIL PROTECTED]). Lingo-L is for learning and helping with
 programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Re: lingo-l Outlook error generated by Director

2004-04-22 Thread Valentin Schmidt
what's the exact name of your projector?

Mendelsohn, Michael wrote:
 Hi all...
 
 How could a Director projector possibly cause a Microsoft Outlook
 error: 
 The command line argument is not valid.  Verify the switch you are
 using.
 
 perplexed and becoming nervous,
 Michael M.
 
 
 [To remove yourself from this list, or to change to digest mode, go
 to http://www.penworks.com/lingo-l.cgi  To post messages to the list,
 email [EMAIL PROTECTED]  (Problems, email
 [EMAIL PROTECTED]). Lingo-L is for learning and helping with
 programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Re: lingo-l Outlook error generated by Director

2004-04-22 Thread Valentin Schmidt
my last mail took more than 6 hours to arrive at the list, seems to be
some traffic jam somewhere. my first intention concerning the outlook
bug was that there might have been some confusion with the app actually
called, but of course it was something else, so never mind.

valentin

Valentin Schmidt wrote:
 what's the exact name of your projector?

 Mendelsohn, Michael wrote:
 Hi all...

 How could a Director projector possibly cause a Microsoft Outlook
 error:
 The command line argument is not valid.  Verify the switch you are
 using.

 perplexed and becoming nervous,
 Michael M.


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

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


Re: lingo-l dial-up connection setup

2004-04-18 Thread Valentin Schmidt
Hi Cath,

did I understand your question right that you want to provide your own
Dialup-connection instead of using the system's default internet
connection method?

If yes, here some ideas:
- first you should check if the target computer actually uses
DialUp-Networking and has a modem installed, eg. by checking some
registry values. If Dialup Networking is installed, the key
HKEY_CURRENT_USER\RemoteAccess\
has to exist, otherwise it doesn't exist. All existing connections
(connectoids ) are listed under
HKEY_CURRENT_USER\RemoteAccess\Profile\

- you could try to provide your own *.DUN file (which is a special INI
that contains dialup-connection-infos). you can easily generate such a
DUN file by creating a Dial-Up connection (connectoid ) with the correct
settings on your own system and dragging it to any folder or the
desktop. You can install this DUN file on the user's system with calling

Win 9x:
RUNDLL32.EXE RNAUI.DLL,RnaRunImport path-to-DUN-file

Win XP (and propably NT/Win2k):
RUNDLL32.EXE NETSHELL.DLL,InvokeDunFile path-to-DUN-file

you can do this with Buddy API like
baRunProgram( RUNDLL32.EXE RNAUI.DLL,RnaRunImport path-to-DUN-file,
hidden, false )
baRunProgram( RUNDLL32.EXE NETSHELL.DLL,InvokeDunFile
path-to-DUN-file, hidden, false )

A problem might be that a DUN file also contains information about the
modem to use, in section [Device]. Maybe you could find out the
installed modems from the registry and generate a DUN file with the
apropriate modem on the fly. You could even generate the full DUN-file
with Buddy API's baWriteIni().

After the DUN-file is imported, you can open a dialup connection by
using the entry name that is specified in the DUN file (line
Entry_Name=... in section [Entry]).

On Win9x you start a DialUp-connection with calling
RunDLL32 RNAUI.DLL,RnaDial entry name
eg. with Buddy API: baRunProgram( RunDLL32 RNAUI.DLL,RnaDial entry
name, hidden, false )

On Win NT/2k/XP with:
RASDIAL.EXE entry name
eg. with Buddy API: baRunProgram( RASDIAL.EXE entry name, hidden,
false )

To uninstall the temporary connection, you can use
RASPHONE.EXE -r entry name
for Win NT/2k/XP, but I don't know how you could do this on Win 9x.

Good luck,
Valentin




Cath Sample wrote:
 Hi,
 I need to make a CD which will set up temporary dial up connection
 and then
 connect to a web page. I have tried the demo of DirectConnection xtra
 ,
 which opens a window so the user can input the phone number, etc, but
 I
 would really like to do this without making the user input the phone
 number. Has anyone done anything like this?


 Regards

 Cath Sample
 Director
 Phosphor Essence

 Level 1, 27 Dacre St
 PO Box 68755
 Newton, Auckland
 http://www.phosphor.co.nz
 P: +64 9 377 4626
 F: +64 9 377 4991
 M: 021 748 774


 The material in this email is confidential to the addressee and may be
 protected by legal privilege. If you are not the intended recipient,
 please
 note that you may not use any material in this message nor pass it on
 to
 others. If you have received this email in error, please delete it and
 notify us immediately by telephone or email ([EMAIL PROTECTED]).

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

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


Re: lingo-l dial-up connection setup

2004-04-18 Thread Valentin Schmidt
I think its
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\Modem

here an excerpt from http://www.modemdoctor.com/html/news0998.htm:
Modem Keys- The important information on how your modem works is saved
in the key;
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\Modem. Under
the Modem subkey, you will again find numerical entries that correspond
to your modems. This area holds a wealth of information about your
system including every important command and response string that your
modem generates. This numeric subkey contains more subkeys that hold
important command strings to answer incoming calls, hang-up the modem,
initialize the modem, monitor for rings, response and init settings, and
exact commands on how to turn on or off certain features of your modem.
All of this information is created from the INF file used to install
your modem. This section also holds the name of the vxd driver to use
for communications, and the description of the type and manufacturer of
your modem.



Cath Sample wrote:
 Hi Valentin,
 Thanks for all the information!

 I have been looking at creating an .INS file and running it to set up
 the
 connection, but that brings up a number of dialogue messages which I
 would
 rather avoid, so I will try creating a *.DUN file and installing it.

 Alot of these users will probably not have a dial-up connection as
 yet, so
 will they have the HKEY_CURRENT_USER\RemoteAccess\Profile\ entry?
 Where are
 installed modems found in the Registry?

 Cath


 At 02:11 a.m. 19/04/2004 +0200, you wrote:
 Hi Cath,

 did I understand your question right that you want to provide your
 own Dialup-connection instead of using the system's default internet
 connection method?

 If yes, here some ideas:
 - first you should check if the target computer actually uses
 DialUp-Networking and has a modem installed, eg. by checking some
 registry values. If Dialup Networking is installed, the key
 HKEY_CURRENT_USER\RemoteAccess\
 has to exist, otherwise it doesn't exist. All existing connections
 (connectoids ) are listed under
 HKEY_CURRENT_USER\RemoteAccess\Profile\

 - you could try to provide your own *.DUN file (which is a special
 INI that contains dialup-connection-infos). you can easily generate
 such a DUN file by creating a Dial-Up connection (connectoid ) with
 the correct settings on your own system and dragging it to any
 folder or the desktop. You can install this DUN file on the user's
 system with calling

 Win 9x:
 RUNDLL32.EXE RNAUI.DLL,RnaRunImport path-to-DUN-file

 Win XP (and propably NT/Win2k):
 RUNDLL32.EXE NETSHELL.DLL,InvokeDunFile path-to-DUN-file

 you can do this with Buddy API like
 baRunProgram( RUNDLL32.EXE RNAUI.DLL,RnaRunImport
 path-to-DUN-file, hidden, false )
 baRunProgram( RUNDLL32.EXE NETSHELL.DLL,InvokeDunFile
 path-to-DUN-file, hidden, false )

 A problem might be that a DUN file also contains information about
 the modem to use, in section [Device]. Maybe you could find out the
 installed modems from the registry and generate a DUN file with the
 apropriate modem on the fly. You could even generate the full
 DUN-file with Buddy API's baWriteIni().

 After the DUN-file is imported, you can open a dialup connection by
 using the entry name that is specified in the DUN file (line
 Entry_Name=... in section [Entry]).

 On Win9x you start a DialUp-connection with calling
 RunDLL32 RNAUI.DLL,RnaDial entry name
 eg. with Buddy API: baRunProgram( RunDLL32 RNAUI.DLL,RnaDial entry
 name, hidden, false )

 On Win NT/2k/XP with:
 RASDIAL.EXE entry name
 eg. with Buddy API: baRunProgram( RASDIAL.EXE entry name,
 hidden, false )

 To uninstall the temporary connection, you can use
 RASPHONE.EXE -r entry name
 for Win NT/2k/XP, but I don't know how you could do this on Win 9x.

 Good luck,
 Valentin




 Cath Sample wrote:
 Hi,
 I need to make a CD which will set up temporary dial up connection
 and then
 connect to a web page. I have tried the demo of DirectConnection
 xtra ,
 which opens a window so the user can input the phone number, etc,
 but I
 would really like to do this without making the user input the phone
 number. Has anyone done anything like this?


 Regards

 Cath Sample
 Director
 Phosphor Essence

 Level 1, 27 Dacre St
 PO Box 68755
 Newton, Auckland
 http://www.phosphor.co.nz
 P: +64 9 377 4626
 F: +64 9 377 4991
 M: 021 748 774


 The material in this email is confidential to the addressee and may
 be protected by legal privilege. If you are not the intended
 recipient, please
 note that you may not use any material in this message nor pass it
 on to
 others. If you have received this email in error, please delete it
 and notify us immediately by telephone or email
 ([EMAIL PROTECTED]).

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

Re: lingo-l MPEG Media Viewer

2004-04-17 Thread Valentin Schmidt
 - Is it possible to use the *.ini file that can be included with a
 projector for this purpose. I.e. including my own parameters? Or do I
 have better read in a separate (.txt?) file with MY data?

Hi Nik,

I don't think that you can include your own parameters in
projectorName.ini. But you can define some globals in the
StartUp-handler of a lingo.ini. And if you prefer ini-files to
Director's getPref/setPref or using FileIO, you can use
baReadIni()/baWriteIni() with Buddy API Xtra.

Valentin

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


Re: lingo-l SVG generation scripts

2004-04-12 Thread Valentin Schmidt
Hi biju,
I guess the script error is not produced by the SVG creation scripts
itself, but I use the Adobe SVG viewer to display the created files. You
have to install the latest SVG viewer to make this work:
http://www.adobe.com/svg/viewer/install/main.html

otherwise you would have to uncomment the display code.

valentin


biju george wrote:
 Hi,

 The downloaded demo file produces Script error. Why?

 To view it should i install/download any activex/dlls?

 The zip package of Valentin does not say any thing on
 this issue.

 regards,
 Biju George.

 __
 Do you Yahoo!?
 Yahoo! Tax Center - File online by April 15th
 http://taxes.yahoo.com/filing.html
 [To remove yourself from this list, or to change to digest mode, go
 to http://www.penworks.com/lingo-l.cgi  To post messages to the list,
 email [EMAIL PROTECTED]  (Problems, email
 [EMAIL PROTECTED]). Lingo-L is for learning and helping with
 programming Lingo.  Thanks!]

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


Re: lingo-l net webcam img into director

2004-04-12 Thread Valentin Schmidt
what I usually do in such a case is to append a random-parameter to the
URL, which makes director bypass the cache:

-- in moviescript, e.g. on prepareMovie
the randomseed = the ticks

-- when updating image
member(webimg).filename= http://webcamurl/foo.cgi?;  random(the
maxinteger)

(url could be *.php, *.asp or anything else instead of *.cgi)

valentin


Alex da Franca wrote:
 At 18:45 Uhr +0200 12.04.2004, thor wrote:


 Do you have any tips on how to solve this problem?

 as far as I remember there's a movie method 'cachedocverify'
 it defaults to:
 put cacheDocVerify()
 -- #once

 set it to #always like so:
 cacheDocVerify #always

 I can't tell how reliable it is across browsers, though :-(


 the other thing to try is to append a ? to the
 url, which is the common way to force a refresh.
 I's further recommend to use the filename
 property instead of importfileinto, but can not
 really tell why ;-)

 member(webimg).fielname = http: url of webcam image?

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


Re: lingo-l Reference on creating Navigation System

2004-04-10 Thread Valentin Schmidt
 1. Is there any way to put an instance of a cast member via Lingo ?
 and does
 the instance behave like an inheritence object in OOP where the
 button could
 have multiple text/value on each instance. i try using
 sprite(x).member.text .. but all the instance also change

for standard director buttons: no (but you can create new members on the
fly with lingo)
for flashComponent buttons in dmx 2004: yes
for imported flash-buttons (swfs): yes
you might also create your own buttons with imaging lingo (e.g. in a
parent script)

 2. Is there any way to attach behavior(script) in the instance via
 lingo (on-the-fly) ?

yes: check out scriptInstanceList in director help.

valentin

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


lingo-l director-bug: contains() and offset() mix up chars

2004-04-08 Thread Valentin Schmidt
hi list,

i just wondered, is the following a known director bug?

c=numtochar(138)
put (c contains numtochar(154))
-- 1
put offset(numtochar(154),c)
-- 1

and also

c=numtochar(154)
put (c contains numtochar(138))
-- 1
put offset(numtochar(138),c)
-- 1

(tested on dmx, win xp pro)

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


Re: lingo-l director-bug: contains() and offset() mix up chars

2004-04-08 Thread Valentin Schmidt
hi daniel,

no, those are the mac char codes for the german special chars ä (a
umlaut) and ö (o umlaut), both lower case.

valentin

 In this case, is it possible that these two characters (138 and 154)
 are lower and upper case versions of one another?


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


Re: lingo-l Charset: Spezialchars under Win-XP are 'mixed up'

2004-04-07 Thread Valentin Schmidt
I use german special chars all the time and never had this problem. I
think something is wrong with the fonts you are using. Are you using
embedded fonts or system fonts? Which ones? And where does the text come
from? Is it set/changed at runtime?

I have some lingo code for converting mac-strings to ANSI-strings and
v.v., that I could send you. But propably it's better to find out what
causes those troubles, instead of fixing the symptoms.

Valentin


Ueliisa wrote:
 Hallo

 I am near finished my Project for a CD-Rom and was testing it on
 different computers Mac(9.1/9.2/10.2/10.3) and Windows 98, NT4, XP).
 It was good looking at all - only Windows XP change all german spezial
 chars like ä,ö,ü to confusing/wrong symbols.

 Knows anyone how to fix it.
 Is it possible to give/define for the projector/project a chartable?

 To create bitmaps from the text is not a way because the the content
 change dynamically by runtime.
 Until know I found only UFT-8 support for XML dokuments but it is.

 Thanks
 Ueliisa

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

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


Re: lingo-l Shockwave finding movies on CD-ROM

2004-04-07 Thread Valentin Schmidt
for windows and internet explorer you could embed some vbscript in the
html page that checks for the cd-rom and opens the movie (e.g. in a new
browser window). it would depend on the user's security settings if the
script works seamlessly or if a security dialog pops up or if the script
fails.

valentin

Alan Neilsen wrote:
 I can use BuddyAPI (BAFindDrive) in a projector to determine if the
 correct
 CD-ROM is in the drive; to then either open a specified movie from the
 CD-ROM, or alternatively, alert the user that the (correct) CD-ROM is
 not
 available. Can I do something similar with Shockwave? I would like to
 embed
 a little Shockwave file (looking like a disk icon) into a web-page
 as a
 link to external movies to be stored on a CD-ROM (delivered to
 students to
 use in conjunction with the web-site). My idea is to make it so when
 a user
 clicks on this icon, it determines the letter assigned to their CD-ROM
 drive, finds and opens a movie on that drive, or alternatively
 reports that
 the correct CD-ROM is not available if this is the case.
 Essentially, I
 want to make Shockwave files that work something like Quicktime
 Reference
 Movies, but for Director files.

 The problem seems to be that I can set the bupapi xtra to be included
 in
 the projector, but not to be downloaded if required. So it seems that
 using
 bubapi is not the answer, and I need to try and find another way of
 doing this.

 Cheers
 Alan Neilsen

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

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


lingo-l SVG generation scripts

2004-04-07 Thread Valentin Schmidt
Hi list,

I've taken an important step forward in fullfilling my ingenious plan to
achieve world domination by means of lingo :-)
I've written 2 classes (parent-scripts) for runtime generation of
SVG-files: one for general SVG generation, the other for SVG graphs.
Both are translations of existing PHP code.

They are available from:
http://staff.dasdeck.de/valentin/lingo/svg/

The scripts work on macs as well, but the demo-dirs and projectors use
the Adobe SVG Viewer embedded as ActiveX Control to display the
generated SVG-files, which of course doesn't work on macs.

Regards,
Valentin

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


lingo-l find property-names of flash obect

2004-04-05 Thread Valentin Schmidt
hi list,

does anyone know a way to find out the existing properties (their names)
of a flash object in dir mx/mx2004 by means of lingo? As they enumerated
in the object inspector, there must be a way to find them, but can this
be done with lingo?

valentin

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


Re: lingo-l find property-names of flash obect

2004-04-05 Thread Valentin Schmidt
thanx mark, that's what I was looking for.

valentin


 myFlashObject.dbgPropList()

 Sincerely
 Mark R. Jonkman

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Valentin
  Schmidt
  Sent: Monday, April 05, 2004 11:40 AM
  To: [EMAIL PROTECTED]
  Subject: lingo-l find property-names of flash obect
 
 
  hi list,
 
  does anyone know a way to find out the existing properties (their
names)
  of a flash object in dir mx/mx2004 by means of lingo? As they
enumerated
  in the object inspector, there must be a way to find them, but can
this
  be done with lingo?
 
  valentin
 
  [To remove yourself from this list, or to change to digest mode,
  go to http://www.penworks.com/lingo-l.cgi  To post messages to
  the list, email [EMAIL PROTECTED]  (Problems, email
  [EMAIL PROTECTED]). Lingo-L is for learning and helping
  with programming Lingo.  Thanks!]
 

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

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


lingo-l FileIO Xtra trouble

2004-04-02 Thread Valentin Schmidt
Hi list,

I have a very simple utility-function which uses fileIO Xtra to find out
if a file exists (just for cases where Buddy API or FileXtra are not
available):

on fileExists fn
  fio=new(xtra fileIO)
  fio.openFile(fn,1)
  err=fio.status()
  fio.closeFile()
  fio=void
  if err=0 then
return 1
  else
return 0
  end if
end

Now I found out that this function always returns true if a file with
the same filename as the filename in parameter fn (which is a full path)
exists in the moviepath, i.e. if fn doesn't exist, but a file with the
same name exists in the same folder as the *.dir, fileIO takes this one
instead for openFile, writeString etc. (dir mx, win xp pro). Does anyone
know a way to make fileIO stop behaving like that?

Thanks,
valentin

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


Re: lingo-l FileIO Xtra trouble

2004-04-02 Thread Valentin Schmidt
As I've said, this function is only meant for cases where those xtras
are not available. One possible reason is to keep my downloadable
shockwave-projectors as small as possible.

valentin

Kerry Thompson wrote:
 Now I found out that this function always returns true if a
 file with the same filename as the filename in parameter fn
 (which is a full path) exists in the moviepath, i.e. if fn
 doesn't exist, but a file with the same name exists in the
 same folder as the *.dir, fileIO takes this one instead for
 openFile, writeString etc. (dir mx, win xp pro). Does anyone
 know a way to make fileIO stop behaving like that?

 I'm not sure, but is there any reason you don't want to use Buddy or
 FileXtra4? Both of them have fileExists functions.

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


Re: lingo-l FileIO Xtra trouble

2004-04-02 Thread Valentin Schmidt
matthew,

 In this case is the name fully qualified, or relative?
I want to use it as general function for checking the existence of
files, specified by their full path.

 What about using fileName() to compare the filename to the one that
 was
 passed in? Of course, this won't work if fileName() only returns the
 name and not the path... Don't know any way to get the path+filename
 of
 a currently open file with just fileIO...

this sounds like the right solution, but it doesn't work, filename
returns the full path to a file that doesn't exist! This definetely has
to be considered as fileIO xtra bug.

buzz,

 If you can't verify the path-filename of what was opened then you
 could try this workaround:

 Open up the false file first (the one next to the DIR).

 This will either fail (not there) or will set your desired routine up
 for failure (because the false file has already been opened).

I'm afraid that's what I have to do, but it makes my simple
file-checking routine much uglier and more complicate.

thanks to all for your help,
valentin

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


Re: lingo-l FileIO Xtra trouble - solved (without FileIO Xtra)

2004-04-02 Thread Valentin Schmidt
if anyone cares, here my solution for a lingo-based
fileExists()-function. I've tried the proposal made my Buzz, but this
would mean that I would need 2 instances of fileIO Xtra for every call
of fileExists(), which seemed too ugly.
now I simply use:

on fileExists myFile
  pd = the last char of the moviepath
  the itemdelimiter = pd
  myPath = myFile
  delete the last item of myPath
  put pd after myPath

  i=0
  repeat while TRUE
i=i+1
f = getNthFileNameInFolder(myPath, i)
if f = EMPTY then return false
if myPath  f = myFile then return true
  end repeat
end



valentin


Buzz Kettles wrote:
 At 5:47 PM +0200 4/2/04, you wrote:
 Hi list,

 I have a very simple utility-function which uses fileIO Xtra to find
 out if a file exists (just for cases where Buddy API or FileXtra are
 not available):

 on fileExists fn
   fio=new(xtra fileIO)
   fio.openFile(fn,1)
   err=fio.status()
   fio.closeFile()
   fio=void
   if err=0 then
 return 1
   else
 return 0
   end if
 end

 Now I found out that this function always returns true if a file with
 the same filename as the filename in parameter fn (which is a full
 path) exists in the moviepath, i.e. if fn doesn't exist, but a file
 with the same name exists in the same folder as the *.dir, fileIO
 takes this one instead for openFile, writeString etc. (dir mx, win
 xp pro). Does anyone know a way to make fileIO stop behaving like
 that?

 Thanks,
 valentin

 If you can't verify the path-filename of what was opened then you
 could try this workaround:

 Open up the false file first (the one next to the DIR).

 This will either fail (not there) or will set your desired routine up
 for failure (because the false file has already been opened).

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

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

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


Re: lingo-l FileIO Xtra trouble - solved (without FileIO Xtra)

2004-04-02 Thread Valentin Schmidt
year, of course you are right. here my latest version, including another
little optimization:

on fileExists myFile
  pd = the last char of the moviepath
  od = the itemdelimiter
  the itemdelimiter = pd
  myPath = myFile
  myFileName = the last item of myFile
  delete the last item of myPath
  put pd after myPath
  the itemdelimiter = od
  i=1
  repeat while true
f = getNthFileNameInFolder(myPath, i)
if f = EMPTY then return false
if f = myFileName then return true
i=i+1
  end repeat
end


Buzz Kettles wrote:
 very nice solution, however, I'd suggest the changes below so that
 the function can be called from within another routine that might
 already be using the itemDelimiter set to something else.

 -Buzz

 At 9:08 PM +0200 4/2/04, you wrote:
 if anyone cares, here my solution for a lingo-based
 fileExists()-function. I've tried the proposal made my Buzz, but this
 would mean that I would need 2 instances of fileIO Xtra for every
 call of fileExists(), which seemed too ugly.
 now I simply use:

 on fileExists myFile
   pd = the last char of the moviepath

  oldItemDelim = the itemDelimiter

   the itemdelimiter = pd
   myPath = myFile
   delete the last item of myPath
   put pd after myPath

   i=0
   repeat while TRUE
 i=i+1
 f = getNthFileNameInFolder(myPath, i)
 if f = EMPTY then
  the itemDelimiter = oldItemDelim
  return FALSE
   end if

 if myPath  f = myFile then
  the itemDelimiter = oldItemDelim
  return TRUE
   end if
   end repeat
 end
 [To remove yourself from this list, or to change to digest mode, go
 to http://www.penworks.com/lingo-l.cgi  To post messages to the list,
 email [EMAIL PROTECTED]  (Problems, email
 [EMAIL PROTECTED]). Lingo-L is for learning and helping with
 programming Lingo.  Thanks!]

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


Re: lingo-l Javascript onSubmit() - notify Lingo?

2004-03-27 Thread Valentin Schmidt
Hi Rob,

you can use either the status or the title of the page to communicate
with lingo.. I've used the same trick before with the webbrowser
control. But as the status text dispays all kind of status information
and therefor changes all the time, I would suggest you use the title.
Here is some code to notify lingo when the user has pressed the
submit-button inside the WebXtra-Sprite:

1. setting the html-code for WebXtra-Sprite:
s=sprite(1)
s.html = htmlbodyform
onsubmit=QUOTEdocument.title='_submit';return falseQUOTEinput
type=submit/form/body/html


2. behaviour attached to WebXtra-Sprite:

on titleChange me, newText
  if newText=_submit then
alert(SUBMIT-BUTTON PRESSED!)
  end if
end

valentin


Rob Wingate wrote:
 Hi All,

 I think I'm looking for a strategy on how to notify Lingo from a
 form
 tag's 'onSubmit()' event.

 Background:
 I'm building HTML forms on the fly with Lingo, and sending them to an
 Internet Explorer (Tabuleiro's WebXtra) sprite on the stage. Works
 beautifully.

 Then comes the Submit button. I could leave it alone and post the
 form data,
 but I'd rather intercept it and process the data locally. I know I
 can use form onSubmit=return false; to stop the post, but I don't
 know how to
 tell Lingo that Submit was clicked.

 IOW, how can the Javascript function I assign to onSubmit notify
 Lingo?

 I appreciate any leads--I'm in some new territory on this one.

 Thanks,
 Rob

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

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


Re: lingo-l Javascript onSubmit() - notify Lingo?

2004-03-27 Thread Valentin Schmidt
Tab,

if I understood it right, Rob is not asking for communication between an
embedded shockwave movie and the browser, but between a WebXtra sprite
inside a director projector and director.

valentin

Tab Julius wrote:
 Hi Rob,

 On Internet Explorer, you don't need an Xtra - you can call a function
 myMovieName.evalScript and pass it a string (which you can parse out
 later).  It takes a return value.  In Lingo, put 'on evalScript' in a
 movie
 handler.  To send in the other direction (to IE) you call
 externalEvent and
 pass it a string (sorry, no return value there).

 Unfortunately this doesn't currently work in Netscape, since they
 changed
 their structure in Netscape 6+.

 But for Windows IE, you're okay.

 - Tab



 At 10:46 AM 3/26/04, Rob Wingate wrote:
 Hi All,

 I think I'm looking for a strategy on how to notify Lingo from a
 form tag's 'onSubmit()' event.

 Background:
 I'm building HTML forms on the fly with Lingo, and sending them to an
 Internet Explorer (Tabuleiro's WebXtra) sprite on the stage. Works
 beautifully.

 Then comes the Submit button. I could leave it alone and post the
 form data, but I'd rather intercept it and process the data locally.
 I know I can use form onSubmit=return false; to stop the post,
 but I don't know how to tell Lingo that Submit was clicked.

 IOW, how can the Javascript function I assign to onSubmit notify
 Lingo?

 I appreciate any leads--I'm in some new territory on this one.

 Thanks,
 Rob

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

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


Re: lingo-l OT: Distributed File Encryption

2004-03-26 Thread Valentin Schmidt
If you don't need to access the files with director, the simplest
solution I can think of would be to put them in a password protected
(self-extracting) archive (zip, rar, sit, ...). I think those are quite
secure, especially if you use a long, unusual password.

valentin

Ross Clutterbuck wrote:
 Greets to all - bit of an OT query here.

 A client has asked me about encrypting files that are to be
 distributed on
 CD. The files are sensitive marketing and sales information for a
 major bank
 over here and usually the info is burned to CD and mailed out to all
 the
 Management bods. There is no front-end or anything like that, just a
 collection of data files (format unknown at this point) on a disc.

 The client has asked if it's possible to encrypt these files to add
 some
 security to the disc. Now encryption isn't one of my stronger points
 so I've
 not really got a good idea where to start.

 This needs to be as simple as possible (i.e. monkeys and Management
 type
 people can use it) in regards to encrypting AND decrypting the files.
 I'm
 not too bothered about which encryption method is used or anything
 like
 that, so has anybody got any ideas or places I should look?

 Ideally what I'm after is a utility where you literally point it to a
 file,
 enter an encryption key and it will encrypt the file, with decryption
 being
 exactly the same procedure. Am I asking too much?

 TIA

 Ross

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

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


lingo-l Notice: PDFCreator,MP3Xtra,OggXtra,PostScript Xtra now DMX2004 compatible

2004-03-25 Thread Valentin Schmidt
Hi list,

if anyone here does or will use one of my freeware windows scripting
xtras (PDFCreator, MP3Xtra, OggXtra, PostScript Xtra, Cells), I've
updated all of them today to make them DMX2004 compatible. There was
just a little error in the director version check that wasn't compatible
with director versions  =10. The updated versions are all downloadable
from http://staff.dasdeck.de/valentin/xtras/.

Regards,
Valentin

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


Re: lingo-l What happend to fps?

2004-03-18 Thread Valentin Schmidt
if you set the framerate to a value like 200 fps that is higher than the
rate that director can actually perform, it means you tell director to
update/animate as fast as possible. if your machine is slow or has
other processes running, this will result in jerks whenever something
else interferes that diminishes the maximum possible speed.

valentin

biju george wrote:
  Hi,

  I had created a dir movie in Dir Mx on Win 98.

  The stage has one sprite in channel 2 which is a
  rectangle filled with red color (any bitmap). I
  attach
  the following behaviour to the sprite:

  property p1
  on beginsprite me
  p1=sprite(me.spritenum)
  end

  on prepareframe me
x=p1.loch
x=x+1
if x800 then x=0
p1.loch=x
  end

  When i rewid and play the movie no problem.(fps=15
  default).

  But when i opended the control panel and set fps to
  anything higher 30 or 200 etc... the sprite's
  movement  is not smooth. It jerks at random
  positions. Why?

  Even puppettempoing results in same problem.

  Regards,
  Biju


 __
 Do you Yahoo!?
 Yahoo! Mail - More reliable, more storage, less spam
 http://mail.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!]

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


Re: lingo-l Midi and Director

2004-03-17 Thread Valentin Schmidt
some facts/thoughts about midi and director:
- Beatnik xtra is still a great xtra, it's shockwave safe and it works
in dmx2004, BUT, as mentioned by Johan, there is no OSX version
- There is MIDIio X-Tra for realtime sending and receiving of MIDI
messages (eg. to a MIDI synth, OMS on mac, system's default MIDI synth
on PC), but I think it's not shockwave-safe and it has no OSX port.
- Your best choice is propably Sequencer Xtra
(http://www.sourceforce.nu/index2.htm), it's shockwave-safe and ported
to OSX
- There is unfortunately no easy way to use QT musical instruments
interactively on windows, although this could be implemented, and in
fact I'm thinking about trying myself to create a simple scripting xtra
which can do it. At the moment, if you want to play notes with MIDIio
and Sequencer Xtra on windows, you have to rely on the
system's/soundcard's midi synth, which might or might not be crappy, and
you don't have any extra/custom soundbanks.
- if you like experimental stuff or don't want to pay for an xtra, I've
created a little parent script (MIDI CLASS) for reading, analyzing,
manipulating and creating  Standard Midi Files (*.mid) at runtime, but
of course this needs file system access and can't be used in a browser.
it's available from
http://dasdeck.de/staff/valentin/lingo/midi_class/

regards
valentin

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] John Waller
 Verzonden: woensdag 17 maart 2004 7:25
 Aan: [EMAIL PROTECTED]
 Onderwerp: lingo-l Midi and Director


 Hi,

 I was wondering if anyone could give me any advice regarding the
 possibility of using Midi sounds in Director.

 I have a situation where I would like to be able to play individual
 notes or chords (not necessarily sequences, though this might also be
 a
 possibility). I thought Midi files would be smaller than sound samples
 and would also offer greater flexibility and range of sounds.

 However I guess I also need to think of cross-platform playability.
 Most

 Macs will have QT installed and therefore I guess access to
 QuickTime's
 midi instruments (assuming this is still a function of QT) but PC's
 might have a problem with this - or are there common equivialents on
 the

 PC which play midi sounds?

 The final application will be both on the Web via Shockwave and on CD
 or

 hard-drive as a projector.

 I am vaguely aware of the old Beatnik plug-in but do not really know
 what it does or how it works. However it sounds defunct and probably
 not

 useful anymore.

 I am using Director MX on Mac OS X.

 Thanks in advance,
 John

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

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

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


Re: lingo-l Midi and Director

2004-03-17 Thread Valentin Schmidt
one thing that I've forgotton :

if you don't need a high level of interactivity, but e.g. you only want
the user to select from a couple of different instruments and a couple
of different notes, you don't need any Midi xtra, but you could create a
quicktime file with multiple music tracks and switch them on and off
with lingo according to your needs. this works for both mac and windows.

valentin

Valentin Schmidt wrote:
 some facts/thoughts about midi and director:
 - Beatnik xtra is still a great xtra, it's shockwave safe and it works
 in dmx2004, BUT, as mentioned by Johan, there is no OSX version
 - There is MIDIio X-Tra for realtime sending and receiving of MIDI
 messages (eg. to a MIDI synth, OMS on mac, system's default MIDI synth
 on PC), but I think it's not shockwave-safe and it has no OSX port.
 - Your best choice is propably Sequencer Xtra
 (http://www.sourceforce.nu/index2.htm), it's shockwave-safe and ported
 to OSX
 - There is unfortunately no easy way to use QT musical instruments
 interactively on windows, although this could be implemented, and in
 fact I'm thinking about trying myself to create a simple scripting
 xtra
 which can do it. At the moment, if you want to play notes with MIDIio
 and Sequencer Xtra on windows, you have to rely on the
 system's/soundcard's midi synth, which might or might not be crappy,
 and
 you don't have any extra/custom soundbanks.
 - if you like experimental stuff or don't want to pay for an xtra,
 I've
 created a little parent script (MIDI CLASS) for reading, analyzing,
 manipulating and creating  Standard Midi Files (*.mid) at runtime, but
 of course this needs file system access and can't be used in a
 browser.
 it's available from
 http://dasdeck.de/staff/valentin/lingo/midi_class/

 regards
 valentin

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] John Waller
 Verzonden: woensdag 17 maart 2004 7:25
 Aan: [EMAIL PROTECTED]
 Onderwerp: lingo-l Midi and Director


 Hi,

 I was wondering if anyone could give me any advice regarding the
 possibility of using Midi sounds in Director.

 I have a situation where I would like to be able to play individual
 notes or chords (not necessarily sequences, though this might also be
 a
 possibility). I thought Midi files would be smaller than sound
 samples and would also offer greater flexibility and range of sounds.

 However I guess I also need to think of cross-platform playability.
 Most

 Macs will have QT installed and therefore I guess access to
 QuickTime's
 midi instruments (assuming this is still a function of QT) but PC's
 might have a problem with this - or are there common equivialents on
 the

 PC which play midi sounds?

 The final application will be both on the Web via Shockwave and on CD
 or

 hard-drive as a projector.

 I am vaguely aware of the old Beatnik plug-in but do not really know
 what it does or how it works. However it sounds defunct and probably
 not

 useful anymore.

 I am using Director MX on Mac OS X.

 Thanks in advance,
 John

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

 [To remove yourself from this list, or to change to digest mode, go
 to http://www.penworks.com/lingo-l.cgi  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: lingo-l Movie Clip registration

2004-03-17 Thread Valentin Schmidt
you could attach a behavior script to the filmloops that reads the
comments and automatically positions the sprite correctly. that way I
don't see why setting regpoints would be less work.

valentin

 The problem is that they're all different shapes and sizes, but I need
 to have the background centered on the stage. Right now I'm going
 through and positioning them manually, then putting the desired sprite
 loc into the member's comments. I'll read that and position the sprite
 based on that.


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


Re: lingo-l Knowing when text wraps

2004-03-16 Thread Valentin Schmidt
I've found this handler in my code repository, mabe it helps.

valentin

---
-- returns hardwrapped text of given field or text member
---
on hardWrap m
  s=
  y=0
  n=1
  c=m.char.count
  repeat with i = 1 to c
if charPosToLoc(m,i)[2]y then
  if y0 then
put m.char[n..(i-1)] after s
if m.char[i-1]RETURN then put RETURN after s
  end if
  y=charPosToLoc(m,i)[2]
  n=i
end if
  end repeat
  put m.char[n..c] after s
  return s
end



roymeo wrote:
 Is there a way to detect via Lingo whether a line of text has wrapped?

 roymeo

 -
 roymeo(AT)brokenoffcarantenna.com
 -
 Flash MX Professional 2004 - Now Without Manuals!

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

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


lingo-l lingo css-parser (alpha version)

2004-03-16 Thread Valentin Schmidt
Hi list,

in case anyone has a need for it, I've finished the first alpha
version of my lingo css-parser (CSS CLASS), which can be downloaded from
http://staff.dasdeck.de/valentin/lingo/css_class/

it can be used to parse css-code (as string or as external file) and
apply this style to a tagged text (html or custom tags) which will
result in a text member accordingly formatted.

criticism and bug reports welcome.

valentin

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


Re: lingo-l pull down lists (or whatever its called)

2004-03-03 Thread Valentin Schmidt
Hi Diego,

those things are also called ComboBox. you have several opportunities:

- you can use an xtra like OSControl (cross-platform) or cXtraComboBox
(win only)
- for windows you can use an activeX control
- you can use an existing imaging lingo solution, like eg. the
ONE-SPRITE POPUP WIDGET by Luke Wigley, which I could send you
- i've created an LDM-combobox which you are welcome to use (most people
don't trust LDMs, but I kind of like them)
- for dmx2004 there is propably a flash component that you can use

valentin

Diego Landro wrote:
 People,
 i´m working on an educational app and im facing a problem when i want
 to
 make a fill in the blanks text. Those blanks i would like to make
 pull
 down lists so you can choose between three or four items, but the
 problem is
 i can´t find a way to do it in Director that does not involve
 programming
 the whole thing. I think it should be a way to do it or some Xtra or
 something, anyone has any idea how it can be done without having to
 program
 the pull down lists, or whatever they are called, from scratch?
 Thanks

 Diego Landro



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

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


Re: lingo-l Using @//

2004-03-03 Thread Valentin Schmidt
it's just @//.

valentin

Kerry Thompson wrote:
 I'm trying to get the directory above the moviePath, and my brain is
 in 
 vaporlock.
 
 I thought I could get it with pPath = @//the moviePath, but Director
 is 
 choking on that, and every variation I can think of.
 
 This is on Windows, but it would be nice to work on Mac as well.
 
 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!]


Re: lingo-l Using @//

2004-03-03 Thread Valentin Schmidt
I guess Buddy API simply doesn't support the @-syntax? 
e.g. getNthFileNameInFolder(@//, 1) works.

valentin

Warren Ockrassa wrote:
 On Mar 3, 2004, at 10:28 AM, Kerry Thompson wrote:
 
 it's just @//.
 
 I tried that and got a misplaced operator error.
 
 pUserPath = @// --misplaced operator
 pUserPath = @//
 Put baFolderExists(pUserPath)
 -- 0
 
 I know I'm missing something obvious.
 
 Uh, yeah. That's not how the @ operator is meant to be used. :\
 
 What do you want to do?
 
 
 Warren Ockrassa | President,  nightwares LLC  [EMAIL PROTECTED]
   nightwares LLC | Consulting  Programming
   http://www.nightwares.com/ Author | Director 8.5 Shockwave
 Studio: A Beginner's Guide 
 Chapter samples | http://www.nightwares.com/director_beginners_guide/
 
 [To remove yourself from this list, or to change to digest mode, go
 to http://www.penworks.com/lingo-l.cgi  To post messages to the list,
 email [EMAIL PROTECTED]  (Problems, email
 [EMAIL PROTECTED]). Lingo-L is for learning and helping with
 programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


lingo-l undocumented feature: ActiveX callSprite method [direct-l reposting]

2004-03-02 Thread Valentin Schmidt
Hi list,

I just found some undocumented feature in dmx2004 concerning
activex-controls: I had noticed that the properties-dialog for
activex-controls has 2 new tabs, CallString and Constants. Doing a
little google-research I found the following very interesting article:

http://www.macromedia.com/devnet/education/articles/authorware6_msagent.
html

it deals with Authorware and ActiveX, but everything it says applies to
dmx2004 as well. I don't know why macromedia decided not to include it
in the documentation (at least I couldn't find it in the help), but
there is a new way to communicate with activex sprites that gives much
deeper access, the callSprite-method. As an example, the following code
lets you show the merlin-character as ms agent :

s=sprite(1) -- activex-control Microsoft Agent Control 2.0
s.Connected=1
s.RaiseRequestErrors=0
str=Characters.Load('Merlin','Merlin.acs')
s.callString(str)
str=Characters('Merlin').Show
s.callString(str)

the callSprite-method allows to use much more activex-controls than with
dmx or older versions. another example (semi-reply to grimmwerk's last
posting) is the MS ProgressBar control, which can now be used with code
like:

s=sprite(1) -- activex-control MS ProgressBar control
oldVal=sprite(1).CallString(Value)
newVal=min(100,integer(oldVal)+5)
sprite(1).CallString(Value(newVal))


valentin

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


lingo-l undocumented feature: ActiveX callSprite method - correction: callString

2004-03-02 Thread Valentin Schmidt
sorry, made a mistake, the method's name is callString, not callSprite. 
valentin
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Re: lingo-l Bitmap Linking

2004-03-02 Thread Valentin Schmidt
Hi Yarif,

I  wished there was a better solution. I tried to send all kind of
http-headers with php, like
Header('Content-Type: image/png');
Header('Content-disposition: inline; filename=pcw.png');
in conjunction with a fpassthru($fp) command, no success. I even tried
to fool director with fake urls like
http://www.census.gov/cgi-bin/ipc/pcwpng?foo.png
same result. I think director really needs a real file ending, or maybe
a certain server configuration. well, writing this one idea comes to my
mind, if you have full admin access to a webserver and can use your own
.htaccess files, it could work if you put there an php-script which
receives urls
(as get-parameters, like
...?imgurl=http://www.census.gov/cgi-bin/ipc/pcwpng)
which it simply passes through:
?php
$fp=fopen($_GET['imgurl'],'rb');
fpassthru($fp);
fclose($fp)
?
without creating a local copy, and then rename this script to *.png (or
whatever your image-format is), and configure your webserver to
interprete all png-files in this directory as php-files. This could
work. You could even have 3 such renamed php-scripts, with file-endings
gif, jpg and png, and make the webserver interprete all of them as
php-scripts (only in this one directory).

If that's no solution for you, you could check if flash is able to
receive image data from CGIs, and if it does, use a flash-sprite to
display the images.

But in case your other project isn't shockwave-based, put based on a
projector, you can of course download the images, save them locally and
attach/import the local copies.

good luck,
valentin

Yariv Alter Fin wrote:
 Valentin hi,

 Thanks alot, its amazing and it works. it is abit of an overkill
 however... indeed in the case of the one image i've sent its a
 prefect solution, however i am working on another project that needs
 to get a whole bunch of images from a cgi script... i could create a
 php script that get sent the url of the original file and the name of
 the local copy. but is there absolutely no way of reading the
 original files directly in director, somehow adding the missing file
 ending or something like that? or otherwise is there any xtra that
 could help with this?

 again thanks for the solution,

 greetings to all (Alfred! Hi!)

 Yariv


 I think the problem is that the png is dynamically generated by some
 cgi-script, but director needs correct file-endings, mime-types in
 the http-header don't seem to be sufficient. if you have acces to any
 web-space with php-support, you can put there the following little
 php-script (pcw.php).

 ?php
 copy('http://www.census.gov/cgi-bin/ipc/pcwpng','pcw.png');


 this creates a copy of the recent png in your web directory.

 now, whenever you want to update the png in your shockwave movie,
 use a script like the following (eg. attached to an update-button):

 property pNetId

 on mouseUp me
 -- forces update of png
 pNetId = getNetText(http//domain/path/pcw.php)
 (the actorList).add(me)
 end

 on stepFrame me
 if netDone(pNetId) then
 -- use random to fool cache. set randomseed in prepareMovie

 member(myPng).filename=http//domain/path/pcw.png?random(the
 maxinteger) updateStage()
 (the actorList).deleteOne(me)
 end if
 end


 valentin


 Yariv Alter Fin wrote:
  Dear List,

I am trying to download and link an online image file with my
  shockwave movie. the image adderss is:
  http://www.census.gov/cgi-bin/ipc/pcwpng . however, it wont link
  unless i download it to a known place on my harddisk and link it to
  the member from there. this offcourse i can't do from a shockwave
  movie...  any idea's of how to be able to get this image into my
  shockwave movie?


  T.I.A,

  regards,

  Yariv Alter / alterFin
  [To remove yourself from this list, or to change to digest mode, go
  to http://www.penworks.com/lingo-l.cgi  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!]

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


Re: lingo-l Director and Winhelp (chm)

2004-03-01 Thread Valentin Schmidt
try
open(hh.exe mk:@MSITStore:path_to_chm_file::/page)

example, opening director's help with topic member (german system):
open(hh.exe
mk:@MSITStore:C:\Programme\MACROMEDIA\Director%20MX\Help\dirusing.chm::/
03c_m_21.htm)

to find a the adress of a certain page (topic), do a right
click-properties on that page, and copy the adress (URL)

valentin

Roland Blaettler wrote:
 Hello all

 Is there a way to call / open a *.chm help from director, passing a
 topic ID with it, in order to display a specific help pape?

 Thanks for your hints


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

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


Re: lingo-l Bitmap Linking

2004-03-01 Thread Valentin Schmidt
I think the problem is that the png is dynamically generated by some
cgi-script, but director needs correct file-endings, mime-types in the
http-header don't seem to be sufficient. if you have acces to any
web-space with php-support, you can put there the following little
php-script (pcw.php).

?php
copy('http://www.census.gov/cgi-bin/ipc/pcwpng','pcw.png');
?

this creates a copy of the recent png in your web directory.

now, whenever you want to update the png in your shockwave movie, use a
script like the following (eg. attached to an update-button):

property pNetId

on mouseUp me
-- forces update of png
pNetId = getNetText(http//domain/path/pcw.php)
(the actorList).add(me)
end

on stepFrame me
if netDone(pNetId) then
-- use random to fool cache. set randomseed in prepareMovie
member(myPng).filename=http//domain/path/pcw.png?random(the
maxinteger)
updateStage()
(the actorList).deleteOne(me)
end if
end


valentin


Yariv Alter Fin wrote:
 Dear List,

   I am trying to download and link an online image file with my
 shockwave movie. the image adderss is:
 http://www.census.gov/cgi-bin/ipc/pcwpng . however, it wont link
 unless i download it to a known place on my harddisk and link it to
 the member from there. this offcourse i can't do from a shockwave
 movie...  any idea's of how to be able to get this image into my
 shockwave movie?


 T.I.A,

 regards,

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

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


lingo-l Re: projector's filename - never mind

2004-03-01 Thread Valentin Schmidt
the applicationName, of course. sorry.

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


Re: lingo-l EXE

2004-02-29 Thread Valentin Schmidt
yes, it's possible, even in a single exe, with the help of some
commandline packer which is able to create self unpacking executables.
You could eg. use winrar to create an sfx exe which contains your
projector and an linked external dummy.cast:

slide.exe (sfx-archive)
- contains:
- show.exe (projector)
- data.cst (castLib)

choose the following options in the sfx-options dialog:
- unpack to current folder
- ommit start-dialog
- automatically execute show.exe after unpacking

now, distribute this dummy slide.exe (which you could temporarily
rename to eg. slide.dat, and later rename again) and the
commandline-version rar.exe (tested with version 3.0, 273 kb) together
with your slideshow-creator. when the user has created a new slideshow,
save it as external castLib data.cst and run rar.exe (with lingo open
... command or with buddi Api) with the following parameters:

rar.exe f slide.exe data.cst

this will exchange (update) the dummy-castLib with the new castLib.
slide.exe now contains the new data.cst.

regards,
valentin



 Sure.  But not in a single file.

 What you will do is ship a playback projector / .exe that uses an
 external
 cast called slideshow (or whatever).

 Then from the authoring program you create that external cast and
 save it.

 - Tab


 At 01:34 AM 2/29/04, juan colon wrote:
 lets say a user creates a slide show with a Director
 projector. can that user create an exe. of his/her
 slide show. is this possible?

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

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


Re: lingo-l EXE - addendum

2004-02-29 Thread Valentin Schmidt
1. you might also choose overwrite files without prompt in the
sfx-settings when creating slide.exe.
2. using buddy Api to call rar.exe has the advantage that it can be
hidden, without an ugly dos-box:
baSetCurrentDir( the moviepath)
baRunProgram( rar.exe f slide.exe data.cst, hidden, false )

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  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: some kind of bug??? WAS: Re: lingo-l OT: Windows media activex

2004-02-26 Thread Valentin Schmidt
hmm... if you got the cash :-), you could switch to dirMX2004 which has
native windows media support and the mediaStatus-property for Windows
Media cast members.

valentin

Rodrigo Peres wrote:
 Valentin,

 Thank's for the tip, but look what I've got:

 Put sprite(3).duration
 -- 282.989

 After play all the movie

 Put sprite(3).currentPosition
 -- 282.899

 So the script never intercepts the end of the movie

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


Re: some kind of bug??? WAS: Re: lingo-l OT: Windows media activex

2004-02-26 Thread Valentin Schmidt
Actually I can't remember anymore why I had used the
currentPosition/duration comparisson, there must have been some reason
for it, but I did a quick test now with the wmp activex control, and the
playState-property worked ok:

video playing - myWmpSprite.playState=3
video done - myWmpSprite.playState=1

I'm on win xp pro with wmp 9.00.00.3075.

valentin

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


Re: lingo-l OT: Windows media activex

2004-02-24 Thread Valentin Schmidt
maybe there is a better way, but what I've done before is checking the
currentPosition:

if myWmpSprite.currentPosition=myWmpSprite.duration then
  -- movie done
end if

valentin

Rodrigo Peres wrote:
 Hi list,


 I'm using the activex windows media control under director mx to play
 some
 mpg movies. There's a way to check if the video is still playing or
 already
 done?? I've tried some methods from the activex window but almost of
 then
 return errors.

 Thank's


 Rodrigo

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

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


Re: lingo-l accessing realtime decibel levels of QT audio

2004-02-22 Thread Valentin Schmidt
I don't think you that there's an easy way to get the amplitude value
for a quicktime sprite. I've checked Livestage, there is no
corresponding QScript Property. But for sound members (internal,
external, swa) AmplitudeXtra does what you want:
http://www.marmalademedia.com.au/

valentin


Charlie Fiskeaux II wrote:
 Does anybody know if it's possible to access the realtime
 decibel levels of the audio of a QuickTime sprite? I'd like
 to create a VU meter, and I know that QuickTime has one
 under Get Properties, so I'm curious if it's possible to
 access QT's built in VU meter.

 Or another option would be if there was a general way (via
 Xtra, maybe?) to access that data of all sounds in Director
 itself? I know there's an Xtra to read that data from sound
 input into the computer, but as far as I could tell, that
 Xtra didn't work for any kind of linked sound or video files.

 Ideas, anyone?

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


Re: lingo-l RE: not knocking the Knock knock AI Cyc Xtra

2004-02-18 Thread Valentin Schmidt
Hi Justin,

I doubt that you will find any OpenCyc-expert here on this list,
although it's a very interesting subject, and I don't think there is
something like a OpenCyc-Xtra. But maybe you could explain a bit, how
you think the combination of director and OpenCyc could look like? Does
OpenCyc have something like a web frontend? If you want to use the Java
API, you might have a look at Moka Xtra by integration new media
(http://www.integrationnewmedia.com/products/mokaxtra/).

good luck,
valentin

Justin Olmanson wrote:
 Since the list seems to be slow with at least a few people looking to
 weigh
 in on something, I thought I would re-post a question I posted last
 weekend
 that met with no response.

 Does anyone know of an Xtra that will work with the OpenCyc project?

 http://www.cyc.com/cyc/opencyc



 No luck on the Mile High...

 thanks and enjoy...

 _
 Find and compare great deals on Broadband access at the MSN High-Speed
 Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/

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

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


Re: lingo-l RE: not knocking the Knock knock AI Cyc Xtra

2004-02-18 Thread Valentin Schmidt
I've checked the OpenCyc-page, OpenCyc does have a web interface, which
you can use from director with getNetText() and postNetText()-requests,
something like pNetID = getNetText
(http://localhost:3603/cgi-bin/cyccgi/cg?...;)

valentin

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


Re: lingo-l windows media player metafiles

2004-02-16 Thread Valentin Schmidt
I would assume that you can play them with the media player active x
control.

valentin

Juan Pablo De La Fuente wrote:
 Hello list
 Does anybody know how to play Windows Media Player metafiles from
 Director MX? I must be able to point to .WVX files and embed the video
 window in Director MX project.
 Thanks!
 Juan Pablo


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

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


Re: lingo-l File storage

2004-02-12 Thread Valentin Schmidt
hi pranav,

what I've done in a similar case is using ordinary castLibs with a
certain member arrangment or naming convention as my own compound file
format, and to attach and detach them at runtime with the freeware xtra
CastControl. You can give them your own file type ending (eg. *.mix or
whatever), so no one knows it's a castLib, and a doubleclick (on windows
or os x) wouldn't open them in director, but you can still attach them
as castLib, director doesn't care (for os 9 you could change the
type/creator as well).

if you need additional protection, you could eg. strip the first 4
chars (XFIR) with binaryIO, and add them again before attaching.

it doesn't matter that you movies are protected, you can still use
unprotected castLibs.

valentin


- Original Message -
From: Pranav Negandhi [EMAIL PROTECTED]
To: Lingo-L [EMAIL PROTECTED]
Sent: Monday, February 09, 2004 7:46 AM
Subject: lingo-l File storage


 I'm building an editor that lets users create simple templatised
 presentations and publish them. Users can import their own
backgrounds,
 images and video clips and place text in predefined fields. The
presentation
 has a fixed number of screens of information.

 The movies will have to be protected ofcourse, so using savecastLib or
 saveMovie is out of the question. My plan is to make a playback engine
that
 retrieves the contents of each screen and plunk them into their
respective
 fields. The content files can reside in a subfolder, but I'd like to
go for
 a safer solution such as combining all the images, text and video
clips into
 one big data file. I know BinIO can do this...but there was a solution
using
 FileIO for the same thing someplace. Can someone point me to that?

 As an aside, I've _never_ ever created binary files. So one thing
stumps me
 off - how in heavens name will I know at which position does one file
end
 and another begin? Is there a commonly used end-of-chunk character? I
need
 to be certain that the same character will not be used in any of the
other
 files too, else that info will go kaput. Pointers, pointers...anyone?

 I'm running this on Windows so far, but somewhere along the line I
might
 have to make this x-plat.

 Pranav Negandhi
 concept-I
 www.cimultimedia.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!]

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


Re: lingo-l Merits of JS in Director

2004-02-12 Thread Valentin Schmidt
Hi Mark,

thanx for the detailed reply. no, I hadn't read your article yet,
although I had it already bookmarked, and now I realize that it deals
exactly with this issue. My favorite editor that I use whenever possible
is UltraEdit (don't know if you know it, a good windows
ASCII/Unicode/Hex editor, a bit like BBEdit for PC), and I think I will
check out how good it gets along with DMX 2004 and how much of your
article can be transfered to it. But I will give Dreamweaver a fair
chance, too ;-)

thanx again,
valentin


- Original Message -
From: Mark R. Jonkman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 13, 2004 12:35 AM
Subject: RE: lingo-l Merits of JS in Director


 Hi Valentin

 The script formatting for JS Syntax is a bit more rudimentary then
that of
 Lingo. But it does remember tab depth level for opening and closing
the
 curly braces and does color the lingo keywords. You are right though,
if you
 want more coloring and formatting control then you might wish to look
at an
 external editor. I've written an article that provides some
information on
 this exact issue. There were a variety of reasons that Macromedia
didn't or
 couldn't put a lot of effort into this area. But there are still some
uses
 for the internal editor and that is to set breakpoints etc for
debugging.

 Not sure if you have read it or not:

 http://www.macromedia.com/devnet/mx/director/articles/js_syntax.html

 might provide a bit of information on using an external editor. It has
a
 little utility that you can download as well as Rob Walch's
Dreamweaver
 extension for using a non-standard JSL extension. It colors both JS
and
 Lingo extensions of the JS Syntax language. It also offers
autocomplete and
 code hinting for both JS Syntax and standard Lingo (LS files).

 The utility is specifically for JS syntax scripts but can easily be
modified
 to use the LS extension. Maybe a half dozen small code changes and
your
 there. My current preference is to use JSL extensions and Dreamweaver
plus
 Rob Walch's Dreaweaver extension for editing JS Syntax files.

 Sincerely
 Mark R. Jonkman

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Valentin
  Schmidt
  Sent: Thursday, February 12, 2004 4:29 PM
  To: [EMAIL PROTECTED]
  Subject: Re: lingo-l Merits of JS in Director
 
 
  I've got the impression that syntax coloring and auto indent for JS
code
  are still very rudimentary (no coloring of important key words like
  function, for,..., no auto indenting for opened and closed curly
  brackets etc - maybe someone could confirm this?). Guess this might
be
  an obstacle for switching to JS (or a reason to check out using an
  external editor).
 
  valentin
 
 
  - Original Message -
  From: Colin Holgate [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, February 12, 2004 11:10 PM
  Subject: RE: lingo-l Merits of JS in Director
 
 
   I've been meaning to run some tests when I get time. For now, I
  choose
   to believe that there is no significant speed difference.
  
  
   It isn't significant, but it is easy to show:
  
   on timeit
  t = one two three
  m = the milliseconds
  repeat with a = 1 to 10
c = char 2 of word 2 of t
  end repeat
  m1 = the milliseconds - m
  m = the milliseconds
  repeat with a = 1 to 10
c = t.word[2].char[2]
  end repeat
  m2 = the milliseconds - m
  put m1  m2
   end
  
   timeit
   -- 824 1028
  
   [To remove yourself from this list, or to change to digest mode,
go to
  http://www.penworks.com/lingo-l.cgi  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!]

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


Re: lingo-l password protection

2004-02-10 Thread Valentin Schmidt
Hi Craig,
if you really want to follow the deleting idea, here's a quick'm'dirty
hack for windows:

after 3rd failure do 2 things in projector:
a) write the following key to the registry, either with some capable
xtra or by executing vbscript as external file (open ...) or with an
embedded ScriptControl:

key: HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\deleteProj
value: c:\del.vbs

here is the vbs-code that would do it (2 lines):
Set shell = WScript.CreateObject(WScript.Shell)
shell.RegWrite
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\deleteProj,
c:\del.vbs, REG_SZ

b) create a text-file (eg. with fileIO) with the following code and save
it as c:\del.vbs (7 lines):

Set shell = WScript.CreateObject(WScript.Shell)
shell.RegDelete
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\deleteProj
Set fso = CreateObject(Scripting.FileSystemObject)
Set a = fso.GetFile(c:\myPath\myProjector.exe)
a.Delete
Set a = fso.GetFile(del.vbs)
a.Delete

the file would be automatically executed after the next computer
restart. it deletes the registry key, deletes the projector file and
deletes itself. but you would still need some other measures to
deactivate the projector in the meantime before the next restart.

valentin


Craig Taylor wrote:
 Good Afternoon,

 I have a program that is password protected.  Very simple structure
 at the
 moment - alerts the user that they entered an incorrect password and
 they
 have x attempts left out of a possible 3 trys.  What the client
 wants
 is... if you fail on all three attempts the program will not launch
 again
 unless it is re-installed.  I was toying with the idea of deleting the
 projector after three failures - write to an external file that
 prompts this
 action??  Is this possible or is there a better way altogether?

 Thanks,
 -_Craig


 Craig Taylor
 Renegade Digital Media Inc.
 E: [EMAIL PROTECTED]


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

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


Re: lingo-l Windows Desktop

2004-02-10 Thread Valentin Schmidt
 C:\Documents and Settings\Owner\Desktop is corect for W2k and XP
(and propably NT as well), but only, if it's an english OS. On a german
system for example it would be C:\Dokumente und
Einstellungen\Owner\Desktop. For 95, 98 and probably ME as well it's
C:\Windows\Desktop. And those pathes are defaults only, a user could
rename it.

It would be much safer to find out the actual Desktop-Folder with some
xtra like Buddy Api:
Result = baSysFolder( desktop)

valentin

Kyle Smeby wrote:
 I think that this is an easy question.   I can't test it right now,
 but
 can someone tell me what the path to the windows desktop is?

 I think it's:

 C:\Documents and Settings\Owner\Desktop

 But I'm not sure, and I'm really not sure if that applies to Win 98
 through XP or if some of them are different.

 Anyone know the answer off hand?

 thanks,

 kyle

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

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


Re: lingo-l updating an online database

2004-02-05 Thread Valentin Schmidt
I havn't understood exactly what you want to do, but in general I would
suggest that you send ALL you update-information only once in a SINGLE
postnettext command (as a long list of post-variables) to your
ASP-script, and then let the ASP-script do all the updates based on the
recieved data.

valentin

Lee Blinco wrote:
 Hi list,
 i'm updating an online mysql database with 3 fields, in 982 records
 and
 basically its unreliable it doesn't manage top do all the updates or
 even a
 consistent numberit usually falls about 100 short.

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


Re: lingo-l create and save pdf

2004-01-15 Thread Valentin Schmidt
hi mark,

my lingo script for creating pdf you can find at
http://dasdeck.de/staff/valentin/pdf_class/pdf_class_v102.zip

but if your project is win only, and you use a lot of images, you would
better use my pdfCreator xtra, a free scripting xtra based on PDFLib
which you can find at
http://dasdeck.de/staff/valentin/xtras/pdf/pdfCreator.zip

regards
valentin

Mark van den Elzen wrote:
 Hello List,

 I'm hoping to find some help here, a client wants me to create a
 database driven application for his products. This is not the problem
 the problem is his demand for being able to export a page with
 images
 to a pdf file on his HD. I have been searching the internet for the
 best
 way to accomplish this task, the only xtra I have found that claims it
 could do the trick is the DirectImage xtra (used to be directXport).
 Is there anybody out there that has used this xtra to dynamically
 create/export a PDF? What are the limitations? Is there a better
 solution?
 I own a copy of PdfXtra (V. 2.2), but it seams to have no options to
 create/edit a pdf.

 Many thanks in for any help,

 Mark van den Elzen



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

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


Re: lingo-l MailIt or Zip Mail

2004-01-14 Thread Valentin Schmidt
there is a command line tool called blat.exe that supports
attachments, but doesn't use MAPI. you could run it as hidden app (eg
with Buddy API) with an smtp server of your choice:
http://pages.infinit.net/che/blat/blat.zip

the command line tool Swap uses MAPI and supports attachments as well,
but you have to go through an interactive dialog (choosing an account
etc):
ftp://ftp.microsoft.com/softlib/mslfiles/smplmapi.EXE

best,
valentin

Hiya Multimedia wrote:
 Hi everybody,

 I had placed my query before but my problem still stands there. I
 think i will reframe my problem in layman terms, to be more clear.

 I want a script or xtra or command line to execute 'Mail It' command
 or 'Zip  Mail' command as in the context menu of Winzip or
 Powerarchiver. Zipping i have done through ZipXtra, But cant talk to
 MAPI for attaching my file from the given path  opening a new
 Message window of Default Mail Program (e.g. Outlook).

 Please Help, I am Lost. Thank you.

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

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


Re: lingo-l PostNetTest Issue

2004-01-12 Thread Valentin Schmidt
http://wkar.macq.com/beignprocess.asp is not reachable at the moment. if
that's for another reason, try opening the url directly in a browser and
check the result (you could make your asp-page return something like 1
or OK)

Anand Ravi wrote:
 Hi List,

 I am using postnettext to send some text information to an asp page.
 All
 work fine when I post the text to the asp running on pws. The moment I
 switch to the web and post the text to a url (Eg.
 http://wkar.macq.com/beignprocess.asp) the function fails. Any
 thoughts
 on what is missing will be highly appreciated.

 I am developing in D8.5.

 Thanks and Regards,
 Anand Ravi



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

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


Re: lingo-l Save or upload to the Internet

2004-01-06 Thread Valentin Schmidt
If the files you want to upload are rather small (smaller than 50 k),
you can also send them as (binhexed) binary string with postNetText, and
save the transfered data on the server as file again, eg with a simple
PHP script.

valentin


Teo Petralia wrote:
 Hi!
 I'm wandering if is possible somehow to save a cast to the Internet
 with a projector or upload it?
 In general I would like to know if there is a way to make a projector
 update something on the Internet and not only download things from it.

 Thanks

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

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


Re: lingo-l Dir MX 2004 and MP3

2004-01-06 Thread Valentin Schmidt
Slava Paperno wrote:
 Can someone tell us if the new Director MX 2004, with its expanded
 media
 support, adds the capability to record sound and encode it to MP3?
 Or perhaps Ogg Vorbis is supported by MX 2004?

I've written 2 very simple scripting xtras (OggXtra and MP3Xtra) for
converting wav-files or internal director sounds to ogg vorbis or mp3
files. Both xtras are win only at the moment and can be downloaded from:
http://dasdeck.de/staff/valentin/xtras/ogg/OggXtra.zip
http://dasdeck.de/staff/valentin/xtras/mp3/MP3Xtra.zip

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


Re: lingo-l Mailto script for atachment

2003-12-23 Thread Valentin Schmidt
Hi Hiya,

I'm not sure if you can pass attachments with a mailto-url. but in case
you want to try something different, I'm in the process of writing
parent scripts (SMTP CLASS and POP CLASS) for sending and retrieving
email with lingo and Multiuser xtra. Those scripts support sending and
receiving of MIME mail and attachments. They are still beta, not
sufficiently tested yet, but in case you are interested, I can send them
to you.

valentin

Hiya Multimedia wrote:
 Hi everybody,

 I need help on how to attach a file to an html script with mailto
 protocol. I want to attach particular jpg, zip or rtf files to the
 mail. I am using this in a product catalogue to mail details with a
 single click

 Plz help me considering me as a layman with the code. Thank you

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

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


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

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

valentin


Slava Paperno wrote:
 This is slightly off the subject of Lingo, and I apologize for that,
 but
 still think the issue may be of interest to some members.

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

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

 Is there a way to do this?

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

 Thanks!

 Slava

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

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


Re: lingo-l fontStyle weirdness

2003-12-18 Thread Valentin Schmidt
the list syntax works for text members only, for field members you have
to use a string instead:
member(1).fontstyle=plain
member(1).fontstyle=bold,italic

Teo Petralia wrote:
 Hi there!
 I'm getting mad with this simple command that is fontStyle. It should
 change the fontStyle of a field member or word or char but it doesn't
 work.
 I have used all different kind of syntax but nothing, is always come
 up with the dialog
 String expected
 member(Storyteller).fontStyle = [#bold, #italic]
 member 44 of castLib 5

 To me it doesn't make any sense.

 On the learning folder of the Director program there is a movie
 called text that does something like that and when I run that movie
 the command seems to work, but why in my movie it doesn't?

 I use the script as a castmember script, I work with Director MX on a
 Macintosh running OS 10.3.1.

 Thanks for any suggestions

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

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


Re: lingo-l searching text inside an swf within director

2003-12-17 Thread Valentin Schmidt
in case you don't want to use an xtra like v12, you could also try a
lingo based database and TextCruncher xtra for fast searching.

valentin

biju george wrote:
 Hi,

 I have an swf file with 11,758 frames. Its actually an
 e-book. I want to add a search facility in director in
 the form of a full text search like the one in google
 etc. Such that the use can key in any word and see the
 pages containg that word in a scroll box. Once a
 highlighted word is clicked, it should fetch to the
 frame in flash containing that word.

 Should I use V12 database xtra's full text search or
 any other better approach?...Any help will be much
 appreciated.

 Biju.

 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing.
 http://photos.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!]

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


Re: lingo-l geometry question

2003-12-15 Thread Valentin Schmidt
Hi Alex,

thanks a lot for your solution. I came up with another solution, using a
scanline approach, following a horizontal scanline (with a random
vertical coordinate within the polygon's drawrect)  from outside the
polygon and then finding the first line crossing with help of getPixel
(the first point which doesn't have the backgroundcolor, and then taking
the first point which has the background color again, which now should
be inside the polygon, as long as the line crossing wasn't a (and was
not too close to a) corner point.
I will compare both approaches with random ploygons, and use the one
producing less errors.

Thanks again,
Valentin

Alex da Franca wrote:
 At 22:38 Uhr +0100 12.12.2003, Valentin Schmidt wrote:
 hi list,

 is there anybody out there who is good at geometry? I need a solution
 for the following problem:
 I have a list of points [p1,p2,...] which form a polygon. The points
 can be arbitrary, the only restriction is that the lines between the
 points (where lines are the connections from point n to point n+1)
 don't cross each other.


 my solution may seem clumsy and there sure is an easier one...
 ...but since nobody answered...


 below is a handler which checks if a given point is inside a polygon.

 now I think we can just take any of the lines of
 the polygon and check a point 'left' and 'right'
 to this line.
 below I do it with a point with the distance of 1
 ( = point(cos(angle), sin(angle))) if you know
 that your polygon won't have very small angles
 you can simply multiply 'offs' by a higher value
 in order to get a point further away from the
 edge line, which may floodfill cause to fail when
 it 'touches' the edge line.


 pts = linear list with points


 center = (pts[1] + pts[2]) / 2.0 -- point between 1. and 2. point

 slope = pts[2] - pts[1]
 angle = atan(float(slope [2]), float(slope [1]))
 + (pi() / 2) -- vector angle + 90°

 offs = point(cos(angle), sin(angle))
 checkpoint = center + offs

 if polygonContainsPoint(pts, checkpoint[1],
 checkpoint[2]) then return checkpoint
 else return center - offs



 a kind collegue once posted the following
 handler, which works so far (with the exception
 of crossing lines)

 unfortunately I can't remember where I picked it
 up once and only have the snippet without the
 name.
 so forgive me, author of these lines, not being
 able to mention your name, and instead take my
 kudos, since this handler does work very well
 (with some cosmetic changes from my part) in many
 of my movies !

 :-)

 --


xx
 -- xx check if point(x, y) is
 inside of a poligon defined by a list of points
 pts

 on polygonContainsPoint pts, x, y
j = pts.count
tot = pts.count
containsP = 0

repeat with i = 1 to tot
  yI = pts[i][2]
  yJ = pts[j][2]
  xI = pts[i][1]
  if ((yI = y) and (y  yJ)) or ((yJ = y) and (y  yI)) then
if x  ((pts[j][1] - xI) * (y - yI) / float(yJ - yI)) + xI then
  containsP = not containsP
end if
  end if
  j = i
end repeat

return containsP
 end

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


Re: lingo-l setScriptList

2003-12-15 Thread Valentin Schmidt
try setting the scriptInstanceList instead:

sprite(1).ScriptInstanceList=[script(foo)]
or
sprite(1).ScriptInstanceList=[script(foo).new()] -- for initializing
some props in new handler

and also:
origScriptList = sprite(1).ScriptInstanceList
...
sprite(1).ScriptInstanceList=origScriptList

valentin


Mendelsohn, Michael wrote:
 Hi all...

 Anyone with any experience using setScriptList()?  I checked the
 archives and couldn't find a clear enough answer.

 Below, I'm trying to make a sprite start off with just 1 behavior, out
 of the 6 I have attached to it in the score.  I save a list of all 6,
 use just 1, and then I want to attach the other 5 at a later time.  I
 can get the list of 6 and save it, but I'm unable to modify the sprite
 with setScriptList.  In this case, doing a behavior active T/F won't
 work.

 Have a nice day,
 Michael M.

 Here's my lingo:
 

 on beginSprite(me)
   pSp = sprite(me.spriteNum)
   pSp.member = member(buttonGraphic,sharedAssets)
   pOrigScriptList = pSp.scriptList -- gets all instances and
   parameters theOnlyDisable = pOrigScriptList.duplicate()
   repeat with i = theOnlyDisable.count down to 1
 if ((theOnlyDisable[i][1]).name contains disableEnable) then
   theOnlyDisable = theOnlyDisable[i]
   exit repeat  -- new script list only contains this one behavior
 end if
   end repeat
 pSp.setScriptList(theOnlyDisable) -- Error: periods not allowed in
 symbols
 end

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

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


Re: lingo-l setScriptList

2003-12-15 Thread Valentin Schmidt
no, it's the other way round, script instances have properties, not
scripts.
just try:

behaviour script of sprite 1
property pTest
on beginSprite me
pTest=XXX
end
on mouseUp me
alert pTest
end
end behaviour script of sprite 1

and in the message window:
l=sprite(1).scriptInstanceList
sprite(1).scriptInstanceList=[]
sprite(1).scriptInstanceList=l



Mendelsohn, Michael wrote:
 Thanks, Valentin.  But, doesn't scriptInstanceList strip away the
 parameter values?  I need to preserve the values of the properties, as
 they are all previously set with getPropertyDescriptionList.

 - MM


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

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


lingo-l geometry question

2003-12-12 Thread Valentin Schmidt
hi list,

is there anybody out there who is good at geometry? I need a solution
for the following problem:
I have a list of points [p1,p2,...] which form a polygon. The points can
be arbitrary, the only restriction is that the lines between the points
(where lines are the connections from point n to point n+1) don't cross
each other. now I need to find a point that's definitely within the
polygon, so I can use it for a floodfill. Does anybody have a formula
for finding such a point? The focal point (the arithmetic mean of all
x and y coordinates) obviously doesn't do it.

thanx,
valentin

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


Re: lingo-l word-wrapping with hyphenation in Director

2003-12-09 Thread Valentin Schmidt
hi michael,

glad you asked:-) I've written a little scripting xtra called
hyphenator for this purpose. It uses a simplified version of the
famous
TeX hyphenation algorithm, that many professional dtp-programs use as
well (eg. quark). It can be
configured to work with arbitrary (almost) languages by way of external
pattern files (which are included in TeX/LaTEx distributions)
You can download a beta version from
http://dasdeck.de/staff/valentin/xtras/hyphenator/win/
unfortunately no mac version yet, but it could easily be ported (as soon
I find someone who actually needs it, so please send me a note if you
need it for mac)

best,
valentin



Michael von Aichberger wrote:
 Hi List!

 Does someone of you guys know of a way to do real word-wrapping in
 Director?
 I mean with a dictionary that tells where a word can be separated ...

 Maybe there is an xtra for it? Or a least a digital dictionary
 containing
 hyphenation information, preferably in numerous languages, that I
 could use
 to write my own code?

 Has anyone of you done this before?

 Thanks for any suggestions!

 Michael


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

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


Re: lingo-l Multiple statements in one line

2003-12-05 Thread Valentin Schmidt
hi peter,

you can easily simulate a multiline-command message window by your own
tool xtra. I've send you an example, just put lingo.dir in your xtras
folder, restart director and invoke it from the xtra menu. it supports
copy and paste, and instead of a slow do() command it uses a faster:

on mouseUp
member(foo).scripttext=on
fooreturnmember(input).textreturnend
foo()
end

as a simple test, type e.g.

repeat with i = 1 to 10
put 23
end repeat

in the window and press the GO button.

best,
valentin


Sébastien Portebois wrote:
 Hi Peter

 I wonder, can Director script window have multiple statements in one
 line?
 e.g.

 instead of
 varA = 5
 varB = 10

 yes you can, but is it totally inefficient ;¬)
 Here's the stupid workaround:

do(varA = 5  RETURN  varB = 10)

 Now that you've readi it, you can forgot about it :¬)

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

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


Re: lingo-l Cps users?

2003-12-03 Thread Valentin Schmidt
very interesting technology, but unfortunately i never had a project
where i could actually use it. but i have it installed (v1.30, on win xp
pro), in case you just need someone to test some code for you.

grimmwerks wrote:
 Anyone here using CPS from bonneville.nl?

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

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


Re: lingo-l CD Burner controlled from Director

2003-11-28 Thread Valentin Schmidt
I've done some successful tests with CDWriterXP by NUGROOVZ
(www.nugroovz.com), although the project never got realized.

valentin

Pixelchurch New Media wrote:
 Hi all

 I'm just wondering if anyone has successfully implemented an activeX
 control
 from inside a Director file to control a CD burner?

 I'm trying to find an Xtra that will do this, but have only come up
 with
 ActiveX controls thus far.

 A



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

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


Re: lingo-l PDF CLASS for creating PDF with lingo

2003-11-25 Thread Valentin Schmidt
Hi Grimmwerks,

the script works on mac os x, too, I've tested it on Dir MX mac os x
10.3. As I've explained in the readme, you get an error message when
opening the demo.dir on mac due to an activex control that is only used
for the experimental implementation of deflate compression in test3,
but you can just ignore this message (and delete the script control and
the test3 button), test1 and test2 should still work.
For some strange reason the embedded custom fonts (NuptialScript and
Zurich BT in the test1 example in demo.dir) are not shown
correctly when opening the created PDF in the mac os x preview, but they
are shown in the acrobat reader 6 and in ghostview on both platforms.
Any mac os x expert out there who knows why? Is this a known issue of
the preview?

Valentin


grimmwerks wrote:
 It's a fantastic effort - much appreciated -- but as a mac osx guy,
 what do
 I need to do to make this work on our side?

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

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


lingo-l PDF CLASS for creating PDF with lingo

2003-11-24 Thread Valentin Schmidt
hi list,

inspired by the daniel nelsons's approach, I've created another lingo
parent script (class) for creating PDF files with pure lingo (only
depends on fileIO xtra). It supports embedding of images and custom
fonts, and works on both platforms. Instead of reinventing the wheel,
I've translated an existing PHP class, FPDF by Olivier Plathey, (almost)
line by line to lingo (which was still quite a lot of work, really need
sleep now :-).
A first version can be downloaded from:
http://dasdeck.de/staff/valentin/pdf_class/pdf_class_v1.zip
Included in the zip is a demo.dir (+demo shockwave projector for
windows), some documentation and some other stuff.

thanx in advance for your feedback,

valentin

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


Re: lingo-l Importing Images

2003-11-14 Thread Valentin Schmidt
hi richard,

as far as i know, when you import a jpg to a director cast, director
stores both the jpeg data as well as the the image in uncompressed form.
your jpgs are propably strongly compressed, that's why the file size
difference is that big. but when you publish the the cast (shockwave,
projector), the uncompressed image data is removed again and the
filesize gets smaller (depending on your compression settings).

best,
valentin

Richard Hebert wrote:
 I've already posted this on another forum. I've noticed that each time
 you import an image (for example a jpeg of 300KB and 24bits) Director
 stores it in the cast as a bitmap of 32 bits (OK, you can choose the
 24bits option in the importing window, but it is a bitmap!!) that
 becomes about 7.3 MB!!!

 Each image I import, it always becomes about 20 times bigger. Besides
 that, I import the images dynamically, so I cannot select the colour
 bits of image...:

 newImage = new(#bitmap, castLib temp)
 newImage.filename = gPathActualgListaFotos[i]  -- it is the correct
 path

 Really don't know how to solve this... Any idea???

 TIA.

 Richard Hebert.


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

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


Re: lingo-l ActiveX Control

2003-11-07 Thread Valentin Schmidt
What you are looking for is called a grid. check out the
cXtraStringGrid Xtra (http://www.cxtra.net/). If you want to use
ActiveX, try MS DataGrid.

best,
valentin


Stephen Ingrum wrote:
 I'm trying to create an interface using column header like in Outlook
 Express (pc)-
 the from, Subject, etc.. resizable and sortable column headers.

 Is there an ActiveX component for this? Or, has anybody seen a good
 (or even
 better) solution for handling several columns of text?
 I don't mind recreating the wheel (I've got a recreated boat full of
 recreated wheels), but if I don't have to...

 Thank you,
 Stephen Ingrum
 [EMAIL PROTECTED]
 www.LeagueofDesign.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!]

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


Re: lingo-l Globals question

2003-11-04 Thread Valentin Schmidt
just a short complement, there is a very easy way to hack the globals
used by movies inside a projector: just put a lingo.ini in the same
folder as the projector containing the following code:

on startUp
the debugPlaybackEnabled=1
end

which opens a message window, where you can put a showGlobals command.
but to prevent this you can put a explicit

on prepareMovie
the debugPlaybackEnabled=0
end

in a moviescript of the start movie.

valentin


Valentin Schmidt wrote:
 no, as far as i know, each projector has its own space in memory, to
 hack the globals you would need a tool like softIce. But someone
 could
 extract the dir-files from the projector (eg with Swifty Xena Pro, or
 simply with a hexeditor and some knowlege about projectors), open them
 as MIAWs in director and then easily get the globals.
 a simple improvement could be to give the global an unexpected name
 (eg.
 gRect), as none has access to the original lingo code, this would make
 things at least a bit harder. or bether, don't use a global, but some
 other data container (eg the property of a parent script, see
 http://www.director-online.com/buildArticle.php?id=8, or a text or
 field
 castmember...) to store the the authentification state (and of course
 you could also use encryption).

 valentin


 Andrew Dempsey wrote:
 Hi all,

 Is it possible for someone to hack into my globals if I am running
 a projector, by running another director movie they make (or any
 other type of
 program) and checking all the variables in memory?

 I am putting together an authentication routine to authenticate user
 priveliges online.  The program makes a check once on startmovie to
 see if
 the user is authenticated, then uses a global variable
 (gAuthenticated,
 true/false) to keep the authentication state avaiable as the rest of
 the
 program runs.  If gAuthenticated = true, then full functionality,
 else limited functionality.

 If someone could read the globals, then they could find the
 authenticating
 variable, and create an app that changes the variable to true as my
 program runs, n'est-ce pas?

 Anyone else have a better way of doing what I am trying to do?

 Andrew

 --
 Andrew Dempsey
 ICT and Education Consultant
 Software Developer, Egyptian Arabic Vocab Clinic
 (www.egyptianarabic.com)
 Cairo, Egypt
 www.andrewdempsey.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!]

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

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


Re: lingo-l Globals question

2003-11-02 Thread Valentin Schmidt
no, as far as i know, each projector has its own space in memory, to
hack the globals you would need a tool like softIce. But someone could
extract the dir-files from the projector (eg with Swifty Xena Pro, or
simply with a hexeditor and some knowlege about projectors), open them
as MIAWs in director and then easily get the globals.
a simple improvement could be to give the global an unexpected name (eg.
gRect), as none has access to the original lingo code, this would make
things at least a bit harder. or bether, don't use a global, but some
other data container (eg the property of a parent script, see
http://www.director-online.com/buildArticle.php?id=8, or a text or field
castmember...) to store the the authentification state (and of course
you could also use encryption).

valentin


Andrew Dempsey wrote:
 Hi all,

 Is it possible for someone to hack into my globals if I am running a
 projector, by running another director movie they make (or any other
 type of
 program) and checking all the variables in memory?

 I am putting together an authentication routine to authenticate user
 priveliges online.  The program makes a check once on startmovie to
 see if
 the user is authenticated, then uses a global variable
 (gAuthenticated,
 true/false) to keep the authentication state avaiable as the rest of
 the
 program runs.  If gAuthenticated = true, then full functionality, else
 limited functionality.

 If someone could read the globals, then they could find the
 authenticating
 variable, and create an app that changes the variable to true as my
 program runs, n'est-ce pas?

 Anyone else have a better way of doing what I am trying to do?

 Andrew

 --
 Andrew Dempsey
 ICT and Education Consultant
 Software Developer, Egyptian Arabic Vocab Clinic
 (www.egyptianarabic.com)
 Cairo, Egypt
 www.andrewdempsey.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!]

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


Re: lingo-l MU Xtra - peer to peer connection?

2003-10-30 Thread Valentin Schmidt
http://www.macromedia.com/support/director/ts/documents/multiuse_examples.htm

grimmwerks wrote:
 I'm a bit rusty on this -- any good docs, urls on setting up one
 projector
 as the server?

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

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


lingo-l video with multiple language tracks (if not quicktime)

2003-10-29 Thread Valentin Schmidt
hi,

does anyone know if there are ways to use video containing multiple
language tracks in director, and switching between those at runtime, for
other video formats than quicktime (wmv, avi, mpg, mp4?)

thanx,
valentin

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


  1   2   >