Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 25th, 2003, 01:53 PM
wvillage wvillage is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 6 wvillage User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #2  
Old November 25th, 2003, 02:36 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,720 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 11326 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 13 h 20 m 21 sec
Reputation Power: 580
Facebook MySpace
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

Reply With Quote
  #3  
Old November 25th, 2003, 03:07 PM
wvillage wvillage is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 6 wvillage User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Many thanks...I'll give it a shot.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > using FSCommand


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT