actionscript

use flash action script to develop online games

别来无恙 提交于 2019-12-20 05:03:00
问题 For short: can you tell me some great resource to study if I want to develop online games using flash technology? Including 3D games. 回答1: You can start with the newly released Flash Platform Game Technology Center on Adobe Devnet. There are quite a few books out there on as3 games, I'll try not to repeat the ones already mentioned: The Essential Guide to Flash Games: Building Interactive Entertainment with ActionScript (source: friendsofed.com) This is a great book, tons of great examples,

Hovering off DPAD sometimes makes character move infinitely in one direction

别等时光非礼了梦想. 提交于 2019-12-20 04:09:55
问题 I have a DPAD in my game when the player holds down let's say the Left DPAD, if he moves his touch to the Up DPAD and let's go, the player continues going in the left direction. It also works if you hold the a direction, lets say Up continue holding but move off the Up DPAD, sometimes you may continue going in that direction. What I've tried to prevent this: On direction clicks, trigger checks on whether your in motion, or already going a different direction Setting collisions to force these

Customizable / Dynamic SWF generation

僤鯓⒐⒋嵵緔 提交于 2019-12-20 03:23:31
问题 Wondered if anybody knows how customizable Flash swf files are made, where there appears to be a template swf that the user can then input some changes (eg text or image) and receives a newly-compiled swf file with their changes. Some examples: - http://flashfreezer.com/landingconfetti/index.html Constraints: - user receives a single output swf file that can be played with all their changes included. ie there is no reading from an xml file, or using Flashvars. Been trying different things for

Scripting and Programming [duplicate]

安稳与你 提交于 2019-12-19 19:43:50
问题 This question already has answers here : When is a language considered a scripting language? [closed] (40 answers) Closed 5 years ago . Where does Scripting ends and Programming begins? ActionScript 3 and JavaScript/JScript are so different... 回答1: The distinction was meaningful once, but the line is getting increasingly blurred to the point where I dont think it is useful today. historically, scripting languages are interpreted, programming langauages are compiled. But with the advent of VM

Actionscript: image to base64 string possible?

*爱你&永不变心* 提交于 2019-12-19 18:22:37
问题 Is it possible to convert an selected image into base64 encoded string? Would be nice and easy solution for image uploader. :) Thanks ;) 回答1: If you're wanting to encode the byteArray of a loaded image, you could use the Base64Encoder class from mx.utils Base64Encoder. Something like: var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete); loader.load(new URLRequest("img.jpg")); function loadComplete(e:Event):void { loader.contentLoaderInfo

Custom metadata in AS3/Flex?

旧时模样 提交于 2019-12-19 13:47:22
问题 How to create and to work with custom metadata in ActionScript3/Flex? 回答1: There is two general directions to deal with metadata in ActionScript in Flex: Dealing in runtime using reflection (or introspection in terms of Adobe). You can find documentation here. There are several third-party libraries which provides more convenient reflection API such as as3-commons-reflect or reflection API in Parsley. Using Flex Compiler Extensions which was introduced since Flex 4 SDK revision 8165 (see

Porting SHA512 Javascript implemention to Actionscript

一曲冷凌霜 提交于 2019-12-19 10:46:22
问题 I am wondering if anyone can help me in porting a SHA-512 implemention in Javascript to Actionscript. Since both Javascript and Actionscript share the same origin, I think porting it will be easy for people who are used to Actionscript. The code for sha512 in javascript can be found here: http://pajhome.org.uk/crypt/md5/sha512.html Thank you. 回答1: Here is the code ported by me. The code is separated between two files Int64.as and Sha512.as, both of them belong to the com.crypto package. com

actionscript + javascript

丶灬走出姿态 提交于 2019-12-19 10:45:14
问题 I'd like to call a javascript function from an embedded .swf file. Specifically, I'd like to call a function in one of my externally linked javascript files from within: function loadTrack(){ //Radio Mode feature by nosferathoo, more info in: https://sourceforge.net/tracker/index.php?func=detail&aid=1341940&group_id=128363&atid=711474 if (radio_mode && track_index==playlist_size-1) { playlist_url=playlist_array[track_index].location; for (i=0;i<playlist_mc.track_count;++i) { removeMovieClip

extending AS3's Array access operators to 'wrap' out-of-bound index values

纵饮孤独 提交于 2019-12-18 12:47:09
问题 I'd really like to be able to make Flash's array access syntax 'wrap' over the array's bounds. Lengthy explanation - var array:Array = ['a','b','c','d','e','f']; To keep things simple, the first index is 0, and its value is the first letter, 'a'. To get that value, we'd do this - array[0]; // returns 'a' As long as the index you're using to access the array is between 0 and array.length (6 in our example,) everything works fine - but if you use an index outside of those bounds, you're shut

See trace() of Flash when running in browser

可紊 提交于 2019-12-18 10:23:07
问题 What's an easy way to see the trace() output of Flash/Flex movies when running in any browser? 回答1: Download and install the content debugger version of Flash Player. Enable trace logging (official guide) by adding an mm.cfg file: ErrorReportingEnable=1 TraceOutputFileEnable=1 Where to save mm.cfg depends on the OS: Mac OS X: /Library/Application Support/Macromedia Windows: %HOMEDRIVE%\%HOMEPATH% Linux: /home/user name The log file, flashlog.txt, can be found at: Windows 95/98/ME/2000/XP: C: