Access of undefined property when adding webservice eventlistener

By rvanderkooy | Feb 21, 2009

actionscript3

Hello,
For some reason i can’t figure what is wrong with this code.

Code:

import generated.webservices.GetInfoPageByTokenResultEvent;
                        import generated.webservices.EdeServices;
                       
                        public function GetInfoPageCompleted(event:GetInfoPageByTokenResultEvent):void
                        {
                                        //InfoHeader.text = event.result.Title;
                        }
                       
                        public var myClient:EdeServices = new EdeServices();
                       
                        myClient.addgetInfoPageByTokenEventListener(GetInfoPageCompleted);
                       
                       
                        private function GetInfoPage(token:String):void
                        {
                                myClient.getInfoPageByToken(token);
                               
                        }


Every time i try to run it i get the following errors..

1120: Access of undefined property GetInfoPageComplete.
1120: Access of undefined property myClient.

This is driving me nuts! any help would be greatly appreciated.

Thanks in advance,
Ryan

actionscript3

Please reply at our Forum

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

© 2007 ActionScript 3.0