|
|
Subject:
Javascript to Flash
Category: Computers > Programming Asked by: wayniep00p-ga List Price: $20.00 |
Posted:
12 Jul 2006 20:07 PDT
Expires: 21 Jul 2006 04:31 PDT Question ID: 745816 |
I am a designer currently working on a project that involves a flash navigation bar. Since I am primary a graphics guy who focuses on design, flash, html, and css, I need some help with the javascript programming aspect. I am looking for a way for javscript to talk to a flash swf movie. I am planning to use the script to control the navigation bar so the navigation link will be highlighted on its respected page without making 10+ different flash files that begin at different locations. I found some examples online that can trigger command such as play movie /go to next frame using javascript function (e.g. <a href="PlayFlashMovie()">PlayMovie</a> ). However, what I am looking for is a javascript function that target flash movie to go to a specified frame number or frame name. It'd work the same way like a flash button with an actionscript of on(release) { gotoAndPlay('specifiedframe')} but with <a href="gotoFrame()"></a> instead. I found several websites that states the javascript function but I have yet to find a full script to work with. With the script then I will be able to execute it onload therefore changing the flash movie. Site Resources: http://www.permadi.com/tutorial/flashjscommand/ http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html Thanks!! |
|
There is no answer at this time. |
|
Subject:
Re: Javascript to Flash
From: document123-ga on 17 Jul 2006 08:13 PDT |
I presume it is a PlayFlashMovie() Javascript function you have - but it's difficult to know how to add to it without seeing it. Have a look at doing something like function onLoadEvent { document.specifiedframe.href = PlayFlashMovie(); } call this from body onload. where specifiedframe is the name of your frame you want it in (whatever you called it in <FRAME name=...>. If you want to show some of your actual examples I may be able to help further? |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |