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 ......
ÎļþÈçÏÂ
<BODY>
<SCRIPT src="swfobject.js"
type=text/javascript></SCRIPT>
<SCRIPT language=javascript>
var flashvars = {};
flashvars.myxmlpath = 'content.xml';
flashvars.type = 'content';
flashvars.decription = '0';
flashvars.textstyle = '';
flashvars.de ......
flash µÄ»æͼAPI º¯ÊýÊǺÜÇ¿´óµÄ»æͼ¹¤¾ß£¬Äܹ»´´½¨³öºÜ¶àÉñÆæµÄЧ¹û¡£×î½üżȻ·¢ÏÖÁËһЩ²»´íµÄ³ÌÐò£¬²âÊÔÁËһϸоõºÜÓÐȤ¡£Õⲿ·Ö²»ËãºÜÄÑ£¬Ö÷Òª¶®½èÓÃËûµÄÃüÁ¼ÓÉÏ×Ô¼ºÒ»µã´´Òâ¾ÍÄÜ·¢»Ó³öÒâÏë²»µ½µÄЧ¹û¡£½ÓÏÂÀ´£¬ÎÒÃǽñÌì̽ÌÖ»æÖƵÄһЩ»ù±¾µÄͼƬ£¬ÏÈ»æÖƾØÐΣ¬ÒòΪËüºÜ¼òµ¥£¬½ö½öʹÓÃһЩ¼òµ¥µÄ´úÂë¾ÍÄܹ»Í ......
±ÊÕß¾¹ý³¤Ê±¼äµÄʹÓã¬×ܽáÁ˼¸ÌõΪFlash¼õ·ÊµÄС¼¼ÇÉ£¬Ï£ÍûÓë¸÷λÉÁ¿ÍÃÇ·ÖÏí¡£
¡¡¡¡1¡¢¾¡Á¿¼õÉÙÎÄ×ÖµÄÐðÊö¡£
¡¡¡¡2¡¢Ó¦¾¡Á¿°Ñͼ»×ªÎª“µçÓ°¼ôÇД»ò“ͼÐΔ¡£
¡¡¡¡3¡¢µ¼ÈëµÄͼƬ¸ñʽ×îºÃÊÇ*.jpg»ò*.gifͼƬ¸ñʽ¡£
¡¡¡¡4¡¢Èç¹ûÐèÒªµ¼ÈëÒôÀÖÎļþ£¬×îºÃÊÇ*.MP3£¬ÕâÑùÄãµÄÔ´´úÂë²»»áÌ«´ó¡£
¡¡¡¡5 ......
ROM¡¢RAM¡¢DRAM¡¢SRAM¡¢FLASHµÄÇø±ð?
ROMºÍRAMÖ¸µÄ¶¼ÊÇ°ëµ¼Ìå´æ´¢Æ÷£¬ROMÊÇRead Only MemoryµÄËõд£¬RAMÊÇRandom Access MemoryµÄËõд¡£
ROMÔÚϵͳֹͣ¹©µçµÄʱºòÈÔÈ»¿ÉÒÔ±£³ÖÊý¾Ý£¬¶øRAMͨ³£¶¼ÊÇÔÚµôµçÖ®ºó¾Í¶ªÊ§Êý¾Ý£¬µäÐ͵ÄRAM¾ÍÊǼÆËã»úµÄÄÚ´æ¡£
RAMÓÐÁ½´óÀà:Ò»ÖÖ³ÆΪ¾²Ì¬RAM£¨Static RAM/SRAM£©£¬SRAMËٶȷdz£¿ì£¬ ......