actionscript-2

Easiest implementation of onReleaseOutside in AS3?

醉酒当歌 提交于 2019-12-12 07:38:39
问题 I'm a long-time ActionScript 2 user, now getting started with ActionScript 3. The one thing I'm missing is an easy way to duplicate the functionality of AS2's MovieClip.onReleaseOutside. It is almost always necessary to implement this event, otherwise you get funny bugs like flash thinks your mouse is down when really it's up. According to the AS2 to AS3 Migration Guide, I'm supposed to use flash.display.InteractiveObject.setCapture() for this, however it does not exist as far as I can tell.

Flash Actionscript

老子叫甜甜 提交于 2019-12-12 04:49:59
问题 It is my first time to code an actionscript for flash. I want to write a flash clip which works as a parent of another flash clip. I want to write a function in the parent flash, and call that function in the child flash clip. For example I wanna create an actionscript which sends game score to "submitscore.php". The parent is just a controller and the child is my game. I want to send game score to the controller, then send it to my php file. Do you have any sample code or something to do

keeping track of a series of simple multiple choice web form answers

孤街浪徒 提交于 2019-12-12 03:48:42
问题 This is the code I'm trying to use , which seems logical. But doesn't seem to be working. MyAsFileName.prototype.getTotalScore = function() { var totalScore = 0; for (var i = 0; i < allQuestions.length; i++) { totalScore += allQuestions[i].getCalculatedScore(); if (currentModule.allQuestions[i].parent.questionCorrect == true) { knowledgePoints++; } else { knowledgePoints--; } } debugLog("Total score: " + totalScore); debugLog(knowledgePoints); return totalScore; } I have allQuestions defined

Workaround for TextField bug in FP 10.3.183.5 and 10.3.183.7

社会主义新天地 提交于 2019-12-12 03:19:30
问题 I have a client who is having a big problem with an AS2 application we developed a few years ago. As far as I can tell, it is being caused by an acknowledged bug in recent versions of Flash Player (see http://forums.adobe.com/message/3859034 and https://bugbase.adobe.com/index.cfm?event=bug&id=2941694). Two versions of FP are affected (10.3.183.5 and 10.3.183.7), and the bug was fixed in 10.3.183.10. Obviously, upgrading Flash Player will fix the problem, but we all know users don't always do

Using AS2 in Air Application

假如想象 提交于 2019-12-12 02:26:55
问题 I'm working on bringing a game over from Flash to Android using Air 3.2. The SWF I am testing with is an AS2 SWF. I used this method to get the SWF file to load: http://www.mikechambers.com/blog/2008/08/18/anyone-using-actionscript-2-to-build-air-applications/#comment-13360 However, when I open the app, the SWF loads, but no code works. Here's the APK so you can see it in action. Is there like a .SWC or something similar I can include to get the code to work? Thanks, -Sandor 回答1: What you

Regarding Stop blinking in flash Action Script

北城以北 提交于 2019-12-12 01:47:14
问题 Hi i am using flash Action Script. Image is displaying from internet at 1 sec interval. But this is blinking. How can i stop blinking so that i can see images continuously. var my_pb:mx.controls.ProgressBar; my_pb.mode = "manual"; this.createEmptyMovieClip("img_mc", 999); var my_mcl:MovieClipLoader = new MovieClipLoader(); var mclListener:Object = new Object(); mclListener.onLoadStart = function(target_mc:MovieClip) { my_pb.label = "loading: "+target_mc._name; }; mclListener.onLoadProgress =

Is it better to use Action Script 2 or 3? [closed]

梦想与她 提交于 2019-12-11 19:46:18
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I just started learning how to code games in flash using a tutorial that was for action script 2. I am wondering if you can accomplish enough in action script 2 or if I should just learn how to use 3. I heard you can do a lot more with action script 3 but is it really that

random code in AS2 convert to AS3,

谁说我不能喝 提交于 2019-12-11 18:43:10
问题 i try to make random quiz in flash cs5.5 for android, so i convert this AS2 code to AS3, but i have 1 error. AS2: stop(); benar = 0; salah = 0; total_frame = 11; array_frame = []; for (i=2; i<=total_frame; i++) { array_frame.push(i); } array_frame.sort(function () { return random(2) ? 1 : -1; }); jumlah_frame = array_frame.length; my AS3: stop() var benar=0;var salah=0; var jumlah_frame; var total_frame = 11; var array_frame = []; var i:Number; for ( i=2; i<=total_frame; i++) { array_frame

Is there a simple way to make a movie clip identify itself in Flash? (AS2)

眉间皱痕 提交于 2019-12-11 16:55:41
问题 I'm making a very simple turn based battle game using ActionScript 2.0. I'm VERY new to code, with only very limited Visual Basic knowledge, so I'll happily admit I don't really know what I'm doing. I've got a start, but I decided to rewrite the entire thing because I wouldn't be able to cycle enemies and levels easily. I've spawned the same enemy twice using _root.attachMovie, and identified them as Enemy1 and Enemy2 . After spawning them, I tried to make them identify themselves with: _root

Call to an AS2 function from the AS3 container

孤街醉人 提交于 2019-12-11 16:44:11
问题 I'm trying to call a function from a AS3 container which should call old AS2 SWF that cannot be edited bacause we are talking about 1000 swf files, does exist some way to call a function inside the AS2 SWF from the AS3 container ? I know a possible way by adding a LocalConnection as written here but as I said I can't edit all the swf files, so I just wonder to know if does exist some alternative. 回答1: If your container absolutely has to be written in AS3, then you could create another