Hi there,

I hope somebody can help me.
I've been trying to compile a flex component with flexmojo.

in my src/main/flex  I have 2 ActionScript files,
1 App.as ActionScript class file
2. TestIncl2.as actionscript file use for include directive.

 a as Class file
App.as
================================
package com.test {
        public class App {
                include "TestIncl2.as";
                public function App(){
                   super();
                }
                public static function greeting(name:String):String {
                        return "Hello, " + name;
                }
        }
}

and an as file(not a as class)

TestIncl2.as
=================
private var _test2:String;

public function set test2(p:String):void{
        _test = p;
}
public function get test2():String{
        return _test;
}
==================================

using mvn compile

maven will also compile the TestIncl2.as

which will get this error.

[ERROR] C:\Users\boyetp\Documents\Flex Builder 3\MavenTestLib\src\main
\flex\com\test\TestIncl2.as:[2,1]
The private attribute may be used only on class property definitions.
private var  _test2:String;

[ERROR] C:\Users\boyetp\Documents\Flex Builder 3\MavenTestLib\src\main
\flex\com\starview\TestIncl2.as:[4,1] The public attribute can only be
used inside a package.public function set test2(p:String):void{

[ERROR] C:\Users\boyetp\Documents\Flex Builder 3\MavenTestLib\src\main
\flex\com\test\TestIncl2.as:[8,1] The public attribute can only be
used inside a package.public function get test2():String
{

How do I solved this problem?

Henry

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to