Solved

How do I detect the end of an swf via javascript?

Posted on 2008-10-09
2
368 Views
Last Modified: 2013-11-11
I want to present a questionnaire when a person has reached the end of a flash tutorial.  They navigate via fwd/back buttons.  When the last "frame" of the tutorial, I'd like to wait a couple of seconds, then present a questionnaire.  The questionnaire tool is also flash, so I'm not sure if I'll also have issue putting flash on top of flash.
0
Comment
Question by:jaysonwebb
2 Comments
 
LVL 4

Accepted Solution

by:
ckoning earned 500 total points
ID: 22694730
The best way to do that is to use the ExternalInterface to call a JavaScript function that initiates the questionnaire code. See the adobe livedocs for more information on how to use ExternalInterface.
0
 

Author Closing Comment

by:jaysonwebb
ID: 31504724
Thanks for the reply.  I have looked at ExternalInterface and it seems to be the answer, though it's a bit more complicated than I hoped for :-)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now