41,111
questions
0
votes
0
answers
24
views
Make changes to the viewBox in AS3SVGRenderer lucaslorentz library for zooming and paning
I am using the AS3SVGRenderer library to draw SVG shapes with ActionScript. I have no trouble drawing shapes, but I cannot access the 'viewBox' to use it for zooming
Can someone help?
The code I wrote:...
0
votes
0
answers
33
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 ...
1
vote
1
answer
29
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 ...
0
votes
0
answers
15
views
nested symbol reached the end, then next frame or scene
I want to make a nested symbol to reach the current frame, which is at the end, then play and/or stop to next frame or scene.
if (marioHead_SmashandBash.currentFrame == 95){
gotoAndStop("...
1
vote
2
answers
25
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 ...
0
votes
0
answers
16
views
Balls bounce when they approach negative voltage
I am working on designing a simulation of a physical experiment, which includes a cathode and an anode. Negative electrons are emitted from the negative cathode and fall on the positive anode. However,...
0
votes
0
answers
37
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 ...
0
votes
0
answers
59
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 ...
0
votes
0
answers
32
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 ...
2
votes
1
answer
57
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 ...
1
vote
1
answer
70
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 ...
0
votes
0
answers
40
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 "...
0
votes
0
answers
31
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
0
votes
1
answer
35
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 ...
0
votes
0
answers
44
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 ...
1
vote
1
answer
126
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
36
views
Export Release Build is not working in Adobe Flash Builder, It does nothing on Finish button
In Flashbulider 4.7 I have project in actionscript3 for mobile application everything works fine like running it in debug and without debugging.
The problem is that I can't create air file or apk ...
0
votes
0
answers
46
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 ...
1
vote
1
answer
51
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....
0
votes
0
answers
29
views
Implicit coercion of a value with static type Object to a possibly unrelated type Number
if (goUP == true && player.y > 15 + speedP)
{
Tweener.addTween(player, {y:player.y - speedP, time:0.5});
}
if (goDOWN == true && player.y < ...
0
votes
0
answers
34
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.
...
0
votes
1
answer
51
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/...
0
votes
1
answer
45
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 ...
0
votes
0
answers
17
views
AS3 Caling MC on Parent Timeline from Child
I'd like to find best code referencing movie clip on parent's timeline shortly. It aimed to set alpha and another properties of that visualization movie clip outside child.
I've try using MovieClip(...
0
votes
1
answer
34
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 ...
0
votes
1
answer
34
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 {
...
0
votes
0
answers
65
views
Layer Parenting, Make Child Layers Move Along With Parent Layer That's Being Moved by ActionScript 3.0?
I have a Movieclip symbol for a character and within it are multiple symbols of body parts that are linked together using Layer Parenting. Please see my linked .fla file here if it helps.
When I ...
0
votes
1
answer
43
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 ...
0
votes
0
answers
40
views
How can I revive this game?
My AS3 code:
public class PHPConnect extends EventDispatcher
{
public static const DATA_LOADED:String = "phpLoaded";
public static const RETURN_XML:String ...
0
votes
1
answer
27
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 ...
0
votes
0
answers
138
views
GDPR UMP Implementation Using AS3 Script
I Need Small Help From you Guys. I Had Implemented UMP Consent On my Game Using AS3 Script. Even I Had Enabled GDPR Settings on My AdMob Account too.
But While Testing on my Mobile Using Test Device, ...
1
vote
2
answers
863
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: -...
0
votes
0
answers
39
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
...
0
votes
1
answer
35
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 ...
-1
votes
2
answers
107
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 ...
0
votes
0
answers
37
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 ...
1
vote
1
answer
36
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;
...
1
vote
1
answer
44
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 ...
0
votes
0
answers
26
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....
0
votes
1
answer
36
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 ...
0
votes
0
answers
38
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 ...
0
votes
0
answers
29
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 ...
1
vote
1
answer
59
views
Get x, y, width and height of images on main timeline
I'm struggling with what I'm sure is a simple question, but I can't seem to figure it out or find a similar issue!
I have an animation in Adobe Animate which consists of a bunch of images on different ...
0
votes
0
answers
62
views
AS3 Associating Sound Volume within Timer Class
How to associated sound volume linearly reduced/increased along timer class.
I just want my sound stop on its half of total duration within fading out effect smoothly.
I use bellow class but no sound ...
0
votes
0
answers
78
views
Unable to open exe file using Adobe Animate and XML configuration
Unable to open exe file using Adobe Animate and XML configuration
I'm trying to open an exe file from another exe file using Adobe Animate and XML configuration. However, the code seems to be correct, ...
0
votes
0
answers
26
views
AS3 Trigger to Label using IF Statement
I have problem to find the way to identify frame label inside child's timeline using if statement. I wrote the following but failed.
if (myChild.currentFrame == "b1"){
myMC.visible=false;
}
...
0
votes
0
answers
139
views
How to fix Error #1000: The system is out of memory while using ForcibleLoader.as in Adobe Air?
Adobe Air in ActinoScript3 ForcibleLoader.as
Error: Error #1000: The system is out of memory.
https://gist.github.com/nsdevaraj/409902
package
{
import flash.display.Loader;
import ...
0
votes
0
answers
41
views
AS3 Button Calls MC inside Two Level Loaded External SWF
I have a button on parent to call mc_target into two levels hierarchy of loaded swf. Any idea to solve that is greatly appreciated.
Simply it goes as bellow:
In parent I load external swf1 using below ...
0
votes
0
answers
36
views
TypeError: Error #1006: addEventListener is not a function. (Actionscript, puzzle game)
AS3 newbie here (like really new). I'm trying to make a puzzle game with actionscript, and below is the code: (put in an as file applied to fla)
package
{
import flash.display.MovieClip;
...
0
votes
0
answers
18
views
Error #1010: A term is undefined and has no properties. (MovieClip Error)
AS3 newbie here (like really new). I'm trying to make a puzzle game with actionscript, and below is the code: (put in an as file applied to fla)
package
{
import flash.display.MovieClip;
...