Questions tagged as 'actionscript-3'

2
answers

Why is the numbering of the months of the Date object starting at zero?

For example: var data:Date = new Date(); trace(data.month); //Supondo que o mês seja Janeiro: 0 I'd like some details as I know it's not just in ActionScript and Javascript that this happens. Why not simplify the month counter so that in a...
asked by 28.04.2014 / 15:00
1
answer

Socket "cutting" bytes in two packets

I am developing communication via Socket from my program with the server. This server is responsible for bridging between my program and the users who are connected to it, ie the user making a change in "program A", the user of "program B" will...
asked by 16.08.2016 / 21:56
2
answers

Filling Flash objects with solid colors and textures

I've been a Java programmer for some time and now I'm creating a kind of Flash coloring book based on in this video . Today there is a color palette, when clicking the color and then in the drawing that part receives the color chosen using...
asked by 09.10.2014 / 15:06
2
answers

Why can not I declare a variable with a number in front?

I'm curious to know why not being able to create variables with a number up front. I did some tests in JavaScript, ActionScript and C #. var 4teste:String = "teste"; //ActionScript, erro! var 4teste = "teste"; //Javascript, erro! String 4teste...
asked by 29.07.2015 / 15:43
3
answers

Access negative index of an array

BUG? I was building a library for handling Arrays and I came across the following situation: When adding a value to a negative index within my Array, this index does not appear when using some methods: Example: var array = new Array("Mar...
asked by 04.08.2014 / 20:09
1
answer

What is an RTMP server and how do I connect to it with Flash's SharedObject?

I need to create a SharedObject Flash file on one server on the internet for communication between several .SWFs . This communication needs to be fast and if possible real-time. After some searches on the Adobe Reference , I found...
asked by 20.02.2014 / 17:17
1
answer

Error # 1009 after first run

I'm a beginner in AS3, and I'm building a game for a course I'm doing. As I want the game to be very well done, I decided to create a game with menu, where you can access the basic preferences (Turn off music, instructions, etc.) And when...
asked by 17.02.2014 / 02:27
1
answer

navigateToURL is not sending POST

I've been trying to send parameters from actionscript to php , I've checked the following page: Send variables using POST I made it right, but at the moment it runs navigateToURL(urlRequest, '_self'); , it always sho...
asked by 08.04.2015 / 19:48
1
answer

Is it possible to use 3 webcams at once using Flash AS3?

I'm using the code below to view 3 webcams at once. But it only works with 2.    getCamera("0") and getCamera("1") = ok% getCamera("1") and getCamera("2") = ok% getCamera("0") and getCamera("2") = no...
asked by 20.11.2014 / 02:38
2
answers

Send variables using POST

I am trying to open a new URL and send variables via POST method, but it only sends in GET method. I tried this Code: // create a URLRequest object with the target URL: var url : String = 'newpage.html'; var urlRequest : URLReque...
asked by 23.03.2014 / 20:51