Solved

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

Posted on 2008-10-09
2
372 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

776 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