views:

73

answers:

0

Hello

In .RC file I can use images and waves as below:

MYIMAGE GIF "images\square7.gif"
MYWAVE WAVE "sounds\login.wav"

And after compiling the .res and including in my dll I can access them with below URLs:

res://D:\myres.dll/gif/MYIMAGE
res://D:\myres.dll/wave/MYWAVE

My question is how to do the same for .swf (flash) file? I want to embed it in resources and want to use it with a URL like above. I tried RCDATA as below:

ENV1 RCDATA "images\smile.swf"

But the url res://D:\myres.dll/rcdata/ENV1 gives a "not found" error.

If I try to use WAVE or GIF for swf file then the url works but the data seems corrupt and flash cant play it.

Any solution?

Thanks in advance.

Sam