0

I'm using flex2.5 and javascript. I wonder how to connect between flex and javascript as asynchronous. Or I want to use file browser other way.

flex2.5 as:

function A():void{
    var str:string = ExternalInterface.call("start");

    if(str!= null){
        fileref.browse();
    }
}

javascript:

function start(){
    //other program loading..
    if (end){
        return "end";
    }
}

In that case, error is occurred.

1) timeout error.. over 15seconds.

so I used setInterval func but that was not solved. because it will be returned method that called method(function A) for open the file browser

so I wonder how to call without timer or call jsp(javascript) another way or how to open file browser without any action(click or keydown etc)

2
  • Maybe you find an answer in this post: stackoverflow.com/questions/7519112/… Commented Mar 9, 2016 at 7:36
  • I already tried using marshallException.. It doesn't work in Flex2.5.... Commented Mar 9, 2016 at 8:18

1 Answer 1

0

You can callback to flash when your async process is done. Here is an example: How to call flash actionscript callback method from javascript?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.