Hi Everyone,
I’m building a site that is placed behind a client login tool. I simply need my site to verify the users “authentication level” so they are forwarded to the correct “label/frame” on my time line.
I.E. Owners go to the “Owners” label on the time line, Managers go to the “Managers” label on the time line and Employees go to the “Employees” label on the time line.
I know Flash is accessing the PHP file as when I change the name of the PHP file, Flash provides an error. Therefore, I’m assuming it’s reaching the file as I’m not getting any compiler/output errors.
My Actionscript
stop();
loadVariablesNum(“newlogin.php”, 0, “POST”);
{
if(_root.checkLog = 100)
{
_root.gotoAndStop(“owner”);
delete this.onEnterFrame;
}
if(_root.checkLog = 200)
{
_root.gotoAndStop(“manager”);
delete this.onEnterFrame;
}
if(_root.checkLog = 300)
{
_root.gotoAndStop(“employee”);
delete this.onEnterFrame;
}
if(_root.checkLog = 999)
{
_root.gotoAndStop(“denied”);
delete this.onEnterFrame;
}
}
My PHP
<?php
echo ‘checkLog=100’;
?>
This PHP file is stored in the same folder as the FLASH SOURCE files and is pointed to it through it’s local address (“newlogin.php”, 0, "POST);
Any help would be greatly appreciated as I’m on day #2 of pulling my hair out.
Thanks in advance everyone.