Hai,
I want to override the dispatchEvent method while inheriting from flash.display.Sprite. Whenever an event gets dispatched now like ADDED_TO_STAGE and CLICK it will get through dispatchEvent in my theory. However there is no single trace he'll get through dispatchEvent.. so the events get dispatched internally from some where else?
...
I need to modify the behaviour of an editable datagrid to this:
-Single-click on a row, doesn't make the cell show a text input field (only selects the row)
-Double-click on a row, doesn't make the cell show a text input field either
but
-Clicking a cell in an already selected row, shows a text input field ready to be edited.
I beli...
I need to generate three lines of text (essentially jibberish) that are each 60 characters long, including a hard return at the end of each line. The lines are generated from a dictionary of words of various lengths (typically 1-8 characters). No word may be used more than once, and words must be separated by spaces. I think this is esse...
I'm looking for a way to use CAPTCHA in a Flash form with an ASP.NET back-end.
...
Question says it all really, but I don't mind if any answers are AS2 or AS3 solutions, just curious really - seems weird that I couldn't find out how to do this really quickly.
...
Hello friends, I have the following code in action script 3:
async.addResponder(new Responder(result, defaultFaultHandler));
result is a function that receives data from remoteobjet async, calling this function normally, but must go along with other arguments result, example:
async.addResponder(new Responder(result(args...), defaultF...
Hi;
I could not find a method in Flex Date object to get the week of year (1 to 52)
What is the best way to find this? Is there any useful library for flex for such date operations like JodaTime in Java.
...
Hi all,
I have a project which tries to send an XML using XMLSocket to a server listening to it on the other side.
The application file is:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import MyC...
Hi all..
I'm using hotkeys (ctrl + key) in my flex application. getting problem when my app is running in IE.
when i press ctrl+D, im getting 'Add a Favorite' window of iE.
How should i override the default behaviour of the browser
if possible give me some example...
thanks in advance
...
I figured out how to get a TextField to maintain focus when the tab key is pressed (using an event listener on FocusEvent.KEY_FOCUS_CHANGE), but what I'd like to do is control the size of the tab character in the TextField so that it is equal to five spaces. (I would just insert five spaces when the tab key is pressed, however due to req...
I'm trying to use CallFunction() to call a function inside a flash file, but no matter what I do it throws a HRESULT E_FAIL error. Any clues why? My flash version is 10 if you need it.
...
We have a Flex DataGrid with 3 columns of which one of them has a custom inline itemrenderer that renders an icon in the cell via an Image component, depending on the data in the row.
The problem is now that sorting this column is incredibly slow. It's OK when we only have a few rows of data in there, but as soon as we have a few hundre...
I want to pass through configuration arguments to a class. These are all the optional vars that go into configuring the class - and should be able to run in any order.
at the moment i just pass through the optional vars the regular way. Supposing the constuctor was like the following:
private var _reqVar:String;
private var _optVar1:St...
I want to pass an optional data parameter to some callbacks, but only to callbacks that support a single parameter; right now, I have a moderately-sized code base of callbacks that cannot accept a parameter at all. How can I check what parameters a Function object supports?
...
I am attempting to import several different packages into a Flash Builder 4. I'm a bit lost...
I found this explanation of what FB 4 has to offer.
I am a bit confused as I am new to developing in actionscript all together.
I have a component library that looks something like this...
com.kiosk.ui
com.kiosk.ui.dialog
com.kiosk.ui.scre...
I'm dynamically loading movie clips (SWFS) into attached clips (from the library). The loaded movies don't all have center points, meaning that their registration point isn't directly in its center. This poses a problem when I load them into the attached clips, because they don't center on the attached clips, which is what I want them to...
I've done most of my code in as3, working from either document class or classes. I've never done action script from within the actions panel (within Flash cs4). My question is do I need to follow the as2 manual in order for majority of code to work ? for example. If I want to do a loop. I can't do a
addEventListener(Event.EnterFrame,lo...
I have a string that is similar to a path, but I have tried some regex patterns that are supposed to parse paths and they don't quite work.
Here's the string
f|MyApparel/Templates/Events/
I need the "name parts" between the slashes.
I tried (\w+) but the array came back [0] = "f" and [1] = "f".
I tested the pattern on http://w...
Hi there...I'm pretty much the rookiest rookie when it comes to Flash.
Here's the actionscript (3):
// Here's the dumb-dumb:
/*****************************************************************/
/*****************************************************************/
function captureImage(e:MouseEvent):void {
// The video still-image is c...
I'm trying to convert the byteArray of a Sound Object to an array with floats. The Sound Object plays back fine & at full length, but the float Array i get from it is cut off (but sounds correct), so i must be doing something wrong in the conversion:
var s:Sound = mySound;
s.play(); // plays fine
var bytes:ByteArray = new ByteArray();
...