Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

Air / NetStreamAppendBytesAction /

$
0
0

Hi,

 

I'm currently working on a project that involves using appendBytesAction() which is detailed here: http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/net/NetStrea mAppendBytesAction.html

 

However, when testing the application (CS4, FP10.1 installed, publishing to AIR, Runtime Version 2.0.2.12610) I'm getting the following error:


ReferenceError: Error #1065: Variable flash.net::NetStreamAppendBytesAction is not defined.
...

 

Any suggestions from anybody? was wondering if this was involved: http://swfhead.com/blog/?p=575

 

The code is fairly straight forward:

 

var nc:NetConnection = new NetConnection();
nc.connect(null);
var netstream:NetStream = new NetStream(nc);
netstream.play(null);
// before appending new bytes, reset the position to the beginning
netstream.appendBytesAction(NetStreamAppendBytesAction.RESET_BEGIN);
// append the FLV video bytes
netstream.appendBytes(_content);   

 

 

All help appreciated,

Ryan


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>