flash

How do I call a Flex SWF from a remote domain using Flash (AS3)?

非 Y 不嫁゛ 提交于 2019-12-24 04:36:07
问题 I have a Flex swf hosted at http://www.a.com/a.swf. I have a flash code on another doamin that tries loading the SWF: _loader = new Loader(); var req:URLRequest = new URLRequest("http://services.nuconomy.com/n.swf"); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoaderFinish); _loader.load(req); On the onLoaderFinish event I try to load classes from the remote SWF and create them: _loader.contentLoaderInfo.applicationDomain.getDefinition("someClassName") as Class When this code

Streaming video file?

為{幸葍}努か 提交于 2019-12-24 04:10:23
问题 I need to stream an flv file. Streaming should look like live streaming, and I there should be a way to change the target file. Sorry for my poor English. 回答1: If by "streaming" you mean "showing a flash-video clip", flv-streaming isn't really streaming, but it's a normal file transfer, with the flash player starting playback even if the file isn't completely downloaded to the client. Time seeking is implemented in a standard HTTP way, with a file download offset - if you scroll the video

How to Calculate Frequency & Amplitude in Flash AS3 with Flash Player 9

流过昼夜 提交于 2019-12-24 04:06:08
问题 How can I calculate Frequency & Amplitude in As3 with FP9. I got the all raw byte using SoundMixer.computeSpectrum(_testbytes, false, 0); var g:Graphics = this.graphics; g.clear(); g.lineStyle(0, 0x6600CC); g.moveTo(0, PLOT_HEIGHT); var m:Number = 0; for (var i:int = 0; i < 256; i++) { m = (_testbytes.readFloat() * 100); g.lineTo(i*2 , 100 - m); } g.lineTo(CHANNEL_LENGTH * 2, PLOT_HEIGHT); Now Can I get the frequency & amplitude data from it? 回答1: If you have a closer look at the

嵌入式系统烧写uboot/bootloader/kernel的一般方法

只谈情不闲聊 提交于 2019-12-24 03:54:02
嵌入式系统烧写uboot/bootloader/kernel的一般方法 本文介绍了在嵌入式系统中烧写uboot/bootloader/kernel 的一般方法,以及如果uboot或者内核出现错误, www.2cto.com 引导失败等情况时如何重新烧写uboot/kernel. 烧写uboot/kernel的方式一般有两种,一种是在linux本身(shell中),直接将uboot/kernel的影像文件(二进制文件)使用操作烧写flash的命令烧写到flash特定分区上, 另一种是在uboot界面上,通过配置serverip,ipaddr,使用tftp命令 下载 uboot/kernel到flash上 例子如下: //一,在linux的shell中烧写uboot/kernel mtd write命令是自定义的烧写flash命令。 //烧写uboot ,/dev/mtd0 是bootloader 的特定分区 mtd write u-boot.bin /dev/mtd0 //烧写kernel, mtd1 是kernel的特定分区 mtd write vmlinux.elf /dev/mtd1 //重启 reboot //二,在uboot界面中烧写uboot/kernel,以kernel为例子 //在bootloader 界面中 //本机uboot 的ip地址 setenv ipaddr

Touch Events not registering for HTML5 Canvas Authoring using Flash CC

不羁岁月 提交于 2019-12-24 03:45:11
问题 I have been having some issues when it comes to authoring HTML 5 Canvas in Flash CC, mostly as a result of the lack of information on writing JavaScript inside Flash. I have been converting an existing drag and drop .fla into HTML 5 with the hope of making it iOS and Android compatible. It is already functioning with mouse, but I have hit a brick wall on trying to add touch support. The only way I have been able to even register the touch events is by listening to the entire window, which isn

How to show AdMob ads (iOs and Android) through Actionscript in Flash CC

喜夏-厌秋 提交于 2019-12-24 03:32:38
问题 I am creating a flash game in Actionscript 3 and Flash CC. I intend to publish the game for iOs and Android. I am looking for a way to show AdMob ads in Actionscript. So far I have done those steps but no ads appear anywhere on screen: I have downloaded admob_all_in_one6.6.7.ane from here. I added the ane to my build path. I use the code below when the game is starting, before anything else: import so.cuo.platform.admob.Admob; import so.cuo.platform.admob.AdmobPosition; import so.cuo.platform

How to create a textbutton in Flash using ActionScript 3?

旧时模样 提交于 2019-12-24 03:18:05
问题 When I tried using a textfield as a button, it seems it is not having the buttonMode property. How can I programatically create a text button using ActionScript in a Flash project. It should be a simple text, which is clickable. 回答1: You can add the TextField to a Sprite and use it as the button. buttonMode is the property of Sprite class. If you really want to use just a TextField , you can assign an anchor tag <a href="event:something">label</a> to its htmlText or listen to mouseOver and

How to embed a web conference room into web application?

你离开我真会死。 提交于 2019-12-24 02:52:47
问题 I would like someone's advice to find a solution for this situation. Basically what I need is to have a permanent web conference room in my web application to handle remote interviews. This means that any user of the web application can get access to the room and have an interview with another user of the same web application, I need only 2 connection at the same time. I did a little research about this topic and I have found several different solutions but none of them, at least at first

How to embed a web conference room into web application?

前提是你 提交于 2019-12-24 02:52:28
问题 I would like someone's advice to find a solution for this situation. Basically what I need is to have a permanent web conference room in my web application to handle remote interviews. This means that any user of the web application can get access to the room and have an interview with another user of the same web application, I need only 2 connection at the same time. I did a little research about this topic and I have found several different solutions but none of them, at least at first

Flash radiobutton: how do I get the selected radiobutton?

醉酒当歌 提交于 2019-12-24 02:49:06
问题 I have a few radiobuttons I drag and drop within same group. In main.as I added click event listener. How do I get the selected radiobutton ? handler target argument doesn't contain any reference to it. 回答1: Grab a reference to the current RadioButtonGroup and access the selection reference, this will return a reference to the current radio button that is selected in the group. http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/controls/RadioButtonGroup.html http://help