This content has been marked as final. Show 3 replies
Post the Flex ExternalInterface callback code.
Okay! this was posted by mistake...I have more explanation to the problem...
Possible cause to the problem:
I tried to validate my html file and checked different character encoding...probably an overkill! Still, no improvement.
There are several other options to pass input variables to the Flex application.
1. Flash Satay method
3. Flashvars...(ruled out this one. Because it is included in param tag which some browsers totally ignored. Besides, I think Flashvars is static, what if I want to change my input value?)
But if I use these, will it fix my problem? Any suggestions?
Hey Tracy! Thanks for replying!
Here is the ExternalInterface code. I am working on Yahoo API. So you will find some API calls there.
public var question:Question;
public function myFunc(s:String):void
params.results = 50;
params.type = "resolved";
private function setupCallbacks():void
private function isContainerReady():Boolean
var result:Boolean = ExternalInterface.call("isReady");
public function startUp():void //initial call made hwn the application starts
var isAvailable:Boolean = ExternalInterface.available;
var containerReady:Boolean = isContainerReady();
// If the container is ready, register the SWF's functions.
trace("External interface is not available for this container.");
// Define the Event Listeners for the Answer Service
searchService.addEventListener(AnswersResultEvent.QUESTIONS_SEARCH, questionsResult, false, 0, true);
searchService.addEventListener(AnswersErrorEvent.ERROR_EVENT, showError, false, 0, true);