swtÓëopen flash chart
×òÌì¿´ÁËIBMÍøÕ¾ÉÏдµ½rcpÖÐÔËÐÐopen flash chart¾õµÃ²»´í×Ô¼º¾ÍÊÔ×ÅдÁËһϡ£
package com.chart.test;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
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.Display;
import org.eclipse.swt.widgets.Shell;
public class ChartTest {
/**
* Launch the application
* @param args
*/
public static void main(String[] args) {
String file="D:\\ÎÒµÄÎĵµ\\ѧϰ×ÊÁÏ\\SWT\\open-flash-chart-2-Lug-Wyrm-Charmer\\open-flash-chart.swf";
final Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
shell.setSize(500, 375);
shell.setText("SWT Application");
OleFrame oleFrame=new OleFrame(shell,SWT.NONE);
oleFrame.setLayoutData(new GridData(GridData.FILL_BOTH));
OleControlSite controlSite =
new OleControlSite(oleFrame, SWT.NONE, "ShockwaveFlash.ShockwaveFlash");
/**
* doVerb() Requests that the OLE Document or ActiveX Control
* perform an action; actions are almost always changes to the activation state.
*/
controlSite.doVerb(OLE.OLEIVERB_SHOW); //
//
final OleAutomation automation = new OleAutomation(controlSite);
/**
* getIDsOfNames()µÃµ½¿Ø¼þ·½·¨¶ÔÓ¦µÄ id Öµ
*/
int[] methodIDs = automation.getIDsOfNames(new String[] { "LoadMovie" });
System.out.println(methodIDs.length);
System.out.println("methodIDs[0]="+methodIDs[0]);
Variant[] methodArgs = {
new Variant(0), new Variant(file+"?data-file=/bar-3d.txt") };
System.out.println(methodArgs.length);
automation.invoke(methodIDs[0], methodArgs);
shell.open();
shell.layout();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sle
Ïà¹ØÎĵµ£º
ÏÖÔÚÓиöÁé¸Ð£¬ÄǾÍÊÇͨ¹ýÊó±êÍ϶¯ÕâЩСÇò£¬Êó±êÒÆ¶¯µÄʱºò£¬ÄÇЩСÇò»á¸ú×ÙÊó±êÄ¿±êÒÆ¶¯¡£ÕâЩֻҪʹÓÃflash »æÍ¼APIÖÆ×÷£¬
¾ÍÄܹ»Íê³É£»
µÚÒ»²½£ºËæ»ú´´ÔìһЩСÇò
private function creatBall():void
{
for (var i:int=0; i<10; i++)
{
var ball:Ball=new Ball();
addChild(ball);
l ......
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 ºÍÊýѧµÄ½áºÏ¡£¸ßÖеÄÊýѧ£¬´óѧµÄÊýѧ¶¼ºÜÏëºÜÏë½Ó´¥£¬µ«ÊÇÓÉÓڸߵÈÊýѧ²¢Ã»Ñ§µÃºÜºÃ£¬ËùÒÔÕⲿ·ÖµÄ֪ʶȱÉÙÁË¡£½ñÌìÎÞÒâÖ®ÖУ¬¿´µ½ÇòÌåµÄ²ÎÊýµÄ·½³ÌµÄʱºò£¬ÈÃÎÒ ÐËȤ´óÔöÁË¡£×Ðϸ¹Û¿´ÄǸö²ÎÊý·½³Ì£¬Ô½·¢¾õËûµÄ÷ÈÁ¦¡£
ÇòÃæµÄ¹«Ê½£ºx*x+y*y+z*z=a*a£»
ËûµÄ²ÎÊý·½³ÌÊ ......
HTML clipboardThese days a
16GB USB thumb drive
is as necessary as your house keys. Whether you are
taking large work files back and forth from the office or are sharing pictures,
videos, and music with friends, nothing beats the convenience of a USB storage
drive. Well, why not make sure t ......