Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÈçºÎÓÃSWT¼ÓÈëflash²å¼þ

Ò»£¬¿Ø¼þ·â×°
import java.io.File;
import org.eclipse.swt.SWT;
import org.eclipse.swt.SWTError;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.ole.win32.OLE;
import org.eclipse.swt.ole.win32.OleAutomation;
import org.eclipse.swt.ole.win32.OleControlSite;
import org.eclipse.swt.ole.win32.OleFrame;
import org.eclipse.swt.ole.win32.Variant;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import com.swtdesigner.SWTResourceManager;
import swing2swt.layout.BorderLayout;
public class SWF extends Composite {
private OleAutomation player;
/**
* Create the composite
* @param parent
* @param style
*/
public SWF(Composite parent, int style) {
super(parent, style);
final FillLayout fillLayout = new FillLayout();
setLayout(fillLayout);
setSize(649, 60);
setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_BLACK));
createContents();
}
protected void createContents() {
OleControlSite controlSite;
try {
OleFrame frame = new OleFrame(this, SWT.NO_TRIM);
frame.setLayout(new FillLayout());
//frame.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_BLACK));
controlSite = new OleControlSite(frame, SWT.NO_TRIM, “{D27CDB6E-AE6D-11cf-96B8-444553540000}”);
controlSite.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_BLACK));
controlSite.setRedraw(true);
controlSite.setLayoutDeferred(true);
controlSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
controlSite.pack();
} catch (SWTError e) {
System.out.println(”Unable to open activeX control”);
return;
}
player = new OleAutomation(controlSite);
setFocus(); // prevents vm from crashing on shutdown.
pack();
//loadFile(Application.getConfigAsString(”media.list”));
loadMove( new File(”ad.swf”));
setQuality2(”high”);
setScale(”ExactFit”);
setWMode(”Transparent”);
setLoop(true);
play(true);
//
}
public void setWMode(String s) {
int ids[] = pl


Ïà¹ØÎĵµ£º

¾«¼òFlashÎļþÌå»ýµÄ¼¸¸öС¼¼ÇÉ

±ÊÕß¾­¹ý³¤Ê±¼äµÄʹÓã¬×ܽáÁ˼¸ÌõΪFlash¼õ·ÊµÄС¼¼ÇÉ£¬Ï£ÍûÓë¸÷λÉÁ¿ÍÃÇ·ÖÏí¡£
¡¡¡¡1¡¢¾¡Á¿¼õÉÙÎÄ×ÖµÄÐðÊö¡£
¡¡¡¡2¡¢Ó¦¾¡Á¿°Ñͼ»­×ªÎª“µçÓ°¼ôÇД»ò“ͼÐΔ¡£
¡¡¡¡3¡¢µ¼ÈëµÄͼƬ¸ñʽ×îºÃÊÇ*.jpg»ò*.gifͼƬ¸ñʽ¡£
¡¡¡¡4¡¢Èç¹ûÐèÒªµ¼ÈëÒôÀÖÎļþ£¬×îºÃÊÇ*.MP3£¬ÕâÑùÄãµÄÔ´´úÂë²»»áÌ«´ó¡£
¡¡¡¡5 ......

Adobe Flash Player

Want play some .SWF files, so download "Adobe flash player for IE", then install successfully, but it is a plug, can't open the swf files independently, by the other word, I just can play them in IE, but I don't like so.
At first, I think there is a .exe player can be executing, so locate C:\windo ......

FlashÓëÊýѧ£ºÇòÌåÇúÃæ

   ¶ÔÊýѧÕâÒ»²¿·Ö£¬ÎÒÔ½À´Ô½Ï²»¶¹ØÓÚflash ºÍÊýѧµÄ½áºÏ¡£¸ßÖеÄÊýѧ£¬´óѧµÄÊýѧ¶¼ºÜÏëºÜÏë½Ó´¥£¬µ«ÊÇÓÉÓڸߵÈÊýѧ²¢Ã»Ñ§µÃºÜºÃ£¬ËùÒÔÕⲿ·ÖµÄ֪ʶȱÉÙÁË¡£½ñÌìÎÞÒâÖ®ÖУ¬¿´µ½ÇòÌåµÄ²ÎÊýµÄ·½³ÌµÄʱºò£¬ÈÃÎÒ ÐËȤ´óÔöÁË¡£×Ðϸ¹Û¿´ÄǸö²ÎÊý·½³Ì£¬Ô½·¢¾õËûµÄ÷ÈÁ¦¡£
ÇòÃæµÄ¹«Ê½£ºx*x+y*y+z*z=a*a£»
ËûµÄ²ÎÊý·½³ÌÊ ......

UbuntuÏÂFlashÖн«ºº×ÖÏÔʾΪ·½¸ñµÄ½â¾ö°ì·¨

UbuntuÏÂ×°ÍêAdobeµÄFlash²å¼þºó£¬ä¯ÀÀÆ÷Àï¿ÉÒÔ²¥·ÅFlash¶¯»­ÁË¡£µ«ÊÇ»¹´æÔÚÒ»¸öÎÊÌâ¾ÍÊǺº×ÖÎÞ·¨ÕýÈ·ÏÔʾ£¬ÏÔʾΪ·½¸ñ
½â¾ö°ì·¨£º
ÐÞ¸ÄÕâ¸öÅäÖÃÎļþ
/etc/fonts/conf.d/49-sansserif.conf
°ÑÆäÖÐËùÓеÄ×ÖÌåÃûÌæ»»ÎªÖÐÎÄ×ÖÌåÃû¼´¿É£¬ÎÒÕâÀïÓõÄÊǓ΢ÈíÑźڔºÍ“Consolas“¡£
<?xml version=" ......

flashÌØÐ§Ô­Àí£ºÂÝÐýЧ¹û £¨3£©

    ×î½ü¶Ô¸ßÊýÆðÁ˺ܴóµÄÐËȤ£¬ÌÍÇ®ÂòÁËÒ»±¾¸ßµÈÊýѧ¡£·¢ÏÖÀïÃæµÄÕæÊÇÒ»·Ý±¦Î×î½ü¿´ÁËÒ»¸öÈ˵IJ©¿Í¡£¹ØÓڸߵÈÊýѧµÄ֪ʶ£¬¶ÔÂÝÐýÏßµÄÐÎ̬ԭÀ´²»½ö½öÊÇÒ»ÖÖ¡£¹ýÈ¥³¢ÊÔÖÆ×÷µÄͼÐÎÒ²ÊÇÒ»Öֵķ½Ê½£¬ÏÖÔÚÌá¼°ÕâÖÖÂÝÐýÏß²»ÊÇÎ§ÈÆ×ÅÔ²ÖùÐÎ×´Ðýת£¬¶øÊÇÔ²×¶¡£¶ÔÎÞ´í£¬Ô²×¶Ìå¡£ÓÖÊÇÈÃÈ˾õµÃ²»Ë¬µÄÊýѧ£¬²»¹ýϸÐÄ· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ