hi all,
i need any body till me please if i can to run an SWF file (Flash File) Under J2ME, and if it possible i want to know the code which do that.
thanx
hi all,
i need any body till me please if i can to run an SWF file (Flash File) Under J2ME, and if it possible i want to know the code which do that.
thanx
Flash is included into third edition phones like nokia N73 and E50 etc. so i am sure there will be a Micro version of the swf file which will work. i will check it out tonight and will let u know tommorrow.
Regards
Nouman
More info on Flash Lite is available here.
http://www.forum.nokia.com/main/reso...ash/index.html
Regards
Gopal
__________________
MobiQuil.com
An initiative by Developers for Developers.
http://www.mobiquil.com - Alpha - Launched.
There is no swf playing capabilities built in the Java ME, so you cannot play the swf files under Java ME.
Hartti
Thanks all,
so, swf files can't be played from J2ME.
But what about gif files? if you included a gif image in the common way it won't start its animation, and as far as I know, you can make it animate.
But I don't know how...
Any links, documents would be appreciated.
Its possible to use gif images, but is not possible to animate it.
You can do the necessary animation by using Film strips.you have to create the desired strip image with different frames; and then using setClip()and drawImage() to make the necessary animation.
Regards
Gopal
__________________
MobiQuil.com
An initiative by Developers for Developers.
http://www.mobiquil.com - Alpha - Launched.
guys i was wondering why cant swf files work on mobiles. i mean why cant a micro version of swf available so that we can run on mobiles. i am sure mobile now have good graphics capability to support it.
Regards
Nouman
balagopalks: I have seen a midlet that animates a gif image using the Manager.createPlayer(). But I don't remember how exactly...
nicenouman: swf files can run on mobiles, but it can't be embedded in J2ME.
But .swf files already *DOES* work on most (all) current Nokia phones *IF* the .swf file contains Flash Lite content.Originally Posted by nicenouman
In other words, most current phones have an embedded Flash Lite player (depending on the phone, it is Flash Lite 1.1, 2.0 or 2.1).
What's not there, is ability to launch the Flash Lite player (as a separate app, or embedded into a MIDlet) from J2ME.
Note that Flash Lite is a subset of "full" Flash, so all the bells & whistles that work on fancy web sites when using a PC based browser, are not possible today on a mobile phone (not in the standalone player, nor through the phone's web browser).
I found a way to play gif motion in a midlet, check this:
Thanks AllCode:Player player; Form form; VideoControl vidc; Item videoItem; form = new Form("Play gif"); Display.getDisplay(this).setCurrent(form); InputStream ins = getClass().getResourceAsStream("/image.gif"); player = Manager.createPlayer(ins, "image/gif"); player.prefetch(); player.start(); if ((vidc = (VideoControl) player.getControl("VideoControl")) != null) videoItem = (Item)vidc.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE, null); form.append(videoItem);
Thanks Petrib for explaining things more clearly than I was able to explain it.
About GIF files
The gif file support (including animation) is available on some phones, but not on all phones. For example Series 40 phones are supporting PNG and GIF "playback" starting from Series 40 3rd Edition Feature Pack 1. On S60 sides the support was also added for the S60 3rd Edition FP1 phones.
See the implementation notes in the Java ME Developer's guide for more details
http://www.forum.nokia.com/document/...opers_Library/
Hartti
Thanks Hartti for this info. I really missed this!.Originally Posted by hartti
Regards
Gopal
__________________
MobiQuil.com
An initiative by Developers for Developers.
http://www.mobiquil.com - Alpha - Launched.
so in short currently swf files cannot be embedded in J2me but can run on mobile phone having flash player lite.
thanx for the info guys. really appreciate it.
Regards
Nouman
And to add an important point (mentioned already above by user petrib): The SWF files cannot be just any generic SWF files from the internet, they will have to be specifically made for Flash Lite. The Flash Lite player displays Flash Lite files.Originally Posted by nicenouman
Supported Nokia devices are listed and a standalone Flash Lite player for S60 devices can be downloaded at http://www.adobe.com/devnet/devices/nokia.html