r/ActionScript3 • • Jun 10 '15

Sending a NetStream to a file? [x-post /r/actionscript]

1 Upvotes

Hello,

I'm extremely new to AS. I've watch a few tutorials and I understand the basics of how to create netconnections, netstreams, and attach the netstream to a video object. Is there a way to save the netstream to a file rather than displaying it on screen?

Thanks


r/ActionScript3 • • Aug 03 '16

countdown timer > 2 questions

1 Upvotes

trying to make my first game. I know to break up it into parts before actually trying to make the game so here are my two current questions / snaffus.

  1. I set up a countdown using the code snippets when I click on a movieclip.

Question1. How to I make the timer display on the screen and not just the output window?

Question2. Once that's set up, how do I make an action happen once the timer completes (something like adding a value to a number? say action from question one makes "ice cream". How would I get the ice cream count to increase after the timer ended?)


r/ActionScript3 • • Aug 28 '14

AIR native extension for windows debugging

Thumbnail henke37.cjb.net
2 Upvotes

r/ActionScript3 • • May 04 '16

Help with Ring Toss (Like ball in hoop) Game Coding

1 Upvotes

I'm trying to create a Ring Toss game for my girlfriend. She's a clown and does some ring toss game with a strap-on where you have to connect a ring to her strap on. I tried to look up some tutorials on ball in hoop games, because I figured they would be similar, but it's all for older versions of Adobe Flash with I believe Actionscript 2.0 so I can't get it to work exactly how I want.

Essentially, I want to have the object that the rings need to attach to be a symbol or a movie clip that reacts when a successful ring lands on said pole. With every 10 successful throws, there would be some kind of reward thing. I want the rings that are tossed to randomly generate after each time they're thrown at different parts of the screen, and have mouse actions dedicated to them so you can throw them forcefully or gently in different directions. I can't find tutorials on anything similar to this if anyone knows where to point me, and also make it so the objects interact with each other, and a counter so successive successful throws get rewards after a time.

Anyone that could give me any direction would be sincerely appreciated.


r/ActionScript3 • • Feb 08 '13

Where can I learn actionscript 3 without buying flash?

1 Upvotes

Preferably with flash develop


r/ActionScript3 • • Feb 05 '13

Reseting variables to their positions in the first frame

0 Upvotes

Hey reddit sorry about what is probably a very basic question but I'm new to actionscript (long time redditer) and I am making a clock for an assignment but I cant figure out how to make the hands all revert to 12 o clock when I press the reset button all I can manage to do is reset the timer any help would be greatly appreciated.


r/ActionScript3 • • Mar 29 '21

How to use hitTestPoint

1 Upvotes

Hi I'm trying to make a maze game for a school project in animate and I can't figure out how to use hitTestPoint

I'm trying to make a maze and because it's not a pefrectly square maze I can't just us hitTestObject

All I know is that that I could use :

if(char.hitTestPoint(wall_mc.x,wall_mc.y,true)) // char is the player and wall_mc is the obstacle 

I think the problem is with the wall_mc.x,wall_mc.y I am 100% sure this incorrect because it only works when it hits the center but I can fugure out what I'm supposed to put in instead

I would like to apologize if this is a stupid question.

I also asked this in r/adobeanimate


r/ActionScript3 • • Sep 04 '22

How do I download ActionScript 3.0

1 Upvotes

I need ActionScript 3.0 for a lot of games, how do I download it. I can't find any tutorials.


r/ActionScript3 • • Aug 12 '22

How to get a death animation for my character in ActionScript 3 (Adobe Animate)

2 Upvotes

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 completely crashed and he wasnt able to show the end of how to setup a death animation for my player (link). So currently I have setup a movie clip of the death animation - just the playing spinning around - and put it in another movie clip called 'All Sprites' in which I have my other movie clips such as the different walking directions. So I have placed it in there, labelled it with "Link Death Frame". I then went back to the main script and added code so that once my player dies, the animation will play. Such as: ~

if(linkHealthBarMC.scaleX <= 0.01)     {         linkAlive = false;     }     trace(linkAlive); if(linkAlive == false) {     linkMC.gotoAndStop("Link Death Frame");  } 

~ However, the issue comes in which the animation doesnt actually play, it just goes straight to the first frame and doesnt play. I have tested it and I know for sure that it gets stuck on the first frame and that something must be wrong with the animation as I tested it with another animation and it worked fine (once I met the requirements for the animation to play). So does anyone have any idea how I can fix this issue so that my character can play a death animation?

Question 2 How do I stop time? Like just completely freeze everything after my character is dead? Because at the moment I am just going to the first frame of the death animation and can still move and attack.


r/ActionScript3 • • Jan 12 '22

What is the simplest way to run actionscript code ?

3 Upvotes

Hello,

I need an easy way to run very simple actionscript code : I just need to get the value of flash.system.Capabilities.maxLevelIDC on a Windows computer.

I am a beginner in Flash/ActionScript/Air etc..

Th best would be to generate an exe file, that will write this value into a txt file..

I've tried to create .as file, to compile it with amxmlc.exe, but I always have some issues, and I am not sure it is the way to do it.

Thanks


r/ActionScript3 • • Sep 03 '18

what fonts can i use without copyright?

1 Upvotes

im using flash develop, is the default font with textfield okay?


r/ActionScript3 • • Mar 10 '19

get native process arguments

1 Upvotes

I want to app another app using as3,

I use this code, which is working perfectly, var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo(); var file:File = File.applicationDirectory.resolvePath(scenario.link); nativeProcessStartupInfo.executable = file;

        var processArgs:Vector.<String> = new Vector.<String>();
        processArgs[0] = "the parameter you are passing";
        nativeProcessStartupInfo.arguments = processArgs;
		
		process = new NativeProcess();
        process.start(nativeProcessStartupInfo);

I want to validate the sent params from the opened app. so if the params not match something in opened app, it will not works.

how can I do that?

Thanks in advance! Ameed


r/ActionScript3 • • Mar 11 '19

I'm looking for a way to develop programs with as3.

1 Upvotes

I love as3 so much that I'm trying to look for ways to develop programs with it. I've noticed one of my favorite programs, Pyxel Edit, is written in as3 and I've been wondering how does one go about developing flexible modern software with as3?


r/ActionScript3 • • Apr 28 '14

Moving movieclip positions in Flash for interactive video?

1 Upvotes

This should be a simple process however I'm very new to Flash and Actionscript and I'm creating an interactive music video.

I have a collection of about 10 video files as movieclips, all of which are off stage. When a certain button is pressed on, the corresponding video will movie its X position fully across the stage and resets its position.


r/ActionScript3 • • May 02 '14

Drawing an overlapping video layers?

1 Upvotes

I'm currently trying to develop an interactive music video.

I'm not really sure how else to describe this technique but there is an example in Arcade Fire's interactive Reflektor video:

http://cdn02.cdn.gorillavsbear.net/wp-content/uploads/2013/09/ARCADE-FIRE-REFLEKTOR1-575x316.png

If anyone knows what I mean and how to code this, it would most appreciated to here.


r/ActionScript3 • • Dec 08 '12

Wondering about a simple "light switch" technique

1 Upvotes

Hello, I'm very familiar with Flash except for the actionscript side of things. I've been googling around and can't seem to find a simple explanation for creating a button that turns a light on/off. I did it my first year of university but can't seem to find those folders anymore. I was wondering if anybody here would be kind enough to help me out.

Thank you.


r/ActionScript3 • • Jun 02 '23

Help me restore an old flash game

1 Upvotes

hey!,

I'm trying to restore an old flash game.

and I need help since I don't really know AS3.

Please DM me at discord if you can help me
Arnon001#9254


r/ActionScript3 • • Jul 14 '23

Looking for JSFL/SWF Panel developers to bounce questions off

1 Upvotes

Looking for JSFL/SWF Panel developers to bounce questions off. I've recently wrote an AS3 class as a sort of API for this, which is making my life easier. I just want to know if others have had the same issues I've had for years w/ extending flash, and see how they solve them. To start with, when testing and debugging an SWF panel, and using the JSFL event listeners, how to you keep it from adding another listener every time you close and reopen the panel?


r/ActionScript3 • • Aug 10 '23

help with coding

1 Upvotes

hey do any of you know how to code a platformer, I am new to actionscript


r/ActionScript3 • • Nov 05 '22

Seeking Experienced AS2.0 Devs for Modding Game, Dawn of War 2 Retribution

2 Upvotes

Hi all

I understand this sub-reddit is for AS3.0 but I'm trying my luck and I hope the mods are okay with this (I've read the rules!)

We're searching for an experienced AS2.0 Dev for help, as we need someone to assist in modding DOW2 Retribution! On a slim chance, if you are that person, we'd be really appreciative of any help or guidance we can receive!

Thank you!!


r/ActionScript3 • • Dec 03 '22

How can I start developing in actionscript 3?

1 Upvotes

(Apologies if my English is not very good, I am writing this from google translator) I want to start developing flash games but I don't know how to start, I heard that actionscript 3 had to be downloaded but I can't find how to download it or how to start, can someone please guide me?


r/ActionScript3 • • Apr 03 '12

New to this AS3 thing, need help with phone app..

1 Upvotes

I really love Flash so I have decided to get to know the auld Actionscript side of it, I am making an application for my phone, a random insult generator. I have gotten the app to work... kinda, well there is only one part missing.

After the insult has been generated I want to send it in a text message. This is the code I have, it opens a blank message on my phone but does not input anything...

textInsult.addEventListener(MouseEvent.CLICK, sms);
	
function sms(event:MouseEvent):void 
{ 
	var mess = ("You are a " +insult);
	const callURL:String=("sms:0862605360?body=") + mess; 
	var targetURL:URLRequest = new URLRequest(callURL); 
	navigateToURL(targetURL); 
}

The insult is a variable called insult that is made by taking a random adjective from a list and a random noun and then string them together... any help would be appreciated as I have been stuck for a few days and have tried loads of things with no success.


r/ActionScript3 • • Mar 05 '24

Trying to recreate the game 3 7's Spoiler

3 Upvotes

If you've ever seen popular anime Yu Yu Hakusho, there is an in universe game called "three sevens" that's described as being like Tetris but slightly different. The way this game works is the Tetris like blocks each contain numbers between 0-7, if you manage to have 3 in the same row total 7 (IE 1 + 2 + 4) or get 3 7's in a row, they go away like in Tetris. I'm trying to recreate this game in actionscript. I found an opensource code for Tetris that I'm using as the base, and need to modify it so that it plays like the game I just described. Here's a link to the Tetris code, can anyone help me out here? Only thing I've been able to do so far is locate the individual blocks and assign a number to each one, and in the config.as file I changed all the array numbers to (0,0) so that they're only 1 x 1 blocks for now. Could use some tips.

https://github.com/jesperlindstrom/Tetris-Flash/tree/master/src


r/ActionScript3 • • Jun 21 '10

Sort XML by Attribute in Actionscript 3

Thumbnail nuff-respec.com
2 Upvotes

r/ActionScript3 • • May 27 '10

On the usefulness of protecting your ActionScript 3 code

Thumbnail irrlicht3d.org
3 Upvotes