Re: projector's filename

2004-03-01 Thread Warren Ockrassa
On Mar 1, 2004, at 8:42 PM, Valentin Schmidt wrote:

hi list,

propably a very dumm question, but I cant remember at the moment, 
what's
the best way to find out the projector's filename (not path) with 
lingo?
The applicationName. Returns Director's name in author, projector name 
in runtime. Not sure what it does in Shockwave.

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


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


projector's filename

2004-03-01 Thread Valentin Schmidt
hi list,

propably a very dumm question, but I cant remember at the moment, what's
the best way to find out the projector's filename (not path) with lingo?

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


XDK Mailing list

2004-03-01 Thread Deane Venske
Hi guys,

Does anyone know if Macromedia have sorted themselves out when it comes to 
the XDK list? I'd really like to get onto it as I've started delving into 
Xtras, so far so good but it's always good to have access to a list to 
help you out when you get stuck. And of course to offer some help where 
possible.

--
Deane Venske - Senior Programmer
www.eduss.com.au   [EMAIL PROTECTED]
+61 7 55974600  +61 405148718
Suite 29,  207 Currumburra Rd
Ashmore, Queensland, 4214
Australia
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


RE: Text weirdness

2004-03-01 Thread Kerry Thompson
> I'm working on a Mac and I have a movie that contains text 
> castmember, 
> these texts are using accents (French), and I use to copy and paste 
> these texts from a document word into Director, after that I 
> change the 
> parameter of the text in "Other ink" and a check the box 
> "save bitmap". 
> Now these text most of the time are OK on both platform PC 
> and Mac, but 
> one of them that is been created like all the others behave 
> strangely, 
> I mean it's fine on both platform only if I open the movie inside the 
> Director authoring, but on the PC when I lunch the projector is 
> changing all the accents in weird symbols.
> 
> Does anyone have an idea of what could be the problem?

Teo, I think you're running into the different character mapping on
Windows and Mac. Characters with an ASCII value of 127 or less are the
same on both machines. Above 127, Windows uses ANSI, and Mac uses its
own mapping.

Here's a property list I used to translate characters before I passed
them into Flash from the Mac. It should get you started. The property is
the Spanish character I wanted on Windows, and the value is the Mac
equivalent.

["¡": "°", "¿": "ø", "ñ": "Ò", "á": "·", "é": "È", "í": "Ì", "ó": "Û",
"ú": "²", "Ñ": "—", "Á": "¡", "É": "…", "Í": "”", "Ó": "¡", "Ú": "/",
"’": "'", "“": "ì", "”": "î", "-": "ó"]

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


Text weirdness

2004-03-01 Thread Teo Mattiozzi Petralia
Hello!
I'm working on a Mac and I have a movie that contains text castmember, 
these texts are using accents (French), and I use to copy and paste 
these texts from a document word into Director, after that I change the 
parameter of the text in "Other ink" and a check the box "save bitmap". 
Now these text most of the time are OK on both platform PC and Mac, but 
one of them that is been created like all the others behave strangely, 
I mean it's fine on both platform only if I open the movie inside the 
Director authoring, but on the PC when I lunch the projector is 
changing all the accents in weird symbols.

Does anyone have an idea of what could be the problem?

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


Re: Minimized app problem

2004-03-01 Thread Daniel Nelson
You could test if (the frontWindow = the stage or (the 
windowList).getPos(the frontWindow)) prior to setting the resolution.

Regards,

Daniel

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


Re: 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").

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


Re: RE: Director and Winhelp (chm)

2004-03-01 Thread Alex da Franca
At 6:32 PM +0100 3/1/04, Alex da Franca wrote:
Hi Kraig,
ups.
didn't bloody me change the addresse ?!
:-(
sorry about that
--
  |||
a¿ex
 --
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


RE: RE: Director and Winhelp (chm)

2004-03-01 Thread Kraig Mentor
"insertSyntax" was added to support a proposed Help system that didn't come
to fruition this release. It allowed that system to pass a string to the
active script or msg window and have it inserted there. It would have
allowed you to insert syntax from the Help window. Its not really of any use
outside of that scenario though as in order to use it you must know the
dynamic ID information about the target window.

Regards,
Kraig



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Alex da Franca
> Sent: Monday, March 01, 2004 9:32 AM
> To: [EMAIL PROTECTED]
> Subject:  RE: Director and Winhelp (chm)
> 
> At 9:02 AM -0800 3/1/04, Kraig Mentor wrote:
> >Disclaimer: This is not supported Lingo. It is under the category of 
> >undocumented and may not exist in future releases. Use at your own 
> >risk, etc.
> 
> Hi Kraig,
> now that you speak of undoced UIHelper methods...
> do you want share some hints about 'insertSyntax' ?
> I did not get it to work the last time I tried. I don't know, 
> where to get the both int values for the windowid and the commandID.
> or doesn't it work on OSX at all ?
> -- 
> 
>|||
> a¿ex
>   --
> 
> [To remove yourself from this list, or to change to digest 
> mode, go to http://www.penworks.com/lingo-l.cgi  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: Bitmap Linking

2004-03-01 Thread Pedja Guzvica
Hi Yariv,

What you can do.. Is to put in the on startMovie a bit of code that will
set the fileName of that bitmap member to the url

Basicaly what you do is to import a dummy bitmap and then when the movie
starts set its fileName to the one on the server.. 

Example:

 on startMovie
   member("myImage").filename =
"http://www.census.gov/cgi-bin/ipc/pcwpng.jpg";
 end


Ha.. I've just noticed one more thing! You are trying to stream the
image from your cgi-bin... That could be causing the problem as
sometimes cgi-bin doesn't alow access to the files.. Well to complicated
to explain now but I remember having a simillar problem... Try putting
the image into a diferent folder on the server.




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Yariv Alter
Fin
Sent: 29 February 2004 16:48
To: [EMAIL PROTECTED]
Subject:  Bitmap Linking


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


RE: Director and Winhelp (chm)

2004-03-01 Thread Alex da Franca
At 9:02 AM -0800 3/1/04, Kraig Mentor wrote:
Disclaimer: This is not supported Lingo. It is under the category of
undocumented and may not exist in future releases. Use at your own risk,
etc.
Hi Kraig,
now that you speak of undoced UIHelper methods...
do you want share some hints about 'insertSyntax' ?
I did not get it to work the last time I tried. I 
don't know, where to get the both int values for 
the windowid and the commandID.
or doesn't it work on OSX at all ?
--

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


RE: Director and Winhelp (chm)

2004-03-01 Thread Kraig Mentor
Disclaimer: This is not supported Lingo. It is under the category of
undocumented and may not exist in future releases. Use at your own risk,
etc.

--
If you are in MX 2004, you could just do this...

showHelpTopic( helpTopicID )

You can get a sometimes helpful view of the existing help topics by viewing
the help.map file that is alongside the html files. Just plug in the
appropriate help topic ID. 

Regards,
Kraig
--


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


RE: Search function (trying again)

2004-03-01 Thread Kerry Thompson
> > repeat with i = 1 to the number of members of castlib 1
> 
> But won't this miss some if he has any empty cast slots 
> between members? If he has something in cast member 1, 
> nothing in member 2, and something in 3, I assume the above 
> code would return "2", but he would need to go through slot 
> 3 to test all of his cast members.

Nope. Check it out--it's an easy "put" in the message window. "the
number of members of castlib n" returns the total number of cast
members, including empty places between members.

Cordially,

Kerry Thompson


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


Re: Search function (trying again)

2004-03-01 Thread Charlie Fiskeaux II
Kerry Thompson wrote:

repeat with i = 1 to the number of members of castlib 1
But won't this miss some if he has any empty cast slots 
between members? If he has something in cast member 1, 
nothing in member 2, and something in 3, I assume the above 
code would return "2", but he would need to go through slot 
3 to test all of his cast members.

The way I've done it, even though it's imprecise, is: (and 
this is assuming you aren't adding cast members at runtime 
with the chance of going past slot 512)

repeat with m=1 to 512
  if member(m).type<>#EMPTY then
-- do search here
  end if
end repeat
--

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


Re: Minimized app problem

2004-03-01 Thread Jeff Gomes

How about just checking whether the projector window is minimized, using Buddy API or 
Master App?

-- CAUTION: Untested email pseudocode
on activateApplication
  if baWindowInfo ( baWinHandle ( ), "state" ) = "min" then
-- may need to set a timeout here to start polling for when state changes
  else
-- go ahead and set your screen res here
  end if
end



At 1505 + 03/01/2004, Neil Sandbach wrote:
>Minimized app problem
>
>I have a problem in Windows XP where my minimized projector automatically becomes 
>activated again if the user closes the last open window on the desktop. Although the 
>projector does not come to the front, you can see that it is active because the tab 
>in the start bar is highlighted and  the on activateApplication handler is also 
>called.
>
>The projector should only become active if the user clicks the tab in the start bar.
>
>I need to avoid this happening because in this case I am using the on 
>activateApplication handler to set the screen resolution to 800 x 600. So if the user 
>minimizes the projector and has any folders or windows open on the desktop, closing 
>the last window will reset the monitor to 800 x 600 - showing a BIG desktop - but 
>without even bring the projector back up.
>
>I realise this is probably a Windows issue, not a Director issue. Is there any way to 
>detect that the stage has been brought to the front rather than relying on the on 
>activateApplication handler?
>...
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]


Minimized app problem

2004-03-01 Thread Neil Sandbach
Minimized app problem

I have a problem in Windows XP where my minimized projector 
automatically becomes activated again if the user closes the last open 
window on the desktop. Although the projector does not come to the 
front, you can see that it is active because the tab in the start bar 
is highlighted and  the on activateApplication handler is also called.

The projector should only become active if the user clicks the tab in 
the start bar.

I need to avoid this happening because in this case I am using the on 
activateApplication handler to set the screen resolution to 800 x 600. 
So if the user minimizes the projector and has any folders or windows 
open on the desktop, closing the last window will reset the monitor to 
800 x 600 - showing a BIG desktop - but without even bring the 
projector back up.

I realise this is probably a Windows issue, not a Director issue. Is 
there any way to detect that the stage has been brought to the front 
rather than relying on the on activateApplication handler?

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


Re: Bitmap Linking

2004-03-01 Thread A. Rademakers
Hi Yariv,

You could use a QuickTime sprite and set its filename to that adress...
Maybe a Flash sprite can do the same with a little actionscript?..

with k.r. Alfred

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


Re: Director and Winhelp (chm)

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

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: Director and Winhelp (chm)

2004-03-01 Thread Alexandre Cop
Ditto!

Funnily enough I'm gonna have to look into it soon, so I could benefit from
that sort of information.

... Alex ...

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Roland Blaettler
> Sent: 01 March 2004 06:20
> To: [EMAIL PROTECTED]
> Subject:  Director and Winhelp (chm)
> 
> 
> 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!]