flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cristina Constantinescu <cristina.constantine...@crispico.com>
Subject Re: where to add include file so that it can be seen by other files in app?
Date Thu, 17 Jul 2014 09:07:37 GMT
Thanks Julio.

It means that I cannot use include in file A and try to access code from 
it in file B (probably in other package).

On 16.07.2014 17:45, Julio Carneiro wrote:
> Cristina,
>
> the include is in a good location. the error you're seeing is because it probably includes
another class declaration inside.
> you cannot declare multiple public classes in the same package/file.
> your error is a result of the included contents, not the 'include' location.
>
> hth
> julio
>
> On Jul 16, 2014, at 2:52 AM, Cristina Constantinescu <cristina.constantinescu@crispico.com>
wrote:
>
>> Hi,
>>
>> I want to use include directive to add files into my application.
>>
>> Where should I put them in order to be seen in the entire app?
>>
>> I've tried in a class like this:
>> package org {
>>
>>     public class Test    {
>>         public function Test() {
>>         }
>>     }
>>     include "myFile.js";
>> }
>>
>> but "A file found in a source-path can not have more than one externally visible
definition.".
>>
>> Thanks,
>> Cristina
>>
> --
> Julio Carneiro
>
>
>
>
>


Mime
View raw message