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

Reply via email to