Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Doubt!!!

1 view
Skip to first unread message

Schkrab

unread,
Mar 3, 2010, 8:12:10 AM3/3/10
to as3co...@googlegroups.com
Hello there.
Im having a problem with action script... i dont know if this is a right group for this problem but im gonna try... hehe
i have a system that have some sprites and movieclips in screen...
in each sprite i can do an event... the problema is:
in the beggining i call an animation movieclip and while this movieclip is running all the other object must be "enabled false" which means that any event on them must not have any effect...
someone knows how can i block this effects while running a movieclip?
Thanks.

ÑØC†URÑÄL

unread,
Mar 5, 2010, 2:36:24 AM3/5/10
to ActionScript 3 Core Library
Hi Schkrab,
Yes you can do this,
1. add the complete listener on the movie
2. disable all the buttons/clickable things and then start the movie.
3. on the handler of the complete event enable what ws disabled.

Another option is to maintain a boolean"bIsMoviePlaying" and checking
this in every other click handler, but I will suggest that previous
one is much better and cleaner solution.

Hope this helps :)

Kusha W

unread,
Mar 5, 2010, 9:11:20 AM3/5/10
to as3co...@googlegroups.com
Hi all
one more silly option is create a movie clip that covers the full screen and give it a blank rollover function and give useHandCursor to false and when ever you want to enable all the other buttons disable this Movie. Note that the movie you create should be on top of all the buttons.

this sounds silly but will definitely work. 

Thanks
Kusha

--
You received this message because you are subscribed to the Google Groups "ActionScript 3 Core Library" group.
To post to this group, send email to as3co...@googlegroups.com.
To unsubscribe from this group, send email to as3corelib+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/as3corelib?hl=en.




--
Kusha.W
Sr. Engineer - Specialist
Mobile : 9848371560

Schkrab

unread,
Mar 5, 2010, 2:45:09 PM3/5/10
to as3co...@googlegroups.com
Well, i've solved the problema by creating a sprite with alpha = 0... then i've positioned that sprite in all the place and after animation i've removed the sprite.
thanks for all.
Igor Schkrab Alves, Desenvolvedor
Sun Certified for Java Programmer 5.0

Instituto Recôncavo de Tecnologia

Av. Tancredo Neves, 805, 3º andar
41820-012 - Salvador - Bahia
Telefone: +55 71 3342-7181

www.reconcavotecnologia.org.br
Reply all
Reply to author
Forward
0 new messages