actionscript

Audio recording in .mp3 format

I have an Audio Recorder created in flash. Currently it records audio and saves it in .flv format.(I am using AS2.0) My question is: Is there any way by which I can record and save audio in .mp3 format, directly? Thanks in advance. ...

Flex 4: Accessing public method in main application from component

I need to be able to call a method from a component located under the main application in Flex 4. Can anyone tell me please how to do this without using FlexGlobals please? Sample code is attached. Thanks in advance. // TestApp.mxml (application) <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.co...

Timing accuracy in Flash

Does anyone know how accurate flash timing is and its ability to identify the client monitor's refresh rate? I need to be able to calculate time durations with up to 10 milliseconds accuracy of response time. Also if it is off, is there a way to possibly calibrate the response based on monitor refresh rate and action to make sure the v...

Flex 4: Event Listener created, but not being called?

I'm trying to call an event I've created in another component. I've added trace() into my methods so I can see what's being called. Everything except for the event listener (myEvent) is being called. Can anyone tell me why this is please? Any help would be greatly appreciated. Thanks in advance. // TestApp.mxml (application) <?xml vers...

XML gives undefined result in ActionScript 2.0

So good so far in ActionScript language I actually haven't fell in bad condition but still I have one good issue that I can't do! In order at the root timeline everything is Ok when I call the XML childNodes or write the XML class everything its true, but when I call the XML childNodes from root within a movieclip XML gives me undefined...

Event-driven CMS - advantages and disadvantages

I'm trying to identify some of the pros and cons of having a CMS that is event driven. Event driven is not uncommon. You see it in many scripting languages like Actionscript, javascript, jquery that involve a client. How about in a CMS where the events and their responses happen on the server. What advantages or disadvantages might thi...

Actionscript export problem

I have an actionscript file that I am trying to export from Adobe Flash Builder 4. The program reads in a json.txt file. It works fine when I run it and view it in a browser. I then right-click on the .as file, and choose 'export' -> 'release build' and save it on my computer. Then, when I open up the .html file, it can no longer load ...

Custom cellRenderer for a List with XML data

Hello, I have a Game-sprite representing a game room with up to 3 players, it works ok. And would like to populate a List component with those Game's, based on an XML data coming from a socket. I've prepared a simple test case demonstrating my problem - ListTest.fla (should have a List component in its Library): import fl.data.*; imp...

How can I make Flash work with a SharePoint List instead of XML?

I heard from an article somewhere that Flash can now use SharePoint lists instead of an XML file. However, I'm having trouble locating a tutorial which will explain how to get a Flash app to draw from a SharePoint list. Anyone know any good tutorials? I'm working with SharePoint 2010, Flash CS4, and I'm currently using AS3 to pull in...

cost of calling a class for a static const in as3

I'm wondering about the effectiveness, cost of, or resources used to call a public static const from a class Let's, hypothetically, say I have a class that has quite a few resources and calling the constructor is about 40kb of memory. Is there any difference in adding static constants to the same class as opposed to creating a small cl...

How to use transparent BitmapData as a mask

I have a BitmapData object created dynamically that contains user-drawn shapes. I then attach that BitmapData object to a MovieClip via a Bitmap object and set that MovieClip as a mask to another MovieClip. The mask works but the whole bounding rectangle of the BitmapData is acting as the mask. But I want to exclude the transparent porti...

Capture video/audio from webcam, view it and send as a file to server (ex. youtube) in flash/actionscript

Hi, people! I'm new in AS and trying create util such Youtube's "My webcam". Here's a part of my code: var camera:Camera = Camera.getCamera(cameraIndex.toString()); VideoDisplay.attachCamera(camera); //view yourself var mic:Microphone = Microphone.getMicrophone(0); video = new Video(); netconnection = new NetConnection; netconnection.c...

How to get the available area on the screen

In my Flex application, the modules can be larger than the resolution of the screen and have a vertical scrollbar. When the user clicks somewhere, I popup a small component at the position of the mouse co-ordinates. However, if the user clicks too close to the edges of the screen, I need to prevent the component from appearing outside ...

Avoid FocusOut event trigerred when apllication loses focus

Dear all, I have done an ovveride of the standard TextInput component In this component I have : addEventListener( FocusEvent.FOCUS_OUT, handleFocusOut ); My method is trigerred when the field loose focus for another field (nice) Problem : It is trigerred alose when the whole flex application lose focus (when my field has the curre...

How do I set a header on the request generated by FileReference?

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html How do I add my own request header to the POST requests generated by FileReference.upload()? ...

Is there an easy way to convert Flash ActionScript from version 1-3?

Have one. Fla (Flash) file that uses ActionScript 1.0. Need to have it in version 3.0 and was wondering if there is any easy way to convert it? My knowledge of ActionScript is basically nonexistent. Have access to Adobe Flash CS5. ...

attach a symbol over the xml slide gallery in actionscript 2.0

Hello, i'm editing an actionscript 2.0 file, i have a xml files with images urls in the nodes and it works. I have a symbol with id='mysymbol' in the library and it would be great to attach 'mysymbol' over the gallery while other images slide. i have an empy scene, just this AS 2.0 script and the xml: import mx.transitions.Tween; imp...

AS2 Attach Movie and LoadMovie

Hello, I have the following code: var theItems:String = "4 3 6 19 20 40 41 4 3 6 19 20 40 41" var titems = theItems.split(" "); var nextLine = 0; var LastSlotID = 0; var LastX = 0; var LastY = 0; var slotsM = 0; for (var i in titems){ var thisitem:Number = titems[i]; ThisSlotID = LastSlotID + 1; if(LastSlotID == 0)...

detect user's download speed for flash video

We have a custom flash video player. It uses streaming over a hosted FMS $50/month account. Some users are complaining that the video doesn't play at all. With one of these users, we had them go to a speed test website and it was determined that they had a very slow connection which we are assuming is what is causing them to not be abl...

Partial updates to an SWF

Suppose all that happens initially in a client swf is a user clicks a hyperlink in a text object of the swf, so this requests a "page" from the server. In response the server just modifies that existing swf in the client browser, by for example (?) invoking public functions of it, and possibly passing in as parameters the name of image...