User Profile

Collapse

Profile Sidebar

Collapse
drsmooth
drsmooth
Last Activity: Aug 3 '09, 08:05 PM
Joined: Oct 6 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • drsmooth
    started a topic dynamic movie clip from assets

    dynamic movie clip from assets

    what i have is a portfolio site for my design company and i use a loadvars object to get a list of jobs we've done and some info about them.



    next we made this movieclip in flash that represents a small tree, what i want to do is create a tree for each entry in the database and have each one display unique data on it. so far what i have is:


    Code:
    include('FolioItem.as');
    // here is where
    ...
    See more | Go to post

  • drsmooth
    replied to xml serialization question
    that did the trick!

    now that you mentioned it it was like "ohhhhhhh" and i realized that it makes sense now why that was happening.

    thanks alot,
    ken
    See more | Go to post

    Leave a comment:


  • drsmooth
    replied to xml serialization question
    originally i had them in seperate files, i doint know if that makes a difference?

    after reading your post, i tried moving the Ball( actually its actor in the specifics of my program) into the same file and still no luck, theres enough <Actor \> tags to account for the number of things i created in the array but theyre all empty.

    Heres the code where i convert the Actor[List] into an array for the xml processing:...
    See more | Go to post

    Leave a comment:


  • drsmooth
    started a topic xml serialization question

    xml serialization question

    hi,
    i am trying to write all the data for my games level to an xml file using c# xml serializer.

    i got it to work but for any of my classes below the Level class none of the fields are written.

    for instance, a Level has a List of Ball objects and a list of brick objects (guess theres not too many hints about what kind of game it is lol)
    each file has fields that i marked with
    [xmlattribute] or [xmlelement]...
    See more | Go to post

  • drsmooth
    replied to problem with flickering graphics
    in Java
    oh...lol good to know.

    i think the problem may be when it does all the calculations for generating and creating the new objects, maybe the refresh thread catches up with the method that is generating the objects???

    even if that was the case, how would i go about fixing something like that?
    See more | Go to post

    Leave a comment:


  • drsmooth
    started a topic problem with flickering graphics
    in Java

    problem with flickering graphics

    Hi, i have made several different things using a double buffer and a jframe before but never had this problem:

    if you look thrugh the code, you can see that i draw a whole bunch of stuff to the screen and sometimes, i get a frame or two of just blank jframe color
    [CODE=java]
    public void draw()
    {
    BufferStrategy bf = this.getBufferS trategy();
    Graphics2D g = null;
    if(scrollPos>la stCoveredPos)...
    See more | Go to post

  • drsmooth
    replied to problem loading applet
    in Java
    i just tried that and still got the same problem.

    this is getting rather frustratng lol....i will be calling my web host to see if perhaps they are to blame for this but i doubt that they are...
    See more | Go to post

    Leave a comment:


  • drsmooth
    replied to read/write a file and '\n' problem
    in Java
    if you use readLine(), you can assume that there is a '\n' character after each call, im not sure how that fits into your program, but if you had a loop like:

    Code:
                      while ( (line = istream.readLine()) != null  ) {
                          //System.out.println(line);
                          sb.append(line);
                      }
    you could use something like
    Code:
     line+= '\n' ;
    ...
    See more | Go to post

    Leave a comment:


  • drsmooth
    replied to problem loading applet
    in Java
    the problem now remains the same as the problem i had before, now i have just exausted one solution. the error that i posted with is still the same error i am getting.

    i also tested it out in firefox and internet explorer and on multiple computers to the same avail.

    on my girlfriends laptop in firefox i got something slightly different:
    Code:
    load: class NetCasino.class not found.
    java.lang.ClassNotFoundException:
    ...
    See more | Go to post

    Leave a comment:


  • drsmooth
    replied to problem loading applet
    in Java
    im afraid the problem might be in
    Code:
    Caused by: java.io.IOException: open HTTP connection failed.
    	at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    	at sun.applet.AppletClassLoader.access$100(Unknown Source)
    	at sun.applet.AppletClassLoader$1.run(Unknown Source)
    	at java.security.AccessController.doPrivileged(Native Method)
    	... 10 more
    is there some special setup required...
    See more | Go to post

    Leave a comment:


  • drsmooth
    replied to problem loading applet
    in Java
    isnt:

    codebase="http://drsmooth.ipower .com/public_html/"

    that the code base?

    that is the path where the jar is, it would be

    http://drsmooth.ipower .com/public_html/netCasino.jar
    See more | Go to post

    Leave a comment:


  • drsmooth
    started a topic problem loading applet
    in Java

    problem loading applet

    this is rather frustrating...i have tried numerous different things in a futile attempt to get a japplet packaged in a jar file to load on my site.

    everytime i try a new thing i get:

    Code:
    load: class NetCasino.class not found.
    java.lang.ClassNotFoundException: NetCasino.class
    	at sun.applet.AppletClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.applet.AppletClassLoader.loadClass(Unknown
    ...
    See more | Go to post

  • drsmooth
    replied to Pong AI Problem
    in Java
    thanks all of you, i will work on some test data this week and if i still cant crack it i will tell you all of my findings...

    i did however look at that site and sortof already covered that ground so it didnt provide me much of a solution...

    im not also considering that my collision detection may be part of the problem...i will be stepping through and trying to find the problems this week

    thanks for all...
    See more | Go to post

    Leave a comment:


  • drsmooth
    replied to Pong AI Problem
    in Java
    thanks alot for all youre help....sorry it took me so long to reply, ive been so busy with finals and things at school...now im done so i can refocus my efforts on getting this to work...

    i think i got the paddle to work now...just for starters i want to make it block everything...il l put in the error later.

    problem now is i have glitches at some of the border cases where the paddle will freak out and miss like 5 in...
    See more | Go to post

    Leave a comment:


  • drsmooth
    started a topic Pong AI Problem
    in Java

    Pong AI Problem

    im just starting to work on AI things and i started with a pong game...

    i came up with a system that every time the ball hits a wall or a paddle it calls the alert() method of the AIController class.

    the problem is the paddle always reaches and hits the ball the first time, then seems to move in crazy direction and will never hit another shot...

    heres what i got so far:

    Code:
    public void alert()
    ...
    See more | Go to post

  • drsmooth
    replied to graphics non-percise measuring
    in Java
    hah...i found the problem! a stupid math mistake, i forgot the fact that Math.sin() uses radians...ARGH! !

    thanks for your help,
    ken
    See more | Go to post

    Leave a comment:


  • drsmooth
    replied to graphics non-percise measuring
    in Java
    ok , im going to try to apply that into my program. i had only a small test set up to see if i could do it, and thats where it seemed like it mattered.

    thanks,
    ken
    See more | Go to post

    Leave a comment:


  • drsmooth
    started a topic graphics non-percise measuring
    in Java

    graphics non-percise measuring

    i am using graphics in a jframe to make a little game im working on...my problem is, i'm new to the application of physics to java...my question is, how do you calculate lets say a force acting on a ball at an angle?

    i set up a program the way i thought to do it, i used the force and times it by the sin of the angle and come up with the xComponent and move the ball that far in the xdirection and use cos and determine the movement in...
    See more | Go to post

  • drsmooth
    replied to storing data to pass across the net
    in Java
    im quickly realizing the badness of that idea, but i am having a hard time grasping why...possibly because i lack a lot of knowledge about this stuff but could someone please explain what makes it so bad?

    thanks alot,
    ken...
    See more | Go to post

    Leave a comment:


  • drsmooth
    started a topic storing data to pass across the net
    in Java

    storing data to pass across the net

    im working on a game right now, its a simple rpg where you have a charater with stats and you can message and attack other players online. my problem is what would be the best way to share the information across the net? i set up the whole game with mysql databases and it works great but as discussed here earlier, most web hosts consider remote access to databases a security risk. If that is the case i suppose i would like to try to avoid it......
    See more | Go to post
No activity results to display
Show More
Working...