I would like to embed a static map legend png into the CreatePDF code posted elsewhere in the Flex forum. The embedding code looks like this..
[Embed(source="/assets/images/basemaplegend.png")]
[Bindable]
var pngBytes:Class;
myPDF.addImageStream( new pngBytes() as ByteArray, 0, 0, 0, 0, 1, "false");
I have tried every permutation listed on the Internet with this one; changing the source string; copying the file to different subdirectories...nothing works...
Any suggestions???