Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: FSCommands not working |
| From: | Vinai Kopp |
| Date: | Sun, 13 Sep 1998 08:33:22 +0100 |
Hi Nigel,
thanks for the help, but swLiveConnect is set to "True" (was set all the
time) and I allready read the technote (do you mean #12059 ?). TGotoLabel
doesnt do anything either.
When I call one of the functions from a html Button they work as I expect
them to!
What am I doing wrong?
Can someone point me to some example I could study (besides, I studied the
MM Example with the Frame Navigation Buttons)?
>
>Did you place swLiveConnect="True" in your embed tag ? I guess not.
>For Flash3 specific FSCommands locate the technote "Scripting with
>Flash" at Macromedia. You missed that one, and some good docs on
>FlashCentral also, anyway the command you want is TGotoLabel(Target,
>Label).
>
Here is my original post again to put this one into context:
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, John Croteau
Replies
FLASH: FSCommands not working, Vinai Kopp
Re: FLASH: FSCommands not working, Nigel Randsley-Pena
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

