Desculpe
Esqueci de postar o imagepop que é parte do repeater...

IMAGEPOP.MXML
<?xml version="1.0" encoding="utf-8"?>
<!-- Fancy Gallery by Randy Drisgill 2006 - [EMAIL PROTECTED] -->
<!-- uses reflection's by Trey Long and updated by Narciso Jaramillo -->

<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml";
xmlns:reflector="com.rictus.reflector.*" creationComplete="init()">
        <mx:Script>
        <![CDATA[
                import flash.net.navigateToURL;
                import mx.effects.easing.*;
                import mx.core.Application;
                
                [Bindable]
                public var imgLink:String;
                [Bindable]
                public var imgTip:String;
                [Bindable]
                public var imgSource:String;
                [Bindable]
                public var imgTitle:String = '';
                [Bindable]
                private var myminHeight:int = 160;
                [Bindable]
                private var myminWidth:int = 200;
                [Bindable]
                private var mymaxHeight:int = myminHeight * 2;
                [Bindable]
                private var mymaxWidth:int = myminWidth * 2;
                
                //show tha image fullsize to start with
                public var maximize:Boolean = false;
        
        //doit's try to stop the ping ponging of image sizes as the mouse
moves around
        private var doit:Boolean=true;
        private var doit2:Boolean=true;
        
                private function init():void {
                        if(maximize){
                                panel.width = mymaxWidth;
                                panel.height = mymaxHeight;
                        }
                }
                
        /*
        public function turnOffMouse(dontDo:Boolean):void{
                panel.mouseEnabled=!dontDo;
                        panel.mouseFocusEnabled=!dontDo;
        }
        */
    
        //seperate functions for the show and hide effects to help control
ping pongs
        private function showEffect():void {
                if(!show.isPlaying&&!hide.isPlaying){
                        doit = false;

                        Application.application.resetter(panel.title);
                        
                    show.end();
                    show.target=panel;
                    show.heightFrom = myminHeight;
                    show.heightTo = mymaxHeight;
                    show.widthFrom = myminWidth;
                    show.widthTo = mymaxWidth;
                    show.hideChildrenTargets = [theImg,myReflector];
                    show.play();
                    
                    panel.mouseEnabled=true;
                    panel.mouseFocusEnabled=true;
                
                doit = true;
            }
          }
         
        //seperate functions for the show and hide effects to help control
ping pongs
        private function hideEffect():void {
                if(!hide.isPlaying){
                        doit2 = false;
                
                    hide.end();
                    hide.target=panel;
                    hide.heightFrom = mymaxHeight;
                    hide.heightTo = myminHeight;
                    hide.widthFrom = mymaxWidth;
                hide.widthTo = myminWidth;
                    hide.hideChildrenTargets = [theImg,myReflector];
                    hide.play();
                    
                    doit2 = true;
                }
          }
        
        //call a url from the image
        public function NavigateToURLExample(url:String):void {
            if(url!=null){
                var request:URLRequest = new URLRequest(url);
                        flash.net.navigateToURL(request);
            }
        }

        //reset the image size
        public function myReset():void {
                panel.width = myminWidth;
                        panel.height = myminHeight;
        }
                
        ]]>
    </mx:Script>
        
        <mx:Resize id="show"
easingFunction="mx.effects.easing.Exponential.easeInOut" duration="400"/>
        <mx:Resize id="hide"
easingFunction="mx.effects.easing.Elastic.easeOut" duration="300"/>
        
        <mx:Panel mouseChildren="false" borderStyle="solid"
backgroundColor="#000000" borderThickness="4" color="white"
roundedBottomCorners="true" 
                id="panel" mouseOver="showEffect();"
mouseOut="hideEffect();" height="{myminHeight}" width="{myminWidth}" 
                title="{imgTitle}" click="NavigateToURLExample(imgLink);"
useHandCursor="true" toolTip="{imgTip}" horizontalScrollPolicy="off"
verticalScrollPolicy="off">
                
                <mx:Canvas>
                        <mx:Image id="theImg" width="{panel.width-30}"
height="{panel.height-30}" source="{imgSource}" scaleContent="true"
visible="false" complete="pbar.visible=false;event.target.visible=true;"  />
            <mx:ProgressBar id="pbar" width="200" source="theImg"/>
        </mx:Canvas>

                </mx:Panel>
        
        <reflector:Reflector id="myReflector" target="{panel}" alpha="0.23"
falloff="0.67" blurAmount="0.29"/>
                
</mx:VBox>

-----Mensagem original-----
De: [email protected] [mailto:[EMAIL PROTECTED] Em nome de João
Fernandes
Enviada em: segunda-feira, 28 de janeiro de 2008 14:29
Para: [email protected]
Assunto: [riapt] Re: Estou meio sem rumo... resetter


André, onde é que estás a chamar a dita função? No código fornecido não 
está nenhuma chamada a essa função.

-- 

João Fernandes

http://www.onflexwithcf.org
http://www.riapt.org




--~--~---------~--~----~------------~-------~--~----~
Recebeu esta mensagem porque está inscrito em Grupo "Mailing List da Comunidade 
Portuguesa de Desenvolvimento de RIAs - www.riapt.org" do Grupos Google.
 Para enviar mensagens para este grupo, envie um email para 
[email protected]
 Para anular a inscrição neste grupo, envie um email para [EMAIL PROTECTED]
 Para mais opções, visite este grupo em 
http://groups.google.com/group/riapt?hl=pt-PT
-~----------~----~----~----~------~----~------~--~---

Responder a