[flexcoders] [job] Come play with Flex2 in NYC!
Have you been playing with the Flex2 Beta? Are you excited about the new capabilities of AS3? Do your dreams include E4X, the Flex-Ajax Bridge, or Flex Data Services? Come work for Arc90! Weâre a small independent web experience consultancy; we develop cutting-edge web software experiences for businesses that have the courage to push envelopes. You can check out our website at arc90.com, but trust us: the cool stuff is on the inside. We need somebody to come on board and design and code a Flex2 app from scratch; something thatâs a great fit for the capabilities of Flex, and a good challenge. You get to master Flex2 while working on an interesting project in a creative, loose, and informal environment! Weâre looking for creative software designersâ"people who can engineer code and think OOP, but always consider the user experience as the bottom line. You should have experience with Flex, ActionScript, XHTML, _javascript_, XML, and CSS. Familiarity with REST and/or AJAX would be excellent. If you enjoy being challenged and you think you fit the bill, please email: [EMAIL PROTECTED] -- 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] Re: Possible to invoke Flex2b2 compiler as a Java class?
Anyone? Please? --- In flexcoders@yahoogroups.com, "Avi Flax" <[EMAIL PROTECTED]> wrote: > > Dave, thanks for your help! What you said makes sense, but > unfortunately I'm still having trouble with it. > > Here's my ColdFusion code: > > > MXMLc = URLClassLoader.LoadJarClass("C:\Program Files\Adobe\Flex > Framework 2\lib\mxmlc.jar", "flex2.tools.Compiler"); > > Args = '-flexlib "C:\Program Files\Adobe\Flex Framework > 2\frameworks\" "C:\inetpub\builder\mxml\test1.mxml"; > > MXMLc.main(JavaCast("String", Args)); > > > I *think* this follows what you suggested. When I try to run this, I > get the following error message: > > "The selected method main was not found." > > "Either there are no methods with the specified method name and > argument types, or the method main is overloaded with arguments types > that ColdFusion can't decipher reliably. If this is a Java object and > you verified that the method exists, you may need to use the javacast > function to reduce ambiguity." > > So... any more tips? > > BTW I do know that I'm initializing the class properly; if I pass > MXMLc to the CFDUMP tag, I see the following: > > object of flex2.tools.Compiler > Methods: > main (returns void) > hashCode (returns int) > getClass (returns java.lang.Class) > wait (returns void) > wait (returns void) > wait (returns void) > equals (returns boolean) > notify (returns void) > notifyAll (returns void) > toString (returns java.lang.String) > FILE_SPECS: > file-specs > > Thanks! > Avi > > --- In flexcoders@yahoogroups.com, "Dave Wolf" wrote: > > > > In any Java JAR there can be a main-class which is the class called > > when no classname is specified. That main-class will also have a > > main() method which si the default entry point of the class. That > > method has the following signature > > > > public static void main(String[] args); > > > > Where the String[] are the command line arguments. > > > > Call the main() method passing in whatever command line arguments > > there would be as the String[]. > > > > -- > > Dave Wolf > > Cynergy Systems, Inc. > > Macromedia Flex Alliance Partner > > http://www.cynergysystems.com > > > > Email: dave.wolf@ > > Office: 866-CYNERGY > > > > --- In flexcoders@yahoogroups.com, "Avi Flax" wrote: > > > > > > I'd like to invoke the Flex2b2 compiler from ColdFusion using the Java > > > class, if possible. > > > > > > I looked at the file MANIFEST.MF in mxmlc.jar, and saw: > > > > > > Main-Class: flex2.tools.Compiler > > > > > > So, I tried this in CF: > > > > > > Application.com.MXMLc = > > > Application.com.URLClassLoader.LoadJarClass(CompilerPath, > > > "flex2.tools.Compiler"); > > > > > > That works, and I can CFDUMP the object to see a list of its methods > > > and properties, but: > > > > > > - I can't set the property FILE_SPECS: I get an > > > java.lang.IllegalAccessException with the message: "field is final" > > > > > > - I can't invoke the "compile" method. My code is: > > > Application.com.MXMLc.compile(JavaCast("String", MxmlPath)); > > > I get the CF message "The selected method compile was not found." > > > > > > Can anyone shed some light on this? Is it documented anywhere? > > > > > > I apologize if this is silly; I'm expert with CFML but not experienced > > > with Java interaction. > > > > > > I did try to just use CFEXECUTE at first, with mxmlc.exe, but had > > > trouble with it. I've always found CFEXECUTE frustrating, so I thought > > > I'd give this approach a try. > > > > > > Thanks! > > > Avi Flax > > > Flex Newbie > > > Arc90, New York > > > http://www.arc90.com/ > > > > > > -- 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] Re: Possible to invoke Flex2b2 compiler as a Java class?
Dave, thanks for your help! What you said makes sense, but unfortunately I'm still having trouble with it. Here's my ColdFusion code: MXMLc = URLClassLoader.LoadJarClass("C:\Program Files\Adobe\Flex Framework 2\lib\mxmlc.jar", "flex2.tools.Compiler"); Args = '-flexlib "C:\Program Files\Adobe\Flex Framework 2\frameworks\" "C:\inetpub\builder\mxml\test1.mxml"; MXMLc.main(JavaCast("String", Args)); I *think* this follows what you suggested. When I try to run this, I get the following error message: "The selected method main was not found." "Either there are no methods with the specified method name and argument types, or the method main is overloaded with arguments types that ColdFusion can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity." So... any more tips? BTW I do know that I'm initializing the class properly; if I pass MXMLc to the CFDUMP tag, I see the following: object of flex2.tools.Compiler Methods: main (returns void) hashCode (returns int) getClass (returns java.lang.Class) wait (returns void) wait (returns void) wait (returns void) equals (returns boolean) notify (returns void) notifyAll (returns void) toString (returns java.lang.String) FILE_SPECS: file-specs Thanks! Avi --- In flexcoders@yahoogroups.com, "Dave Wolf" <[EMAIL PROTECTED]> wrote: > > In any Java JAR there can be a main-class which is the class called > when no classname is specified. That main-class will also have a > main() method which si the default entry point of the class. That > method has the following signature > > public static void main(String[] args); > > Where the String[] are the command line arguments. > > Call the main() method passing in whatever command line arguments > there would be as the String[]. > > -- > Dave Wolf > Cynergy Systems, Inc. > Macromedia Flex Alliance Partner > http://www.cynergysystems.com > > Email: [EMAIL PROTECTED] > Office: 866-CYNERGY > > --- In flexcoders@yahoogroups.com, "Avi Flax" wrote: > > > > I'd like to invoke the Flex2b2 compiler from ColdFusion using the Java > > class, if possible. > > > > I looked at the file MANIFEST.MF in mxmlc.jar, and saw: > > > > Main-Class: flex2.tools.Compiler > > > > So, I tried this in CF: > > > > Application.com.MXMLc = > > Application.com.URLClassLoader.LoadJarClass(CompilerPath, > > "flex2.tools.Compiler"); > > > > That works, and I can CFDUMP the object to see a list of its methods > > and properties, but: > > > > - I can't set the property FILE_SPECS: I get an > > java.lang.IllegalAccessException with the message: "field is final" > > > > - I can't invoke the "compile" method. My code is: > > Application.com.MXMLc.compile(JavaCast("String", MxmlPath)); > > I get the CF message "The selected method compile was not found." > > > > Can anyone shed some light on this? Is it documented anywhere? > > > > I apologize if this is silly; I'm expert with CFML but not experienced > > with Java interaction. > > > > I did try to just use CFEXECUTE at first, with mxmlc.exe, but had > > trouble with it. I've always found CFEXECUTE frustrating, so I thought > > I'd give this approach a try. > > > > Thanks! > > Avi Flax > > Flex Newbie > > Arc90, New York > > http://www.arc90.com/ > > > -- 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] Possible to invoke Flex2b2 compiler as a Java class?
I'd like to invoke the Flex2b2 compiler from ColdFusion using the Java class, if possible. I looked at the file MANIFEST.MF in mxmlc.jar, and saw: Main-Class: flex2.tools.Compiler So, I tried this in CF: Application.com.MXMLc = Application.com.URLClassLoader.LoadJarClass(CompilerPath, "flex2.tools.Compiler"); That works, and I can CFDUMP the object to see a list of its methods and properties, but: - I can't set the property FILE_SPECS: I get an java.lang.IllegalAccessException with the message: "field is final" - I can't invoke the "compile" method. My code is: Application.com.MXMLc.compile(JavaCast("String", MxmlPath)); I get the CF message "The selected method compile was not found." Can anyone shed some light on this? Is it documented anywhere? I apologize if this is silly; I'm expert with CFML but not experienced with Java interaction. I did try to just use CFEXECUTE at first, with mxmlc.exe, but had trouble with it. I've always found CFEXECUTE frustrating, so I thought I'd give this approach a try. Thanks! Avi Flax Flex Newbie Arc90, New York http://www.arc90.com/ -- 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/
[flexcoders] Flex2 Beta1: Trouble with HTTPService.setCredentials()
I'd like to create a Flex2 app that can access a REST API using Basic HTTP Authentication. I'm using the latest beta. So, here's my test code: http://www.macromedia.com/2005/mxml"; xmlns="*" layout="absolute" backgroundColor="#ff" creationComplete="httpService.setCredentials('[EMAIL PROTECTED]', 'password');httpService.send();"> http://www.aviflax.com/feed"; useProxy="false" resultFormat="text"/> If I remove the setCredentials() call, it works fine. If I add it, then the send() method throws this error: TypeError: Error #1034: Type Coercion failed: cannot convert C:\dev\enterprise_beta1\frameworks\libs\framework.swc(mx/core/mx_internal)$34::[EMAIL PROTECTED] to C:\dev\enterprise_beta1\frameworks\libs\framework.swc(mx/validators/Validator)$132.DirectHTTPMessageResponder at mx.messaging.channels::DirectHTTPChannel/mx.messaging.channels:DirectHTTPChannel::internalSend() at mx.messaging::Channel/setCredentials() at mx.messaging::ChannelSet/setCredentials() at mx.messaging::MessageAgent/set channelSet() at mx.rpc.http::HTTPService/send() at mx.rpc.http.mxml::HTTPService/send() at pxQuoteClientMockup/___Application1_creationComplete() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/mx.core:UIComponent::dispatchCreationCompleteEvent() at mx.core::UIComponent$/http://www.macromedia.com/2005/flex/mx/internal::dispatchCreationCompleteEvents() at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation() at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2() at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher() I posted at the Adobe Labs Forums but (as usual) got no helpful answers - just a confirmation from someone else having the same problem: http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=584&threadid=1113869 Help! Thanks, Avi Flax Arc 90 New York -- 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/