[Use-revolution] Digest use-revolution.v001.n143

use-revolution-errors at www.runrev.com use-revolution-errors at www.runrev.com
Tue Nov 27 00:55:04 EST 2001


-------------- BEGIN use-revolution.v001.n143 --------------

    001 - Matt Denton <matt.denton@ - MouseEnter MouseLeave on a Line
    002 - "Ken Ray" <kray at sonsothun - Re: Acrobat again
    003 - "Mark MacKenzie (Shaw)" < - OpenStacks function
    004 - Adam Steinhardt <adams at ne - unsubscribe
    005 - Bill Vlahos <bvlahos at jpl. - Streaming Audio
    006 - "Sjoerd Op 't Land" <sjoe - Re: Customize Rev for automatic email feedback?
    007 - Andre Garzia <soapdog at mac - Revolution Tutorial Does not Work.
    008 - "Jeanne A. E. DeVoto" <je - Re: Re post - Masking graphics
    009 - "Jeanne A. E. DeVoto" <je - Re: I Don't Understand Why This Is

This is the Use Revolution mailing list.  Use it to
discuss and solve "how-to" questions relating to using Revolution.
Please do not send bug reports or feature requests to this list.
To unsubscribe, place the word unsubscribe in the body of an
email and send it to use-revolution-request at lists.runrev.com.


--------------- MESSAGE use-revolution.v001.n143.1 ---------------

From: Matt Denton <matt.denton at limelight.com.au>
Subject: MouseEnter MouseLeave on a Line
Date: Sun, 25 Nov 2001 21:59:46 +1100
MIME-Version: 1.0 (Apple Message framework v475)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111230636.BAA14727 at www.runrev.com>

Dear List,

I'm trying to get a graphic of a dot to show on a line for resizing and 
dragging.   I'm using the 'mouseEnter' and 'mouseLeave' messages to show 
and hide the dot respectively.  It works if you roll into the line from 
the bottom of the line (at 45 degrees angle in Cartesian co-ords) but 
the mouseLeave message is incorrectly send from the top to the left of 
the line.  It seems as if the line is forming an invisible triangle -- 
not exactly the size of the bounding rect -- and sending mouseLeave once 
the cursor leaves the invisible shape.  The line is two pixels wide.  
May be an OSX scaling/size issue, found some of the controls to also be 
out of register.

Any clues?

I'm on 10.1.1 and Rev 1.1

Thanks!@

M at tt



--------------- MESSAGE use-revolution.v001.n143.2 ---------------

From: "Ken Ray" <kray at sonsothunder.com>
Subject: Re: Acrobat again
Date: Sun, 25 Nov 2001 11:35:31 -0600
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
References: <200111251021.FAA17206 at www.runrev.com>

Matt,

For windows, you can try reading the registry at:

    HKEY_CLASSES_ROOT\AcroExch.Document\AcrobatVersion

I'm not sure for Mac...

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Website: http://www.sonsothunder.com/

----- Original Message ----- 
From: "Matt Denton" <matt.denton at limelight.com.au>
To: <use-revolution at www.runrev.com>
Sent: Sunday, November 25, 2001 4:20 AM
Subject: Acrobat again


> Hello!
> 
> (had a crash, not sure if last msg got through)
> 
> I'm trying to find out what version of Acrobat is installed on a Mac or 
> PC.  QTime is pretty easy, but what about other apps?  Is there a way to 
> find out what apps are installed and version number?
> 
> Searched through the extensive list but couldn't find it.  Maybe it is 
> buried somewhere...
> 
> Many thanks,
> 
> M at tt!
> 
> PS Rev is one of those packages you just start loving more and more!  
> Amazing power in Transcript...
> 
> 



--------------- MESSAGE use-revolution.v001.n143.3 ---------------

From: "Mark MacKenzie (Shaw)" <markmac at shaw.ca>
Subject: OpenStacks function
Date: Sun, 25 Nov 2001 15:39:43 -0600
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7BIT

I would like to use the openstacks function however it returns all the
revolution stacks which swamp everything.

What is the best way to filter out the revolution program stacks and show
just the open project stacks?

Regards Mark



--------------- MESSAGE use-revolution.v001.n143.4 ---------------

From: Adam Steinhardt <adams at nextbyte.com.au>
Subject: unsubscribe
Date: Mon, 26 Nov 2001 09:04:20 +1030
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111240700.CAA29923 at www.runrev.com>

unsubscribe

> 
> -------------- BEGIN use-revolution.v001.n141 --------------
> 
>   001 - "Jeanne A. E. DeVoto" <je - Re: Closing Decorations Less Stacks
>   002 - "Sjoerd Op 't Land" <sjoe - Re: Customize Rev for automatic email
> feedback?
>   003 - Scott Rossi <scott at tactil - Re: Was  HTML Text Files
>   004 - Judy Perry <jperryl at ecs.f - Re: Customize Rev for automatic email
> feedback?
>   005 - Judy Perry <jperryl at ecs.f - Re: Customize Rev for automatic email
> feedback?
>   006 - Shari <gogypsy at bellsouth. - Re: Requests
>   007 - Shari <gogypsy at bellsouth. - Re: Image resizing
>   008 - John Cuccio <jcuccio at pacb - Dead rev stack
>   009 - "Jeanne A. E. DeVoto" <je - Re: Image resizing
>   010 - "Mark MacKenzie (Shaw)" < - Re: Dead rev stack
>   011 - andu <undo at cloud9.net>    - Re: Dead rev stack
>   012 - "Scott Slaugh" <xslaugh at h - Re: Requests
>   013 - "Mark MacKenzie (Shaw)" < - I Don't Understand Why This Is
> 
> This is the Use Revolution mailing list.  Use it to
> discuss and solve "how-to" questions relating to using Revolution.
> Please do not send bug reports or feature requests to this list.
> To unsubscribe, place the word unsubscribe in the body of an
> email and send it to use-revolution-request at lists.runrev.com.
> 
> 
> --------------- MESSAGE use-revolution.v001.n141.1 ---------------
> 
> From: "Jeanne A. E. DeVoto" <jeanne at runrev.com>
> Subject: Re: Closing Decorations Less Stacks
> Date: Thu, 22 Nov 2001 19:43:16 -0800
> MIME-Version: 1.0
> Content-Type: text/plain; charset="us-ascii"
> In-Reply-To: <200111181827.NAA08569 at www.runrev.com>
> 
> At 10:27 AM -0800 11/18/2001, Mark MacKenzie (Shaw) wrote:
>> I have a Rev project with three stacks: Main, Pages, and TellTale.[...]
>> After working a bit for development purposes use the file menu to close
>> stack "Main", then stack "TellTale" (these close normally with save as) and
>> then stack "Pages".
>> 
>> Instead of stack  "Pages" closing, Revolution closes (partial quit) leaving
>> the tool pallets behind along with the stack "Pages".  Pallets with close
>> functions can be closed.
>> 
>> Control-shift right click on stack "Pages" allows it to be set toplevel.
> 
> I'm guessing from the above that stack "Pages" perhaps was a palette? The
> Close menu item closes toplevel and modeless windows, but not palettes, so
> it would have closed whichever toplevel or modeless window was frontmost.
> 
> --
> Jeanne A. E. DeVoto ~ jeanne at runrev.com
> http://www.runrev.com/
> Runtime Revolution Limited - Power to the Developer!
> 
> 
> 
> 
> --------------- MESSAGE use-revolution.v001.n141.2 ---------------
> 
> From: "Sjoerd Op 't Land" <sjoerdoptland at mac.com>
> Subject: Re: Customize Rev for automatic email feedback?
> Date: Fri, 23 Nov 2001 16:05:28 +0100
> MIME-Version: 1.0
> Content-Type: text/plain; charset="US-ASCII"
> Content-Transfer-Encoding: 7bit
> In-Reply-To: <200111212348.SAA23529 at www.runrev.com>
> 
> Judy Perry wrote/ schreef:
> 
>> 
>>> Maybe you should do something like this with a plug-in.
>> 
>> --How so?
> Because otherwise, you would have to hack into Revolution and recompile
> it... And you can use the same plug-in in newer versions.
> 
> Regards, / Groeten,
> Sjoerd
> 
> 
> 
> --------------- MESSAGE use-revolution.v001.n141.3 ---------------
> 
> From: Scott Rossi <scott at tactilemedia.com>
> Subject: Re: Was  HTML Text Files
> Date: Fri, 23 Nov 2001 08:25:17 -0800
> MIME-Version: 1.0
> Content-Type: text/plain; charset="US-ASCII"
> Content-Transfer-Encoding: 7bit
> In-Reply-To: <200111230435.XAA13676 at www.runrev.com>
> 
> Recently, Geoff Canyon wrote:
> 
>>> At 12:11 PM -0800 11/22/01, Scott Rossi wrote:
>>> There is no such thing as a true "transparent" window.
>> 
>> For comparison, check out the things they're doing with QuickTime:
>> 
>> http://www.movtv.com/
> 
> These masked windows are fun stuff.  If masking counts as being transparent
> (which I suppose it does) then I stand corrected.  And masking is quite
> do-able in MC using the Odo WDEF on MacOS or the Tuviah's External
> Collection on Windows.
> 
> Now have you seen any examples of windows with variable translucency?  I've
> seen one, which is a filter window in version 3 of Kai's Power Tools on the
> Mac.  The window to casts a real time dropshadow on whatever is beneath it,
> and shows a distorted view through a lens.  This is pretty impressive.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> 
> Tactile Media, Multimedia & Design
> Email: scott at tactilemedia.com
> Web: www.tactilemedia.com
> 
> 
> 
> --------------- MESSAGE use-revolution.v001.n141.4 ---------------
> 
> From: Judy Perry <jperryl at ecs.fullerton.edu>
> Subject: Re: Customize Rev for automatic email feedback?
> Date: Fri, 23 Nov 2001 09:48:56 -0800 (PST)
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> In-Reply-To: <200111231508.KAA20596 at www.runrev.com>
> 
> No, I mean, I'm an idiot and don't know *how* to do this...
> 
> On Fri, 23 Nov 2001, Sjoerd Op 't Land wrote:
> 
>>>> Maybe you should do something like this with a plug-in.
>>> 
>>> --How so?
>> Because otherwise, you would have to hack into Revolution and recompile
>> it... And you can use the same plug-in in newer versions.
> 
> 
> Judy
> 
> 
> 
> --------------- MESSAGE use-revolution.v001.n141.5 ---------------
> 
> From: Judy Perry <jperryl at ecs.fullerton.edu>
> Subject: Re: Customize Rev for automatic email feedback?
> Date: Fri, 23 Nov 2001 09:48:56 -0800 (PST)
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> In-Reply-To: <200111231508.KAA20596 at www.runrev.com>
> 
> No, I mean, I'm an idiot and don't know *how* to do this...
> 
> On Fri, 23 Nov 2001, Sjoerd Op 't Land wrote:
> 
>>>> Maybe you should do something like this with a plug-in.
>>> 
>>> --How so?
>> Because otherwise, you would have to hack into Revolution and recompile
>> it... And you can use the same plug-in in newer versions.
> 
> 
> Judy
> 
> 
> 
> --------------- MESSAGE use-revolution.v001.n141.6 ---------------
> 
> From: Shari <gogypsy at bellsouth.net>
> Subject: Re: Requests
> Date: Fri, 23 Nov 2001 13:24:11 -0500
> MIME-Version: 1.0
> Content-Type: text/plain; charset="us-ascii" ; format="flowed"
> References: <200111221145.GAA31800 at www.runrev.com>
> In-Reply-To: <200111221145.GAA31800 at www.runrev.com>
> 
>> I'm looking at the window and the intersect function is in the Dictionary.
>> (Is that where you were looking for it, or were you checking somewhere
>> else?)
> 
> Transcript Dictionary, under "intersect".  It describes intersect as
> it applies to arrays, but not to objects intersecting each other.
> 
> intersect(objectA,objectB)
> 
> Metacard's gives explanations for both the arrays and the objects.
> 
>> 
>>> I wish I had more control of overall Preference type stuff.  Like
>>> whether help windows open in front of other windows or you have to
>>> drag them out.  Like always colorizing scripts.
>> 
>> I'm not completely sure what you mean by "help windows open in front of
>> other windows" - they shouldn't open behind other windows, certainly - but
>> if you can describe more completely I may be able to put it on the feature
>> request list.
>> 
>> There's an option to turn on automatic colorization in the Preferences (in
>> the Script Editor pane).
> 
> This works if you manually type the script in, but I often work in a
> SimpleText file to update a script, and then paste it into the editor
> (this because of the many crashes I experienced, it guarantees my
> scripts will not get mangled, and I have a copy of them outside of
> Revolution to replace any that do get mangled.
> 
> If you paste the script in, you must manually colorize it.
> 
> As for windows hiding other windows, for example if I have the
> colorization window open, and then open a help window, it opens
> behind the colorization window.  Other windows obscure the help
> windows too.  They should always open in front of everything.
> 
>>> I wish there were a window with the active variables and their contents.
>> 
>> You can see a list of global variables and their contents in the message
>> box. (It's the fourth tab from the left.)
> 
> Yes, but at the expense of having the message box available, which I
> use a lot.  If I understand it correctly, I cannot use both at the
> same time.
> 
>>> Once I created a menu (menubar type menu), now I have to click on the
>>> Toolbox or Application Overview to have the full set of development
>>> menus.  Otherwise, when I'm in the stack, the only menus up there are
>>> the ones I created.  I wish that weren't so.  Once I release it,
>>> obviously I want only my menus up there, but during development I
>>> want both sets of menus.
>> 
>> Bit hard to do, since you'd need two sets of the "standard" menus (on Mac
>> OS, Apple menu, Help menu, File, and Edit at least would be duplicated). If
>> I'm envisioning what you're asking for correctly...
> 
> Hypercard did it.  It added on the menus you created, to the menubar
> after the "standard" menus.  So both were always available at the
> same time.  I never deleted the standard menus until saving the stack
> to a standalone in Hypercard.  I could work on the stack, with all
> the development menus available, and at the same time have the menus
> I added.



--------------- MESSAGE use-revolution.v001.n143.5 ---------------

From: Bill Vlahos <bvlahos at jpl.nasa.gov>
Subject: Streaming Audio
Date: Sun, 25 Nov 2001 18:46:48 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353"
Content-Transfer-Encoding: 7bit

I'm having trouble getting started with playing streaming audio. I have
created a player which looks OK but does not respond to any mouse clicks
on the "volume" or "triangle" icons which are visible. I have pointed
the File Path properties to:
http://stream.qtv.apple.com/channels/wgbh/refs/radio1_ref.mov as a
reference. When I put that URL into the QuickTime Player URL field it
does work properly.

I have not made any script entries in the player nor have I made any
other buttons etc.

I can't seem to find much in the documentation regarding this.

What am I missing?

I understand that streaming audio is not restricted to QuickTime. Both
Audion and iTunes supports the streaming audio I want to hear. Is this
true? If so, does Rev support streaming audio (I think it is streaming
MP3)?

The remaining thing I want to do is to save a collected stream as a MP3
file on disk for playback later. Does Rev support that? If so, how?

Thanks
Bill Vlahos



--------------- MESSAGE use-revolution.v001.n143.6 ---------------

From: "Sjoerd Op 't Land" <sjoerdoptland at mac.com>
Subject: Re: Customize Rev for automatic email feedback?
Date: Mon, 26 Nov 2001 04:55:10 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111231750.MAA23778 at www.runrev.com>

Judy Perry wrote/ schreef:

> No, I mean, I'm an idiot and don't know *how* to do this...
>> Maybe you should do something like this with a plug-in.
>>> 
>>> --How so?
I'm sorry, that was a lack in my understanding of the English language. (We
have some expression 'hoe zo?' (how so?) in Dutch, which means something
like 'why?'.)

I don't know exactly. I never made a plug-in myself, but I don't think it's
hard, really. Maybe you should look into the example plug-in in RR and play
around with it.

I don't know if there's docs about this subject. Already looked into that?
(I can't do, because RR crashes continuously at my Performa 5400/160 MHz -
48 MB RAM.)

> Judy
Regards, / Groeten,
Sjoerd



--------------- MESSAGE use-revolution.v001.n143.7 ---------------

From: Andre Garzia <soapdog at mac.com>
Subject: Revolution Tutorial Does not Work.
Date: Mon, 26 Nov 2001 02:46:32 +0800
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

Hi Folks,

i am using Revolution 1.1 Starter Kit. I launch the 
tutorial. Create my new mainstack. Access stack 
properties, change name to "Hello World" (without 
the quotes) and them it explodes, it says: "Theres already 
a stack with that name" no matter what name i 
use. Everytime i try to set the name of any stack 
to anything, it display this error and start a 
strange behaviour.

i use an iBook with MacOS 9.0.4 Can somebody help, i 
am really lost, i try to use revolution and i can't even 
study the tutorial...

Tanx
Andre Alves Garzia
Soap Dog Studio - BRAZIL (http://nibbo.manilasites.com)



--------------- MESSAGE use-revolution.v001.n143.8 ---------------

From: "Jeanne A. E. DeVoto" <jeanne at runrev.com>
Subject: Re: Re post - Masking graphics
Date: Sun, 25 Nov 2001 15:01:07 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
In-Reply-To: <200111250050.TAA09783 at www.runrev.com>

At 4:49 PM -0800 11/24/2001, Ian Bridges wrote:
>I posted this a while ago with (surprisingly) no response...
>
>> is there a way to clip a picture to a region eg a polygon,
>> without assembling an array of masking graphics?
>
>I would like to be able to change the shape of the mask/clip region and the
>region of the underlying picture that is displayed with script control

There's currently no way of doing this that I know of. (Sorry.) I was
holding off on answering your first message in the hope that one of our
clever listmembers would come up with a method, but....

You could change the alphaData of the image to display only those portions
that you want seen, but of course that would require some fancy footwork
with determining algorithmically which pixels to blank and which to leave
alone. Your idea of assembling masking graphics might actually be simpler.

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!




--------------- MESSAGE use-revolution.v001.n143.9 ---------------

From: "Jeanne A. E. DeVoto" <jeanne at runrev.com>
Subject: Re: I Don't Understand Why This Is
Date: Sun, 25 Nov 2001 15:47:22 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
In-Reply-To: <200111240549.AAA29475 at www.runrev.com>

At 9:49 PM -0800 11/23/2001, Mark MacKenzie (Shaw) wrote:
>on mouseup
>  local NumberOfOpenStacks
>  put empty into NumberOfOpenStacks
>  put empty into field "Card ID"
>  put the number of lines of field "Open Stacks" into NumberOfOpenStacks
>  put the number of lines of field "Open Stacks" into message
>  if NumberOfOpenStacks > 0 then
>    repeat until NumberOfOpenStacks = 0
>      put the cardIDs of stack (line NumberOfOpenStacks of field "Open
>Stacks") & "," & (line NumberOfOpenStacks of field "Open Stacks") after
>field "Card ID"
>      if NumberOfOpenStacks > 1 then
>        put return after field "Card ID"
>      end if
>      subtract 1 from NumberOfOpenStacks
>      put NumberOfOpenStacks into message
>    end repeat
>  end if
>end mouseup
>
>Resulting in these results in:
> Field         Card ID
>
>1002                        <--- This should have a "," & "BookCover"
>1013,BookCover
>1002,Variable Tracker
>1002,ThumbnailScroller
>1002,FullScreenViewer
>1002,Illustrations
>1002,ImageBank
>1002                        <--- This should have a "," & "Chapters"
>1004                        <--- This should have a "," & "Chapters"
>1007,Chapters

The problem is that you have multiple cards in one stack, and this line:

>put the cardIDs of stack (line NumberOfOpenStacks of field "Open
>Stacks") & "," & (line NumberOfOpenStacks of field "Open Stacks") after
>field "Card ID"

only takes one card into account. For example, suppose we come to the line
"BookCover" of the "Open Stacks" field. BookCover has two cards, ID 1002
and ID 1013. So the cardIDs of stack "BookCover" is:
  1002
  1013
Then you append the stack's name, with a comma, after the card IDs, and get
  1002
  1013,BookCover
which is what in fact appears in the field.

If you want to place the stack's name after each ID, you need to loop over
each line in the cardIDs:

  put the cardIDs of \
    stack (line NumberOfOpenStacks of field "Open Stacks") \
    into myCardIDs
  repeat with each line thisLine of myCardIDs
    put thisLine,line NumberOfOpenStacks of field "Open Stacks" \
       after field "Card ID"
  end repeat

This ensures that the stack name is placed after each line of the cardIDs,
not just the last.

(A note about efficiency: it's much, much faster to get data from and put
data into a variable than a field. So to speed things up, when you're
working with the contents of a field, it pays in time savings to put the
field into a variable at the beginning, modify the variable as needed, then
put the variable into the field at the end. That way, you only have the
speed hit twice, rather than every time you put or get data. For example,
you could rewrite your handler above like this for more speed:

on mouseup
  local NumberOfOpenStacks
  put field "Open Stacks" into myOpenStacks -- <<<
  put empty into NumberOfOpenStacks
  put empty into field "Card ID"
  put the number of lines of myOpenStacks into NumberOfOpenStacks
  if NumberOfOpenStacks > 0 then
    repeat until NumberOfOpenStacks = 0
      put the cardIDs of stack \
         (line NumberOfOpenStacks of myOpenStacks) into myCardIDs
      repeat with each line thisLine of myCardIDs
        put thisLine,line NumberOfOpenStacks of myOpenStacks \
           after cardIDsList
      end repeat
      if NumberOfOpenStacks > 1 then
        put return after cardIDsList
      end if
      subtract 1 from NumberOfOpenStacks
      put NumberOfOpenStacks into message
    end repeat
  end if
  put cardIDsList into field "Card ID" -- <<<
end mouseup

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!




--------------- END use-revolution.v001.n143 ---------------




More information about the use-livecode mailing list