OT: [TIP] php debugging - msg window style (*.nix)

2003-09-26 Thread Cole Tierney
Pardon the OT. Since php is becoming a popular backend language for 
netlingo, I thought some here may appreciate the following.

A two shell command method for debugging php as it executes. Output 
is directed to a fifo on the server which can be viewed like the msg 
window in a terminal window.

http://putnamhill.net/codeshop/php/debug-php.html

Happy Friday, All!
--
Cole
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  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: Cursor property - solved

2003-09-26 Thread Troy Rollins
On Friday, September 26, 2003, at 01:27 PM, Peter Bochan wrote:

This makes code less redundant, and, what was my aim, reauable.
Not to mention appropriate and functional.  ;-P

--
Troy
RPSystems, Ltd.
http://www.rpsystems.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!]


Cursor property - solved

2003-09-26 Thread Peter Bochan
Thanks folks. This list is really usefull. As always, of course.

--So yes, instead of using

on beginSprite me
  myCursor = sprite(me.spriteNum).cursor
end

on mouseEnter me
  myCursor = 260
end

on mouseDown me
  myCursor = 290
end

on mouseUp me
  myCursor = 260
end

on mouseLeave me
  myCursor = 0
end

--It's better to state

on mouseEnter me
  cursor 260
end

on mouseDown me
  cursor 290
end

on mouseUp me
  cursor 260
end

on mouseLeave me
  cursor 0
end

This makes code less redundant, and, what was my aim, reauable.

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

2003-09-26 Thread Steve Rachels
problem solved:
mouseWithin over a 0 alpha square

thanks
Steve Rachels


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

2003-09-26 Thread Stephen Ingrum
Why not just use the command-
cursor 200

Stephen


- Original Message - 
From: "Steve Rachels" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 11:54 AM
Subject: Re:  Another cursor property question


> Classical breakout game... paddle, ball, bricks.  Nothing covering the
> entire screen, but I could put a box with 0 alpha over or under it if
> necessary.
>
> Steve Rachels
>
> - Original Message - 
> From: "Charlie Fiskeaux II" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 26, 2003 9:38 AM
> Subject: Re:  Another cursor property question
>
>
> > what types of media do you have on screen when you're trying to hide the
> > cursor?  Do you have an item covering the entire stage?
> >
> > Charlie Fiskeaux II
> > Media Designer
> > The Creative Group
> > www.cre8tivegroup.com
> > 859/858-9054x29
> > cell: 859/608-9194
> >
> > - Original Message - 
> > From: "Steve Rachels" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, September 26, 2003 11:42 AM
> > Subject: Re:  Another cursor property question
> >
> >
> > > Can't seem to find how to make the cursor disappear on my game when I
> > start
> > > the 'play' frame.  I want to use the mouse to shoot, but don't want it
> > > visible.  I know the code is 200, but getting it to work sigh
> > Hints?
> > >
> > > Steve Rachels
> > >
> > >
> > > [To remove yourself from this list, or to change to digest mode, go to
> > http://www.penworks.com/lingo-l.cgi  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: RE: Concatenating property list values

2003-09-26 Thread Irv Kalb
No escape sequences are needed.  I just created a new movie, pasted 
the code I just posted into a movie level script, created a field 
called musiclibrary.  I went to the message window and typed test(). 
Now I see the member musicLibrary has:

Splish Splash - Bobby Darin
Runaround Sue - Dion
It must be something else, but I don't know what.

Irv

At 11:37 AM -0500 9/26/03, Mindy McCutchan wrote:
--only stores the tag title
thisString = tempList[#tagTitle] & " - " & tempList[#tagArtist] & RETURN
No matter what method I use to store the information from the list, it
won't even store anything that appears after the first "&". It does the
same even if I do something like this:
thisString = tempList[#tagTitle] & "hi"

Put thisString
"Splish Splash"
Is there some kind of escape sequence needed or something related???

Thanks,
Mindy
--

Multimedia Wrangler.
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  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: Concatenating property list values (mavinson@ra.rockwell.com)

2003-09-26 Thread Howdy-Tzi
On Friday, September 26, 2003, at 11:37 AM, Mindy McCutchan wrote:

--only stores the tag title
thisString = tempList[#tagTitle] & " - " & tempList[#tagArtist] & 
RETURN

No matter what method I use to store the information from the list, it
won't even store anything that appears after the first "&". It does the
same even if I do something like this:
thisString = tempList[#tagTitle] & "hi"

Put thisString
"Splish Splash"
Is there some kind of escape sequence needed or something related???
If I recall correctly, you can't do list access quite that way for 
modifying list contents. You need a temporary container for what you're 
pulling and modifying:

modString = tempList[#tagTitle]
thisString = modString & "hi"


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: Another cursor property question

2003-09-26 Thread Steve Rachels
Classical breakout game... paddle, ball, bricks.  Nothing covering the
entire screen, but I could put a box with 0 alpha over or under it if
necessary.

Steve Rachels

- Original Message - 
From: "Charlie Fiskeaux II" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 9:38 AM
Subject: Re:  Another cursor property question


> what types of media do you have on screen when you're trying to hide the
> cursor?  Do you have an item covering the entire stage?
>
> Charlie Fiskeaux II
> Media Designer
> The Creative Group
> www.cre8tivegroup.com
> 859/858-9054x29
> cell: 859/608-9194
>
> - Original Message - 
> From: "Steve Rachels" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 26, 2003 11:42 AM
> Subject: Re:  Another cursor property question
>
>
> > Can't seem to find how to make the cursor disappear on my game when I
> start
> > the 'play' frame.  I want to use the mouse to shoot, but don't want it
> > visible.  I know the code is 200, but getting it to work sigh
> Hints?
> >
> > Steve Rachels
> >
> >
> > [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/lingo-l.cgi  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: Another cursor property question

2003-09-26 Thread Charlie Fiskeaux II
what types of media do you have on screen when you're trying to hide the
cursor?  Do you have an item covering the entire stage?

Charlie Fiskeaux II
Media Designer
The Creative Group
www.cre8tivegroup.com
859/858-9054x29
cell: 859/608-9194

- Original Message - 
From: "Steve Rachels" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 11:42 AM
Subject: Re:  Another cursor property question


> Can't seem to find how to make the cursor disappear on my game when I
start
> the 'play' frame.  I want to use the mouse to shoot, but don't want it
> visible.  I know the code is 200, but getting it to work sigh
Hints?
>
> Steve Rachels
>
>
> [To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  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: Concatenating property list values (mavinson@ra.rockwell.com)

2003-09-26 Thread Mindy McCutchan
Hi Everyone,
Sorry about quoting the whole digest...i realized I forgot to delete the
rest after I sent.

Mike,
I've changed the item to line. Now I think I understand the difference.

Irv & Cath,
Thanks for your continuing help. My project works differently on
different computers. On my friend's, computer it displays some songs
correctly but not others. I did change from the email lingo, so that it
used my list names...i'm sorry if it seemed otherwise. It seems the ones
that are displayed correctly have some kind of character like "&" or "-"
in their id3 tag information. 

--only stores the tag title
thisString = tempList[#tagTitle] & " - " & tempList[#tagArtist] & RETURN

No matter what method I use to store the information from the list, it
won't even store anything that appears after the first "&". It does the
same even if I do something like this:

thisString = tempList[#tagTitle] & "hi"

Put thisString
"Splish Splash"

Is there some kind of escape sequence needed or something related???

Thanks,
Mindy


Message: 1
Subject: Re:  Concatenating property list values
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Date: Fri, 26 Sep 2003 09:14:53 -0400
Reply-To: [EMAIL PROTECTED]

Mindy,
The item[i] is generally used for 'chunking' through comma-delimited
lists. e.g. put "jazz,funk,blues".item[1] returns 'jazz' In your code,
if you would add: member("musicLibrary").item[i] =
member("musicLibrary") &  & gmusiclib[i].tagArtist & ... you would see
results like: (member 2 of castLib 1)Bobby Darin - Splish Splash
,(member 2 of castLib 1)Dion - Runaround Sue

Although the 'item' keyword works on field & text cast members, you get
extra stuff (the fully qualified description of the 'item'). Try Irv's
approach ... it's full of 'best practices'.

Mike

Please respond to [EMAIL PROTECTED]
Sent by:[EMAIL PROTECTED]
To:<[EMAIL PROTECTED]>
Subject: Concatenating property list values

I'm trying to output some of the values in to a text field member using
this:

repeat with i = 1 to gmusicLib.count
  member("musicLibrary").item[i] = gmusicLib[i].tagArtist & " - " &
gmusicLib[i].tagTitle & RETURN
end repeat

All that outputs is the artist name.



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  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: Lingo-l digest, Vol 1 #972 - 20 msgs

2003-09-26 Thread mavinson
Mindy, your data structure is fine. Try the following handler. Remember
that you are appending data to your text member, so you need to ...
set member("myText").text = member("myText").text & "some more text!"

on dispProps
  gMusicLib = [[#tagTitle "Splish Splash", #tagArtist "Bobby Darin",#
tagAlbum "The Bobby Darin Story", #tagYear "1961", #tagGenre "Oldies", #
tagFilePath "D\My Music\old school\Bobby Darin - Splish Splash.mp3"], [#
tagTitle "Runaround Sue", #tagArtist "Dion", #tagAlbum "Runaround Sue", #
tagYear "1961", #tagGenre "Oldies", #tagFilePath "D\My Music\old
school\Buddy Holly - Runaround Sue.mp3"]]
  member("musicLibrary").text = ""
  repeat with i = 1 to gMusicLib.count
member("musicLibrary").text = member("musicLibrary").text &
gmusiclib[i].tagArtist & " - " & gmusicLib[i].tagTitle & RETURN
  end repeat
end

PS - No need to quote the entire digest!


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  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: Lingo-l digest, Vol 1 #972 - 20 msgs

2003-09-26 Thread Irv Kalb
OK, so I had three typos - I warned that it was Email Lingo.  This works:

on test
  gmusicLib = [[#tagTitle: "Splish Splash", #tagArtist: "Bobby Darin",\
#tagAlbum: "The Bobby Darin Story", #tagYear: "1961", #tagGenre:\
"Oldies", #tagFilePath: "D:\My Music\old school\Bobby Darin - Splish\
Splash.mp3"], [#tagTitle: "Runaround Sue", #tagArtist: "Dion",\
#tagAlbum: "Runaround Sue", #tagYear: "1961", #tagGenre: "Oldies",\
#tagFilePath: "D:\My Music\old school\Buddy Holly - Runaround Sue.mp3"]]
  -- Store the output in a string until you are finished
  stringOut = ""
  -- Find out how many items are in your list
  nItems = count(gMusiclib)
  repeat with i = 1 to nItems
-- create a tempory pointer to each property list
tempList = gMusiclib[i]
   
-- build up a single line
thisString = tempList[#tagTitle] & " - " & tempList[#tagArtist] & RETURN
   
-- add it to the full output string
put thisString after stringOut
   
-- alternatively:  stringOut = stringOut & thisString (but the 
above is faster)
  end repeat

  -- Finally put it into the field
  member("musicLibrary").text = stringOut
 end
Irv

At 9:13 AM -0500 9/26/03, Mindy McCutchan wrote:
Cath & Irv--
Thanks for your suggestions, but neither will work. I'd previously tried
storing it into a variable before displaying.  Also, I had used "item"
previously without writing over items in the list. At that time I had
each of my properties stored in separate arrays. My troubles started
when I stored the property lists in one array. It's so strange because
what returned "Bobby Darin - Splish Splash" for you, only returns Bobby
Darin for me still.
Any other ideas??
Thanks,
Mindy


--

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

2003-09-26 Thread Steve Rachels
Can't seem to find how to make the cursor disappear on my game when I start
the 'play' frame.  I want to use the mouse to shoot, but don't want it
visible.  I know the code is 200, but getting it to work sigh Hints?

Steve Rachels


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

2003-09-26 Thread Daniel Nelson
Hi Sébastien,

I had to add two lines to get reasonable results:

>
>-- get the original alpha channel
>alphaBuffer = imgDest.extractAlpha()

imgDest.useAlpha = FALSE

>
>
>-- copy the bitmap data
>copyPixels(imgDest, imgSrc, rDest, rSrc)
>
>-- copy the alphachannel pixelmap
>alphatoAdd = imgSrc.extractAlpha()
>alphaBuffer.copyPixels(alphatoAdd, rDest, rSrc, [#ink:39])
>
>-- apply the alpha changes
>imgDest.setAlpha(alphaBuffer)

imgDest.useAlpha = TRUE

>
>
> end -- CopyPix32 handler

Without those changes, the background had the right alpha, but with color taken from 
the top image. With these changes, it's much better, but any partially transparent 
pixels in imgSrc become white (the more transparent, the more white they become). So 
in the example I posted
before (which I have reposted using your code), the drop shadow of the top text 
becomes white, instead of black.  Many composites won't have large transparent 
sections in the top image, so it wouldn't always be a problem.

I tried many variations on inks and masks with copypixels in my testing before writing 
the pixel by pixel method, including isolating the masks and using darken ink.  None 
of them produced a proper composite.  As you imply, the method to use depends on the 
desired results.

Thanks!

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: Cursor property

2003-09-26 Thread Charlie Fiskeaux II
Setting the cursor property of a sprite means that the cursor only changes
when it's over that sprite, setting the cursor itself changes it for the
whole movie (except when it's over sprites like Flash, that take control of
the cursor themselves).

Charlie Fiskeaux II
Media Designer
The Creative Group
www.cre8tivegroup.com
859/858-9054x29
cell: 859/608-9194

- Original Message - 
From: "Stephen Ingrum" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 10:19 AM
Subject: Re:  Cursor property


> On a semi-related note.
> What's the difference between saying
>
> on mouseEnter me
> sprite(spritenum).cursor=280
> end
>
> and
>
> on mouseEnter me
> cursor 280
> end
>
> Why would you use one method over the other?
>
> Thank you,
> Stephen Ingrum
> [EMAIL PROTECTED]
> www.LeagueofDesign.com
>
>
> - Original Message - 
> From: "Colin Holgate" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 26, 2003 9:00 AM
> Subject: RE:  Cursor property
>
>
> > >Sorry, folks, but sprite(me.spriteNum).cursor as well as
> > >sprite(spriteNum).cursor doesn't want to work.
> >
> >
> > That's because you are saying on mousedown, and not on mousedown me.
> > Try sticking some "me"'s at the end of your handler's first lines.
> >
> > [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/lingo-l.cgi  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: Cursor property

2003-09-26 Thread Stephen Ingrum
After testing what I *thought* to be true...
I answered my own question.

Peter,
if you are going to use sprite(spritenum).cursor,
use it in the beginSprite handler (WITH the "me")
there is no need to repeatedly set the property in the mouseEnter handler

property spr,spritenum

on beginSprite me
spr=sprite(spritenum)
spr.cursor=280
end



- Original Message - 
From: "Stephen Ingrum" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 9:19 AM
Subject: Re:  Cursor property


> On a semi-related note.
> What's the difference between saying
>
> on mouseEnter me
> sprite(spritenum).cursor=280
> end
>
> and
>
> on mouseEnter me
> cursor 280
> end
>
> Why would you use one method over the other?
>
> Thank you,
> Stephen Ingrum
> [EMAIL PROTECTED]
> www.LeagueofDesign.com
>
>
> - Original Message - 
> From: "Colin Holgate" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 26, 2003 9:00 AM
> Subject: RE:  Cursor property
>
>
> > >Sorry, folks, but sprite(me.spriteNum).cursor as well as
> > >sprite(spriteNum).cursor doesn't want to work.
> >
> >
> > That's because you are saying on mousedown, and not on mousedown me.
> > Try sticking some "me"'s at the end of your handler's first lines.
> >
> > [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/lingo-l.cgi  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: Cursor property

2003-09-26 Thread Stephen Ingrum
On a semi-related note.
What's the difference between saying

on mouseEnter me
sprite(spritenum).cursor=280
end

and

on mouseEnter me
cursor 280
end

Why would you use one method over the other?

Thank you,
Stephen Ingrum
[EMAIL PROTECTED]
www.LeagueofDesign.com


- Original Message - 
From: "Colin Holgate" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 9:00 AM
Subject: RE:  Cursor property


> >Sorry, folks, but sprite(me.spriteNum).cursor as well as
> >sprite(spriteNum).cursor doesn't want to work.
>
>
> That's because you are saying on mousedown, and not on mousedown me.
> Try sticking some "me"'s at the end of your handler's first lines.
>
> [To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  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 digest, Vol 1 #972 - 20 msgs

2003-09-26 Thread Mindy McCutchan
Cath & Irv--
Thanks for your suggestions, but neither will work. I'd previously tried
storing it into a variable before displaying.  Also, I had used "item"
previously without writing over items in the list. At that time I had
each of my properties stored in separate arrays. My troubles started
when I stored the property lists in one array. It's so strange because
what returned "Bobby Darin - Splish Splash" for you, only returns Bobby
Darin for me still. 

Any other ideas??
Thanks,
Mindy

Message: 16
Date: Fri, 26 Sep 2003 12:37:40 +1200
To: [EMAIL PROTECTED]
From: Cath Sample <[EMAIL PROTECTED]>
Subject: Re:  Concatenating property list values
Reply-To: [EMAIL PROTECTED]

Hi,
I think you are writing over each entry as it is made. Use 'line'
instead of 'item'.
Try
global gmusiclib
on fillmusic
  member("musicLibrary").text=""
  repeat with i = 1 to gmusicLib.count
member("musicLibrary").line[i] = gmusicLib[i].tagArtist & " - " &
gmusicLib[i].tagTitle & RETURN
  end repeat 
end

for me this returns
Bobby Darin - Splish Splash
Dion - Runaround Sue

Cath

At 05:28 p.m. 25/09/2003 -0500, you wrote:
Hi everyone,
I'm having problems with the output of a value from a property list.
Well, actually I have a linear list and each index is a property list.

gmusicLib = [[#tagTitle: "Splish Splash", #tagArtist: "Bobby Darin",
#tagAlbum: "The Bobby Darin Story", #tagYear: "1961", #tagGenre:
"Oldies", #tagFilePath: "D:\My Music\old school\Bobby Darin - Splish
Splash.mp3"], [#tagTitle: "Runaround Sue", #tagArtist: "Dion",
#tagAlbum: "Runaround Sue", #tagYear: "1961", #tagGenre: "Oldies",
#tagFilePath: "D:\My Music\old school\Buddy Holly - Runaround Sue.mp3"]]

That's just an example once the file info is loaded.

I'm trying to output some of the values in to a text field member using
this:

repeat with i = 1 to gmusicLib.count
member("musicLibrary").item[i] = gmusicLib[i].tagArtist & " - "
& gmusicLib[i].tagTitle & RETURN
end repeat

All that outputs is the artist name.

I found an example similar in Director 8.5 Studio that used apostrophes
inside the quotes, but I can't get that to work. I'm using MX, if that
makes a difference. 

I'm just a student learning director, so any explanations would be
really great :)
Thanks,
Mindy



--__--__--

Message: 17
From: "Peter Bochan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Fri, 26 Sep 2003 11:24:23 +0300
Subject:  Cursor property
Reply-To: [EMAIL PROTECTED]

Hi Lingo Developers!
I've got a little problem. I wrote a simple cursor change behavior for a
vector sprite(2):

on mouseEnter
  sprite(2).cursor = 260
end

on mouseDown
  sprite(2).cursor = 290
end

on mouseLeave
  sprite(2).cursor = 0
end

on mouseUp
  sprite(2).cursor = 260
End

This works fine. But to apply this behavior to different sprite I need
to track down the sprite's number and to change it everytime, and create
lots of behaviors. I tried to do the following:

Property spriteNum

On beginSprite
currSprite = sprite(spriteNum).member
End

On mouseEnter
currSprite.cursor = 260
End

When I compile (close) the behavior, it yields an error saying that an
operator expected. I wonder what's the problem and how can I fix it
without creating bucnhes of behaviors.

Thanks in advance
Peter


--__--__--

Message: 18
From: "Robin Pereira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: RE:  Cursor property
Date: Fri, 26 Sep 2003 09:55:08 +0100
Reply-To: [EMAIL PROTECTED]




Try this ..


on mouseDown
  sprite(me.spritenum).cursor = 290
end

on mouseLeave
  sprite(me.spritenum).cursor = 0
end

on mouseUp
  sprite(me.spritenum).cursor = 260
End

whats happening is the code is referencing the sprite you attach it to
so
sprite(me.spritenum) is what you need to use.
keep at it and try to read through a manual as much as you can, If you
don't
have one I have one for sale in England so let me know??
Robin
www.blueqube.org.uk


--__--__--

Message: 19
Date: Fri, 26 Sep 2003 12:24:54 +0200
To: [EMAIL PROTECTED]
Subject: Re:  Cursor property
From: =?iso-8859-15?Q?S=E9bastien_Portebois?=
<[EMAIL PROTECTED]>
Organization: =?iso-8859-15?Q?Lexis_Num=E9rique?=
Reply-To: [EMAIL PROTECTED]

Hi

> on mouseDown
>   sprite(me.spritenum).cursor = 290
> end
>
> on mouseLeave
>   sprite(me.spritenum).cursor = 0
> end
>
> on mouseUp
>   sprite(me.spritenum).cursor = 260
> End
>
> whats happening is the code is referencing the sprite you attach it to
so
> sprite(me.spritenum) is what you need to use.


and it would even be better if you specify the reference :
  on mouseDown me
sprite(me.spritenum).cursor = 290
  end

  on mouseLeave me
sprite(me.spritenum).cursor = 0
  end

  on mouseUp me
sprite(me.spritenum).cursor = 260
  end


cheers,
séb

--__--__--

Message: 20
Date: Fri, 26 Sep 2003 12:53:46 +0200
To: [EMAIL PROTECTED]
Subject: Re:  copyPixels and alpha channel
From: =?iso-8859-15?Q?S=E9bastien_Portebois?=
<[EMAIL PROTECTED]>
Organization: =?iso-8859-15?Q?Lexis_Num=E9rique?=
Reply-To

RE: Cursor property

2003-09-26 Thread Colin Holgate
Sorry, folks, but sprite(me.spriteNum).cursor as well as
sprite(spriteNum).cursor doesn't want to work.


That's because you are saying on mousedown, and not on mousedown me. 
Try sticking some "me"'s at the end of your handler's first lines.

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

2003-09-26 Thread Peter Bochan
Sorry, folks, but sprite(me.spriteNum).cursor as well as
sprite(spriteNum).cursor doesn't want to work. I've tried whatever I
knew, but the compiler complains. Though this happens only when you
manipulate the built in cursors. When you do the same action with the
cursors in castLib (I mean cursor member interchange) it works just
fine. Don't know what to do.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sйbastien
Portebois
Sent: Friday, September 26, 2003 1:25 PM
To: [EMAIL PROTECTED]
Subject: Re:  Cursor property


Hi

> on mouseDown
>   sprite(me.spritenum).cursor = 290
> end
>
> on mouseLeave
>   sprite(me.spritenum).cursor = 0
> end
>
> on mouseUp
>   sprite(me.spritenum).cursor = 260
> End
>
> whats happening is the code is referencing the sprite you attach it to

> so
> sprite(me.spritenum) is what you need to use.


and it would even be better if you specify the reference :
  on mouseDown me
sprite(me.spritenum).cursor = 290
  end

  on mouseLeave me
sprite(me.spritenum).cursor = 0
  end

  on mouseUp me
sprite(me.spritenum).cursor = 260
  end


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: Concatenating property list values

2003-09-26 Thread mavinson
Mindy,
The item[i] is generally used for 'chunking' through comma-delimited lists.
e.g. put "jazz,funk,blues".item[1] returns 'jazz'
In your code, if you would add:
member("musicLibrary").item[i] = member("musicLibrary") &  &
gmusiclib[i].tagArtist & ...
you would see results like:
(member 2 of castLib 1)Bobby Darin - Splish Splash
,(member 2 of castLib 1)Dion - Runaround Sue

Although the 'item' keyword works on field & text cast members, you get
extra stuff (the fully qualified description of the 'item').
Try Irv's approach ... it's full of 'best practices'.

Mike




Please respond to [EMAIL PROTECTED]

Sent by:[EMAIL PROTECTED]


To:<[EMAIL PROTECTED]>
cc:

Subject: Concatenating property list values


I'm trying to output some of the values in to a text field member using
this:

repeat with i = 1 to gmusicLib.count
  member("musicLibrary").item[i] = gmusicLib[i].tagArtist & " - "
& gmusicLib[i].tagTitle & RETURN
end repeat

All that outputs is the artist name.






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

2003-09-26 Thread Sébastien Portebois
Hi everyone


My original post starting this thread stated that copyPixels() does not 
work when compositing _two_ images with alpha channels.
I haven't followed this thread since the start, so I might be out of 
synchro, but FYI here comes a little movie script I used intensively when 
compositing the 'creatures' for the main games of 
http://synchrobeat.swatch.com/

on CopyPix32 (imgDest, imgSrc, rDest, rSrc) --
  --
  -- INPUTS : inputs are organised like the 4 first inputs of the
  --   Lingo copyPixels command. For speed reason, no test is done to
  --   test wether the src and dest images are 32 bits (to extract and
  --   set alpha channels). This test is up to you!
  --
  --   imgDest : <#imageObject> destination image
  --   imgSrc  : <#imageObject> source image
  --   rDest   : <#rect> destination rect
  --   rSrc: <#rect> source rect
  --
  -- OUTPUT : nothing, the imgDest is directly modified
  ---
  -- get the original alpha channel
  alphaBuffer = imgDest.extractAlpha()
  -- copy the bitmap data
  copyPixels(imgDest, imgSrc, rDest, rSrc)
  -- copy the alphachannel pixelmap
  alphatoAdd = imgSrc.extractAlpha()
  alphaBuffer.copyPixels(alphatoAdd, rDest, rSrc, [#ink:39])
  -- apply the alpha changes
  imgDest.setAlpha(alphaBuffer)
end -- CopyPix32 handler

This might not be perfect, but it's quite fast (indeed here I don't do 
additional test on the bitdepths, and/or useAlpha, as I use it only when I 
want to composite 32bits-alphaEnabled image objects) and give satisfying 
results

I was compositing *lots* of images taken from32 bits images extracted from 
swf members used as 'graphic libraries' (so the memory requirements for 
all the sprites image tables where quite large, but this enabled us to 
have a near-infinite creature range with minimal animation, without a long 
download time nor a dead-slow framerate due to swf sprites overlay)

Does this helps?
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!]


Re: Cursor property

2003-09-26 Thread Sébastien Portebois
Hi

on mouseDown
  sprite(me.spritenum).cursor = 290
end
on mouseLeave
  sprite(me.spritenum).cursor = 0
end
on mouseUp
  sprite(me.spritenum).cursor = 260
End
whats happening is the code is referencing the sprite you attach it to so
sprite(me.spritenum) is what you need to use.


and it would even be better if you specify the reference :
 on mouseDown me
   sprite(me.spritenum).cursor = 290
 end
 on mouseLeave me
   sprite(me.spritenum).cursor = 0
 end
 on mouseUp me
   sprite(me.spritenum).cursor = 260
 end
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!]


RE: Cursor property

2003-09-26 Thread Robin Pereira



Try this ..


on mouseDown
  sprite(me.spritenum).cursor = 290
end

on mouseLeave
  sprite(me.spritenum).cursor = 0
end

on mouseUp
  sprite(me.spritenum).cursor = 260
End

whats happening is the code is referencing the sprite you attach it to so
sprite(me.spritenum) is what you need to use.
keep at it and try to read through a manual as much as you can, If you don't
have one I have one for sale in England so let me know??
Robin
www.blueqube.org.uk

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


Cursor property

2003-09-26 Thread Peter Bochan
Hi Lingo Developers!
I've got a little problem. I wrote a simple cursor change behavior for a
vector sprite(2):

on mouseEnter
  sprite(2).cursor = 260
end

on mouseDown
  sprite(2).cursor = 290
end

on mouseLeave
  sprite(2).cursor = 0
end

on mouseUp
  sprite(2).cursor = 260
End

This works fine. But to apply this behavior to different sprite I need
to track down the sprite's number and to change it everytime, and create
lots of behaviors. I tried to do the following:

Property spriteNum

On beginSprite
currSprite = sprite(spriteNum).member
End

On mouseEnter
currSprite.cursor = 260
End

When I compile (close) the behavior, it yields an error saying that an
operator expected. I wonder what's the problem and how can I fix it
without creating bucnhes of behaviors.

Thanks in advance
Peter

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