This content has been marked as final. Show 8 replies
Is the password string pulled through from a textfield?
if that doesn't work, at all, it's probably because that code is attached to a movieclip and password is undefined. use the trace() function to test:
i've tried that code but all i'm receiveing is..
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="12" COLOR="#BFDC10" LETTERSPACING="0" KERNING="0">hgr</FONT></P></TEXTFORMAT> undefined
is it to do with.. 'if (password =='
I no old versions use... 'if (password eq' but this doesn't work either
you're using an html-enabled textfield. give the textfield an instance name and check the instance's text property against your strings.
also what kglad said, do that and add password.text or whatever.text in your actionscript when checking. whatever the instance name for the part that takes the password add .text to that so it pulls it off and compares it to what you want to set or predefine.
thanks guys, it works now..
one thing though, rather than having.. 'getURL(" http://www.logicplc.co.uk");' what is the actionscript to just simply load another movie? if tried.. 'loadMovieNum ("entertainment.swf", 2);' but this doesn't seem to work, i really appreciate all the help guys..
Have you a target mc that your loading the swf into?
Try creating an empty mc on the stage and give it an instance name of target_mc, then in the actions panel:
var my_mc:MovieClip = target_mc.createEmptyMovieClip("my_mc", target_mc.getNextHighestDepth());
if loadMovieNum ("entertainment.swf", 2); fails to load entertainment.swf then you have an incorrect path to entertainment.swf or a typo.