Parsing textures between Flash and Unity

Hi guys,

Im trying to get AR working between flash and Unity Ive seen several other people try but nobody seems to have cracked it, passing the transform matrix from flash to unity seems easy but im struggling with the webcam feed, at the moment Im working based off of the example Cannon put up here http://forum.unity3d.com/threads/116650-UnityShared.swc-Communicating-between-Unity-Flash-Content-and-AS3./page6

But im struggling to parse the return value of my function, this is the code in the AS file:

	public static function GetVideo(o:String):ByteArray
		{
			var bitmapData:BitmapData = new BitmapData(640, 480);
			bitmapData.draw(_vid);
			return bitmapData.getPixels(new Rectangle(0, 0, 1, 1));		
		}

Into values unity can understand, the code that calls the function in c# from unity looks like this:

		#if UNITY_FLASH
	                byte[] value= ActionScript.Expression<byte[]>("FlashProxy.GetVideo({0})",message);
		#endif
		Log(BitConverter.ToUInt32(value, 0).ToString());

but im getting the error col: 15 Error: Definition System:BitConverter could not be found.
Which pops up in the .as file not the c# file which leads me to believe flash doesnt support the ToUInt32() function.
Can anyone point me in a better way to parse this data, ive tried loads of different ways and keep on running into walls :(, any help would be appreciated.

Regards,
GlitterWad

UP

same problem :shock: