Solved

Controling flash from Javascript

Posted on 2000-03-09
4
172 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Title # Comments Views Activity
Action Script coding 1 186
Array is not working ( AS2 ) 4 166
blocked plugin flash 5 123
Adobe Products Forum? 3 165
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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,…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

749 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