Well - LJ has returned from Vacation and has finally launched the new "Flash" version of BuzzPlay.com.
Check it out here: http://www.buzzplay.com
Now, why am I posting about this? Simple - I did all the programming for the site. This was my first major Flash (ActionScript) job. I used it as a test to see how effective I am in ActionScript. I was able to developed the whole system within a couple days, it wasn't all that hard.
What was the hardest aspect of the site?
What a great question Aaron
That hardest part was when he wanted the user to "stay" logged into their account while moving to completly seperate pages on the site (which where all in flash). I figured this out useing loadVars.
-
loadVars();
When the user logged into their account I sent their information to a php script and created a session, on every other page I used AS to pull that session information and allowed me to pull their account on every page. Pretty nifty I think.
Heres the code I used - very basic and simple(HINT: Put in error checks and variable validation)
-
var artistName="";
-
var myID=0;
-
var checkLogin = new LoadVars();
-
checkLogin.onLoad = function (success:Boolean){
-
if(success){
-
if(checkLogin.myID!=""){
-
_root.myID=checkLogin.myID;
-
gotoAndStop(2);
-
}else{
-
//gotoAndStop(2);
-
//LOGIN SCRIPT - OR REDIRECT
-
-
}
-
}else{
-
//gotoAndStop(2);
-
//LOGIN SCRIPT - OR REDIRECT
-
}
-
}
-
checkLogin.load("checkLogin.php");
-
stop();
Here is the PHP Code:
You can place the AS script in the first frame of all your files... works very well
Support Our Sponsors!