r/ActionScript3 • u/AttackingHobo • Feb 24 '10
r/ActionScript3 • u/sindisil • Nov 30 '09
10 Things About AS3 That Annoy Ian Lobb
r/ActionScript3 • u/ReleeSquirrel • Oct 07 '09
Can a variable be set to refer to another variable rather than copying its contents?
I'm learning ActionScript 3 with the book Learning Actionscript 3.0 from O'Reilly books, but I'm having trouble figuring something out. Can a variable be set to refer to another variable rather than copying its contents?
For example, if I want the property Door in object Room01 to refer to the object Room02, how could I set the property to that? If I do Door = Room02, it makes Door into an object which is equal to Room02 rather than refering to the specific instance of Room02. In C++ I would do this with a pointer, but I don't think Actionscript 3 has pointers or a pointer equivalent, so how do I do this?
I know that for event handling, ActionScript 3 will take a function as a parameter and refer to that function, so it should be able to refer to an object. I'm just not sure how.
P.S. It's clear that AS3 Programming help isn't a popular topic on Reddit, would you please reccomend your favorite websites for discussing the language and the Flash platform?
r/ActionScript3 • u/AttackingHobo • May 01 '09
Actionscript 3 Key Code list. This contains all teh key codes available for actionscript.
people.uncw.edur/ActionScript3 • u/AttackingHobo • May 01 '09
Making simple useless macros can bring happiness. example: stop();//HAMMERTIME!
r/ActionScript3 • u/thejamesyc98 • Feb 23 '17
How can I make a loop?
I'm making a multimedia program thing in class, it pretty much is a website, but there is animation in it, so each page can't be one frame. But then it just continues on after frame 30, i want it to loop from 30 to 0 again. I have it set to go to frame 32 when i click the button. How do make each set of frames loop until told otherwise
r/ActionScript3 • u/Krickett • Jul 24 '12
CartoonSmart - Ultimate Actionscript 3 Basics. Opinions?
Does anyone have any experience with these tutorials, or with this site in general? I'm curious as to how up to date/effective these videos are. I tend to enjoy educational videos, but I'd feel better knowing I'm not learning dated or poorly made instructions. Opinions anyone?
EDIT: link to video
r/ActionScript3 • u/AttackingHobo • May 01 '09
TIP: When you tell the code to do something to a MovieClip on stage. Make sure it has a stage reference name, or you will get cryptic errors :D
r/ActionScript3 • u/AttackingHobo • May 01 '09
Any of you gusy who are subscribed to ActionScript3, please try to get some more people interested in this.
r/ActionScript3 • u/Vaaale • Jul 31 '12
Load an image in a moving MovieClip()
Hey there, I have some rough times trying to uplaod an image in a moving movieClip. I thought that I could do something like: someMovieClip.addChild(someLoader); But it obviously doesn't work. So reddit, I need help!
r/ActionScript3 • u/AttackingHobo • May 11 '09
Never accidentally put a button inside a button. Even if the button inside has no name and does nothing, it will prevent the parrent button from working
r/ActionScript3 • u/jschatz1 • Oct 25 '09
Flash Actionscript 3 OOP Video Tutorials
tiffany.jacobschatz.comr/ActionScript3 • u/sindisil • Oct 27 '09
Pros & Cons of creating a game for Adobe AIR
anotherearlymorning.comr/ActionScript3 • u/idiosyntactic • Oct 28 '09
Yay, Nidus can crunch thousands of cells now!
blog.idiosyntactic.comr/ActionScript3 • u/Due-Career-8860 • Nov 19 '24
I need help to remake the game Ninja Saga
Hi guys, i know alot of people ask something like this before, btw i dont losing nothing trying.
I want remake the old Facebook game "Ninja saga", i have the code, and all data of the game, btw i dont have any idea or knowledge about action script 3 and flashplayer, can someone help me? Maybe this proyect generate money in future.
r/ActionScript3 • u/[deleted] • Jan 03 '21
how to make a variable with the value of another variable
basically i have a while loop and i wanna make a new variable in the loop with a number at the end that incremeants each time it's called e.g.
var x:int = 0;
while() {
var y[x]:int = z;
x++;
}(obviously this doesn't work but how would i write code similar to this that would work)
r/ActionScript3 • u/justgrant2009 • May 09 '14
I need help to draw lines to stage from external file with coordinates and also make that line a button with an action based on the same external file.
Intermediate AS3 user here... far from a pro, but not unfamiliar with writing AS.
Here's what I'm trying to do, I want to make World map that will have several lines (straight lines) in a variety of regions around the world. I want to have the coordinates for these lines (X1,Y1,X2,Y2) stored in an external file that can be easily updated over time. Also, for each line, a specific image name would be stored with it. I want it so that when the Stage/Application loads, it displays the map, draws all the lines to it, and allows the user to roll over the lines (upon roll over, it would change color), and on clicking, it would open an image (as specified in that external doc) for viewing.
I'm somewhat new to AS3. I can build just fine using Flash and importing my images and drawing on the stage... but I've never tried to read anything from an external file and have that add objects/buttons to the scene.
Can anybody help point in the right direction? Whether you're good at describing how I would do this, or can point me to a tutorial, or a document that shows how to accomplish this, anything is helpful at this point.
Thanks everyone!
r/ActionScript3 • u/DLabz • Nov 26 '11
My cubic fixation... [FP11, Stage3D]
dl.dropbox.comr/ActionScript3 • u/neofatalist • Oct 29 '11
Why the heck aren't <img> tags supported for htmlText in air???
Very frustrating!!! Anyone got any good workarounds? Im planning one but its just lot of work.... arrrgh.
r/ActionScript3 • u/HookedOnGrunting1995 • Oct 01 '21
Something involving a dead Chinese Plants vs. Zombies mmo
Hello. To sum this up very quickly, there was once a pvz mmo flash game in china called pvz online ( https://plantsvszombies.fandom.com/wiki/Plants_vs._Zombies_Online ). It closed in 2018 but thankfully some fans managed to rip the game's source code from the website it was hosted on a month before it's closure. Only a few months ago, someone fixed it up enough to work offline but it is still severely broken with some problems being the result of certain files not being archived or the game not running on a server. One of the many problems is the normal mode's screen size function of being able to resize itself depending on the window size is broken, making it too small. Could someone tell me how I could fix this please? P.S, If anyone for whatever reason would like to help with the game, feel free to since the only 2 people that were working on the game have been silent for some time. Thank you all in advance.

r/ActionScript3 • u/SFHD_Online_YT • Dec 17 '18
AS3: Return to Init - help needed plz!
Okay, so I've got a small function as part of an in-class tutorial that leads into my assignment for the menu systems, but it's not returning to the 'initial function'. The code for it is below:
public function gameRestart(e:Event):void //this function isn't being heard by the game window
{
if (e.target == Restart)
{
removeEventListener(MouseEvent.CLICK, gameRestart);
//this code here restarts the game
removeChild(Restart);
removeChild(ShowEnd);
TimerNumber = 0;
ShotCowboys = 0;
FinalTime = 0;
init();
}
}Does anybody know how I can get this to go from the end screen to return to the init function and show the first screen whilst removing my text "ShowEnd" (which was showing a final text of the time counter) and the 'restart' image?
would be great to know how!
r/ActionScript3 • u/DevicePerfect5249 • Jun 21 '21
getDefinitionByName without declaration
I've inherited a mobile project built with AIR, and the previous developer had things set up to import assets from multiple swc files, using a manifest of dynamic class name strings, and getDefinitionByName(). As far as I'm aware, this doesn't work unless you declare the dynamic class name in code, before you call getDefinitionByName. But obviously they were pulling this off somehow, put I can't get past the dreaded Error #1065 variable x is not defined, without actually defining the dynamic class first, which kind of defeats the whole point of the manifest. Any ideas on how to solve this? Thanks.
r/ActionScript3 • u/rworsl • Sep 15 '14
Transformation and rotation with offset registration points
I hope someone here can help me.
I want to create a movie clip that has an offset registration point, rotate it round to a fixed angle, and then have the movie clip move towards the registration point. What would be the best way to achieve this? Would it be with matrices?
r/ActionScript3 • u/zwetan • Feb 04 '16
ANNOUNCE - Redtamarin v0.4.1
Hello,
I’m zwetan from Corsaair :) and we are announcing 2 OSS projects
redtamarin-sdk-0.4.1
https://github.com/Corsaair/redtamarin/releases/tag/0.4.1
The Redtamarin Software Development Kit
Tools cover IDE support (SWC libraries), redshell runtimes (Windows, Mac OS X, Linux) for both 32-bit and 64-bit, ActionScript Compilers with ABC libraries, and command-line utilities like redtamarin, redshell, redshell_d, redshell_dd, and redbean.
as3shebang-1.0.0
https://github.com/Corsaair/as3shebang/releases/tag/1.0.0
The ActionScript 3.0 Interpreter
based on the RedTamarin runtime, it allows you to run uncompiled ActionScript 3.0 source code as an executable shell script.
Both projects are based on #redtamarin 0.4.1
and are available for Windows / Mac OS X / Linux both 32-bit and 64-bit
The goal is to reuse AS3 on the command-line and the server-side.
It make us more productive, maybe you can find it useful too
Let us know what you think :)