Flex SWFLoader ¼ÓÔØµÄ Application ÔõÃ´Ð¶ÔØ£¿
ÈçÌ⣬ÇëÏê½â£¡£¡£¡
ʹÓÃflash.media.SoundMixer.stopAll();ÊÔÊÔ
package {
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.*;
import flash.net.URLRequest;
public class LoaderExample extends Sprite {
private var url:String = "Image.gif";
public function LoaderExample() {
var loader:Loader = new Loader();
configureListeners(loader.contentLoaderInfo);
loader.addEventListener(MouseEvent.CLICK, clickHandler);
var request:URLRequest = new URLRequest(url);
loader.load(request);
addChild(loader);
}
private function configureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(Event.COMPLETE, completeHandler);
dispatcher.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
dispatcher.addEventListener(Event.INIT, initHandler);
Ïà¹ØÎÊ´ð£º
×Ô¶¨Òå×é¼þÔÚcomponentĿ¼Ï¡£×Ô¶¨Òå×é¼þ´úÂëÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="verti ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" width="100%" he ......
´úÂëÈçÏ£º
ÎÒÉú³ÉÒ»ÏÂÈ«¾ÖµÄINTÀàÐÍgbsumµÄ±äÁ¿£¬°ÑgbsumµÈÓÚÊý¾Ý¿â·µ»ØµÄÖµ£¬Õâ¸öʱºògbsumÒѾֵ·¢ÉúÁ˱仯£¬ÎªÊ²Ã´ÔÚcc·½·¨ÖÐgbsumÓÖ±äΪ³õʼֵ0ÁË£¬ÔõôÔÚcc·½·¨Öе÷ÓÃgbsumÈ¡µ½·¢Éú±ä»¯µÄֵĨ?Íò·Ö¸Ðл£¡£¡£¡ ......
ʹÓÃflexµÄExternalInterface.callº¯Êýµ÷ÓÃjsº¯Êý£¬±ÈÈçExternalInterface.call£¨recFlex,"hello"£©¡£½«recFlexº¯ÊýдÈëindex.template.htmlÒ³ÃæÃ»ÓÐÎÊÌâ¡£µ«ÊÇÏÖÔÚÏ뽫flexÉú³ÉµÄswfÎļþµ¼Èëµ½Ò»¸öweb·þÎ ......
ÈçÌâ¡£¡£
ÏÖÔÚСµÜ ¸Õ¸Õ½Ó´¥ flex ÏëÕÒÒ»¸ö ¾ßÌåµÄÀý×Ó £¨Èç µÇ½ ×¢²áµÄ ¹¦ÄÜʵÏÖ £©¡£¡£
java ºÍ flex ͨÐŵÄ
ÅäÖÃÎļþ java ´úÂë flex ǰ̨ AS ½Å±¾ ×îºÃ ¶¼ дÉÏÈ¥¡£¡£¡£¡£
СµÜ ÏîÑо¿Ñо¿¡£¡£¡£ ......