Questions tagged [actionscript]
ActionScript is a scripting language used to create Rich Internet Applications (RIA), mobiles applications, web applications, etc. It is the main language for Flash and Flex.
9,133
questions
0
votes
0
answers
15
views
Action Script Trace
I am investigating an issue on my ActionScript/Java application, that I build using ant, and run the war in my Eclipse's tomcat. The problem is that I can't trace my app even by running the project in ...
0
votes
0
answers
22
views
How to return data type "Date" using AMFPHP
So, I cannot for the life of me manage to map a DateTime PHP class into an ActionScript Date class.
I need to return Date using AMFPHP. For example:
<?php
class Foo {
public $id; // int
...
-2
votes
1
answer
147
views
For loop only sets last iteration
I'm trying to load multiple JSON files from an object so that I can just retrieve each set of data from its own respective object. So, for example, for the object below, I want to get the set of data ...
0
votes
0
answers
25
views
I cant do an image gallery movie clip , my buttons doesnt work
i need to do a simple navigation system with an image gallery , all its working but an image gallery . I click on the buttons called "vaifoto" and "voltafoto" and when i do i got ...
0
votes
0
answers
204
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
0
answers
25
views
Assign custom field price as product price to specific user role in WooCommerce more than one
your textAssign custom field price as product price to specific user role in WooCommerce (more than one)
i used above code i found at stack overflow
I created a new role called "_2". (from ...
0
votes
1
answer
56
views
Strings starts from end to start
I have a function that joins all the key values with | from a json string but when I join everything it joins the itemsObj from end to start.
{
"100_npc": {
"uniqueId": ...
0
votes
1
answer
33
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
22
views
Text, IF and Else Statement, ActionScript
everyone.
I'm having a bit of an issue with ActionScript. I've created a text box and I want my user to enter an answer in to the text box, IF they get it right it will go to "said" frame, ...
0
votes
1
answer
33
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
0
answers
67
views
Manipulate Adobe Illustrator panels with Javascript? (Specifically: unfold a grouped item in the Layers panel)
I have quite a lot of experience writing CEP panels for Adobe Illustrator in Javascript, and I have the reference PDF's and links to the official Github repo etc.
I have written a simple script that ...
0
votes
0
answers
47
views
How to deal with the problem of such an error?
Why am I getting an error?
How do I build a file for this error?
I'm trying to understand and can't, what's wrong here? Or how do I create a file with its parameters? Or how do I know what the ...
0
votes
4
answers
141
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
39
views
How to make a number variable change when a button is pressed? Actionscript 2.0
I need the number variable to change each time a button is pressed. The variable is called "total".
my stage code:
var total:Number = 4;
if (total == 5){
gotoAndPlay (2)
}
else if (...
1
vote
1
answer
75
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
27
views
**Scene 16, Layer 'js', Frame 16, Line 2, Column 151086: Syntax error: expecting semicolon before leftparen. **
**I have no idea what should I do for this error since I'm am really noob at codding
{
var MovieClip(this.root)
var pieces = root.pieces;
var slots = root.slots;
var restart = root....
0
votes
0
answers
599
views
How to set dynamic text in Adobe Animate
I've just started trying adobe animate, and I want a text field to be a certain number.
this.stage.addEventListener(Event.ENTER_FRAME,hello);
function hello(event) {
var year = (this.currentFrame ...
0
votes
0
answers
51
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
0
answers
75
views
Automatic update linked Smart object
I apologize in advance if my English is not good, hi I found one of your posts regarding automatic update linked smart objects, but it doesn't work in the case I'm facing, can you help me I'm making a ...
0
votes
1
answer
149
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
0
answers
64
views
AS3: How to properly delete all properties of an object or all keys in a dictionary?
To delete all the properties of an Object, I've been using a for...in loop to iterate through the properties and delete them. I've been doing the same thing with keys in a Dictionary. I recently read ...
0
votes
1
answer
135
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
62
views
using this[ ] operator to call sharedObject AS3
it's a bit difficult to explain about this, I'm working on a slightly complicated game using score system made by me, I use the [] operator to call variable names like in this post Calling a variable ...
0
votes
1
answer
104
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 ...
0
votes
1
answer
66
views
i am new in action script. trying to split a sentence into words and show them in sprite.and also need which sprite i clicked
I am trying to split a sentence in to words and show them into sprite()
var sentence:String = "My name is Subhadip.";
var txt:Array = new Array();
var splittedSentence:Array = sentence.split(...
-1
votes
1
answer
52
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....
-1
votes
2
answers
46
views
get var from inside a function to return it AS3
I have this static public function berechne() and I want this function to return data. But data is inside another function, so I can't access it outside the function to return it. I also can't let the ...
-2
votes
1
answer
131
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
218
views
Original Flash Player script - need to compile .as and .fla to .swf
I have some old Flash Player script from back in the day that I'd like to revive by using a Flash Player emulator (ruffle). Problem is, the files are in .as and .fla and I can't find anything that can ...
0
votes
0
answers
27
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",...
0
votes
0
answers
83
views
How to execute ABC at runtime? (use AS2 inside AS3)
Can I execute ActionScript 2.0 (AS2) ByteCode at runtime inside an AS3 project?
I tried to find it through Google search, but I didn't find an answer.
For example, I need a function that works like ...
1
vote
1
answer
66
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
0
answers
67
views
Dynamic cropping of png images using as3
I am trying to create a jigsaw puzzle. I want to create the jigsaw pieces dynamically using as3. The number of pieces can vary from image to image. Is there a way to do that?
0
votes
1
answer
100
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
1
answer
59
views
Add text to already existing text without replacing it in Actionscript 3
Trying to make a calculator in Actionscript 3 where i click on the number buttons to add numbers to a textfield. However i am unable to add new numbers to the textfield without replacing the already ...
0
votes
0
answers
75
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
0
answers
74
views
How can I stop a colliding object from continuing falling after several seconds (AS3)?
I have a problem that is related to AS3, it involves two code locations (MainTimeline and an MC-extending class), as well as a basic physics engine function. The problem is that when the objects ...
0
votes
1
answer
278
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 ...
0
votes
3
answers
299
views
Google Translate in Flash (SWF) Action Script
We tried to code Google Translate in action script for Flash Professional CS6, but it does not function .
Can anyone help ?
The code does not return the trasnlated result .
The Code :
private function ...
0
votes
1
answer
261
views
problem with issuer certificate in pipeline in bitbucket [closed]
I have a problem... My code is in bitbucket, Pipeline in Jenkins. When I start pipeline I have this error:
"fatal: unable to access 'fatal: unable to access
'https://my.repos.example:***.git/': ...
0
votes
0
answers
64
views
ActionScript 3 when you move mouse to a direction press a key
I'm new to AS3 and i don't know how do i make that when i move my mouse in Action Script to press a key?
For example i want when im moving my mouse to:
-Right : press x
-Left : press z
-Up : press q
-...
0
votes
1
answer
629
views
Input raw audio 512 floating-point values into FFMPEG?
In ActionScript 3, I use SoundMixer.computeSpectrum() to takes a snapshot of the current sound wave playing on the stage and places it into the specified ByteArray object.
I want to write the ...
0
votes
0
answers
89
views
Print button in as3 adobe animate
I have two keyframes in the main timeline I want to print when the user clicks a button on frame 1. I am trying to do this with the code below but although I get the print dialogue to come up it ...
0
votes
0
answers
94
views
How can I control the main timeline in adobe animate from a function?
I have a main timeline with sound that streams and two characters in two seperate movie clips that have lip sync with the main timeline sound stream.
I want to be able to start and stop the two ...
0
votes
1
answer
45
views
How to access data from row in Grid while selecting it so that further it can be used in Text Field below in Adobe Flex (ActionScript)?
I've created a Grid that takes data from an XML file. I need to get the entire row value and display them in the text field below accordingly. I was able to achieve the row index of the selected row ...
0
votes
1
answer
86
views
Adobe Flash video player
I'm a Flash nostalgia guy and I'm looking for a Flash project or .fla file that encapsulate video player (with controls, seek bar etc)
I googled it a lot and couldn't find it. Can someone point me?
1
vote
1
answer
84
views
ActionScript 3 BitmapData's methods not implemented. How do I access its methods?
Ultimately, what I'm trying to do is apply gamma correction to some bitmaps that I load at runtime. I was able to create a BitmapData object, then create a Bitmap from the BitmapData, and I was able ...
0
votes
1
answer
101
views
AIR Native Extension issue
I built an AIR native extension with following setup:
Visual studio 2005 for building my dll
Flash CS6 IDE with AIR SDK 3.2 to create SWC from my AS3 source
The namespace version of my ANE is 33.1
...
0
votes
0
answers
253
views
JavaScript Websocket based upon ActionScript XMLsocket
Since Flash player is not supported any more I had to recreate a dynamic video that I've made years ago.
The setup is running on Windows and there is a Mediator app which gathers information and send ...
0
votes
1
answer
124
views
Actionscript 3: How can I change the name property of content returned by Loader.load()? Error 1074
I have a Scaleform movie that I want to serve as the container for my game's user interface. I want it to be able to load and unload other swf files that will serve as different HUDs and menus. And ...