gree / lwf

LWF - Lightweight SWF
http://gree.github.com/lwf/
zlib License
627 stars 167 forks source link

[Unity] Solution about main movie (this.lwf.root.name) #95

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hello eveybody ! I using code: void InitRootMovie () { this.GotoAndStopMovie (this.lwf.rootMovie.name, 3, false); }

  1. Does this code goto frame 3 of main movie in picture?
  2. How to invisible main movie (root movie) after play another movie?

mainmovie

splhack commented 10 years ago
  1. Yes. The name of the root movie is always "_root".
  2. If you set the root movie invisible, the whole movies are invisible. So you may need to create an empty frame of your movie which you want to hide, and then go to the frame.