|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
using FSCommand
I'm making a flash movie where I want the background color of the browser to change (with colors I've chosen) each time the viewer clicks a different button in the flash movie. I'm trying this with the following JavaScript function:
function setBgColor(myColor) { document.bgColor(myColor); } and the folowing FSCommand: fscommand("setBgColor", "#0000FF"); and having no luck. Any suggestions? |
|
#2
|
|||
|
|||
|
Hi, I have to admit I havent tried using the FS command for a few version of flash now. From the MX documentation it sounds like you need a new function in your html file:
function setBgColor(myColor) { document.bgColor(myColor); } function myMovie_DoFSCommand(command, args) { if (command == "setBG") { setBgColor(args); } } Where myMovie should be the name of your shockwave file i.e. myMovie.swf = myMovie_DoFSCommand()... In the Flash document, add the fscommand action to a button: fscommand("setBG", "#0000FF"); Hope that does the trick -Tann |
|
#3
|
|||
|
|||
|
Many thanks...I'll give it a shot.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > using FSCommand |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|