Author Topic: Problem with the tutorial  (Read 1724 times)

caladan21ph

  • Member
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Problem with the tutorial
« on: Thu, Sep 8, 2011 »
Hi!  was doing the hello world tutorial and got this error:

C:\Game Dev Projects\Game Engines\Flixel\org\flixel\FlxGame.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'org.flixel'.
Build halted with errors (fcsh).

I found out about the solution to comment out line 34 but all I got were other errors.

How do I fix this?

Thanks!
Check out my game journal: http://alternatdev.wordpress.com

Cowbacca

  • Active Member
  • ***
  • Posts: 107
  • Karma: +0/-0
    • View Profile
Re: Problem with the tutorial
« Reply #1 on: Thu, Sep 8, 2011 »
Which version of Flex are you using?  For some reason, the tutorial links to Flex 3.5, the current Flex version is something like 4.5.1.

osro

  • Active Member
  • ***
  • Posts: 121
  • Karma: +1/-0
    • View Profile
    • Purppura
Re: Problem with the tutorial
« Reply #2 on: Thu, Sep 8, 2011 »
Which version of Flex are you using?  For some reason, the tutorial links to Flex 3.5, the current Flex version is something like 4.5.1.

Flixel is ActionScript3 library... there is no need of Flex actually.
Flex 3.5 and 4.5.1 are both based on AS3, so that doens't really matter.

That error sounds that you have badly linked flixel to your project.
How have you done that?

Cowbacca

  • Active Member
  • ***
  • Posts: 107
  • Karma: +0/-0
    • View Profile
Re: Problem with the tutorial
« Reply #3 on: Thu, Sep 8, 2011 »
I had the same problem as the OP and it's because the tutorial links to Flex 3.5 for whatever reason, which isn't compatible with Flixel.

EDIT: here's the link to the section in the tutorial that tells you to download the Flex SDK.
« Last Edit: Thu, Sep 8, 2011 by Cowbacca »

caladan21ph

  • Member
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Problem with the tutorial
« Reply #4 on: Thu, Sep 8, 2011 »
Fixed it!I just pointed to the Flixel folder(the one with org inside). I though I had to put org for the class path.Thanks anyways! :)
Check out my game journal: http://alternatdev.wordpress.com