Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
swfobject.embedSWF( .path + '/swf/TestApp.swf', id, "100%", "100%",  
      MINIMUM_REQUIRED_FLASH_PLAYER_VERSION, null, flashVars, params, null,
                function (event) {
                    if (event.success) {
                        _self.flashObject = event.ref;
                        ...
                       }
else{

    ...

}

later when I call

_self.flashObject.mapFunction(name,params) its giving below error:

Object # has no method 'mapFunction'\n at Object.

Please share if anybody has any inputs... its blocking me to proceed with my development...

Thanks in advance...

share|improve this question
    
You're using dot notation, and the object does'nt have a mapFunction method. –  adeneo Feb 13 '13 at 13:17
    
Thanks for your inputs. Is there any way to check object is having mapFunction or not? –  user1398291 Feb 14 '13 at 11:23
    
_self.flashObject.hasOwnProperty('mapFunction') will help to check it I guess. –  user1398291 Feb 15 '13 at 5:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.