http://curtismorley.com/2008/05/08/flash-flex-3-error-1061-call-to-a-possibly-undefined-method-gotoandstop-through-a-reference-with-static-type-flashdisplaydisplayobject/
Description: AS3 error 1061 will pop up when you trying to referencee an object from within a function that receives an Event. When you do this it will reference the DisplayObject or if you call out to this.parent rather than event.target.parent it will reference the DisplayObjectContainer which doesn't have a lot of methods with it. Fix: One solution to solve Flex/Flash Error 1061 is to make sure that you are using the event that is passed as the target by using On 2 abr, 10:54, George Queiroz <[email protected]> wrote: > o erro é de compilação na linha do return. > > 2009/4/2 Lucas Araujo <[email protected]> > > > > > Como você está chamando esse método? Se a sua classe chama, por exemplo, > > "MinhaClasse", você deve usar assim: > > > MinhaClasse.createPopup(); // Porque createPopup é uma função estática > > > E não assim: > > > var obj:MinhaClasse = new MinhaClasse(); > > obj.createPopup(); > > > Para mim, parece que é isso o problema > > > Abraço, > > Lucas Araujo, > >http://socialbel.com/user/LucasAraujo > > > 2009/4/2 George Queiroz <[email protected]> > > > Pessoal, tenho esse método. > >> ** > >> *public* *static* *function* createPopup(parent:DisplayObject, > >> popup:Class):IFlexDisplayObject > > >> { > > >> *return* PopUpManager.createPopup(parent, popup, *false*); > > >> } > > >> e recebo o erro de compilação: > > >> Description Resource Path Location Type > >> 1061: Call to a possibly undefined method createPopup through a reference > >> with static type Class. PopupUtils.as fantasias_web/src/infra line 12 Flex > >> Problem > > >> Não entendi. > > >> George --~--~---------~--~----~------------~-------~--~----~ Você recebeu esta mensagem porque está inscrito na lista "flexdev" Para enviar uma mensagem, envie um e-mail para [email protected] Para sair da lista, envie um email em branco para [email protected] Mais opções estão disponíveis em http://groups.google.com/group/flexdev -~----------~----~----~----~------~----~------~--~---
