易截截图软件、单文件、免安装、纯绿色、仅160KB

flash如何获得自身在页面中的长宽

http://www.top000.com/mp3.html
这个页面中,里面那个播放器的swf本身的长宽是:360x50.
这里是这个页面的源代码:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh_cn" lang="zh_cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Mp3</title>
  <embed src="http://www.top000.com/mp3.swf?songs=1|55|555&color=0xff0000" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="447" height="50"></embed>
</body>
</html>
看到那个width="447" height="50"
宽度由360被拉到447了,看到2边出现flash的背景色绿色,flash里面有没办法可以获取自身现在的宽度?也就是447这个宽度?因为我想根据flash在页面中的宽度来设置那个播放器的宽度和高度。有人懂的话请告诉我吧~~谢谢~~
答案:禁止缩放  然后stageWidth stageHeight  就是
       stage.scaleMode=StageScaleMode.NO_SCALE;


相关文档:

flash全屏和非全屏的转换

var aa:Boolean = true;
my_btn.onPress = function() {
 if (aa == true) {
  fscommand("fullscreen", true);
  aa = false;
 } else {
  fscommand("fullscreen", false);
  aa = true;
 }
};
my_btn是一个按钮 ......

FLASH安全沙箱服务器端程序代码(跨平台,C++/JAVA)

Main.cpp  (Win/*nix)
#include "FlexSecurityBox.h"
int main(int argc, char ** argv) {

char * address;
short port;
if (argc == 2)
{
address = "0.0.0.0";
port = atoi(argv[1]);
} else if (argc == 3)
{
address = argv[1];
port = atoi(argv[2]);
} else
{
printf("Y ......

Flash中加载与执行顺序

作者:Merrycat 日期:2007-01-18
 
最近公司FLASH学习小组把我选为组长了 。今天我给大家讲了一下“Flash中加载与执行顺序”,昨天总结了一下午,今天在BLOG上写个教程。如要转载,请注明出处。
先从简单的开始吧。
例1:帧内代码的执行顺序。
在FLASH第一帧插入一下代码:
程序代码
var a:String = " ......

Metal F1 USB Flash Drive

HTML clipboardThese days a
16GB USB thumb drive
is as necessary as your house keys. Whether you are
taking large work files back and forth from the office or are sharing pictures,
videos, and music with friends, nothing beats the convenience of a USB storage
drive. Well, why not make sure t ......

Gentoo安装64位flash player

    之前在Windows下用过Firefox的64位版本-Shiretoko,但是由于64位的flash player plugin一直安装不上,导致很多应用都用不了,据说可以使用NSPlugin Wrapper包和32位的类库来使用32位的flash player,我没有尝试。最近安装了64位的Gentoo,opera和shiretoko还是无法自动安装64位的flash player plugin。 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号