我想在Web服务器(LAMP)上保存我的Flex应用程序的屏幕截图.这是Flex代码:
private function getBitmapData( target : UIComponent ) : BitmapData
{
var bd : BitmapData = new BitmapData( target.width, target.height );
var m : Matrix = new Matrix();
bd.draw( target, m );
return bd;
}
Run Code Online (Sandbox Code Playgroud)
现在,如何将此数据发送/接收到服务器?
如何设置Spark List控件的滚动位置?
谢谢!
我使用fileReference.browse()从硬盘驱动器中选择一个图像文件.
如何检查所选图像文件的宽度和高度?
谢谢!
看起来我可以使用组件<mx:>或两者<s:>.
那么,哪个更有优势呢?
如何初始化二维类型的Vector是AS3?
现在我只能这样做了:
private var _mainArray : Array = new Array( MyConst.DIMENTION );
public function MyArray()
{
for ( var i : int = 0; i < MyConst.DIMENTION; i++ ) {
_mainArray[ i ] = new Vector.<int>( MyConst.DIMENTION );
}
}
...
_mainArray[ i ][ j ] = 0;
Run Code Online (Sandbox Code Playgroud) 我想以编程方式从我的flex应用程序执行CMD命令.就像是
> mediaplayer.exe "mySong.mp3"
Run Code Online (Sandbox Code Playgroud)
我也尝试过使用fscommand但没有成功.谷歌搜索时我了解到AIR不支持它.我想知道是否还有其他替代方法来执行命令.谢谢...
当我们需要使用MXML时,MXML和Actionscript3之间有什么区别?
我正在尝试用图像修饰一个按钮.
以下代码适用于flex 3,但我需要flex 4代码中的等效代码.不使用皮肤类.
.muteVolumeButton
{
upSkin: Embed(source='images/sound-mute.gif');
overSkin:Embed(source='images/sound-hover.gif');
downSkin: Embed(source='images/sound-on.gif');
disabledSkin: Embed(source='images/sound-mute.gif');
}
Run Code Online (Sandbox Code Playgroud)
请发布flex 4代码.
当我GZIP一个swf文件时,大小从1,21 mb到1,86 mb ......所以,我的问题有点自己回答.真正的问题是这是如何可能的?我想,正如我的同事所说,swf已经是二进制的,不能再被压缩了.
结论也是不应该执行压缩swf文件.
如果我的flex数据网格是可编辑的,如何使我的某些datagridcolumns不可编辑或只读?