Posts by bio • 2,736 points
87 posts
-
8
votes1
answer479
viewsQ: Socket "cutting" bytes into two packets
I am developing a Socket communication of my program with the server. This server is responsible for bridging between my program and the users that are connected to it, that is, the user when…
-
4
votes3
answers1999
viewsQ: Is it possible to develop mobile multiplatform using Java?
I am migrating the development of my applications to Java to build native applications for Android. I’d like to expand my apps to other platforms, like iOS and Windows Phone. You can do this with…
-
0
votes1
answer60
viewsA: Adobe Air iOS - Unload Swf
Make sure that all references of this loaded object have been set to "null", that is, when loading you enter the object within a variable, for example. var swf:MovieClip = myLoader.content as…
-
0
votes1
answer86
viewsA: How to protect swf file from running on other domains?
To make the SWF obsolete in other domains, you can use the command SecurityDomain.currentDomain.domainID. This feature returns a unique id of the swf hosting domain, through the object Singleton…
-
1
votes1
answer277
viewsA: Start application on a specific monitor in Adobe AIR
First, you need to define which monitor the application will be launched on, after that, rescue the information from the display area of that monitor, for this, use the class Screen, utilize…
-
8
votes2
answers1999
viewsQ: Why can’t I declare a variable with a numeric before the name?
I’m curious to know why I can’t create variables with a number before the name. I did some tests in Javascript, Actionscript and C#. var 4teste:String = "teste"; //ActionScript, erro! var 4teste =…
-
0
votes1
answer48
viewsA: Touch Flash action script 3
For touch events, you must set what the type of touch your application will receive. Actionscript provides three types: GESTURE You make a move and it takes an action) NONE Touch is treated as mouse…
actionscript-3answered bio 2,736 -
2
votes1
answer170
viewsA: What is the best IDE to program in AS2?
* Both the question and my answer can be based on opinion... Currently there are some well-known Ides, among the two you mentioned there are still paid ones Flash Professional and Flash Builder,…
-
1
votes1
answer277
viewsA: Error loading web address XML file
Actionscript 2.0 to 3.0 The language ActionScript 2.0 / 1.0 is limited by having few classes, assuming that it was created only to supply some actions of the Flash, including is not event-oriented,…
-
1
votes2
answers719
viewsA: Filling Flash objects with solid colors and textures
First of all (and a private advice from me) is you do this kind of programming in Actionscript 3.0, taking into account the practicality in the treatment of on-screen clicks, since AS3 is…
-
1
votes1
answer74
viewsA: How to use Stagewebview
There are two types of objects for HTML collage display, the Htmlloader and the Stagewebview. Htmlloader The object Htmlloader is the most practical to deal with, as it works as a container for your…
-
3
votes1
answer106
viewsA: Is it possible to use 3 webcams at once using Flash AS3?
This can be a bandwidth consumption of your computer’s USB ports, according this answer soen. According to the translation of the OP’s own answer, when performing a test by connecting the third…
-
2
votes1
answer65
viewsQ: Difference between "Object(meuobjeto)" and "(meuobjeto as Object)"?
I wish I knew the difference between using Object(meuobjeto) and (meuobjeto as Object) based on the code below: var mc:MovieClip = new MovieClip(); //Um objeto MovieClip trace(mc as String); //null…
-
1
votes1
answer144
viewsA: How to detect which swf was loaded
An alternative is to use the Externalinterface for communication between Javascript and Actionscript. With it it is possible to pass Javascript commands to Actionscript and vice versa. First you can…
-
0
votes1
answer110
viewsQ: "Escape" file string externally loaded
Problem: I am trying to pass to the database a String containing the bytes of an image that was externally loaded to place in a BLOB field. As always, the bytes of the image have single quotes ',…
-
1
votes1
answer60
viewsA: Error in Urlloader - flex
Check if the global settings of Flash Player is as Always allow so that the local file can access external Urls. You can check clicking here. Add the value Security.allowDomain("*") at the beginning…
-
5
votes3
answers1130
viewsQ: Access negative index from an array
BUG? I was building a library for Arrays treatment and came across the following situation: When including a value to a negative index within my Array, this index does not appear when using some…
-
0
votes1
answer266
viewsA: Development for mobile with Adobe AIR
Adobe AIR, by working on top of a VM, leaves the performance to be desired in relation to the device’s native language (either JAVA or Obj-C). This is further compromised when using many objects on…
-
1
votes2
answers343
viewsA: Using Flash Professional, how to import classes from an Actionscript file?
Classes imported from Actionscript must be packaged with the path to the directory where they are saved. This is predefined in the class package declaration within your AS code. Let’s say I have a…
-
2
votes1
answer229
viewsA: Doubt with Actionscript3 Classes and Objects
To VM Actionscript (Flash Player) has a Garbage Collector (Garbage Collector), that runs, indefinitely, to remove objects that are not being used by your project. (This link can help you). Now, to…
-
0
votes1
answer109
viewsA: Flex 3 - Actionscript - Cairngorm Dispatchevents - How to know when the event is over?
Usually when dispatching a new event from an object the only listener who listens to this event is added to the object itself. Example in Flash: var objeto:MovieClip = new MovieClip(); //Cria o…
-
9
votes4
answers8116
viewsA: Why and when to use XML instead of JSON?
JSON: The JSON object is sometimes used as a "communication bridge" because it is light and fast, unlike the XML that has a sharper structure. The way the JSON object is manipulated is also one of…
-
4
votes1
answer107
viewsA: Problem with Jpgencoder and Filereference
Well, I realize you’re using this library, correct? What I understand is that it cuts out an object DisplayObject, changing its properties and returning to Matrix of this cut. I did some tests here…
actionscript-3answered bio 2,736 -
5
votes2
answers267
viewsA: How to use cookies or other local storage in Flash?
Actionscript (Flash) works with a class called Sharedobject, which is not necessarily Localstorage (which is an HTML5 object). You can use either local "cookies" or in a Media server and even view…
-
2
votes1
answer1102
viewsA: How to give Play/Pause in a SWF contained in an HTML?
To do this control you can make an interaction of Javascript and Actionscript. On this website shows how to make an interaction via JS commands. Below I made a slightly more simplified example and…
-
3
votes1
answer15634
viewsA: Open Facebook app by a web link on Android
The latest version of Facebook, launched this year, also comes from Scheme for Android, which uses the same parameters as iOS. Unfortunately through a URL I can’t pass the ID of my Facebook app to…
-
7
votes1
answer15634
viewsQ: Open Facebook app by a web link on Android
I have a mobile site that the user can only access by logging in with Facebook. O SDK Facebook para Web (Javascript) works well, but the user always has to log in, because he is not always logged in…
-
11
votes2
answers661
viewsQ: Why does the month numbering of the Date object start at zero?
For example: var data:Date = new Date(); trace(data.month); //Supondo que o mês seja Janeiro: 0 I would like some details, because I know that it is not only in Actionscript and Javascript that this…
-
2
votes2
answers304
viewsA: How to free up memory after using a Filererence?
This is not a bug. In fact the Garbage Collector (Garbage Collector) Flash Player runs in unpredictable ways. He is responsible for keeping the ram memory of the machine free and we have to take…
-
2
votes2
answers690
viewsA: Send variables using POST
Unfortunately if you are running an application on the platform Adobe AIR, you will not be able to send the values by method POST by function navigateToURL, because it will treat the variables as…
-
0
votes1
answer116
viewsA: Problem with preloader on the web
I’ve solved the problem! The problem was in the compression mode that the server performed in the SWF, passing to the GZIP mode, when in fact it should use the DEFLATE. The answer I got on SOEN at…
actionscript-3answered bio 2,736 -
3
votes1
answer116
viewsQ: Problem with preloader on the web
I have developed a project where I need to show the user that the file itself is being loaded. The project has two scenes: In the first scene I created a preloader with the code: stop();…
actionscript-3asked bio 2,736 -
5
votes1
answer15650
viewsQ: What is an RTMP server and how to connect to it with Flash Sharedobject?
I need to create a file SharedObject Flash on an internet server for communication between several .SWFs. This communication needs to be fast and if possible in real-time. After some searches on the…
-
1
votes1
answer291
viewsQ: Obfuscate code in Actionscript 3.0 in SWF Flash?
I found this program called Sothink SWF Decompiler reverse engineering in archives .SWF converting them to .FLA, leaving, even, all the programming of the file visible and open to the user. Is there…
-
1
votes1
answer237
viewsA: How to convert a JSON object to XML in AS3?
I was able to perform the conversion by creating this method that worked well: function jsonToXML(obj:Object):XML { var to:XML = new XML(<root></root>); ad(to, obj); function ad(c:*,…
-
2
votes1
answer237
viewsQ: How to convert a JSON object to XML in AS3?
Is there any method of converting a JSON object to an XML object using the actionscript-3 with Flash CS6?…
-
3
votes1
answer697
viewsQ: Load the image bytecode in String and convert to Bitmap in Flash AS3
I need to load the image bytecodes inside a String and then convert to Bitmap. I am using the code below but without success: var urlLoader:URLLoader = new URLLoader(); urlLoader.load(new…