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.