flash

AS3 using PrintJob to print a MovieClip

你离开我真会死。 提交于 2019-12-30 02:33:04
问题 I am currently trying to create a function which will allow me to pass in a MovieClip and print it. Here is the simplified version of the function: function printMovieClip(clip:MovieClip) { var printJob:PrintJob = new PrintJob(); var numPages:int = 0; var printY:int = 0; var printHeight:Number; if ( printJob.start() ) { /* Resize movie clip to fit within page width */ if (clip.width > printJob.pageWidth) { clip.width = printJob.pageWidth; clip.scaleY = clip.scaleX; } numPages = Math.ceil(clip

uboot学习之uboot启动流程简述

情到浓时终转凉″ 提交于 2019-12-30 02:32:14
一、uboot启动分为了三个阶段BL0、BL1、BL2; BL0 表示上电后运行ROM中固化的一段程序,其中ROM中的程序是厂家写进去的,所以具体功能可能根据厂家芯片而有所不同。功能如下: 初始化系统时钟、特殊设备的控制器、启动设备、看门狗、堆栈、SRAM等硬件; 验证B1镜像,并且加载BL1镜像到SRAM中,然后跳转到BL1镜像的地址上。 BL0需要将BL1加载到对应的RAM上,这就涉及到它的启动模式,详细如下: 1.OneNand Boot模式 要了解OneNAND先得了解NOR Flash和NAND Flash。与NOR Flash相比,NAND Flash的读数据速度稍慢,但是擦写速度快得多,并且在容量、使用寿命、成本上也占有较大优势。NOR Flash的编程简单,而NAND Flash的编程较为复杂(因为它的flash管理需要特殊的接口)。NAND Flash一般用于存储数据,而NOR Flash一般用于存储启动代码。 NOR Flash带有SRAM接口,有足够的地址引脚来寻址,可以很容易地存取其内容的每一字节(有限的地址引脚是限制其容量的因素之一)。NAND Flash使用复杂的I/O口来串行地存取数据,各个产品或厂商的方法可能各不相同。为了弥补NAND Flash的不足,三星公司在NAND Flash芯片内集成了一个RAM接口,命名为OneNAND Flash

Red5 Security Tutorial

拈花ヽ惹草 提交于 2019-12-30 02:28:06
问题 I am looking for a step by step tutorial on securing Red5 from intrusion. This seems to be a question that comes up alot in a google search, but is never really answered in a way that makes sense to your average flash developer. 回答1: You can secure red5 for Publishing, Playback, or SharedObjects using the security framework. The client does not matter in this case, but if you want to secure oflaDemo for instance you will need to add the security hooks on the backend. Here is the tutorial that

Flex graphic assets: SWF or SWC?

橙三吉。 提交于 2019-12-29 23:27:50
问题 Which is a better format to store graphic assets for a Flex application, SWF or SWC? Are there any real differences, and if so what are they? 回答1: Assets in a seperate SWF are loaded and included at runtime. Assets in a SWC are loaded and included / compiled at compile time. You can also directly embed assets within the main app SWF at compile time (check out the Embed meta data). Of course, you can also load individual assets (such as a PNG) directly at runtime. As far as which is better, it

Playing a movie/DVD on a website

隐身守侯 提交于 2019-12-29 09:32:42
问题 I'm trying to play a movie (ripped from a DVD using handbreak to mp4 format, then using Miro to convert to webm) on a website - it works fine in Firefox and Chrome, but IE6/IE7 just displays a black screen. I'm using videojs but the Flash fallback was not activating, I believe this is because it was trying to view the external .swf file which I've now hosted locally (it's on https) but I still cannot get the video to run: https://secure.photofileltd.co.uk/new_site/index.php?page=video Any

AS3 - hitTestObject Collision Not Registering Correctly

北战南征 提交于 2019-12-29 09:22:24
问题 I had a problem with my hitTestObject collision detection a couple of days ago which has since been fixed (How can I solve my hitTestObject Collision Null Object Ref Error) with the help of you folks (thanks). My problem now is as such: When my "enemy.hit" comes into contact with "player.hit" it registers as a hit - this is good. When my "building.collide" comes into contact with "player.hit" it registers as a hit - this is good. However, when my "building.collide" comes into contact with my

AS3: get browser window size?

倖福魔咒の 提交于 2019-12-29 09:12:32
问题 Can I get the obtain the size of the browser window in AS3? The best method I've found is to get the size with Javascript and send it to Flash as a FlashVar. One limitation of this method is that it doesn't give the current size if the window is resized. Is there a pure Flash way to do this? 回答1: It depends if you are trying to set your swf to fullscreen, or simply obtain window dimensions for some other purpose. If you are doing fullscreen, you need to set your stageScaleMode to NO_SCALE,

AS3: How accurate are the getTimer() method and the Timer class?

风格不统一 提交于 2019-12-29 08:58:44
问题 I'm in the process of making a game (a shmup) and I've started to question the accuracy of the timers in ActionScript. Sure, they're accurate enough when you want to time things on the order of a few seconds or deciseconds, but it seems to perform pretty poorly when you get to finer ranges. This makes it pretty tough to do things like have a spaceship firing a hundred lasers per second. In the following sample, I tested how long (on average) the intervals were between 1000 timer ticks

Game Development: Flex or Flash IDE?

假装没事ソ 提交于 2019-12-29 08:14:13
问题 Which would be more comprehensive for game development? 回答1: It depends. Are you working by yourself or in a team ? Are you more a designer or a developer ? What's your level of comfort with actionscript ? If you're just starting with actionscript , you're somewhat comfortable with the Flash IDE and you want to make fun indy games for people to bash buttons and destroy mice, go with Flash . The look will weigh more at this stage and interaction will be simpler. Never the less you can create

Does HTML5 only replace the video aspects of Flash/Silverlight?

a 夏天 提交于 2019-12-29 08:14:10
问题 I see a lot of talk how HTML5 video tag will kill Flash. But while video is the most widely used part of Flash/SL, it's only a small part of their technical abilities. For instance you can write a game using full 3D graphics and socket connections in Flex, and serious business applications, etc. Is the thinking that Javascript will kill those parts of Flash/Flex/SL? Because while that seems feasible now for even quite rich web-apps, what about any kind of high-performance app like real-time