Search code examples
actionscript-3flashflashdevelop

FlashDevelop Actionscript 3 development environment inquiry


I'm puzzled by the FlashDevelop environment. I'm working through the tutorial at:

http://prototyprally.com/making-games-in-actionscript-3-using-flashdevelop-part-1-the-setup/

I'm doing things exactly the way he describes. However, once I add the class Enemy I am not able to establish communication between Main and Enemy. Obviously I'm missing something basic, but I get compile time errors no matter what I do.

I'm using the latest version of FlashDevelop (4.5.2.5). How do I get two different files (both under the same package) to communicate with each other?


Solution

  • OK, I figured it out. The import statement needs to be:

    import com.grapefrukt.tutorial.supergame.enemies.Enemy

    Looks like the size of the display in the tutorial chopped that off.