Re: [flexcoders] How to add an MXML component which is not in the root folder?
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 TimeSheet / in my application, where TimeSheet / is another application. This appears to be a bad idea! Would the appropriate course be to load the other application's .swf file? Scott On 1/16/06, Martin Wood [EMAIL PROTECTED] wrote: 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 Project : Test2 (The main project) Test2.mxml In Test2 I right clicked the project node, selected properties then in the classpath tab in the build path section I added the Test project as a folder (it showed up as ${DOCUMENTS}\Test) Then in the Test2.mxml I could access both Image and Image2 from Test. for Image I just declared Image/ and to access image 2 i added another xmlns declaration to the application tag : xmlns:test2=com.test.* and the component was declared like : test2:Images2/ all worked fine, the image component appeared with the image inside. dont know if thats useful, but i'll do what i can to help thanks, 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 Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to add an MXML component which is not in the root folder?
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 integration support via the IDE so its more like using a jar file or similar. Hopefully when the beta drops there will be a more obvious route to combining projects. If anyone has any suggestions / recommendations id also love to hear them. thanks, Martin Scott Langeberg wrote: 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 TimeSheet / in my application, where TimeSheet / is another application. This appears to be a bad idea! Would the appropriate course be to load the other application's .swf file? Scott -- Martin Wood http://relivethefuture.com/choronzon -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to add an MXML component which is not in the root folder?
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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to add an MXML component which is not in the root folder?
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 Application /, 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. 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] How to add an MXML component which is not in the root folder?
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 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:myNamespace=dialogs.* B: myNamespace:MyComponent xmlns:myNamespace=dialogs.*/ C: var myComponent:ComponentClass = new dialogs.MyComponent(); i think that should be right. :) again, on a related note I havent had success using the 'Project References' to allow one project to be used in another, but it did work if i used the Classpath settings to add the folder where the other project lives. thanks, Martin Ralf Rottmann wrote: 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 -- 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 Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to add an MXML component which is not in the root folder?
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: 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 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:myNamespace=dialogs.* B: myNamespace:MyComponent xmlns:myNamespace=dialogs.*/ C: var myComponent:ComponentClass = new dialogs.MyComponent(); i think that should be right. :) again, on a related note I havent had success using the 'Project References' to allow one project to be used in another, but it did work if i used the Classpath settings to add the folder where the other project lives. thanks, Martin Ralf Rottmann wrote: 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 -- 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 Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- 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 -- Martin Wood http://relivethefuture.com/choronzon -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to add an MXML component which is not in the root folder?
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 Project : Test2 (The main project) Test2.mxml In Test2 I right clicked the project node, selected properties then in the classpath tab in the build path section I added the Test project as a folder (it showed up as ${DOCUMENTS}\Test) Then in the Test2.mxml I could access both Image and Image2 from Test. for Image I just declared Image/ and to access image 2 i added another xmlns declaration to the application tag : xmlns:test2=com.test.* and the component was declared like : test2:Images2/ all worked fine, the image component appeared with the image inside. dont know if thats useful, but i'll do what i can to help thanks, 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] How to add an MXML component which is not in the root folder?
dialogs:LoginDialog xmlns:dialogs=dialogs.* / Check out the docs that describe namespaces in MXML. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ralf Rottmann Sent: Sunday, December 04, 2005 11:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to add an MXML 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 dialog dynamically. If LoginDialog.mxml would reside in the same folder as MainApp.mxml I could simply type: mx:AddChild myspace:LoginDialog / /mxAddChild How do I do this with LoginDialog.mxml in a subdirectory? Regards RR -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] How to add an MXML component which is not in the root folder?
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:myNamespace=dialogs.* B: myNamespace:MyComponent xmlns:myNamespace=dialogs.*/ C: var myComponent:ComponentClass = new dialogs.MyComponent(); i think that should be right. :) again, on a related note I havent had success using the 'Project References' to allow one project to be used in another, but it did work if i used the Classpath settings to add the folder where the other project lives. thanks, Martin Ralf Rottmann wrote: 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 Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/