Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   Flex (http://www.flasher.ru/forum/forumdisplay.php?f=84)
-   -   Flex, gotoAndStop и элементы на stage (http://www.flasher.ru/forum/showthread.php?t=149955)

Robotex 09.02.2011 17:45

Оказалось надо делать вот так:

Код AS3:

                public function showFeaturedItemToolTipAt(text:String):void
                {
                        this.addEventListener(Event.RENDER, renderHandler, false, 0, true);
 
                        function renderHandler(event:Event):void
                        {
                                var format:TextFormat        = new TextFormat(FontManager.LaCartoonerie, 12, 0x000000, true);
                                time.visible == false;
                                time.defaultTextFormat = format;
                                time.embedFonts = true;
                                time.text = text;
                                time.width = time.textWidth + 5;
                                var whiteSpace:int = bg.width - (time.width + fbIcon.width + 5);
                                time.x = bg.x + whiteSpace/2;
                                fbIcon.x = time.x + time.width + 5;
                                time.visible == true;
 
                                this.removeEventListener(Event.RENDER, renderHandler);       
                        }
 
                        StageReference.stage.invalidate();
 
                        gotoAndStop("featuredItemToolTip");
                }



Часовой пояс GMT +4, время: 21:05.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.