Solved

Controling flash from Javascript

Posted on 2000-03-09
4
168 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Bummer...
It would be a waste of effort to do that...
Oh well...  Thanks anyway Dan.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
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,…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

771 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

16 Experts available now in Live!

Get 1:1 Help Now