Questions tagged as 'actionscript-3'

1
answer

Load the bytecode of the image into String and convert to Bitmap in Flash AS3

I need to load the bytecodes of the image into a String and then convert it to Bitmap . I am using the code below but without success: var urlLoader:URLLoader = new URLLoader(); urlLoader.load(new URLRequest("imagebytecode.txt"));...
asked by 11.02.2014 / 19:05
1
answer

Wrong message in webservice integrating with ActionScript

I'm doing a restful application in C #, in which I will receive a request via post and will return a JSON or a string for the requester. [HttpPost] public string confirmahora() { String OUTPUT = "mensagem";...
asked by 18.11.2014 / 13:39
1
answer

How to detect that the swf was loaded

I wonder if it is possible to detect when swf is loaded: Follow the code below: <object id="teste" name="teste" type="application/x-shockwave-flash" data="120x600.swf" width="550" height="400" onload="alert('carregado')"> <para...
asked by 01.09.2014 / 17:58
1
answer

Problem with preloader on the web

I've developed a project where I need to show the user that the file itself is loading. The project has two scenes: In the first scene I created a preloader with the code: stop(); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS...
asked by 27.02.2014 / 18:43
2
answers

For loop does not start with Array

I'm new to AS3, and I'm trying to create a game for a course I'm doing, but I'm having trouble starting a loop that should test the collision between two objects called by AS3. As objects are called dynamically by AS3, I'm inserting them into...
asked by 07.02.2014 / 20:44
1
answer

Adobe Air integrate Flex Componets

I'm developing a project through Adobe AIR and Action-Script 3, I found that UI Components does not support mobile, ie in Android or iOS they do not scroll-bar down and up with your finger . As far as I can tell, it has the Flex Framework fun...
asked by 22.11.2015 / 18:54
2
answers

How to free memory after using a FileRerence?

FileReference.load does not have a function to unload, as there is new Loader().unload . Should be a Flash BUG or FileReference needs to be improved, type in a new version to add a function like this: FileReference.unload();...
asked by 31.03.2014 / 18:39
2
answers

Using Flash Professional, how do I import classes from an ActionScript file?

In my project I have the ListLoader class, responsible for interpreting a list and uploading files described in it.   My goal is to be able to save this and other classes in a .as extension file and be able to import it into my current project a...
asked by 25.07.2014 / 17:24
1
answer

Problem with JPGEncoder and FileReference

I'm trying to save the contents of a MovieClip to an image, however when trying to save the image the following error occurs: image with white space http://www.panrotas.com.br/v2/test.jpg A blank space appears on all images saved using...
asked by 02.06.2014 / 15:43
1
answer

How do I pass a function as a parameter in Action Script?

Can anyone tell me what kind of object allows me to do an array of value and function similar to the code below and action script 3? If it were in Java it would give something like this: My Interface: package test; public interface MyInt...
asked by 20.01.2015 / 19:08