deletion while moving...

2003-12-17 Thread Igor Couto
Hi all,

I have a button that has a rather long script, which includes things 
like getting the button to move to different places in the card. This 
script is recursive: when it gets to the end, it calls itself again. I 
guess, a very simple example that illustrates roughly what is happening 
would be something like this:

on mouseUp
move me relative 300,0 in 15 seconds
move me relative -300,0 in 15 seconds
send "mouseUp" to me in 1 tick
end mouseUp
The problem is that I also have to delete this object at certain times. 
Hmmm, not as simple as it may look... If I try to delete a button while 
it's moving, it tells me that I can't do that, because the object is 
locked (I guess because its script is executing). So I guess all I need 
to do is halt the script...

The first thing I tried was to place a 'flag' in the button (as a 
custom property), that would advise the object when NOT to loop  - and 
then, to delete itself:

on mouseUp
	if not(the cStopMoving of me) then move me relative 300,0 in 15 seconds
	if not(the cStopMoving of me) then move me relative -300,0 in 15 
seconds
	if (the cStopMoving of me) then
		send "delete me" to me in 10 ticks
	else
		send "mouseUp" to me in 1 tick
	end if
end mouseUp

This approach had 2 problems: first, it didn't work (the button would 
not delete itself in the end). Second, it meant that even after the 
flag was set, I still had to WAIT until the movement was finished (15 
seconds!) until the deletion was attempted.

So, I started trying to use a second button - a 'delete' button - to 
try and STOP the movement of the first 'animated' button, and then do 
the deletion on-the-spot.

The script in the first button now goes:

on mouseUp
	move me relative 300,0 in 15 seconds
	if not(the cStopMoving of me) then move me relative -300,0 in 15 
seconds
	if not(the cStopMoving of me) then send "mouseUp" to me in 1 tick
end mouseUp

The script in the 'delete' button goes:

on mouseUp
set the cStopMoving of button "animatedBtn" to true
stop moving button "animatedBtn"
delete button "animatedBtn"
end mouseUp
Hmmm, better results: now, the animated button DOES STOP moving 
immediately, however, still NO DELETION!

Perhaps I need to give some time for the script of the 'animated' 
button to do all its flag-checking, and run its course, before I try to 
delete it - my thinking here is that I might be trying to delete the 
button while it's locked because its script has not yet finished 
executing. Ok, so I changed the 'delete' button script to:

on mouseUp
set the cStopMoving of button "animatedBtn" to true
stop moving button "animatedBtn"
put "delete" && the long id of button "animatedBtn" into lMessage
send lMessage to this stack in 1 second -- should be plenty of time!
end mouseUp 
Guess what?: it still DOES NOT DELETE!!!

What gives?

I feel like I'm overseeing something basic...

Any help GREATLY appreciated!

Cheers,

Igor de Oliveira Couto
--
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: intro/tutorial to Flash?

2003-12-17 Thread erik hansen

--- Scott Rossi <[EMAIL PROTECTED]> wrote:
> Rev is so versatile you
> should be able to use whatever storage medium
> you see fit, including ZIP disks.

ok, just wondered whether my ZIP disks would 
wind up next to my floppies and REALLY floppies
any time soon.


> Scott Rossi
> Creative Director
> 
> Tactile Media, Multimedia & Design
> Email: [EMAIL PROTECTED]
> Web: www.tactilemedia.com

=
[EMAIL PROTECTED]http://www.erikhansen.org

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


[HC]

2003-12-17 Thread erik hansen

how about preceding HC topics with [HC]?

thanks,

Erik

=
[EMAIL PROTECTED]http://www.erikhansen.org

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Cascading menu

2003-12-17 Thread Sarah Reichelt
Is there a tab at the end of the menu item you are trying to select?
That might cause a problem as the engine tries to find a submenu that 
it thinks should be there (because of the tab) but actually isn't.

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
On 18 Dec 2003, at 5:41 am, [EMAIL PROTECTED] wrote:

Hi Jan,

The item I am attempting to select does not have a submenu attached. 
Still
the menu just hangs and I can highlight and unhilight the item. I am 
missing
something very basic.

John



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Moving more than one line in a listfield (fwd)

2003-12-17 Thread Klaus Major
Hi David,

A clarification:  The function I just suggested for this purpose 
assumes that
you want to "group" the several selected lines, e.g., that when you 
move
lines 4 and 7 "up" in the list you want them to become lines 3 and 4, 
not
lines 3 and 6.
That's what i just experienced :-)

I hope this is what was intended.
Unfortunately not, but i think i can tweak your script to get it to 
work that way.

David Epstein
Thank you very much.

Regards

Klaus Major
[EMAIL PROTECTED]
www.major-k.de
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Cascading menu

2003-12-17 Thread Ironmaan
Hi Jan,

The item I am attempting to select does not have a submenu attached. Still 
the menu just hangs and I can highlight and unhilight the item. I am missing 
something very basic.

John




___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Moving more than one line in a listfield (fwd)

2003-12-17 Thread depstein
A clarification:  The function I just suggested for this purpose assumes that 
you want to "group" the several selected lines, e.g., that when you move 
lines 4 and 7 "up" in the list you want them to become lines 3 and 4, not 
lines 3 and 6.  I hope this is what was intended.

David Epstein

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Moving more than one line in a listfield

2003-12-17 Thread depstein
This is a subset of a more elaborate function, so I hope it still works.  It 
can be used to move the selected lines of a list-type field to the top or 
bottom of the list, or up or down.

David Epstein


function reListed theList,actPieces,action,myDelim,@newSelec
-- theList is the starting list; if return-delimited, pass return as myDelim
-- actPieces gets passed the hilitedLines of the field containing theList
-- action is 1, 2, 3, or 4, depending on where you want to move the selected 
lines.
-- the function returns the modified list, and loads variable newSelec
-- with a comma-delimited list of numbers useful for setting the appropriate 
-- hilitedLines of the field after the list has been altered.

  put theList into origList
  replace "," with " " in actPieces
  set the itemDelimiter to myDelim
  put the number of items in theList into z
  put the number of words in actPieces into p
  repeat with w = p down to 1
put word w of actPieces into i
put myDelim & item i of theList before newList
delete item i of theList
  end repeat
-- items (lines) specified in actPieces are now listed in newList, and
-- have been removed from theList.  The rest of the script
-- combines those newList and theList in the right order.

  delete char 1 of newList
  switch action
  case 1 -- move newList to the top
put rangeList(1,p) into newSelec
return newList & myDelim & theList
  case 4 -- newList to the bottom
put rangeList(z-p+1,z) into newSelec
return theList & myDelim & newList
  case 2 -- newList up
put word 1 of actPieces into slot
if slot < 3 then
  put rangeList(1,p) into newSelec
  return newList & myDelim & theList
else
  put slot - 1 into slot
  put rangeList(slot,slot+p-1) into newSelec
  return item 1 to slot-1 of theList & myDelim & newList & myDelim & item 
slot to -1 of theList
end if
  case 3 -- newList down
put word -1 of actPieces into slot
if slot = z then -- last selected is at end of list
  put rangeList(z-p+1,z) into newSelec
  return theList & myDelim & newList
else
  put slot + 2 - p into slot
  put rangeList(slot,slot+p-1) into newSelec
  return item 1 to slot-1 of theList & myDelim & newList & myDelim & item 
slot to -1 of theList
end if
  end switch
end reListed

function rangeList a,z -- returns comma delimited series of numbers from a to 
z
  put z-a into myCount
  if myCount = 0 then return a
  put a into hold
  repeat with b = 1 to myCount
put "," & a+b after hold
  end repeat
  return hold
end rangeList
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Scrolling Cards

2003-12-17 Thread Jim Carwardine
Yes, that's exactly what I'm looking for.  I'll give it a try... Jim

on 12/17/03 12:23 PM, Ray Bennett wrote:

> I'm not sure I'm understanding you perfectly, but this _may_ be what
> you're after...
> 
> You're middle section, I presume, consists of a bunch of child fields.
> If you select all of these child fields and group them, then make that
> group scrollable, it will allow you to scroll only the middle section
> (this won't have the appearance of scrolling the card, though).   This
> sounds like what you're after.
> 
> One of the bonuses in grouping things this way is that you can
> dynamically grow the groups size by adding more child fields to it.
> For instance when you click on a parent record and it has 30 children,
> you can add the additional fields to the group and it will grow
> proportionately.  You will need to make sure when you're done, then,
> that you reset the groups height to match that of the card - then
> you're scrollbar will be exactly what you need.   (If you lock the
> groups location and size you may not need the last step.)
> 
> Hope this helps.
> Ray
> 
> 
> On Wednesday, December 17, 2003, at 06:35 AM, Jim Carwardine wrote:
> 
>> Thanks, folks.  My record, when displayed has 3 sections.  It's the
>> middle
>> section I want to scroll with the children fields displayed.  Does that
>> cause a problem?  Jim
>> 
>> 12/17/03 2:49 AM, Ray Bennett wrote:
>> 
>>> And make sure to go into the "Property Inspector" for the group Jacque
>>> described and open the Geometry properties.  Click on the vertical
>>> pipe
>>> that that exits the top of the object box and the horizontal pipe that
>>> exits the left side of the object box.  Each will turn red as you
>>> click
>>> it.   This will ensure that your group resizes with the window.
>>> 
>>> On Wednesday, December 17, 2003, at 12:49 AM, J. Landman Gay wrote:
>>> 
 On 12/16/03 6:32 PM, Jim Carwardine wrote:
 
> I¹m very new to Revolution and I have a question.  I¹m designing a
> database
> that is relational in the sense that there are parent/child
> relationships
> between records that can go many levels deep.  When I look at a
> parent
> record, I want to see all of the first level children of that record
> in a
> list.  Each record has a number of fields I want to show.  What I
> seem to be
> reading in the docs for Rev is that I can place a vertical scroll
> bar
> on the
> card that will allow the fields in the card to scroll, which is
> exactly what
> I want to do.  Is that clear enough for someone to get me started?
> How do I
> do it?   Jim
 
 The easiest way is to create a very tall card with enough space to
 lay
 out all your fields. The card can be taller than the screen if
 necessary. Then group all the fields and objects on the card. In the
 property inspector, set the group to have a vertical scrollbar. Then
 resize both the group and the stack window to be smaller than the
 card
 so that the scrollbar becomes active. If you set the size of the
 group
 to be the same size as the stack window, it will look just like a
 scrolling document.
 
 -- 
 Jacqueline Landman Gay | [EMAIL PROTECTED]
 HyperActive Software   | http://www.hyperactivesw.com
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
>>> 
>>> ___
>>> use-revolution mailing list
>>> [EMAIL PROTECTED]
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
>> -- 
>> 
>> OYF is... Highly resourceful people working together.
>> 
>> 
>> Own Your Future Consulting Services Limited,
>> 1959 Upper Water Street, Suite 407, Halifax, Nova Scotia. B3J 3N2
>> Info Line: 902-823-2477, Phone: 902-823-2339. Fax: 902-823-2139
>> 
>> 
>> 
>> ___
>> use-revolution mailing list
>> [EMAIL PROTECTED]
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
> 
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution

-- 

OYF is... Highly resourceful people working together.


Own Your Future Consulting Services Limited,
1959 Upper Water Street, Suite 407, Halifax, Nova Scotia. B3J 3N2
Info Line: 902-823-2477, Phone: 902-823-2339. Fax: 902-823-2139



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: COM objects?

2003-12-17 Thread Dar Scott
On Tuesday, December 16, 2003, at 03:15 PM, Steve Ralston wrote:

Wondering if Rev can work with COM objects? We might be working on a 
Rev app that sits on a Unix server and talks to a couple other 
programs, if it is possible.
It is possible to use COM through a custom external.  However, I have 
been recommending to customers that new designs--and especially those 
involving non-Windows OS--use something else.  My preference would be 
something built upon TCP/IP.

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Report Builder

2003-12-17 Thread Chris Sheffield
Anyone out there using the Report Builder?  I'm playing around with it now
for the first time and have a couple questions.

First of all, the docs state that you use the report objects and link them
to fields that you want displayed on your report.  They also say that any
other controls other than report objects can also be placed on the report,
but they will be visible on every card used for printing the report.  Is
there any way to prevent this behavior?  What I want to do is print out a
picture and story on one page (the story text can be linked using a report
object), then some quiz questions on the second page.  What would be the
best way to do this?  Would it be better just to use regular image and field
controls and then print the cards instead of using the Report Builder?

Thanks,

Chris Sheffield
Software Development
Read Naturally

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.552 / Virus Database: 344 - Release Date: 12/15/2003
 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: COM objects?

2003-12-17 Thread Trevor DeVore
On Dec 17, 2003, at 10:13 AM, Alex Rice wrote:
I don't know why the features page says "SDK for creating externals in 
any compiled language". I've only heard of people using C to write 
externals. I believe with other xtalks it was possible to use pascal 
or basic, but AFAIK one must use C with runrev.
I remember reading somewhere that you could use any language as long as 
it could pass C structures or something like that.

--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: COM objects?

2003-12-17 Thread Alex Rice
On Dec 16, 2003, at 5:43 PM, <[EMAIL PROTECTED]> wrote:

How about incorporating DLLs and other objects? I have seen references 
to incorporating "externals" and Altuit even has a browser component 
that looks quite good. Are there any pointers to documentation on 
that?
Yes one could write an external to call functions in some .dll or in a 
COM object or whatever.

The SDK available from metacard.com is the same one to use for 
Revolution. It's *undocumented*. But it does have an example stack and 
example external in the C language.

A new SDK with documentation is supposed to be in a future release of 
Runrev.

I don't know why the features page says "SDK for creating externals in 
any compiled language". I've only heard of people using C to write 
externals. I believe with other xtalks it was possible to use pascal or 
basic, but AFAIK one must use C with runrev.

Alex Rice <[EMAIL PROTECTED]> | Mindlube Software | 


what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Scrolling Cards

2003-12-17 Thread Ray Bennett
I'm not sure I'm understanding you perfectly, but this _may_ be what 
you're after...

You're middle section, I presume, consists of a bunch of child fields.  
 If you select all of these child fields and group them, then make that 
group scrollable, it will allow you to scroll only the middle section 
(this won't have the appearance of scrolling the card, though).   This 
sounds like what you're after.

One of the bonuses in grouping things this way is that you can 
dynamically grow the groups size by adding more child fields to it.  
For instance when you click on a parent record and it has 30 children, 
you can add the additional fields to the group and it will grow 
proportionately.  You will need to make sure when you're done, then, 
that you reset the groups height to match that of the card - then 
you're scrollbar will be exactly what you need.   (If you lock the 
groups location and size you may not need the last step.)

Hope this helps.
Ray
On Wednesday, December 17, 2003, at 06:35 AM, Jim Carwardine wrote:

Thanks, folks.  My record, when displayed has 3 sections.  It's the 
middle
section I want to scroll with the children fields displayed.  Does that
cause a problem?  Jim

12/17/03 2:49 AM, Ray Bennett wrote:

And make sure to go into the "Property Inspector" for the group Jacque
described and open the Geometry properties.  Click on the vertical 
pipe
that that exits the top of the object box and the horizontal pipe that
exits the left side of the object box.  Each will turn red as you 
click
it.   This will ensure that your group resizes with the window.

On Wednesday, December 17, 2003, at 12:49 AM, J. Landman Gay wrote:

On 12/16/03 6:32 PM, Jim Carwardine wrote:

I’m very new to Revolution and I have a question.  I’m designing a
database
that is relational in the sense that there are parent/child
relationships
between records that can go many levels deep.  When I look at a 
parent
record, I want to see all of the first level children of that record
in a
list.  Each record has a number of fields I want to show.  What I
seem to be
reading in the docs for Rev is that I can place a vertical scroll 
bar
on the
card that will allow the fields in the card to scroll, which is
exactly what
I want to do.  Is that clear enough for someone to get me started?
How do I
do it?   Jim
The easiest way is to create a very tall card with enough space to 
lay
out all your fields. The card can be taller than the screen if
necessary. Then group all the fields and objects on the card. In the
property inspector, set the group to have a vertical scrollbar. Then
resize both the group and the stack window to be smaller than the 
card
so that the scrollbar becomes active. If you set the size of the 
group
to be the same size as the stack window, it will look just like a
scrolling document.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
--

OYF is... Highly resourceful people working together.

Own Your Future Consulting Services Limited,
1959 Upper Water Street, Suite 407, Halifax, Nova Scotia. B3J 3N2
Info Line: 902-823-2477, Phone: 902-823-2339. Fax: 902-823-2139


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Cascading menu

2003-12-17 Thread Jan Schenkel
--- [EMAIL PROTECTED] wrote:
> How do you control a cascading menu. An item
> selected from a regular pulldown 
> menu highlights and then the menu retracts and
> things start happening. With a 
> cascading menu item, the item highlights but the
> menu just hangs there. I can 
> click on an item highlighting it and unhighlighting
> it. Nothing happens. What 
> am I missing.
> 
> John--super newbie.
> 

Hi John,

Are you by any chance trying to select an item that
has a submenu attached to it ? In cascading menus, you
can only select the leaves of the tree, not the nodes.
Example :
  A  <- not selectable
 A.1 <- not selectable
A.1.1<- selectable
A.1.2<- selectable
A.1.3<- selectable
 A.2 <- selectable
 A.3 <- selectable

Hope this helped,

Jan Schenkel.

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Moving more than one line in a listfield

2003-12-17 Thread Klaus Major
Hi Jan,

...
Hi Klaus,
If you're thinking drag'n'drop, I've got a sample
stack for that ; direct link :

thanks for your fast reply, but no, that is a nifty code which does not 
work
for me unfortunately...

Hope this helped,

Jan Schenkel.
Regards

Klaus Major
[EMAIL PROTECTED]
www.major-k.de
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Cascading menu

2003-12-17 Thread Ironmaan
How do you control a cascading menu. An item selected from a regular pulldown 
menu highlights and then the menu retracts and things start happening. With a 
cascading menu item, the item highlights but the menu just hangs there. I can 
click on an item highlighting it and unhighlighting it. Nothing happens. What 
am I missing.

John--super newbie.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Moving more than one line in a listfield

2003-12-17 Thread Jan Schenkel
--- Klaus Major <[EMAIL PROTECTED]> wrote:
> Hi friends,
> 
> i'm feeling a bit lazy today ;-)
> 
> Has someone eventually already written a smart
> handler to move more than
> one hilitedlines (non-/contigous) up and/or down a
> listfield?
> 
> If yes, are you willing to share this cleverness?
> 
> Thanks in advance...
> 
> Klaus Major
> 

Hi Klaus,

If you're thinking drag'n'drop, I've got a sample
stack for that ; direct link :


Hope this helped,

Jan Schenkel.

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution