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.

I have a flash movie embedded in the page. I have set allowScriptAccess to always using javascript's setAttribute. Now, when I try to use GetVariable on variables in the flash object, null is returned every time. No, I cannot use ExternalInterface, I certainly would if I could.

Why might GetVariable be returning null when I am trying to access variable that do exist that have a value? Any ideas? I am using Google Chrome and ActionScript 3.

share|improve this question
    
most of nulls are made by illegal casts. Are you trying to convert an object of JavaScript with a value of some number to a numeric value in Flash? Because in Javascript theres no strict type and everything is received as a String, if you are trying to type cast it incorrectly you will get a null. –  Creative Magic Nov 11 '13 at 2:38
    
@CreativeMagic No, I am using GetVariable so I am not giving flash any values, only trying to receive them. The only parameter that I give is the string that is the variable name in flash. –  user1838811 Nov 11 '13 at 17:34

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.