>Your true  = 1 and false = 0 ?

Yep. They're the same. I use TRUE and FALSE as a matter of personal 
style--it's easier then to remember that I'm doing a true-false test.

>Something like this?
>
>
>     property  pFlag
>
>  on StartMovie
>  pFlag = 0
>end

Very, very close. You usually wouldn't have a startMovie handler in a 
behavior, but you could use beginSprite:

property pFlag

on beginSprite me
   pFlag = FALSE -- or 0
end

>on enterFrame  me
>if pFlag = 0  then
>--do what I want here once only
>end if
>
>pFlag = 1
>
>end

That would work, yes.

>Are there any  other numbers that I can use, besides true/false?

If I understand your question right, no. Only 1 and 0 are equivalent to 
true and false.

>So, it doesn't matter if no one else understands my code, as long as I 
>myself can understand it?

Oops--didn't mean to imply that. No, you should always write your code so 
anybody can understand it. That includes liberal comments.

I always assume that, at some point, somebody else will pick up my code. I 
could get a better job, be laid off, or break my leg skiing.

>If I ask you why, you won't become frustrated?

No, I won't become frustrated ^_^

But I'm not sure how to answer, because there are really no hard and fast 
rules about when to use a repeat loop. It really depends on the situation. 
If there is a guideline, I would say to loop on frame events when you want 
to (or don't mind being) tied to Director's frame rate. If you wanted to 
move 10 sprites at once, though, I would do it in a repeat loop.

>In your opinion, how long a preparation time do I require?

Wow, Genevieve, I really don't know. Like Brennan said (or was it Bruce), 
the learning process isn't usually a straight line. There are 
breakthroughs--the "aha!" moment.

I don't know you well enough, really to answer the question. I can tell 
that you're determined, so that helps. Other factors--aptitude for this 
kind of thinking; support from family, colleagues, supervisors; courses you 
take, books you read.

Another answer is "the rest of your life." I've been a programmer for 20 
years, and I'm constantly learning new things, especially about Director. 
Like they say, "As long as you're green, you're growing. When you get ripe, 
you start to rot."

>1. In using the getPropertyDescriptionList, I need to keep track of all
>the sprites I animate?

You need to attach the behavior to all the sprites, yes. Is that what you 
mean?

>2. You used the getPropertyDescriptionList  solely for the purpose of 
>setting the distance to move?

The example I gave only sets the one property. You could use it to set any 
number of properties, though. For example, you could set the 
direction--left, right, up, down.

You'll make a lot of mistakes writing a getPropertyDescriptionList handler, 
but don't let it discourage you. You will really have to understand 
property lists and some arcana. It's one of the more advanced Lingo exercises.

>3. When I use the property list, I have to concatenate strings?

Sorry, I don't understand the question. Could you elaborate?



>I apologize if I have offended you in any way.

You're not offensive at all--no need to apologize. We've all needed help 
getting started.


Cordially,

Kerry Thompson


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