mwelsh
07-02-2006, 03:28 PM
I'm having trouble using [Embed] in Flash 9:
[Embed(source="/l.ms3d",mimeType="application/octet-stream")]
private const modelData:Class;
var Model:ByteArray = new modelData() as ByteArray;
I'm getting:
C:\projects\f3d\f3d.fla:
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at rasterizer::Rasterizer/loadModel()
at rasterizer::Rasterizer$iinit()
at Timeline0_8374d650cc624487b8eed2d5d2794d/::frame1()
The above code works fine in Flex -- I'm guessing there is some nuance of how Embed works in Flash that I am missing. :) Any ideas?
Thanks for the help!
[Embed(source="/l.ms3d",mimeType="application/octet-stream")]
private const modelData:Class;
var Model:ByteArray = new modelData() as ByteArray;
I'm getting:
C:\projects\f3d\f3d.fla:
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at rasterizer::Rasterizer/loadModel()
at rasterizer::Rasterizer$iinit()
at Timeline0_8374d650cc624487b8eed2d5d2794d/::frame1()
The above code works fine in Flex -- I'm guessing there is some nuance of how Embed works in Flash that I am missing. :) Any ideas?
Thanks for the help!