Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / November 2005



Tip: Looking for answers? Try searching our database.

Disable button based on current html page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
datawizard - 30 Nov 2005 04:03 GMT
Hi all, I have a question here, I know how to disable buttons in flash via
action script 2 by
"this.ButtonName.enabled = false"
my question is how can I disable a button when that button corasponsed to a
web page IE HomeButton = index.htm,
so that when Index.htm is the current window the home button would be disabled
and when the user clicks on a diffrent button and goes to a diffrent page , the
home button would be enabled again.
Ive tried scripting it like this
" If (getURL) == ("index.htm") then
this.HomeButton.enabled = false;
this doesnt work as I get actionscript error of object is string. any clue as
how I can go about writing this out ? thanks Datawizard:confused;
dev_BFD - 30 Nov 2005 08:36 GMT
hello,
if i understand your error, it means that == can't compare the two object because they are not 2 string.
datawizard - 30 Nov 2005 16:52 GMT
I tried using just the "=" also and got same error , reason that had 2" ==" is
It was suggested in another forum that FLASH didnt understand just the" =" so
Im not sure in this case which one is the right way to go, I have looked inside
flash help and I see them using just 1 "=" in some examples so I know it is a
correct proceedure.  
System101 - 30 Nov 2005 19:24 GMT
as i understand it.. getURL loads a new URL, it doesnt tell you the current URL.

use a javascript interaction.  flash 8 provides new mechanisms for that, for
older stuff youll need to use fscommand or getURL calling a javascript function.

fscommand isnt supported by any mac browsers that i know of.
LuigiL - 30 Nov 2005 19:32 GMT
>>If (getURL) == ("index.htm")

It would be: if(getURL())=="index.htm" if getURL() would return a string. But getURL() doesn't return anything.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.