Return to Starling Playback Library

How to read which Frame Label is plaing now?

Questions related to Starling playback library should be asked here.

How to read which Frame Label is plaing now?

Postby dvrbear » October 23rd, 2014, 7:14 am

I have MovieClip with Frame Labels on timeline.

If it is possible - can i read Name of "Frame Label" when MovieClip is plaing or stoped?
User avatar
dvrbear
 
Posts: 26
Joined: October 20th, 2014, 1:42 am

Re: How to read which Frame Label is plaing now?

Postby dvrbear » October 24th, 2014, 12:35 am

Извиняюсь, что на Русском ))) Времени в обрез.

Вообщем если всё-таки нет возможности читать имена Кадров (Frame Labels).
Пришел к такому решению:
Все анимации заканчивать на кадре кратном 100 (например)
atack: 64-100
damage: 182-200
idle_1: 256-300
idle_2: 368-400
idle_3: 429-500

Запускаю анимации по названию кадров - gotoAndPlay("atack") , gotoAndPlay("damage") ...
Приписываю "Контроллер" к персонажам который проверяет (onEnterFrame) делится ли кадр без остатка на 0
и произвожу дальнейшее действие.
User avatar
dvrbear
 
Posts: 26
Joined: October 20th, 2014, 1:42 am

Re: How to read which Frame Label is plaing now?

Postby vadym.mitin » October 28th, 2014, 6:16 am

Hi

We will add getter "currentSequence". I will post update here when it will be implemented.
User avatar
vadym.mitin
 
Posts: 254
Joined: December 4th, 2013, 8:00 am

Re: How to read which Frame Label is plaing now?

Postby vadym.mitin » October 29th, 2014, 7:20 am

Method "currentSequence" added in GAFMovieClip. API reference updated http://gafmedia.com/docs/starling/trunk/index.html
User avatar
vadym.mitin
 
Posts: 254
Joined: December 4th, 2013, 8:00 am

Return to Starling Playback Library

Who is online

Users browsing this forum: No registered users and 3 guests