powered by Jive Software

Compilation error in Flex 3

Hello

I’'m using Flex Builder 3 and i still get compilation error:

“A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a package.”

I checked out latest sources and used both from trunk (copying “org” directory to root of my project) and flexlib branch (both adding xiff.swc to project and adding branch project). Code in my main.as is:

import org.igniterealtime.xiff.core.XMPPConnection;

//import org.jivesoftware.xiff.core.XMPPConnection;

var connection = new XMPPConnection();

Can anyone have some guess what can be wrong?

I didn’'t have exactly the same error but I had to write “private var connection=new XMPPConnection();”

Maybe this could help.

@bane: No it wasn’'t it. But still thanks

I found problem: In project properties my *.as file was set as runnable. Just removed it from list and every thing works