4 Replies Latest reply on Sep 10, 2008 6:01 PM by jag57

    Program File/Class File

    BudHud Level 1
      Am trying to get Program File and Class File to communication. I get this error message:

      A file found in a source-path must have the same package structure as the definitions package “Nproj”.

      Any suggestions? I would so appreciate it.

      The Class File is in the folder “Nproj’.

      Program File:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">


      import Nproj.Product;
      var myProduct = new Product();
      myProduct.setDesc("Teddy Bear");




      Class File:

      package Nproj
      public class Product {

      var desc:String;

      public function Product() {


      public function getDesc():String {
      return desc;

      public function setDesc(myVar:String):void {
      desc = myVar;