Re: lingo-l not statement

2002-01-25 Thread Andreas Gaunitz P11

hey list --
simple question.. i thought i saw something a while ago... a simple toggle
using a not to swap sprites but i am really getting the syntax wrong. can
anyone help? heres the code

on mouseUp me
   member(music_on).name = not member(music_off).name
end

i know i am not calling the sprites right but i have spent a good portion of
the last 2 hours looking for where i saw the reference and have come up
empty. thanks


Note that the above statement using the Name property will not switch 
cast members, only change the members' names.


About not:
Not can only switch between 1 and 0 (True and False). not will 
work best with statements that toggles True/False conditions, like

on exitFrame me
   the visible of sprite(me.spriteNum) =\
   not the visible of sprite(me.spriteNum) -- Blinking sprite!

   go the frame
end


However, if you know you are using members 10 and 11 you could create 
a True/ Flase condition by offsetting the member numbers:

on mouseDown me
   sprite(me.spriteNum).member = \
 not (sprite(me.spriteNum).member.memberNum - 10) + 10 -- Mem 10 or 11
end


The problem is that you need to hard-code the member number. If you 
want a more general script (that works with any combination of 2 
members in sequence) here's a modified version of JHM's suggestion:

on mouseDown me
   sprite(me.spriteNum).member = sprite(me.spriteNum).memberNum\
   + [1, -1][sprite(me.spriteNum).memberNum mod 2 + 1] -- Toggling member num
end


-A.
[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!]



lingo-l Change Full Screen or ina window in run time.

2002-01-25 Thread Renato Tegon Forti

As set in run Time if the projector comes in: 

Full Screen 
or 
in a window

thanks. 


--
Renato Tegon Forti
[EMAIL PROTECTED]



[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 not statement

2002-01-25 Thread Carol Mahaffy

this worked perfectly! thanks guys for the input. Is this considered like a
push or pop in a list? I am asking that beasuse my strength is in
javascript and i would have never thought to use that logic for solving
this. thanks again guys
-- carol

 --
 From: Daniel Plaenitz
 Reply To: [EMAIL PROTECTED]
 Sent: Friday, January 25, 2002 6:30 AM
 To:   [EMAIL PROTECTED]; Lingo List (E-mail)
 Subject:  Re: lingo-l not statement
 
 At 18:32 24.01.2002 -0500, Carol Mahaffy wrote:
 hey list --
 simple question.. i thought i saw something a while ago... a simple
 toggle
 using a not to swap sprites but i am really getting the syntax wrong.
 can
 anyone help? heres the code
 
 on mouseUp me
member(music_on).name = not member(music_off).name
 end
 
 i know i am not calling the sprites right but i have spent a good portion
 of
 the last 2 hours looking for where i saw the reference and have come up
 empty. thanks
 --carol
 
 Carol,
 
 supposed you have named the members 0 and 1 you might use a behavior 
 like this one:
 
 ---
 property mySprite
 
 on beginsprite me
mySprite = sprite(me.spritenum)
 end
 
 on mouseUp me
mySprite.member = \
member([0,1][(not([0,1].getPos(mysprite.member.name)-1)+1)])
 end
 ---
 
 best regards
 
 daniel plaenitz
 [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!]



lingo-l creating QT with multiple videotracks: QtPro crashes when using Sorenson 3

2002-01-25 Thread Richard Tribe

A little OT but following on from the earlier inquiry...

Has anyone else found that adding tracks in QtPro is very unstable if the
video track was compressed with Sorenson 3?

I've contacted Sorenson about this and they say they will get back to me. I
have no problem if I compress the same video material with Sorenson 2.
Sorenson 3 Qts also playback fine when I don't try to add tracks.

I haven't been able to get on the SVUsers List for Sorenson Video since they
changed their email server last year.

thanks
--
Richard Tribe, BBC Interactive dept.

 --
 From: Andreas Gaunitz P11
 Reply To: [EMAIL PROTECTED]
 Sent: Tuesday, January 22, 2002 13:59 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: lingo-l How to create a QT with multiple video tracks?
 
 OK, using google.com to search news groups I probably found the 
 answer: I should use Quicktime Pro.
 
 -A.
 
 


This e-mail (and any attachments) is confidential and may contain personal
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system, do not use,
copy or disclose the information in any way nor act in reliance on it and notify
the sender immediately. Please note that the BBC monitors e-mails sent
or received. Further communication will signify your consent to this.

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



lingo-l lingo-lQuicktime ? Best compression program

2002-01-25 Thread Matie Wells

Hello List,

Whats the best compression program to use for quicktime? The reson im asking
is that I need to match the video in the director movie to background color.
I tried using mpegs but thay dont keep a color value between computers. The
other problem is that I have a lot of video in the project. So, Can A
quicktime movie be compressed down to the size of an mpeg or close to it?
And if so whats the best program that some of you have used?
Thanks for your help,
Matie Wells

[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 lingo-lQuicktime ? Best compression program

2002-01-25 Thread John At Home

on 1/25/02 3:12 PM, Matie Wells at [EMAIL PROTECTED] wrote:

 And if so whats the best program that some of you have used?
 Thanks for your help,
 Matie Wells

I've had great results with Media Cleaner Pro from Terran. And Sorenson is
the best codec I've used.

Hope this helps,
JRS

  
===
John R. Sweeney Jr.([EMAIL PROTECTED])
Interactive Multimedia Developer/
Digital Media Specialist

OnDemand - Interactive, Inc.
847.651.4469 (cell)  847.310.5959 (office/fax)
=== 

[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 not statement

2002-01-25 Thread Irv Kalb

Carol, et al,

While these solutions do work, they are not very clear about what is 
really going on.  I've always felt that it is much more important to 
write code that can be read easily both by yourself and by others 
that may follow, than to try to write an obscure single line that 
works, but is unreadable.  It is also a good goal to write code that 
is generic, that is, it will work in many cases.

You are basically talking about a toggle button - a button with two 
states.  There are two parts to this, what you see on the screen, and 
the internal state of the button.  First thing to do is to come up 
with a naming convention for the two states, for example Some base 
name on and Some base name off.  Given a naming convention like 
this, here is a start at the behavior (with minor testing):

property pMemberOn
property pMemberOff
property pState -- TRUE for on, FALSE for off
property spriteNum

on beginSprite me
-- First determine if we are starting in the on or off state
-- and find the matching alternate state button
   theName = sprite(spriteNum).member.name
   theBaseName = word 1 of theName
   theCurrentState = word 2 of theName
   if theCurrentState = on then
 pMemberOn = sprite(spriteNum).member
 pMemberOff = member(theBaseName   off)
 pState = TRUE
   else
 pMemberOff = sprite(spriteNum).member
 pMemberOn = member(theBaseName   on)
 pState = 0
   end if
end

on mouseUp me
   -- Now toggle the state and show the new button on the screen
   pState = not(pState)
   if pState then
 sprite(spriteNum).member = pMemberOn
   else
 sprite(spriteNum).member = pMemberOff
   end if
   -- now send out a special call to a sibling sprite to say that the 
toggle was hit.
   sendSprite(spriteNum, #mHitToggleButton, pState)
end

This way you can re-use this same behavior on every toggle button in 
your project.

When you attach this behavior, then you need to attach another 
behavior to say what should be done when this button is hit. 
Something like this:

on mHitToggleButton me, TrueOrFalse
   if TrueOrFalse
  -- do something here
   else
  -- do something else here
   end if
end


Hope this helps.

Irv


At 11:19 AM -0500 1/25/02, Carol Mahaffy wrote:
this worked perfectly! thanks guys for the input. Is this considered like a
push or pop in a list? I am asking that beasuse my strength is in
javascript and i would have never thought to use that logic for solving
this. thanks again guys
-- carol

  --
  From:   Daniel Plaenitz
  Reply To:   [EMAIL PROTECTED]
  Sent:   Friday, January 25, 2002 6:30 AM
  To: [EMAIL PROTECTED]; Lingo List (E-mail)
  Subject:Re: lingo-l not statement

  At 18:32 24.01.2002 -0500, Carol Mahaffy wrote:
  hey list --
  simple question.. i thought i saw something a while ago... a simple
  toggle
  using a not to swap sprites but i am really getting the syntax wrong.
  can
  anyone help? heres the code
  
  on mouseUp me
 member(music_on).name = not member(music_off).name
  end
  
  i know i am not calling the sprites right but i have spent a good portion
  of
  the last 2 hours looking for where i saw the reference and have come up
  empty. thanks
  --carol

  Carol,

  supposed you have named the members 0 and 1 you might use a behavior
  like this one:

  ---
  property mySprite

  on beginsprite me
 mySprite = sprite(me.spritenum)
  end

  on mouseUp me
 mySprite.member = \
 member([0,1][(not([0,1].getPos(mysprite.member.name)-1)+1)])
  end
  ---

  best regards

  daniel plaenitz
  [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!]


-- 

Lingo / Director / Shockwave development for all occasions. 
  
   (Home-made Lingo cooked up fresh every day just for you.)
[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!]



AW: lingo-l lingo-lQuicktime ? Best compression program

2002-01-25 Thread Michael von Aichberger

Grimmwerks wrote (about Sorenson codec):

Nice small files yet look fantastic; you can even scale them
up and they look great.

Interesting. We also use Sorenson codec and find that Sorenson coded video
looks great, but only as long as it is NOT SCALED.

As soon as you scale it, you have nasty horizontal stripes, - looks similar
to combining two half frames of video into one still frame. And this doesn't
look great at all. The effect is clearly visible even if the footage was
taken in full frames.

And this is a specific behaviour of Sorenson. Whereas other codecs give you
other artefacts. In my experience for scaling there's nothing better than
MPEG.

Michael von Aichberger
www.aichberger.de

[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 lingo-lQuicktime ? Best compression program

2002-01-25 Thread marc real

Use sorenson for quicktime at 15 fps(frames per
second)at 320x240 frame size.
it'd worked pretty good on all my projects!
--- Matie Wells [EMAIL PROTECTED]
wrote:
 Hello List,
 
 Whats the best compression program to use for
 quicktime? The reson im asking
 is that I need to match the video in the director
 movie to background color.
 I tried using mpegs but thay dont keep a color value
 between computers. The
 other problem is that I have a lot of video in the
 project. So, Can A
 quicktime movie be compressed down to the size of an
 mpeg or close to it?
 And if so whats the best program that some of you
 have used?
 Thanks for your help,
 Matie Wells
 
 [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!]


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.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: lingo-l not statement

2002-01-25 Thread Jakob Hede Madsen

At 12:38 -0800 25/01/02, Irv Kalb wrote:
Carol, et al,

While these solutions do work, they are not very clear about what is 
really going on.  I've always felt that it is much more important to 
write code that can be read easily both by yourself and by others 
that may follow, than to try to write an obscure single line that 
works, but is unreadable.  It is also a good goal to write code that 
is generic, that is, it will work in many cases.

Couldn't agree more... would've never used such a single line beast myself  ;-)

I also store the stateMembers in a beginSprite handler, usually in 
one property list, but while the member-naming scheme may be 
pedadagogic and communicative, I use the sequence of adjacent 
members to signify their state.
So the member actually attached to the button is the default state, 
and the next is down, or whatever and so forth.

This can even be quite self-documenting:

tNummbr = pSprite.member.number
repeat with tState in [#up, #down, #left, #right, #exploding]
   pStateMemberPList[tState] = member tNummbr
   tNummbr = tNummbr + 1
end repeat

The later on:

pSprite.member = pStateMemberPList[pCurrentState]

This suits my style better than the rigorous naming.

Decide on your button-conventions early, and be consistent.

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



lingo-l Rotate, Height, Width, and ACK

2002-01-25 Thread Roy Crisman

Since I just butted my head up against this, I thought I'd share this with 
everyone:

the .width and .height properties of a sprite on stage are of the 
un-rotated image.  If you need the real 'width' of the rotated sprite, you 
have to do the math your self, subtracting the left from right, etc.

Below is an example, of a long menubar shaped sprite, which when rotated 
45 and then 90 degrees, still reports the width and height that the 
unrotate image had.

Only stumped me for a day or two of heavy trigonometry.

-- Welcome to Director --
put sprite(1).rect
-- rect(237, 229, 680, 265)
put sprite(1).width, sprite(1).height
-- 443 36
put sprite(1).rotation
-- 0.
sprite(1).rotation = 45
put sprite(1).rotation
-- 45.
put sprite(1).rect
-- rect(289, 78, 628, 417)
put sprite(1).width, sprite(1).height
-- 443 36
sprite(1).rotation = 90
put sprite(1).rotation
-- 90.
put sprite(1).rect
-- rect(439, 26, 477, 469)
put sprite(1).left, sprite(1).top, sprite(1).right, sprite(1).bottom
-- 439 26 477 469
put sprite(1).width, sprite(1).height
-- 443 36
sprite(1).width = sprite(1).width * 0.25
put sprite(1).rect
-- rect(440, 191, 476, 303)
sprite(1).height = sprite(1).height * 0.25
put sprite(1).rect
-- rect(454, 191, 463, 303)


Now, if you'll excuse me, I've got to go call my highschool trig teacher 
and tell her that I lowe her.

roymeo

-
Roy Crisman
Senior Macromedia Programmer
(585)724-4054
[EMAIL PROTECTED]

[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 Damn, kids...

2002-01-25 Thread grimmwerks



Well howdy Warren! Nice to have you back

[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 Charts

2002-01-25 Thread Kurt Griffin

 I am trying to make some traditionals bussiness chart, like 3D pie char, or
 3D Bar chart. I couldn't find any xtra that do that.
 Does Anyone know a xtra that can help me ?
 any thing?

No need for xtras. Just some lingo knowledge. Check out DOUG
(http://www.director-online.com/), I know they have some solutions for those
types of things (though they may be a bit dated... imaging lingo solutions
would be a better option, IMHO). Just search the site for charts.

-Kurt

[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 Damn, kids...

2002-01-25 Thread Kurt Griffin

 So this is a big, fat THANK YOU to all Macromedian Directorites,
 present and past. Thanks for working on this thing, be it version 4
 or version 7, and thanks for the late nights, shot weekends and
 overwired caffeine fuelled discussions of what to do next with it.

Welcome home, Howdy man. Did you give Tab his props in the creds? It would
be nice to have you back in the fold, as long as you play nice - given the
fact that you've now produced a book for beginners, I would guess you've
mellowed some... please contribute to the list again - just try to ignore
beating on the RTFM questions.

-Kurt

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