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 ...
Score of -1
1 answer
53 views
how do i prevent a keyboard event from repeating if its key is being held down in actionscript?
im making a little flash game in as3 and i want the character to "boost" fowards when jumping mid air, but the jumping variable me and my friend made updates even if the up arrow is held ...
Score of 1
1 answer
91 views
How to disable smoothing in fullscreen? (AS3)
Just as the title says. When putting the swf in fullscreen it smooths the graphics (not sure what method it is using, perhaps anti-aliasing?) and I can not find anything online that is in any way ...
Score of 0
0 answers
73 views
Is there a way around using getDirectoryListing() in AS3 for large dirs?
I have an AIR app that imports and parses file data. It works fine when dirs contain around 5000 files, but I have users that have dirs with 300,000-600,000 files in them, and it hangs the UI.
My file ...
Score of 1
1 answer
78 views
FileStream complete operation is not firing AS3
When I run this code, the file is written successfully, but none of the events fire (or is the process happneing so quickly to the point that they do not appear). Any help would be appreciated.
import ...
Score of 1
2 answers
99 views
Equation to convert MouseX, MouseY value to 0,0
I have a various objects on the stage which have handles placed around the bounds of each object. I want to resize the object by pressing and dragging on a handle like you would when resizing in ...
Score of 0
0 answers
129 views
How can you pass parameters from Actionscript 3 to a javascript flash function(Adobe Animate)?
I'm trying to pass parameters from ActionScript3 to JSFL for an Adobe Animate tool, but I'm not entirely sure it's possible given a couple of suggest solutions I've tried. I currently call functions ...
Score of 0
0 answers
103 views
Actionscript 3 : Draw movieclip as bitmap after scaling movieclip containing vectors?
Trying to draw a scaled movieclip containing vectors as a bitmap after the movieclip has been scaled, and struggling to get a sharp, clear bitmap.
Basically, have a movieclip and want to attach it to ...
Score of 0
0 answers
59 views
AS3 - External SWF file not being loaded in
I'm trying to load in an external SWF file which is being hosted on a webserver i run. If i go to http://localhost:5173/file.swf in the webbrowser the file gets downloaded. I've turned on my server ...
Score of 3
1 answer
96 views
Is it possible to use color names in AS3?
I am trying to find out whether it is possible to use color alias in a string format("orange", 'blue') in Actionscript. Since the main purpose of AS is to produce SFW graphics, there has to ...
Score of 1
1 answer
165 views
[Actionscript]How to display the information inside an array of objects
I'm currently trying to work on a mod for a game and when I display the array all I see is [object Object]. I'm wanting to actually see the information inside of the array. I'm new to actionscript so ...
Score of 0
0 answers
158 views
How to set a colour variable in JS
I have these lines of code but I am afraid I couldn't define the variable. I tried with label but couldn't find the documentation.
Is for tables in Indesign app.
The script does not identify the "...
Score of 0
0 answers
44 views
When using INSERT OR REPLACE INTO in SQL is there any way to tell if a record was inserted as new or replaced in SQL for AS3?
I've wanting to know if a record is updated vs replaced so that I can display a list of duplicate records to the user. Is this possible using something like totalChanges?
Thank you
Score of 0
1 answer
48 views
How to inject a bean in a view with Crux
From the Apache Royale documentation about Crux, it seems a bean can be injected into any view added to the display list.
Yet, when I try to have a bean injected in a view other than the Application ...
Score of 0
0 answers
61 views
AS3 - Unable to resize Image width and height
I have a problem that when I load image it doesn't resize to the value I set in my button, so the button resize itself to fill the image, i think!
And when I see value like 200,200 the resulted image ...
Score of 1
1 answer
233 views
How do I move Pac-Man smoothly in AS3?
I’m writing a Pac-Man clone in ActionScript 3 using Adobe Animate (previously Flash) and could use some advice on movement and speed. According to Pitman's Pac-Man dossier, Pac-Man moves at ...
Score of 0
0 answers
57 views
1009 Error for a Character Skin Symbol in AS3
I have 2 errors for the character skin, when I clicked the home button for both single and double play, it gives me an error:
TypeError: Error #1009: Cannot access a property or method of a null ...
Score of 1
1 answer
92 views
Issue setting domain memory
I'm testing decoding base-64 data, reading it efficiently through ApplicationDomain#domainMemory, inside a background worker:
override public function decode(): Array {
...
ApplicationDomain....
Score of 0
0 answers
86 views
Defer implementation of interface functions to child class
I have a parent class MediaWindow which is extended by multiple child classes VideoWindow, PictureWindow etc.
Each subclass of classes must implement two particular functions which relate to resizing.
...
Score of 0
1 answer
61 views
Simple top 3 scores from an array to textfield
How to make top 3 scores from an array to the 3 different text fields and sort them highest to lowest scores? My code:
var top3Array:Array = [];
var totalScore = int((numeratorCounter/...
Score of 0
1 answer
53 views
Need ActionScript 3 coding for input boxes that will determine amount of color fill in a movieclip
If I put a numerical value in an input textbox1 and another value in input textbox2, then the percentage of both these input boxes will determine how much boxA will fill. For example, I put the value ...
Score of 0
1 answer
51 views
2 error problems for simple music players
I have 2 Errors:
#2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
I tested a few times, and I have both Unhandled IOErrorEvent and Stream Error for a Music Player Scene. I found this ...
Score of 0
1 answer
60 views
Different Scene, different framerate in AS3
How do I make this code correct in different frame rate in 3 different scenes? Any examples?
Original from Actionscript 3.0 - Changing FPS for scenes won't work:
function modifyFrameRate():void {
...
Score of 0
1 answer
62 views
as3 want to removeEventListener KeyboardEvent to prevent additional text entry and allow only 1 keyboard event
I'm building a simple animation that I want to advance using any keypress until a certain frame in the timeline where I want to disable any random key press and enable just the Enter key to advance to ...
Score of 0
1 answer
44 views
Cannot make an if statement with a public variable. (AS3)
I am currently trying to create a script in adobe animate, that would make a certain animation play inside a symbol, when a public variable named "kill" would reach 1. The variable would've ...
Score of 1
2 answers
1177 views
ld: unknown options: -sdk_version
Hello, has anyone encountered this problem? I have no idea and have been searching also everywhere on different sites and forums but I am still lost on how to fix this.
it says:
ld: unknown options: -...
Score of 0
0 answers
44 views
as3 massive project how to decrease memory usage
i have a big project contains upto 120 video and lots of loaded swf
the export exe file when testing it takes a massive memory usage up to 1.5 gb of ram and always crash when testing on another device
...
Score of 0
1 answer
45 views
AS3 dispatching contentLoaderInfo
I wish to know how to dispatch the contentLoaderInfo of external SWF to be usable on other frame where the original swf loaded instead. It would like to expand the loaded SWF frame in the timeline.
If ...
Score of -1
2 answers
184 views
Adobe Animate HTML 5 Error when accessing internal library via external js script
Recently started learning Javascript and here is the problem
When trying to access the internal Adobe Animate library through an external JS script, it swears and writes an error
And if I write this ...
Score of 0
0 answers
46 views
as3 trying to make mc visiable when go to previous frame
now
in frame 1 i have 5 buttons everyone go to spcific frame
and everybutton has a mc
the idea is when the user click on button 1 ( as example ) it will go to frame 2 ( in frame 2 i have a video with ...
Score of 1
1 answer
56 views
AS3 tryin to make a function with hitTestObject using if statement
i have a function with code
function ball3test()
{
if (ball3.hitTestObject(ball1_t))
{
goodmc.alpha = 1;
removeChild(ball3);
sw = sw + 1;
ball3t.alpha = 1;
...
Score of 1
1 answer
71 views
AS3 Calculate Longitudinal Redundancy Check (LRC) - Socket
I need to send to the socket:
<STX>PIPE_DELIMITED_MESSAGE<ETX><LRC>
STX = String.fromCharCode(02) //// **Good**
ETX = String.fromCharCode(03) //// **Good**
LRC = Unable to ...
Score of 0
0 answers
40 views
AS3 Load Class of External Library
Can I import classes on external library without load it? I would like to split my SWF and put only the classes into other referencing SWF since it contains a lot of mp3 file and caused so hard to run....
Score of 0
1 answer
51 views
no file-saving after AIR Update
I updated my air app from air32 to latest harman´s air50.
After the update, files can no longer be saved on Android.
var myFile: File = File.documentsDirectory.resolvePath("/mnt/sdcard/Tfzf ...
Score of 0
0 answers
59 views
Calculating velocity for Cannonball trajectory in AS3
My objective is to create a cannonball type effect for a projectile. Basically, when you click a coordinate, the cannonball will launch and land at that specific coordinate. I know well how to create ...
Score of 0
0 answers
47 views
Is there still an Actionscript3 library available that supports XMP Access and/or parses XMP Metadata?
I know there is an Adobe XMP SDK Kit available, but that does not support AS3 any longer.
Some years ago (before Harman took over AS3) Adobe provided the **as3_xmp_file **abd XMPCore.lib
The links ...