Author Topic: Remove this thread  (Read 1176 times)

AnthonySouls

  • Guest
Remove this thread
« on: Fri, May 13, 2011 »
Remove this thread,

« Last Edit: Fri, May 13, 2011 by AnthonySouls »

photonstorm

  • Administrator
  • Key Contributor
  • *****
  • Posts: 1502
  • Karma: +1/-0
    • View Profile
    • Photon Storm
"you can't have any folder before "AnyName" ("AnyName", must be your top folder), and you can't have any folder, other than: org, after "AnyName"."

That isn't correct, sorry. All that is important is that org (containing flixel) is in the top-level SOURCE folder of your project. Sometimes that can be whatever you call it, but more often its called "src". FlashDevelop for example will create a folder named after your project and inside this will create "src", along with several other folders (bin, lib, etc). "org" has to be in the "src" folder in this case.

Alternatively you can go to Project - Properties - Classpaths and just pick the folder which "org/flixel" lives in, if you don't want to copy it into your Project folder itself.

For example I have a folder called "flixel versions" and inside that have "v2.5", "v2.53" etc, and then my Classpath points at the "v2.52" folder (inside all of those is nothing but the "org" folder containing flixel).

I understand the frustration at getting stuck on something so simple - it's not obvious that package names MUST map to the folder structure, but this is to do with AS3, not flixel. Flixel makes game development /easier/ but it does expect you to have a basic grasp of AS3 (and I'm not sure how it could do otherwise, learning AS3 in itself is a mammoth task really!)
http://www.photonstorm.com



"Tell me and I will forget, show me and I might remember, involve me and I will understand" - Confucius

photonstorm

  • Administrator
  • Key Contributor
  • *****
  • Posts: 1502
  • Karma: +1/-0
    • View Profile
    • Photon Storm
BTW you should have followed the guide on my site on setting flixel up for beginners, it gives you screen shots of the process so you could have seen the folder structure :) (easy for me to say now of course, sorry!)
http://www.photonstorm.com



"Tell me and I will forget, show me and I might remember, involve me and I will understand" - Confucius

photonstorm

  • Administrator
  • Key Contributor
  • *****
  • Posts: 1502
  • Karma: +1/-0
    • View Profile
    • Photon Storm
There's obviously a misunderstanding here - your original message is, in hindsight of your post above, just about configuring the Classpath value. In which case yes, as I said you need to point it at the folder above. It's not obvious you were actually talking about this at first though.

My comment holds true for anyone wanting to just put the flixel package into their project - which there is nothing wrong in doing. I don't recommend beginners use the Classpath route at all, hence why it's not in my tutorial.
http://www.photonstorm.com



"Tell me and I will forget, show me and I might remember, involve me and I will understand" - Confucius

OmegaStorm

  • Member
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
    • OmegaStorm Productions
http://www.omegastormproductions.com/uber-flash/flixel-tutorials/hello-world-test

Take a look at section 2 of this tutorial explaining how to do both methods. As to the reason why I recommend method 1; it's so Flixel stays with your project should you upload the source somewhere (Github for example).

photonstorm

  • Administrator
  • Key Contributor
  • *****
  • Posts: 1502
  • Karma: +1/-0
    • View Profile
    • Photon Storm
Quote
In any event, you come across as arrogant- as if people just beginning should know this (without it being implicitly stated anywhere).Even the tutorial doesnt state it, it just shows ..\..\fixel and hints are you selecting "org", when it is "one step above org".  In the long and short run, using Class Path is a better approach, is more professional approach, and not hard to implement if they knew to choose the one above "org".

It's not a "better" approach, and it's certainly not "more professional". If anything I can think of several reasons why it's quite a bad idea.

You might want to edit your first post to make it obvious you're talking about configuring the classpath value. Without that key fact it won't help anyone else browsing the forum who doesn't then dig further down into this thread.
http://www.photonstorm.com



"Tell me and I will forget, show me and I might remember, involve me and I will understand" - Confucius