0

I'm building an application in HTML5 with TypeScript and in that application I have created a component to close the session if it's idle for a long time.

Some screens are still in Flex and consequently I'm putting these screens in HTML5 iframes for them to use, whereas I don't migrate to HTML5 + TS.

Is there any way to send some Flex event to html5 so that the component, which closes the session, knew that the flex screen is being used? Or save some information in the Local Storage?

One of the ideas I had was for the component to show a modal asking if the user wants to end the session or not with a 10 second timer.

4
  • 1
    Why would you want to do that? Nobody runs a flash player anymore... Commented Jan 24, 2018 at 19:09
  • 2
    Avoid iframes like they're rapists Commented Jan 24, 2018 at 19:13
  • 1
    It's legacy my friend. ¯_(ツ)_/¯ Commented Jan 24, 2018 at 19:17
  • @EvertonJosé You dropped this: \ Commented Jan 24, 2018 at 19:46

1 Answer 1

1

You want to use ExternalInterface.call. That will let you run a function in JS and then return its value.

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.