There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Flash FSCommand


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
fazthegreat's Avatar
Member with 84 posts.
 
Join Date: Dec 2005
04-Nov-2006, 12:06 AM #1
Flash FSCommand
Hi, I'm trying to use FScommand in Flash.On a button I have the following action script:

on(rollOver)
{
fscommand("about","");

}

on(rollOut) {
fscommand("home","");

}

whereas the javascript code that Flash generated for me is as follows:
<script language="JavaScript">
<!--
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function NAV_DoFSCommand(command, args) {
var NAVObj = isInternetExplorer ? document.all.NAV : document.NAV;
//
// Place your code here.
if (command=="about") {
document.header.src="_images/header_about.jpg";

}
if (command=="home") {
document.header.src="_images/header.jpg";
}

// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<script language=\"VBScript\"\>\n');
document.write('On Error Resume Next\n');
document.write('Sub NAV_FSCommand(ByVal command, ByVal args)\n');
document.write(' Call NAV_DoFSCommand(command, args)\n');
document.write('End Sub\n');
document.write('</script\>\n');
}
//-->
</script>


This does not seem to work.Please tell me what am i doin wrong.

Thanks!
covert215's Avatar
Account Disabled with 2,651 posts.
 
Join Date: Apr 2006
Experience: Web Designer
04-Nov-2006, 12:21 AM #2
You are probably better off here:
http://actionscript.org/forums/index.php3

Not many people here are good with AS. I know some basics, but not enough to help you.
Eriksrocks's Avatar
Computer Specs
Senior Member with 1,859 posts.
 
Join Date: Aug 2005
Location: Minnesota
Experience: Advanced
04-Nov-2006, 12:33 AM #3
I wish I knew more AS. It's hard to learn IMO. Like right now I'm taking the text from an input text field and trying to write that to a dynamic text field on another frame, but it isn't working... It's just coming out as "undefined."
fazthegreat's Avatar
Member with 84 posts.
 
Join Date: Dec 2005
04-Nov-2006, 01:55 PM #4
Well yeah i have read so many tutorials on the net but I cant figure out what am i doing wrong.

Hey Erik, I think that is easy.What you will have to do is, look in the properties of your input field. You will see a property:Variable, so what you do is name your variable there. e.g test .Now where your dynamic field is do the same thing,enter test in the variable field.Remember whatever you name the variable it needs to be the same for both fields.So now whatever you enter in the input field will be stored in that variable and will show in the dynamic field.

Good luck!
Eriksrocks's Avatar
Computer Specs
Senior Member with 1,859 posts.
 
Join Date: Aug 2005
Location: Minnesota
Experience: Advanced
04-Nov-2006, 03:40 PM #5
Quote:
Originally Posted by fazthegreat
Hey Erik, I think that is easy.What you will have to do is, look in the properties of your input field. You will see a property:Variable, so what you do is name your variable there. e.g test .Now where your dynamic field is do the same thing,enter test in the variable field.Remember whatever you name the variable it needs to be the same for both fields.So now whatever you enter in the input field will be stored in that variable and will show in the dynamic field.
Thanks.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:05 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.