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: <lingo-l> 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: <lingo-l> 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: <lingo-l> 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: <lingo-l> 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: <lingo-l> copyPixels and alpha channel
From: =?iso-8859-15?Q?S=E9bastien_Portebois?=
<[EMAIL PROTECTED]>
Organization: =?iso-8859-15?Q?Lexis_Num=E9rique?=
Reply-To: [EMAIL PROTECTED]

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 regular (non-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!]


End of Lingo-l 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!]

Reply via email to