The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.34 / 5.00 31,296 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.07 / 5.00 10,082 Viewsthanks for the help guys, but the deadline is finished.
I passed a wrong homework, I was not able to code it out.
but I realized what's wrong with it,
I just can't make a solution, can anyone help?
here's the situation:
The log in and log out works fine.
I log in, close, goes back, still logged in.
logged out, close, go back, still logged out.
The problem is here,
when I log out (session was killed)
clicked back button, takes me to the "logged in" page
then clicked refresh, I am still/again logged in (wasn't the session killed?)
of corse it was killed. but...
take note, when I clicked refresh button,
it resends the data I've put it the login forms
so even if the session was killed,
it just makes me RE-LOGIN
any help? thanks =)
I am using Java EE Servlets:
this runs normally but has a bit of a problem.
it can login and logout using Sessions.
but the problem is:
when I logout, then clicked back on the browser,
then refreshed, I will still be logged in.
shouldn't be logged out already?
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public final class SessionAuthServlet extends HttpServlet
{
protected void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
sendPage(req, res, req.getSession(false));
}
protected void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
if(req.getParameter("login") != null)
{
HttpSession session = req.getSession(true);
String name = req.getParameter("name");
if(name == null || name.length()==0) name = "Anonymous";
session.putValue("name", name);
sendPage(req, res, session);
}
else
{
HttpSession session = req.getSession(false);
if(session != null) session.invalidate();
sendPage(req, res, null);
}
}
private void sendPage(HttpServletRequest req, HttpServletResponse res,
HttpSession session)
throws ServletException, IOException
{
res.setContentType("text/html");
res.setHeader("pragma", "no-cache");
PrintWriter o = res.getWriter();
o.print("<HTML><HEAD><TITLE>SessionAuthServlet</TITLE></HEAD><BODY>");
if(session == null)
o.print("<FORM METHOD=POST>Please enter your name: "+
"<INPUT TYPE=TEXT NAME=\"name\">"+
"<INPUT TYPE=SUBMIT NAME=\"login\" VALUE=\"Log in\">"+
"</FORM></BODY></HTML>");
else
o.print("Hi " + session.getValue("name") +
"<P><FORM METHOD=POST><INPUT TYPE=SUBMIT NAME=\"logout\" "+
"VALUE=\"Log out\"></FORM></BODY></HTML>");
o.close();
}
}
thanks for the reply guys,
too bad the winners are decided. :(
oh well it worth a try
Tom is posting all these wacom winners, but how do I get one?
I know you must send him a message,
what are the the contents of the message and what subject?
can you direct me to the thread wherein Tom announced the event?
I can't find it..
that's a bit "AS3-like"
here's a bit "AS2", try it
myFile = SharedObject.getLocal("scoreSave");
trace(myFile.data.score);
num=1;
myFile.data.score = num;
myFile.flush();
how can I get a wacom?
whats the content s of the message and what subject?
can you direct me to the thread wherein Tom announced he's giving away wacoms?
I can't find it
no it doesnt say it all...
we need more details...
and what do we get?
oh man, so there are many thing I have to change
and its slowly getting less like battlefield (that what I want it to look like)
changing its logo will make it too different and unique
then my best option now is to contact EA DICE to let me use the items,
At 9/17/08 11:22 AM, mwmike wrote: they might let you keep them in and maybe (though almost definitely not) endorse it.
my dream come true lolz
I've already emailed DICE past few days ago, no reply
I didn't email EA (it's too.. you know... big time lolz)
an EA is just the publisher and even though they own DICE,
DICE is the more specific owner of the games
thanks guys, I'll find other sources for my sounds
which will let me use the items whole-heartedly
just by putting them in the credits
maybe the audio portal? haha
At 9/17/08 10:13 AM, Gatling wrote: If you don't make profit from it
awww... I wanna make profit :(
then I'll just need to get my own sounds and music
read the contest guidelines on copyrighted material
the contest did not mention anything about copyrighted materials
---
oh and if the Battlefield name is also their trademark,
then I'll have t change the title too... =(
so I have a question about it, EA DICE trademark is......?
A) Battlefield # (all battlefields with number after it)
B) Battlefield 1942, Battlefield 2142, Battlefield 2 (specific numbers only)
A or B??
if B is the answer, I can still have Battlefield 2003...
anyone get my idea?
wow I'm feeling I really need to learn AS3... I like AS2 =(
I am making a game, called Battlefield 2003 (My News Link)
2003 because the campaign is about the Iraq war "invasion"
now the problem here is,
I am using sounds and music from the original battlefield games,
you know, Battlefield 1942, Battlefield 2, etc...
They are properties of EA and/or DICE...
I am using my OWN animation, scripting and everything in flash,
ONLY the SOUNDS and MUSIC are from EA DICE...
I have them in the credits section...
also their logo is in the pre-loader,
and in the intro, there is a legal notice about it
QUESTIONS
-it it legal to be published?
-is it ok to be sponsored
-entered in a flash contest?
see images:
me too I have so many ideas, too much inspiration too... at first...
but when I start the project and after a week or some days, I get tired and stop...
I am just too lazy to finish a game...
how come other users have gold avatar?
there are no gold background in the choices
interface is great, thought it was MGS lolz
I'm looking forward to its release =) it will be fun
wait what do you mean by vertical shooter? like platformer? platformer is horizontal,
if its top-down approach, then formula for distance is different from what he said
At 9/16/08 06:38 AM, SunderEX wrote: A code efficient way of implementing it is to have all your talk text in an array. i.e.
var talkArray = new Array();
talkArray[0] = "0 text";
talkArray[1] = "1 text"
talkArray[10] = "10 text".
this is the best recommended option: ARRAYS
i don't think the topic starter is viewing this thread anymore
but practice isn't enough if the guy isn't really meant to be doing flash
I can see the string will in him, but not the skill
I make flash games because:
1. I like making other people happy. this is my main goal. i make flash games to entertain people. if I see them happy and enjoying my work, I feel fulfilled, even if I'm not sponsored or paid.
2. its a hobby, I enjoy animating and seeing decent drawing made by myself. Also, I like the success of scripting and seeing how everything works fine according to plan, that the code I typed is doing all these crazy and complicated stuff.
3. Yup it is a thrill and suspense going through the "under judgment" part of newgrounds. it is exciting on how you wait for your score and what the reviews will be.
i'm interested. pm me on what to do (topics etc)
nah, not really fun to play
one word. crap. if this is a submission, I wont blam it but i'll give it a 1.
is that a logo? a rounded rectangle sliced with something weird behind and you name in text with no style, colors or whatever.
and pretty bad layout for a website though. I mean the header's alright but the other parts. the colors hurt my eye, especially the combination of green and red. ouch.
try to use filters. if you're already using it then you're using it badly.
why are we fooling ourselves replying to this thread.
we can see clearly, the guy has an impossible dream
and the topic is too.... you know....
if there are abusive topics which should be locked.
this one's in the other side which also should be locked.
if the normal topic is 5,
abusive content is 10
this is 1, got me?
can anyone tell me a submission or link me yo a flash movie
about parents meddling into the life of the son or daughter?
you know, when parents tells you what to do etc...
or anything like that, in that topic.
thanks in advance :)
At 8/17/08 04:22 PM, GustTheASGuy wrote: It's visible that you're using separate code for each type of tower. So you'll copy the code and add three more towers. Then you figure out you need to do something about not being able to place the towers on the road, so you'll think of some hack and modify all the code you have for the towers. Then you need to fix the towers to the grid, then you need to prevent overlapping. You haven't thought anything out and you'll come up with the cheapest solutions in a pile. This doesn't last once you start doing more than small Flash toys.
There's this thing that thinking first generally pays. Take advantage of OOP and think of ways to manage the user interface in a centralized manner.
this is one problem with Gust, he jumps to conclusions
and makes fun of people without showing it in his words...
who are you to judge other people?
it happened to me one time, he also told me to change the way I code.
he said something that my programming is a bad style etc...
yeah bad style but only for you!
I am the programmer of my project, I use what I want!
I'll use the style I'm comfortable with,
not what YOU are comfortable with!
your aura should be evil Gust,
you think you're way is perfect?
everyone dont listen to what this guy says
maye he's not talking about the time interval of loading...
maybe he wants to make the TEXT "Loading" longer
free transform... or maybe the load bar?
whole body
At 8/17/08 02:24 PM, arunforce wrote: Looks good Dragonet. Email me, will you?
what's your email?
I'll send you the armor for the whole body
here's a sample: the torso, hand and gloves.