flash

How would you programmatically embed a SWF in a PDF?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 05:20:32
问题 Is it possible to programmatically embed a SWF in a PDF from a C# application? 回答1: You can use the c# port of the iText library. It's called iTextSharp. http://itextsharp.com/ An example of what the code could look like: // create an output file stream which will be used to capture the generated file string outputFileName = "output.pdf"; FileStream outputFile = new FileStream(outputFileName, FileMode.Create); // open the original pdf file as a PdfReader PdfReader reader = new PdfReader(

Why Sytem.totalMemory keeps increasing?

和自甴很熟 提交于 2020-01-01 05:17:06
问题 I have this blank project, just to check out System.totalMemory variable. As far as I can see, i get this values: 3076 3092 3096 3088 3092 3096 3100 3104 3108 3112 3117 3121 3125 3129 3133 3137 3141 3145 3149 ... And so on I had no Flash open, no Internet Browser, no other instance of flash. The project is blank, only one static text, and one dynamic text, called 'memory'. One *.as file, that contains this code: package{ import flash.display.Sprite; import flash.events.Event; import flash

ZeroClipboard: swf loaded, but not working

空扰寡人 提交于 2020-01-01 04:26:07
问题 ZeroClipboard doesn't work and it doesn't throw any errors (javascript console). The website is hosted on a HTTPS webserver running on localhost. Both the website and the SWF are served over HTTPS by the same server. The SWF is loaded and positioned correctly over the button (with ID: testButton). When right-clicking on the button, the flash context menu (About Adobe Flash Player 11.7...) is shown. However, none of the events, not even "load", gets fired. I am working on this problem for two

Plupload [Asp.net版]

旧城冷巷雨未停 提交于 2020-01-01 03:18:57
前天发的 图片压缩后上传[Flash] ,有园友评论说和 Plupload 有点像! 特地了解了一下Plupload。 Plupload官网: http://www.plupload.com 它是一个开源组件!功能的确很强大! 它主要功能是多文件上传,并提供图片客户端尺寸压缩。主要的特色是可以使用 Flash Gears HTML 5 Silverlight BrowserPlus HTML 4 等多项技术实现! 服务器端代码是PHP的。我下载了它的源码和实例,查看Flash源码发现它和我的想法基本一样。但是不同的是它是使用Flash CS开发的Flash只有11KB! 后来有在网上找了很久才查到国外有人写了ASP.NET版的。于是把Plupload的服务器端修改为 ASP.NET进行了测试!发现它图片支持PNG,但是压缩后PNG透明不部分就不透明了!和我之前遇到的问题一样!官方资料很全,根据实例自己做了个汉化ASP.NET版的!并且他的Flash是完全透明的。只要把Flash绝对定位到你的HTML按钮上就可以使用了,这个思路很好! 它在使用Flash上传处理过的数据时也可以显示进度,这个还没有完成搞清楚! 它的缺点:真是骨头里挑刺,配置还是有复杂,没有中文版,服务器端只提供了PHP代码,JS用的十分多! 界面如下: Plupload Flash ASP.NET汉化版下载:

Determine if swf is in a “debug” player or mode

久未见 提交于 2020-01-01 03:15:48
问题 Is there a way using Flash (CS3+AS3) to determine if the published swf is running in a debug player or in Flash's debug mode? I'm aware that Flex provides the ability to setup different build targets (release/debug) and that you can use something like CONFIG::debug for #ifdef style inclusion of code at compile time. I'm imagining something like System.isDebug() but can't find anything. I want to use this because there's debug functionality in my app that I definitely don't want to be

Replacing strings inside SWF

℡╲_俬逩灬. 提交于 2020-01-01 03:12:26
问题 We've got dozens of versions of an SWF modified for different customers of a big Flash project, and now would have to replace some strings embedded in scripts in each copy. The FLA file for some of these is very difficult to locate or even missing (I inherited this mess and refactoring it is currently not an option). Is there a (free) tool to replace strings used inside ActionScript? I tried swfmill to convert the files to XML and back but it can't handle international characters contained in

Best practice for ActionScript 2 events - is there a way to simulate ActionScript 3-style events?

橙三吉。 提交于 2020-01-01 02:51:26
问题 I love the AS3 event model - it helps keep my code clean and lossely coupled. When I used to work on AS2 projects, my code was not so neat and classes were more reliant on one another. Due to AS2's strange handling of scope I never really got on with the AS2 event system. As I still occasionally have to work in AS2, my question is: Has anyone managed to simulate the AS3 event API in AS2, and if not, what is the best practice for listening to and dispatching events and handling scope? 回答1: Its

Flash AS3 EventDispatcher - any way of getting a list of registered listeners?

旧巷老猫 提交于 2020-01-01 02:42:25
问题 Is there any way of getting a list of registered listeners for an EventDispatcher ? I know that EventDispatcher has the hasEventListener method to tell you if any listeners are registered, but is there an easy way of interrogating the EventDispatcher to find out what the listeners are? One way I figured to do this was to subclass EventDispatcher to override the addEventListener method and store the listeners in a dictionary, but this feels clunky to me. Any ideas? 回答1: Ok, so it seems that

Javascript to flash communication

我怕爱的太早我们不能终老 提交于 2019-12-31 22:28:11
问题 I am trying to call a Actionscript function from javascript but I am having problems in Internet Explorer. I am using Swiff.remote in mootools 1.2.1 to call the actionscript function ie: Swiff.remote(playSwf.toElement(), 'sendResult', result, plays, name); This all works fine in FireFox, Safari and Opera but I'm getting an "unspecified" error in Internet Explorer 6 and 7. I have tried using the bog standard: window['flash'].sendResult(result, plays, name); To no avail. Thanks for any help.

LoaderContext and ApplicationDomain changes with Adobe AIR?

荒凉一梦 提交于 2019-12-31 22:28:09
问题 I'm currently experimenting with loading external SWF files from both an standard AS3 application, and an AIR application. It seems that the AIR application doesn't act the same way a standard SWF run by the Flash Player does. According to the documentation, the applicationDomain property of LoaderContext is usable in an AIR application too, but it just seems to be not working. I have the following code : package { import flash.display.Loader; import flash.display.LoaderInfo; import flash