JSwiff
flash movies the java way
JSwiff Forum
  Search   Recent Topics     Member Listing    Back to home page 
Register / 
Login 
Help! a jpeg issue.(resolved)  
Forum Index -> How Do I...
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.
 
  Forum Index -> How Do I...
Go to:   
Legal notes
Powered by JForum 2.1.4 © 2005 - Rafael Steil