Solved

Controling flash from Javascript

Posted on 2000-03-09
4
169 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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 use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

864 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

21 Experts available now in Live!

Get 1:1 Help Now