Genevieve Young <[EMAIL PROTECTED]> wrote:
> This is the script I used:
>
> global gLastMarker
>
> on mouseUp me
> go to frame gLastMarker
> saveMarker
> end
Hi Genevieve,
If this is the entire script, then it is not the culprit.
> Is there anything wrong with this?
I don't know what you are doing in the saveMarker handler, but I suspect
that it is something like this:
on saveMarker
global gLastMarker
gLastMarker = marker(0)
end
In this case, your feature will only ever return to the same place, since
the "go to frame gLastMarker" will remember the frame you have gone back to,
not the one you were at when you activated the mouseUp handler.
on mouseUp me
tMarker = marker(0) -- Remember current marker
go to frame gLastMarker -- Go back to the previous one
saveMarker(tMarker) -- Remember where we were
end
on saveMarker(aFrame)
global gLastMarker
gLastMarker = aFrame
end
If you are doing something different, then you can ignore the above. If you
are trying to implement a History feature where users can retrace their
steps through your movies, you could look at the Jump Back Button and Jump
Forward Button behavior in the Controls Library Palette. Better yet,
download the improved versions (History and Resume) which you can find at:
>> http://perso.planetb.fr/newton/History.dir
The improved versions allows users to navigate to a new frame in any way,
and still find their way backwards and forwards.
> I deleted it so that I could place a on getPropertyDescriptionList on it.
You don't need to delete a behavior before placing a
getPropertyDescriptionList() handler in it. 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".
To change the settings for a behavior that is already attached to a sprite:
1. Select the sprite
2. Open the Property Inspector
3. Click on the Behaviors tab (the littel cog)
4. Double-click on the name of the behavior you wish to modify
Cheers,
James
[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!]