Skip to main content
Participant
April 27, 2009
Question

1046: Type was not found or was not a compile time constraint: DynamicStream.

  • April 27, 2009
  • 1 reply
  • 640 views

I'm trying to set up a dynamicstream for the first time but am getting these errors:

1046: Type was not found or was not a compile time constraint: DynamicStream.

1046: Type was not found or was not a compile time constraint: DynamicStreamItem.

Do I need to import something in order to use the DynamicStream class?

My script is:


import fl.video.*;

var nc:NetConnection = new NetConnection();
nc.connect("rtmp://localhost/vod");

var ds:DynamicStream = new DynamicStream(nc);

var dsi:DynamicStreamItem = new DynamicStreamItem();
dsi.addStream ("video500", 500);
dsi.addStream ("video1000", 1000);
dsi.addStream ("video1500", 1500);

ds.play2 (dsi);

    This topic has been closed for replies.

    1 reply

    bank555Author
    Participant
    April 30, 2009

    I thought the classes were part of AS 3.0 but I just realized that they're part of a separate DynamicStream API from Adobe.   I was able to download the API and classes and it's now working.