Controlling Flash with Javascript
I have recently designed a site for a client which has not yet launched commercially. The layout involves two frames: a navigation frame (top) and a content frame (bottom). The flash movie resides in the top navigation frame and displays buttons that allow the user to access the five major sections of the site. When the user selects a button in the navigation movie, the content frame loads the appropriate page while the movie goes to and plays the approriate frames to introduce that section of the site. This process works flawlessly and creates a very nice user interface. Because I want the site properly indexed by the major search engines, all five links contained within the flash menu can also be found at the bottom of each content page. However, if the user selects the links at the bottom of the content page instead of form within the navigation movie, the content frame changes, but the flash movie remains unchanged. This causes the navigation movie to display incorrectly according to the current content area.
This is my first go round with this type of flash/javascript interaction. I have tried the behaviors window in Dreamweaver, but the available options don't provide what I am looking for.
Any help would be greatly appreciated!
Thanks.
bja888 (not verified) posted this at 11:32 — 27th April 2004.
They have: 5,633 posts
Joined: Jan 1970
Its a flash proublem, no javasript involved
forwardtrends posted this at 18:08 — 27th April 2004.
He has: 52 posts
Joined: Feb 2003
Okay this isnt easy but here you go..
<script LANGUAGE="JavaScript">
</script>
Then on the links you want to control the flash movie with:
home
(use this list of supported flash scripting functions to manipulate - http://www.macromedia.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html) You can update this script to do a ton of commands from the browser to flash.
hope this helps..
Aaron Elliott
forwardtrends.com
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.