Sie sind nicht angemeldet.

1

Montag, 8. Juni 2009, 12:44

import png inside a swf ?

Hi,

Is it possible to import an image inside a swf compiled with the free mxmlc compiler ?

Somebody has an exemple of it ?

Thanks !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

2

Montag, 8. Juni 2009, 16:00

yes, it is:

first embed the image with this code:

Quellcode

1
[Embed(source="image.png")]  private var embeddedimage:Class;


then you could create a bitmap of it everywhere with this:

Quellcode

1
var image:Bitmap = new embeddedimage();

3

Donnerstag, 17. März 2016, 10:59

I can not insert an image in swf.
help me
http://prntscr.com/agbwqc
»k.dinya« hat folgendes Bild angehängt:
  • Screenshot_8.jpg

4

Donnerstag, 17. März 2016, 11:48

What do you want todo?

When you embed the image, you can use it in the xml (Flash-only) and don't need the external file anymore.