Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Вебмастеру (http://forum.oszone.net/forumdisplay.php?f=22)
-   -   Помощь во Flex (http://forum.oszone.net/showthread.php?t=221080)

Gwai 21-11-2011 12:38 1799770

Помощь во Flex
 
HTML код:

<?xml version='1.0' encoding='UTF-8'?>
<s:Application xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" width="717" height="321" backgroundColor="#FFFFFF" preloaderChromeColor="#FFFFFF" creationComplete="application_creationCompleteHandler()" xmlns:fc="http://ns.adobe.com/flashcatalyst/2009" xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Script>
                <![CDATA[
                        protected function application_creationCompleteHandler():void
                        {
                                Sequence1.play();
                                Sequence1.repeatCount=0;
                        }
                ]]>

 
        </fx:Script>
        <s:states>
                <s:State name="Page1" fc:color="0xcc0000"/>
        </s:states>
        <fx:Declarations>
                <s:Parallel id="Sequence1">
                        <s:Parallel target="{button1}">
                                <s:Fade alphaTo="0" duration="5000" startDelay="4000"/>
                        </s:Parallel>
                        <s:Parallel target="{button3}">
                                <s:Fade alphaTo="0" startDelay="13000" duration="5000"/>
                        </s:Parallel>
                        <s:Parallel target="{button4}">
                                <s:Fade alphaTo="0" startDelay="22000" duration="5000"/>
                        </s:Parallel>
                        <s:Parallel target="{button5}">
                                <s:Fade alphaTo="0" duration="5000" startDelay="31000"/>
                        </s:Parallel>
                        <s:Parallel target="{button6}">
                                <s:Fade alphaTo="0" duration="5000" startDelay="40000"/>
                        </s:Parallel>
                        <s:Parallel target="{button7}">
                                <s:Fade alphaTo="0" duration="5000" startDelay="49000"/>
                        </s:Parallel>
                        <s:Parallel target="{button8}">
                                <s:Fade alphaTo="0" duration="5000" startDelay="58000"/>
                        </s:Parallel>
                        <s:Parallel target="{button9}">
                                <s:Fade alphaTo="0" duration="5000" startDelay="67000"/>
                        </s:Parallel>
                        <s:Parallel target="{button10}">
                                <s:Fade alphaTo="0" duration="5000" startDelay="76000"/>
                        </s:Parallel>
                        <s:Parallel target="{button11}">
                                <s:Fade alphaTo="0" duration="5000" startDelay="85000"/>
                        </s:Parallel>
                </s:Parallel>
               
        </fx:Declarations>
       
        <s:Button skinClass="components.IMG_9997Button3" y="0" id="button2"/>
        <s:Button skinClass="components.IMG_7986Button" y="0" id="button11"/>
        <s:Button skinClass="components.IMG_7976Button" y="0" id="button10"/>
        <s:Button skinClass="components.IMG_9638Button" y="0" id="button9"/>
        <s:Button skinClass="components.IMG_9883Button" y="0" id="button8"/>
        <s:Button skinClass="components.IMG_9835Button" y="0" id="button7"/>
        <s:Button skinClass="components.IMG_9876Button" x="0" y="0" id="button6"/>
        <s:Button skinClass="components.IMG_8000Button" y="0" id="button5"/>
        <s:Button skinClass="components.IMG_7760Button" y="0" id="button4"/>
        <s:Button skinClass="components.IMG_7470Button" y="0" d:userLabel="Button" id="button3"/>
        <s:Button skinClass="components.IMG_7793Button2" y="0" d:userLabel="Button" id="button1"/>
        <s:BitmapImage smooth="true" source="@Embed('/assets/images/Gal/Layer 1.png')" d:userLabel="Layer 1" y="0"/>
</s:Application>

Это простая флеш галерея написанная на Flex. Вопрос состоит в том, как сделать повтор функции бесконечным? На последнем кадре встает и не возвращается к первоначальному кадру... Уже всю голову себе сломал, но не работает и все тут... Вроде все так просто, нужно чтобы галерея не прекращала своей работы вот и все, бесконечное воспроизведение, а это нужно просто сделать повтор функции вот и все...


HTML код:

Sequence1.repeatCount=0;
я думал это поможет, но эффекта никакого абсолютно...

Gwai 24-11-2011 15:55 1802494

Что, всё настолько сложно что ли??


Время: 22:56.

Время: 22:56.
© OSzone.net 2001-