>>My code doesn�t work 99% of the time.
>
>Time and experience will change that. I've been programming 20 years, and 
>I've gotten it down to where my code only fails 90% of the time.


Sorry, I really don�t think that your failure rate is so low.  I would 
assume that it is much higher than that.   How about 99.9%?



I keep getting this error message.  Could you help me please? I would 
appreciate it very much.

When I try to attach a script to a sprite, I receive this message:

Some of the behaviors you selected cannot be attached to the sprites you 
created

Continue   Cancel

If I chose continue, the script doesn�t run.  There is an error message. I 
can�t even use the debugger.

What is wrong?



>Ok, this will work:
>
>repeat with i = 1 to 100
>   repeat with sprNum = 1 to 20
>     sprite(i).locH = sprite(i).locH - 1
>   end repeat
>end repeat


I placed this on my link to the next page arrow button.  However, when I run 
this code through the debugger and set the breakpoint at

   repeat with i = 1 to 100

I get the following messages

i = <void>
sprNum = <void>

Why are my variables void?


>>>I'm not being intentionally obtuse, but 'string' can have two meanings.
>>>One is to convert something to a string--e.g., string(10) returns the 
>>>string "10" instead of the number 10.
>>
>>Could you elaborate, please? I do not understand.
>
>Look up the string() function in the Lingo dictionary. It's used to convert 
>other data types to a string. There is a difference between the string "10" 
>and the number 10. One is a character string, and the other is a number 
>that you can do math with.

This is what is stated in the Lingo Dictionary:

Function; converts an integer, floating-point number, object reference, 
list, symbol, or other nonstring expression to a string.
        Example This statement adds 2.0 + 2.5 and inserts the results in the field 
cast member Total:

member("total").text = string(2.0 + 2.5)

    I don�t quite understand this.

However, I read this in Gary Rosenzweig�s book Pg 241

The other basic  type of variable is the string, which stores a series of 
characters.  Strings can be as simple as a  single character , as complex as 
words, lines, or pages of text, or can even contain no characters at all.

I presume that this is what you mean.  But what does this have to do with 
the number 10?


>>The getPropertyDescriptionList is used as a function to create a property 
>>list ? Is this what you mean?
>
>Close. getPropertyDescriptionList does create a property list which is used 
>to initialize some property values for a sprite behavior.

So it is used only for sprites?

And the description list can be empty in the beginning?


If I wanted to use the getPropertyDescriptionList for going to any of the 
markers in my movie, is it possible?


I am trying to apply what you have taught me:

  on get PropertyDescriptionList
if the currentMarker = 0  then exit

return\

[  \
#pMarker: \

[ \

#comment :   �Destination marker� \
#format :   #marker,  \
#default :  -- what do I put here?

] \
]

end  getPropertyDescriptionList

I�m sorry, but  I am still  not sure.


a.      Am I declaring the correct properties?
b.      The #format is a marker and not an integer?
c.      Do I initialize any variables / declare any property?


Thanks very much

Genevieve



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


[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