|
比如说在网页中的这段代码
<embed name="FlashShow" width="925" height="250" src="123.swf" quality="best" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#ffffff" wmode="transparent" FlashVars="mypic_add=|||" ></embed>
这个 FlashVars="mypic_add=|||" 在aardio中如何实现,我用这个flashBox.setVariable("mypic_add","||||")怎么不行?
- import win.ui;
- /*DSG{{*/
- var winform = win.form( bottom=523;text="HTMLayout 使用Flash控件";right=789 )
- /*}}*/
- import web.layout;
- var wbLayout = web.layout( winform );
- import com.flash;
- wbLayout.onControlCreated = function( ltEle,ltCtrl ){
- var movie = ltEle["data-movie"];
- if(movie){
- flashBox = com.flash( ltCtrl )
- flashBox.movie = movie;
-
- flashBox.setVariable("mypic_add","||||")
- flashBox.play()
-
- ltEle.onSize = function (ltEle) {
- ltCtrl.adjust();
- }
- ltEle.attachEventHandler();
- }
- }
- import win.ui.ctrl.static;
- wbLayout.html =/***
- <body>
- <widget cls="static" data-movie="http://img.pet.qq.com/xuanflash/1024900151.swf" style="width:100%%;height:100%%;"></widget>
- </body>
- ***/
- winform.show();
- win.loopMessage();
复制代码 |
|