Solved

Controling flash from Javascript

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Microsoft WSUS 4 97
Flash player 17 install script .bat or .vbs 9 539
Some You tube not working in IE11 on Windows 10 and 8.1 5 73
Actionscript in Flash 3 58
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
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 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.

815 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

9 Experts available now in Live!

Get 1:1 Help Now