Solved

Controling flash from Javascript

Posted on 2000-03-09
4
171 Views
Last Modified: 2010-08-05
Is there any way I can get a flash movie to go to a particular scene  using javascript ?

I've read a little about the FS COMMAND but this seems to be for communication in the other direction...  

There must be a way dammit !

If there isn't a way, please tell me, instead of just leaving the question unanswered and i'll give you the points anyway !
0
Comment
Question by:coopa
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
SuperMario earned 100 total points
ID: 2603206
You need to study the FlashApi guide located somewhere in your Installation, in folders something like:

Flash 4 -> Players -> Flash Java Players

Basically, in Javascript, you have to create a new FlashApi object with your .swf filename in the constructor and then call the necessary methods to suit your needs.

Do I sound techy? Good. I'm a programmer. =)

Please read that guide. FS Command is used *only* to send commands from Flash to the host environment (even the projector... this is useful for automatically setting the movie in full screen, etc).

Here's another hint: It's best used in an applet. If you can call methods from a class in JavaScript then you're good to go.

-Dan
0
 
LVL 2

Author Comment

by:coopa
ID: 2603703
Thanks Dan...  I'll see what I can do.

> Do I sound techy?
Nope, i'm following what you are saying... Just worried that there is a hell of a lot of work ahead of me to achieve something very simple...

It's easier to convert my entire intranet site to flash than to use this method to install a "mouseover moves flash move to nwe scene..."

Oh wait one minute !!!
Is there a way i can change the flash movie (i.e. load in another .swf) from javascript....

You don't have to answer this....  You got the points.
0
 
LVL 3

Expert Comment

by:SuperMario
ID: 2605003
Of course, but once again, you have to create the FlashApi object to do anything to Flash via Java. =)

-Dan
0
 
LVL 2

Author Comment

by:coopa
ID: 2605014
Bummer...
It would be a waste of effort to do that...
Oh well...  Thanks anyway Dan.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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): …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

856 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