Accessing an ActionScript function via Javascript

后端 未结 2 578
予麋鹿
予麋鹿 2021-02-09 17:21

I\'m trying to call a function in an action script using the ExternalInterface.addCallback API, but I can\'t seem to get it to work. Here\'s what I have:

A

2条回答
  •  有刺的猬
    2021-02-09 17:52

    I think the issue is a matter of the flash not being loaded. I tried your code using the window.onload event and it worked for me:

    The flash is the same...

    HTML/JS :

    
    
        
            User Identification
        
        
    
            
                
                
            
    
            
        
      
    

    Does that help?

提交回复
热议问题