gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-dev] sprite_instance::restart() and properties


From: Udo Giacomozzi
Subject: [Gnash-dev] sprite_instance::restart() and properties
Date: Wed, 18 Apr 2007 21:15:44 +0200

Strk, you probably can answer this.

In

  void sprite_instance::restart()

there is a call to

  clearProperties();

which clears the "_members" list which contains all the getter-setters
for standard properties like "_x", "_parent" etc. However, these
gettersetters are *not* restored in construct() since the only place
where attachMovieClipProperties() is being called is the
sprite_instance constructor. 

Is this by design?

This is the reason why no built-in properties work when a movieclip is
the child of a button. The character instances for the button are
restarted and this makes them loose all their built-in properties.

Took me quite a while to figure this out.

Udo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]