Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | FLASH: FSCommands not working |
| From: | Vinai Kopp |
| Date: | Sat, 12 Sep 1998 19:54:14 +0100 |
Hi to all the Flash Gurus out there!
Currently I am working on my first Flash Project (Flash3) and am running
into some Problems using FS Commands. I've read all the Docs I could find
at the Macromedia Website and at FlashCentral on the Topic.
Here is the JavaScript Code I've produced that is not working (some of it
actually is from Aftershock):
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var myFlashMovieObj = InternetExplorer ? myFlashMovie : document.myFlashMovie;
// so far it is Aftershock Code
var TargetFrame = 0;
// in here I store the framenumber I later whant Flash to Jump to
function myFlashMovie_DoFSCommand(command, args) {
if (command == "storetarget") {
TargetFrame = args - 1;
myFlashMovieObj.Play();
//store the framenumber and continue playing
//called when a ButtonInstance is clicked
}
if (command == "wherenow") {
myFlashMovieObj.GotoFrame(TargetFrame);
//tell the Flash movie to jump to the Frame stored in TargetFrame
//called from a Frameaction
}
}
As arguments I pass the framenumber where I want the movie to jump to (by
the way: is there a functon like GotoLabel, a way I can tell a FlashMovie
to jump to a Label by passing the LabelName?) I checked the script for case
sensitivity. I tested the Script on Netscape 4.05 running under MacOS and
WinNT.
Nothing happens when I click the Button. Checking with alert() it seems the
arguments get passed to JavaScript. The Flow of Control seems to dissapear
after it hits the first statement in the if() conditionals.
Any Ideas what's wrong, or what I could do to work around the problem?
Thank's for the help in advance!
Vinai Kopp
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manager
Replies
Re: FLASH: FSCommands not working, Nigel Randsley-Pena
Replies
FLASH: Proposal, NICK BARON
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

