Most voted "actionscript-3" questions
Actionscript 3 is the third version of Actionscript, an object-oriented scripting language based on Ecmascript, used primarily for building RIA applications.
Learn more…54 questions
Sort by count of
-
11
votes2
answers661
viewsWhy 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…
-
8
votes2
answers719
viewsFilling Flash objects with solid colors and textures
I’ve been a Java programer for a while and now I’m creating a kind of Flash based coloring book in that video. Today there is a color palette, when clicking on the color and then in the drawing that…
-
8
votes2
answers1999
viewsWhy 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 =…
-
8
votes1
answer479
viewsSocket "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…
-
5
votes1
answer15650
viewsWhat 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…
-
5
votes3
answers1130
viewsAccess 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…
-
3
votes1
answer697
viewsLoad 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…
-
3
votes1
answer178
viewsError #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 well done, I decided to create a game with menu, where you can access the basic preferences (Turn off…
actionscript-3asked 10 years, 9 months ago Gammeth 445 -
3
votes1
answer116
viewsProblem 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 10 years, 8 months ago bio 2,736 -
3
votes2
answers690
viewsSend variables using POST
I am trying to open a new URL and send variables via method POST, but it only sends in method GET. I tried that Code: // create a URLRequest object with the target URL: var url : String =…
-
3
votes1
answer40
viewsWrong webservice message integrating with Actionscript
I’m making an application restful in C#, where I will receive a request via post and return a JSON or a string to the applicant. [HttpPost] public string confirmahora() { String OUTPUT = "mensagem";…
-
3
votes1
answer135
viewsnavigateToURL is not sending POST
I’m trying to send parameters from actionscript to the php, I looked up the following page: Send variables using POST I did it right, but the moment you perform navigateToURL(urlRequest, '_self');,…
-
3
votes1
answer144
viewsHow to detect which swf was loaded
I wonder if it is possible to detect when swf is loaded: Follow the code: <object id="teste" name="teste" type="application/x-shockwave-flash" data="120x600.swf" width="550" height="400"…
-
3
votes1
answer106
viewsIs it possible to use 3 webcams at once using Flash AS3?
I am using the code below to display 3 webcams at once. But it only works with 2. getCamera("0") and getCamera("1") = okay getCamera("1") and getCamera("2") = okay getCamera("0") and getCamera("2")…
-
3
votes1
answer72
viewsAdobe Air integrate Flex Componets
I am developing a project through Adobe AIR and Action-Script 3, I found that the UI Components do not have mobile support, ie on Android or iOS they do not scroll-bar down and up with your finger.…
-
3
votes3
answers1526
viewsHas Actionscript become useless?
With the advent of HTML5 and CSS3, it is correct to state that the language Actionscript used in applications Flash became a "dead" language or it was used in some other Adobe application?…
-
2
votes2
answers200
viewsFor 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. Because objects are…
-
2
votes1
answer237
viewsHow 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?…
-
2
votes1
answer109
viewsFlex 3 - Actionscript - Cairngorm Dispatchevents - How to know when the event is over?
I’m using Flex 3 with Cairngorm framework. Somewhere in the program I trigger an event dispatchEvent, as: CairngormEventDispatcher.getInstance().dispatchEvent(new eventExample [...] Is there any way…
-
2
votes1
answer90
viewsClock in Action Script
I created a clock in Action Script to use as content for Digital Signage 6 countries, but I have a problem with daylight saving time. I used getHours to pick up the schedules and applied the…
-
2
votes1
answer107
viewsProblem with Jpgencoder and Filereference
I am trying to save the contents of a Movieclip in an image, but when trying to save the image the following error occurs: image with white space http://www.panrotas.com.br/v2/test.jpg A white space…
actionscript-3asked 10 years, 5 months ago Raphael Rosa 172 -
2
votes2
answers343
viewsUsing Flash Professional, how to 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 save, this and other classes, in a file extension ". as" and be able…
-
2
votes2
answers304
viewsHow to free up memory after using a Filererence?
FileReference.load does not have a function to download, just as there is new Loader().unload. Must be a Flash BUG or Filereference needs to be improved, like in a new version add a function like…
-
2
votes1
answer229
viewsDoubt with Actionscript3 Classes and Objects
Description of the Project I’m developing a slide catalog, where there are photos and texts, which are dynamically loaded from urls provided in a list. Load list displaying this format: nome_do_item…
-
2
votes1
answer227
viewsAction Script 3.0 Function does not receive parameter
I’m having a problem with parameters for my function. It’s not getting the parameter I pass to it. Follow the code below: function gerarescala(e:MouseEvent):void { var tom:String = texto.text; var…
-
2
votes1
answer65
viewsDifference 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…
-
2
votes1
answer277
viewsStart application on a specific monitor in Adobe AIR
I am developing an application in Adobe Air exe that uses 2 monitors, the application calculates how many monitors have the computer, and calculates using a Rectangle to popular the same. Here it is…
-
2
votes1
answer96
viewsHow to pass a function as parameter in Action Script?
Can anyone tell me what kind of object allows me to make a value matrix and a function similar to the code below and script 3 action? If it were in Java you could do something like this: My…
actionscript-3asked 9 years, 10 months ago Vinícius Carneiro de Brito 103 -
2
votes1
answer277
viewsError loading web address XML file
I have a flash game where I load the words through an XML file: var carregaPalavras:XML = new XML(); carregaPalavras.ignoreWhite = true; carregaPalavras.onLoad = function(success) { if (success) {…
-
2
votes1
answer86
viewsHow to protect swf file from running on other domains?
Protect a swf file by Actionscript 3.0? I know there’s a Security.allowDomain("www.example.com"), but it only serves to be able to receive data from the domain that is in parentheses, if I’m not…
-
1
votes1
answer291
viewsObfuscate 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
votes2
answers267
viewsHow to use cookies or other local storage in Flash?
I would like to persist some information in the program I am doing in Flash. I need to save primitive data from internal controls of my application, and thought of something like a local XML or a…
-
1
votes1
answer266
viewsDevelopment for mobile with Adobe AIR
I’m trying to develop a chat, with custom listview for video, images and etc. but it’s causing a lot of lag. Hangs everything that’s right! Even touch, when you move from one screen to another. Has…
-
1
votes1
answer74
viewsHow to use Stagewebview
I need to implement an Application to show HTML texts already formatted, these texts are with images. I found two options: Webview - But I can’t use it as a component, just instantiating and playing…
-
1
votes1
answer421
viewsCalling external file by Div
In the script below it is possible to call an external file through this <div> <div id="script" class="#"></div> Watch this excerpt from the script: https://'+id+'?= how do I make…
-
1
votes1
answer60
viewsError in Urlloader - flex
I am creating an application in flex (AS3), where I need to get information from an external url. However when using Urlloader the error occurs: "Error #2044: Unhandled securityError:. text=Error…
-
1
votes1
answer48
viewsTouch Flash action script 3
Why does this happen? I created a circle convert it to BUTTON, and give it any action, if I leave one of my fingers pressed on the screen outside the circle, and touch it with my other finger it…
actionscript-3asked 9 years, 5 months ago tafodaisso 11 -
1
votes3
answers82
viewsTransparency of a SWF with wmode=Transparent does not work in Firefox
I need to display a SWF with transparency. O <wmode = transparent> is working on all browsers except Firefox. What? <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%"…
-
1
votes0
answers34
viewsInvalid character when exporting to Flash CSV
When I export a DataGrid for .csv the characters of my header which contains invalid-formatted fictional accents. private function onExportToCSV():void { var fileReference:FileReference = new…
-
1
votes0
answers33
viewsHow can an external swf access the Stage within the document class?
I have a main swf that loads other swfs. Everything works correctly with the code below that is within the main swf (sketch): var loader:Loader = new Loader(); stage.addChild(loader);…
actionscript-3asked 7 years, 11 months ago bio 2,736 -
1
votes1
answer94
viewsHow to get the X and Y strings of a movieclip in Actionscript 3 or Javascript?
Hello, I’m new around here and I have a question that’s giving me a hell of a job. I need to capture in a variable the X and Y coordinates of a certain movieclip that is on my stage (canvas on…
-
1
votes0
answers18
viewsLoad URL into htmlText tag
I need to upload a url inside this tag: <mx:HBox id="horizontalBoxInfo" width="100%" > <mx:TextArea id="textAreaInfo" width="100%" height="200" editable="false" horizontalScrollPolicy="off"…
-
0
votes0
answers98
viewsIs it possible to select graphics card?
I am wanting to create a small web program where I need to select a video card. It is a software for displaying music on projector. As the PC will have two boards one will only show on projector.…
-
0
votes1
answer110
views"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 ',…
-
0
votes1
answer133
viewsHow to download linked HTML files within AIR application?
I created an application with Adobe AIR and played within it the HTML component that will open my desired page. The problem I’m having is that within this HTML page there are some functions to…
-
0
votes1
answer76
viewsFinish youtube video soaked in as3
I’m using a Youtube video embedded in a flash. When the video ends, it gets the default youtube screen of end of video, and suggests videos to the user. There is a way to set the video to pause in…
-
0
votes0
answers92
viewsControl Main SWF via an external SWF
In the actionscript2 was possible, but in the actionscript3 I can’t do it. Here’s the thing, I have a main SWF file that contains some movieClips. My main file loads another external SWF containing…
-
0
votes1
answer60
viewsAdobe Air iOS - Unload Swf
I wonder if it’s possible to do unload of a swf on iOS. I am currently doing an iOS project using Adobe Air and my class is as follows:: function foo() { var m_lc:LoaderContext = new…
-
0
votes0
answers149
viewsIs it possible to recompile a decompiled flash game with Sothink SWF Decompiler or JPEXS Free Flash Decompiler?
I have many games in the format swf, but I want to collect for swf in Adobe Flash CS6. The problem is that they are in Actionscript 1 and Actionscript 2, how can I recompile? Another problem is that…
-
0
votes0
answers66
viewsAm I developing a memory game?
I wanted to know how to make a memory game in as3 where first have: 1-every time the game is run the cards are random. 2-have at least one condition to check if the cards are equal and if they are…
actionscript-3asked 7 years, 7 months ago Hugo Azevedo 1