| Author |
Message |
|
|
andelie
Joined: Jul 18, 2007
Messages: 7
Offline
|
i encountered the following problem when i ues the jswiff:the .jpeg can not display in the .swf file.This is a part of my code:
FileInputStream fis = new FileInputStream(".\\zoomOut.jpg");
byte[] inputByteArray = new byte[fis.available()];
fis.read(inputByteArray);
int defineBitsJPEG2ID = document.getNewCharacterId();
DefineBitsJPEG2 defineBitsJPEG2 = new DefineBitsJPEG2(defineBitsJPEG2ID, inputByteArray);
document.addTag(defineBitsJPEG2);
document.addTag(new ShowFrame());
please show me a way, thanks a lot.
|
|
|
 |
|
|
andelie
Joined: Jul 18, 2007
Messages: 7
Offline
|
this issue is resolved.
Reason: i am defining a jpeg character, but i am not adding it to the frame.
Of course the displayed frame will be empty.
|
|
|
 |
|
|