41,041 questions
Score of 1
0 answers
58 views
How to make AS3 recognize a movieclip loaded with content from external SWF?
I know how to load the movieclip with the external swf but after doing so animate throws an error saying the movieclip does not exist??
var loader:Loader = new Loader();
var contentSWF:URLRequest = ...
Score of 0
1 answer
112 views
How to remove MovieClip from the array if it "dies" on stage based on its Array index?
I have 5 Enemies on the stage and if theyr current HP is equal to zero play animation and on the "dead" frame i want them to be removed From the Array and eventualy removed from the stage ...
Score of -1
1 answer
95 views
How to create addEventListener - function - where I indicate what movieClip was clicked and then decrease HP:number and show it directly on the stage?
Hello everybody,
I am making very basic game in Adobe Flash AS3. I am learning in a book and as i learn i try to introduce new things and creative stuff into my very basic game.
I am using Flash CS3 ...
Score of 0
1 answer
52 views
gotoandstop random frame without repeating AS3
Currently, gotoandstop any frame randomly is working fine, its working continues and repeating.
but what I need is once it reaches all frames, it will stop on frame 5 without repeating any frame. Can ...
Score of 0
0 answers
84 views
Is there a way to highlight ActionScript code in Markdown editor in VS Code like cpp does?
This is sample MD file in VS code:
```cpp
char c = 5;
printf("aaaa");
```
```actionscript
var i:int = 5;
```
```as
var i:int = 5;
```
```actionscript3
var i:int = 5;
```
```as3
var i:int = 5;
```
...
Score of 1
0 answers
51 views
How can I get rid of delay in looping sound from external source added through urlrequest AS3
I simply want to loop a song infinitely that is pulled externally, I already know how to do this.
var mysong:Sound = new Sound(new URLRequest("music/mysong.mp3"));
mysong.play(0, int....
Score of 0
0 answers
49 views
How to get rid of delay in looping sound from external source added through urlrequest AS3
I simply want to loop a song infinitely that is pulled externally, I already know how to do this.
var mysong:Sound = new Sound(new URLRequest("music/mysong.mp3"));
mysong.play(0, int....
Score of 2
0 answers
271 views
Playing PCM data as sound in ActionScript 3.0 (Flash and AIR)
I'm trying to make an ABC/HR tool in Flash, but I can't manage to play the data as sound. Actually I prefer AS2, but I found that it is not enough for this purpose, so I decided to use AS3. But I can'...
Score of 0
2 answers
69 views
Trying to get makeMcShake script found in Newgrounds forum to work
So I found some old script in a Newgrounds forum that should allow me to shake the scene without having to animate the scene manually. The problem is I don't really understand how to make it work. Can ...
Score of -1
1 answer
85 views
How to spoof Action script 3 ExternalInteface.call("window.navigation.userAgent.toString")
im trying to spoof ExternalInteface.call("window.navigation.userAgent.toString") to look like a electron environment using the javascript below. though it works for the browser it keeps ...
Score of 1
0 answers
57 views
ActionScript 2.0 to ActionScript 3.0 transition
I have a button 'buttonGo' and five different balls with different names (ballA, ballB, ballC, ballD and ballE). I have an ActionScript 2.0 code like the one below. Can anyone help me write a proper ...
Score of -1
1 answer
34 views
How to change applied force on contact using Nape?
Using Nape and ActionScript 3, I built a simple Angry Birds game. I want to modify the force applied by a Ball when it touches a Wall. I used a PreListener, but then I don't know what to change on the ...
Score of 1
1 answer
81 views
Best way to handle multiple URLLoader Requests in AS3
I have written the following class to abstract multiple calls to my server for sending data to a database and getting that data back.
package {
import flash.net.URLRequest;
import flash.net.URLLoader;
...
Score of 1
1 answer
85 views
Swf unloads, but AS3 within that swf still executes
I have an AS3 Air App (Desktop App)- let us call it MAIN that loads a bunch of swfs. So, MAIN loads swfA and then unloads it. MAIN has an event listener that listens to unloading of swfA. Trace shows ...
Score of 0
1 answer
97 views
Performance issues using actionscript sockets class and serproxy
I'm working with an Adobe Animate project (as3) that accepts serial input from an external device. The data is in 4-byte ASCII strings terminated with \n. The 4-bytes of data are a 'frame number' used ...