flash

Best way to show image sequence as a movie in Adobe AIR

冷暖自知 提交于 2020-01-03 05:11:07
问题 I need to show an image sequence as a movie in an Adobe AIR application - i.e. treat lots of images as video frames and show the result. For now I am going to try simply loading them and displaying in a movie clip but this might be too slow. Any advanced ideas how to make it work? Images are located on a hard drive or very fast network share, so the bandwidth should be enough. There can be thousands of them, so preloading everything to memory doesn't seem feasible. Adobe AIR is not 100%

Simple secure way for Flash to MySQL Database

雨燕双飞 提交于 2020-01-03 05:08:35
问题 Any simple, but secure script available for Flash > MySQL DB integration? I need something for a Login DB. Exchanging variables with PHP is nice and easy, but obviously insecure. via Remoting? I've got the Flash 8 remoting components installed, and some ideas: idea-1, idea-2. via NetConnection? Got some leads: lead-1, lead-2. Cold Fusion? Anybody has any ideas? Less likely solutions: via XML? Anybody has any idea how to use XML to connect to a DB? (AS2 or AS3) AMF-PHP is not possible for

Pass data from action script to javascript

家住魔仙堡 提交于 2020-01-03 05:05:23
问题 Does anyone know if I can pass data from flash (action script) to java script? If yes... how? (I need to send an ajax request with a text typed inside a textbox from actionscript). 回答1: You can use ExternalInterface to interact w/ JavaScript import flash.external.ExternalInterface; button_1.addEventListener(MouseEvent.CLICK, function(){ ExternalInterface.call("myFunc", "param"); }); for some reason i run into issues if i declare JavaScript tag type='text/javascript' . so i recommend using:

Flash AS3 loading swf file into banner

心已入冬 提交于 2020-01-03 04:58:08
问题 I'm trying to make a flash banner that is less than 30K, so I want to create a dummy file, that will be the upper layer and the link to the website, and the lower layer will be calling the SWF file from my source. I remember doing it once, but I've searched the web (maybe I just couldn't get my Google query right) and didn't find a solution. Any suggestions? Thanks in advance! 回答1: So you want a .swf to load another .swf into itself? Use the Loader class for that. 来源: https://stackoverflow

Retrieving percentage of colors of a MovieClip

时光总嘲笑我的痴心妄想 提交于 2020-01-03 04:48:07
问题 today my question is as follows: I have a game, and one of the phases is that you have to pass a "protective cream" on the doll's body. I already have this effect (image below), I'm using an alpha filter combined with a mask that is drawn. I wonder how can I do to be checking after 20 seconds of the game, if the user has filled 100% of the masks ... My code is this (forgive me, I am beginner and Brazilian ... any questions ask me): stop(); import flash.display.Shape; import flash.events.Event

How to get visible size of DisplayObject with perspective projection

自闭症网瘾萝莉.ら 提交于 2020-01-03 04:47:08
问题 The following is entirely a math question. As we know, PerspectiveProjection delivers perspective transformations in 3D represented by the interdependent values of fieldOfView and focalLength according to the following formula: focalLength = stageWidth/2 * (cos(fieldOfView/2) / sin(fieldOfView/2) (source: bgstaal.net) Q: How to get the visible on-screen size of the DisplayObject (Cube on the above-linked image) to which PerspectiveProjection has been applied? A more thorough description and

ActiveX Flash component in C# .NET 2.0 Application causes memory leak?

♀尐吖头ヾ 提交于 2020-01-03 04:32:15
问题 We have a C#/.NET 2.0 WinForm with an ActiveX ShockwaveFlashObject control on it. The program loops through a schedule of content and displays it over and over on the control, fullscreen, like this: axFlash.BringToFront(); axFlash.Movie = scheduleItem.FilePath; axFlash.Show(); axFlash.Play(); This works great, but after a couple of days running, the form on which the Flash ActiveX control resides will throw an exception like this: System.Runtime.InteropServices.SEHException: External

Does the workflow differ between Flash Builder and Flash Professional?

ⅰ亾dé卋堺 提交于 2020-01-03 04:10:29
问题 What is the workflow for creating an AIR application in Flash Builder and how does it differ from Flash Professional? I am familiar with Flash Professional, but I'm trying top wrap my head around FB, but I'm coming from a stint in iOS development and Flash Pro is driving me crazy. (I have difficulty with classes mixed with the timeline, but I think that MXML might be a good substitute for the timeline.) (Bonus: What are some good online resources for learning MXML?) 回答1: This is a hard

Does the workflow differ between Flash Builder and Flash Professional?

与世无争的帅哥 提交于 2020-01-03 04:10:08
问题 What is the workflow for creating an AIR application in Flash Builder and how does it differ from Flash Professional? I am familiar with Flash Professional, but I'm trying top wrap my head around FB, but I'm coming from a stint in iOS development and Flash Pro is driving me crazy. (I have difficulty with classes mixed with the timeline, but I think that MXML might be a good substitute for the timeline.) (Bonus: What are some good online resources for learning MXML?) 回答1: This is a hard

how to programmatically fill out flash forms?

故事扮演 提交于 2020-01-03 03:57:09
问题 Some sites have forms which are Flash. How can I programmatically, fill out these forms ? Is the only solution sending POST via cURL by first monitoring the http headers being sent ? 回答1: That would only work if the form you're filling out is sending back the results with a POST. There's many different ways for Flash/Flex forms to pass back the data, using http, web services, rpc or even sockets. Ideally, you need to decompile the swf (which can be done automaticaly), and within the