The source path should be C:\, not C:\com A better idea might be to make a source path folder called C:\as3classes or something and place com (and org and net and whatever else comes up) inside that.
Also, your file (RTMPConnection.as) would have to be inside C:\as3classes\com\rtmp\. Finally, if this isn't for a website at http://rtmp.com, then you probably should rethink your package structure. On 4/28/07, tommek <[EMAIL PROTECTED]> wrote:
Hello people, I am trying to use as3 class file in flex. I have the file sitting in c:\com I have added a (source path) c:\com to my flex project. To use the class i get these errors: 1046: Type was not found or was not a compile-time constant: RTMPConnection. 1120: Access of undefined property RTMPConnection. 1180: Call to a possibly undefined method RTMPConnection. Could any please tell me what could be the cause or where i'm going wrong. Have i set my class path correctly etc? Here is my code. <mx:Script> <![CDATA[ import com.rtmp.RTMPConnection; private var nc : RTMPConnection; public function init() : void { nc : RTMPConnection = new RTMPConnection(); } ]]> </mx:Script> thanks tom. _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
-- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com