Re: [flexcoders] How to add an MXML component which is not in the root folder?

2006-01-17 Thread Scott Langeberg
I guess, if your application were a class, but if you're using MXML, it is not!Java only requires a main() method. Flex requires extending , which seems to be causing the problem.Scott On 1/17/06, Martin Wood <[EMAIL PROTECTED]> wrote: > Java, not so sure, but seems likely to work there. Fl

Re: [flexcoders] How to add an MXML component which is not in the root folder?

2006-01-17 Thread Martin Wood
> Java, not so sure, but seems likely to work there. Flex 2 itself is an example of this :) martin. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links

Re: [flexcoders] How to add an MXML component which is not in the root folder?

2006-01-17 Thread Scott Langeberg
Yeah, our plan was to develop a series of mini-apps that could be used interchangeably througout different applications as needed. Sort of a dashboard deployment. I'd be a little let down if Flex didn't support this function, which I believe is quite simple in the .NET environment. Java, not so

Re: [flexcoders] How to add an MXML component which is not in the root folder?

2006-01-17 Thread Martin Wood
very good question, something i was wondering about last night. To be honest i dont know the best course of action, you could of course just load the swf if you dont need to integrate it at the code level ..well, of course being flash you can still load a swf and call methods etc, but i mean in

Re: [flexcoders] How to add an MXML component which is not in the root folder?

2006-01-17 Thread Scott Langeberg
Thanks Martin, For some reason, when i first tried that, I also had to include a folder reference to the other project. Now, I've found that I'm killing eclipse when I try to include another application. Is this forbidden, in Flex? As in, I'm trying to include in my application, where is another

Re: [flexcoders] How to add an MXML component which is not in the root folder?

2006-01-16 Thread Martin Wood
right, well i was only referring to as3 files, but i built a simple test following the same technique and using mxml files and it works fine. I had this setup Project : Test (The 'library project') Image.mxml com/test/Image2.mxml both mxml files are just simple image tags Pro

Re: [flexcoders] How to add an MXML component which is not in the root folder?

2006-01-16 Thread Martin Wood
ah, hello.. like i said, i could only get it to work using the classpath settings, not the project reference panel. but i dont think i actually did it with mxml components, i think i just used for pure code classes. let me check and get back to you... thanks, Martin Scott Langeberg wrote:

Re: [flexcoders] How to add an MXML component which is not in the root folder?

2006-01-16 Thread Scott Langeberg
Has anyone been able to use code from one project inside of another? I haven't been able to get Martin's suggestion of setting the Classpath to work. Thanks, Scott On 12/4/05, Martin Wood <[EMAIL PROTECTED]> wrote: > you can use the xmlns attribute either in the application tag (A) to > define

Re: [flexcoders] How to add an MXML component which is not in the root folder?

2005-12-04 Thread Martin Wood
you can use the xmlns attribute either in the application tag (A) to define a namespace thats available throughout the mxml file, or you can use it just within the tag for the login dialog itself (B) If you refer to it by code then you can just use its fully qualified name. (C) A: xmlns:myName

RE: [flexcoders] How to add an MXML component which is not in the root folder?

2005-12-04 Thread Matt Chotin
component which is not in the root folder?   Hi there,   I have an MXML Component in a sub folder of the Flex (2.0 Alpha) root.   \MainApp.mxml \dialogs\LoginDialog.mxml   The class Flex generates will be dialogs.LoginDialog.mxml   In MainApp.mxml I want to use a state to add this

[flexcoders] How to add an MXML component which is not in the root folder?

2005-12-04 Thread Ralf Rottmann
Hi there,   I have an MXML Component in a sub folder of the Flex (2.0 Alpha) root.   \MainApp.mxml \dialogs\LoginDialog.mxml   The class Flex generates will be dialogs.LoginDialog.mxml   In MainApp.mxml I want to use a state to add this dialog dynamically. If LoginDialog.mxml wou