>
>If you are trying to create a behavior that jumps to a specific marker on
>mouseUp, then it should look like this:
>
>property pMarker


  It works! Finally... I have spent days trying to figure out what was wrong 
with my script.

After I removed the script I used and replaced it with yours, I did receive 
this message:

>Director will detect that you
>have changed (in this case, added) the getPropertyDescriptionList() 
> >handler,
>and will ask you if you want to adopt default values for it when you
>recompile the script.

>Generally speaking, it is much safer to click on "Keep current", as >this 
>does not destroy any settings that you may already have.  If you >have just
>added the getPropertyDescriptionList() handler, then you will have no
>previous settings, so in this case you can usefully choose "Use >defaults".

I did just that. Thanks for highlighting it.



I know the  way to learn is by doing it  and after a very kind and helpful 
person gave me the on getPropertyDescriptionList handler for moving sprites, 
which I had difficulty understanding then, I was determined to write my own, 
albeit with so many mistakes.  Sorry!
It was tough going but you make it look so easy.

Let me try to understand what I have learnt:

a getPropertyDescriptionList is written in this way:

1. I first specify the properties I wish to change:

in this case it was the position of the marker - property pMarker.


I can specify as many properties I wish to change here, I just make sure I 
call for it in the event handlers like on mouseUp,  on enterSprite, later 
within this script?

2. then I create the on getPropertyDescriptionList
specifying  under what condition  the behavior should work.

3. then I return the property
with the #comment,#format and #default.

Is this the correct format to write the handler?



>You can use the Watcher window to watch how the value of given expressions
>change over time.  Try typing the following expressions into the entry 
>field
>at the top of Watcher window:
>
>   the frame

answer: the frame = 89

>   marker(0)
answer : marker (0) = 62

>   the markerList.getProp(marker(0))

answer: the markerList.getProp(marker(0)) = "page1"

>
>Now move to different frames by clicking in the Score window (or by any
>other navigation method).
>


yes, my answers are different. By using the on getPropertyDescriptionList on 
different sprites, the relative positions of the markers and its' names will 
correspondingly change.

Thank you. I appreciate your help. I understand it better now.

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