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,145
questions
0
votes
0
answers
10
views
ActionScript in Animate loads XML but SWF file stutters when loading data
I've got a project in Adobe Animate meant to parse an XML for the next four programs in a schedule, and display them. When playing out the SWF file, it retrieves the data and displays it, but there ...
0
votes
0
answers
13
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
24
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
117
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
26
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
21
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
32
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
46
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
30
views
Is it possible to make an virtual cursor for my Adobe Air Android APP?
My question is the same in the title , is it possible to do something like that? I just want to put a virtual cursor in app to make buttons clickable easier. Something like in puffin web browser.
0
votes
0
answers
52
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
45
views
Can I run a language based on the ECMAScript specification like JScript or ActionScript in current browsers?
I have a very big doubt and it is that if ActionScript and JScript are based on ECMAScript, it is possible that they can be executed in environments like Google Chrome and if not, why not?
0
votes
1
answer
32
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
47
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
45
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
41
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
154
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
0
answers
38
views
AddChild not appearing on stage
So im making a memory game for my project which im referring at here . However the addChild doesnt seem to be working.Just an extra info, im using the latest Adobe Animate version.
Also this should be ...
0
votes
1
answer
66
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
43
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
112
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
31
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
28
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
34
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
46
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
58
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
50
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
50
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
83
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 ...
0
votes
1
answer
40
views
how to load dynamic text sharedObject when flash is reopened in Actionscript 3?
I created a simple username page, in frame 1, there is a button and input text
like the code below
stop();
var SOlastFrame: SharedObject = SharedObject.getLocal("save_frame2");
var ...
0
votes
2
answers
52
views
AS3 Restrict ship in visible stage area
Hey so i've been making a space shooter game and i created the movement but i'm trying to restricting the ship to the visible stage area and i can't figure out how to do that
also i'm sorry if my code ...
0
votes
0
answers
37
views
How to Hit Test with duplicated object on stage?
Hey everyone so I have my main Movie Clip added to the stage called mcObstacles now in this movie clip i have a nested movie clip with an instance name of mcAsteroidsSpin this movie clip has 4 ...
0
votes
1
answer
42
views
how to make dynamic text move to vertical center if only 1 line is left in AS3
Is there a way to move dynamical text multiline to the center if there is only 1 line left, because veritcal center cannot be adjusted in the properties panel.
Image 3 Lines text and 1 line text
0
votes
1
answer
49
views
how to get instance name on object boolean which value is true
i may have gone further than what i could
because i just learned actionscript 3 days ago.
I'm making a simple quiz where I made the answer choices manually, not using the components provided by Adobe ...
0
votes
1
answer
54
views
why "else" statement doesn't work in AS3?
I create a button from movieClip if I click, the target will move to the next frame. if clicked again the target will return to the previous frame.
for the "IF" statement successfully ...
0
votes
0
answers
212
views
TypeError: Error #1009: Cannot access a property or method of a null object reference. at ColoringScreen/freezeColor()
hi I am once again asking for pointers on what I did wrong here the code works fine but when I test to play it the output message has this:
TypeError: Error #1009: Cannot access a property or method ...
0
votes
0
answers
42
views
1120: Access of undefined property "selectObject"
hi I'm a complete newbie when it comes to coding and as I followed a tutorial on YouTube on how to create a coloring game and followed the instructions to a tee I tried renaming my instance name of ...
0
votes
0
answers
106
views
Actionscript: Access of possibly undefined property id
I have a desktop Actionscript project.
The following line
_rXML.part.instrument.(@id = instruments[@id]);
Produces the error
Access of possibly undefined property id
What is odd is that this error ...
0
votes
1
answer
39
views
How to remove an event listener with different event parameter?
I've got an event listener that happened with "mousemove" Parameter:
currentCardEl.addEventListener("mousemove", updateCard);
can I use removeEventListener with another Parameter ...
1
vote
1
answer
56
views
AS3: How to ensure a function isn't called more than once per frame?
I have a function that could be called many times, but I don't want it to be executed more than once per frame. What's the best way of implementing that?
1
vote
1
answer
470
views
How can I edit the action script within an SWF file?
I have a rather large SWF file (27Mb) and as a project i'd like to edit the action scripts within it and also change a few images around. Using JPEXS free flash decompiler, I was able to replace the ...
0
votes
1
answer
96
views
How to create and remove many Child Objects without bogging down the CPU or RAM in AS3
I am making a companion app for a Monopoly-esque game I'm designing. My goal is to have all the properties have a MovieClip that displays who owns it and how much it has been upgraded. There are ...
0
votes
2
answers
58
views
Audio Visualizer - ActionScript to JavaScript
I once found such a very cool Audio Visualizer in ShockWave. And I'd like to rewrite it into plain JavaScript with or without using JQuery. Some parts of the code I know how to change but could ...
0
votes
1
answer
694
views
Open CHM help file to a specific page via JavaScript
There are many posts on this topic here, but none are solutions for launching a CHM helpfile from a web page.
Background:
This project is not on the internet, it is a web site that is run locally on ...
0
votes
2
answers
108
views
Generate Random Number Using math.random, But Without Repeats
For a yearly Christmas event for an organization I'm a part of, we usually hold a raffle where people have the opportunity to win free prizes by just attending and getting a number ticket at the door. ...
1
vote
1
answer
138
views
Loading code from a TXT file on Action Script 3.0
Is there a way to load external code from a .txt file on action script 3? I'd like to put some addChild() codes inside a .txt file to execute on Flash then, for example:
file.txt content
addChild(mc1);...
0
votes
2
answers
157
views
AS3 Dynamic Movie Clip name as variable
In Animate CC I can add MovieClips from the library dynamically using the following code:
var MovieClipName_mc:MovieClipFromLibrary = new MovieClipFromLibrary();
stage.addChild(MovieClipName_mc);
I ...
0
votes
1
answer
55
views
Actionscript acting funny
I was watching a youtube tutorial about as3,I tried to copy the code to see how it works, but even though it worked for the guy in the video, it didn't work for me..
Video Link(update): https://www....
0
votes
1
answer
111
views
convert LoadVars & sendAndLoad from actionscript to javascript
I am a beginning programmer and trying to convert a program in Actionscript to javascript.
So far I could do all the conversions I needed, but I am stuck on the following code below.
I understand that ...
1
vote
0
answers
64
views
ActionScript PrintJob.send not working in Electron
Adobe Flash - ActionScript PrintJob.send method does not work in Electron. The screen just flashes without showing any Print Dialog.
Is there any alternative to show the Print Dialog in ActionScript?
1
vote
1
answer
53
views
How do you pause between text in this code?
I'm trying to put a pause between "Long ago," and what comes after that but I'm having trouble trying to do it. How could I make it work? I've attempted to use a timer but I'm not very good ...