9,096 questions
0
votes
0
answers
40
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;
```
...
0
votes
2
answers
48
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 ...
0
votes
1
answer
32
views
Bitmap data depth display problem in ActionScript 2
Today I got a problem with the bitmap data depth display in my project that runs in ActionScript 2. I was expecting for the bitmap data to display in the
_loader
container
This is how these ...
0
votes
0
answers
21
views
Saving username and password data problem in ActionScript 2 class
I'm currently having trouble with trying to save username and password data in real time. When I created my username and password and pressed OK to start the process. I was expecting for the code to ...
0
votes
0
answers
68
views
How to make this countdown timer work in seconds and not minutes
I'm working on a digital signage program that allows for scripting to accomplish more advanced stuff. The downside is that their repository is dookie and not publicly available, so, sorry, can't post ...
0
votes
0
answers
83
views
Using javascript for photoshop scripting, but I cant find the file
I am trying to make a script for photoshop in js, and I want to add an image to a new layer. The proble is that I simply cant find the jpg (teszt_fekvő.jpg), evendough it is in the same folder. Here ...
1
vote
1
answer
94
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 ...
1
vote
1
answer
201
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 ...
0
votes
0
answers
62
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.
...
1
vote
0
answers
478
views
Scanning nextjs application by Sonarqube fails on github actions
I am running sonarqube analysis on a nextjs project using github action as the ci/cd tool. My workflow file looks like this.
on:
push:
branches:
- dev
jobs:
sonaranalysis:
runs-on: ...
0
votes
1
answer
53
views
addEventListener only triggers on 2nd click
I'm trying to figure out why my addEventListener only triggers on second click. It works as expected but im not entirey sure why it's not triggering on initial click.
Here's my current code. The code ...
0
votes
1
answer
53
views
FlashDevelop not importing flash packages
When I trying to import ExternalInterface:
import flash.external.*;
class Main
{
public static function main(swfRoot:MovieClip):Void
{
System.security.allowDomain("*")...
0
votes
4
answers
184
views
How can I Create a Function for Infinite Calls in JavaScript
I am trying to write a function in JavaScript where there will be an infinite call to greet(). The expected outcome is to have the greetings concatenated with each call.
console.log(greet('hello')....
1
vote
1
answer
140
views
AS3:SecurityError:Error #2121:Security sandbox violation:LoaderInfo.content: x cannotaccess y.This maybe worked around by calling Security.allowDomain
I get this error when I run my swf locally (also doesn't work with browser):
SecurityError: Error #2121: Security sandbox violation: LoaderInfo.content: file:///C|/Users/Admin/Desktop/whatever.swf ...
0
votes
0
answers
52
views
Actionscript 2 giving strange results
Input variable is k (testing 1, 10, 100, 1000 etc), dp = .00 to .0000000 (2 to 7 decimal places),
k19 is the result. Actionscript 2, (all inside a mc, simple conversion inch to mm).
k19 = k * 25.4; ...
0
votes
1
answer
310
views
How to read information from an XML file in AS3
I need to build an XML file that is read by this code.
I can't figure out how to do it.
public function formDoneLoading(param1:ServerConfig) : void
{
this.serverConfig = param1;
this....
0
votes
1
answer
175
views
How to get a death animation for my character in ActionScript 3 (Adobe Animate)
So basically I have two questions. I am also copying off this video from 2014: https://www.youtube.com/watch?v=w8JgpEjm8i8&t=2792s
Question 1
At the end of the video above the guys computer ...
0
votes
1
answer
138
views
GA4 with Adobe AIR
Did anyone successfully implement Google Analytics 4 in an Adobe AIR app?
We have an Adobe AIR application (for Windows desktop) which currently sends tracking data to Google Analytics, and it works ...
-1
votes
1
answer
58
views
Totally confused by actionscript
I have this code in ActionScript 2, it animates to audio input in my VJ software.
Question:
How do I re-write this as AS3 code?
var audiofft1 :Number;
circle1.onEnterFrame = function(){
this....
-2
votes
1
answer
143
views
HealthBar Actionscript
Here's my answer to this question for the healthbar:
function HealthBar() {
var percentHP = currentRaidBossHP / maxRaidBossHP
RaidBoss_HealthBar.barColor.scaleX = percentHP;
}
function ...
0
votes
0
answers
31
views
AS3 Multidimensional array maximum 8 error
Can anyone please help me figure out why I am getting an error when I add a 9th line to this multidimensional array? Thanks!
var ColourArray:Array = new Array();
ColourArray[0] = ["0xdc1d28",...
1
vote
1
answer
94
views
Create highlight and shadow in ActionScript 3
Does anyone know how to create two new colours (highlight and shadow) based on one colour in ActionScript 3? So, if I have red (0xFF0000), I will get a light red and dark red too?
I have no idea. ...
0
votes
1
answer
152
views
Can I run a language based on the ECMAScript specification like JScript or ActionScript in current browsers?
If ActionScript and JScript are based on ECMAScript, is it possible that they can be executed in environments like Google Chrome and if not, why not?
0
votes
0
answers
84
views
Actionscript ( ) vs Javascript ( )
For same string actionScript's function charCodeAt returns unicode character 13 and javascript's function charCodeAt returns unicode character 10. Is there a reason why a line feed is returned by JS ...
0
votes
1
answer
535
views
Photoshop script filename / suffix
I hope someone can help / I can explain this properly.
I have a script for Photoshop, kindly written many years ago, exporting a bunch of jpegs of different sizes from a psd.
The files exported have a ...