Apache flex 在flex中嵌入具有参数的swf

Apache flex 在flex中嵌入具有参数的swf,apache-flex,parameters,flash,embed,Apache Flex,Parameters,Flash,Embed,我想嵌入一个需要指定一些flash变量的swf。如何在flex中实现这一点。请看下面我是如何嵌入我的swf的。多谢各位 [Embed ("includes/motion_guide.swf" )] private var swfClass:Class; var ll:LatLng = new LatLng(-27.99, 26.57); this.myPoint = new Poi(ll); this.myPoint.rolloverAndInfoTitleText = "Cl

我想嵌入一个需要指定一些flash变量的swf。如何在flex中实现这一点。请看下面我是如何嵌入我的swf的。多谢各位

 [Embed ("includes/motion_guide.swf" )]
   private var swfClass:Class;


 var ll:LatLng = new LatLng(-27.99, 26.57);
 this.myPoint = new Poi(ll);
 this.myPoint.rolloverAndInfoTitleText = "Click Me";
 var myIcon:ImageMapIcon = new ImageMapIcon();
 myIcon.setImageURL("path",30,30);
 this.myPoint.icon = myIcon;
 this.myPoint.infoContent = (new swfClass());
 this.myMap.addShape(myPoint); 
我建议你看看这里