actionscript-3

How to capture the uncaught exceptions of AS3 program?

I want to log those uncaught exceptions of my as3 program. The problem is, where do those uncaught exceptions go? How can I catch them? Thanks. ...

How to read all data from abstract Shared Object file? (Flash, Actionscript)

what I meen is to get all objects and their properties, is it possible? How to do such thing? ...

What does this mean in AS3?

Hello I've started to learning AS3 from one book and found something I don't understand. Ellipse(_board[row][column]).fill = getFill(row, column); _board is two dimensional array of Ellipse type, so I just dont understand why is Ellipse(Ellipse object) used when it apparently works without it, or I haven't seen any changes when I omi...

Resize flash.media.Video

I'm having trouble to resize my custom UIComponent that wrap flash.media.Video object (The reason I choose this way is because mx.control.VideoDisplay doesn't support streaming playback that available in flash.media.Video that is attachNetStream()). Once I create a 320x240 Video size and remove it from its parent, I can't replace it with...

Flat Files, Best Practices PHP to Actionscript 3 via XML

I'm writing a simple cms for a client and for the umpteenth time can't decide the best strategy going in. My options, as far as I can tell, are: 1) Store my XML data as a flat file that is referenced by my actionscript. I could manipulate this file with a php "back end". 2) Have my actionscript call a PHP script that would output the...

Send JSON from Flash to PHP

Hi, I'm trying to send array of data from Flash to PHP to sending e-mail. I'd like to do that because I must change the php page everytime my form site changes because of client's choice. My answer is, can I send an array of objects like this to php? var message:Array = new Array (); message.push ({field_name:"Name", value:"John Lennon...

Open pdf in flash player 10

I need to open a PDF in flash player 10. The swf will not be running in a browser and there will not be an adobe reader program on the system. I need to know if its possible to open a PDF without converting it in any way, in the flash player. I've searched google for countless hours and nothing has come up, only conversion software and c...

Changing the default color on flex validation errors

The examples I've seen seem to show how to change the color that shows when the user actually hovers over the textinput field. However when the validation fails, a generic textInput border qill have a red line over it. My CSS file uses a border skin for the textInput, so I can't see this line. I was hoping there was a way to highligh...

Setting the gap of layout

I usually set the layout like this <s:Group> <s:layout> <s:VerticalLayout gap="10"/> </s:layout> </s:Group> but not sure how to specify the gap if I want to use new VerticalLayout ...

Syncing problems with multiple flvs

Is it possible to sync flv videos? I'm playing a few videos simultaneously, and they are inconsistently out of sync. If I add a button that seeks all of the videos to 0, they may or may not be in sync. When they're out of sync, it's only a fraction of a second, but for this application, a fraction of a second is very noticeable. Can we g...

How to add an EventListener to a moiveClips/Sprites's scaleX change event?

How can i trigger an event for the scaleX property change of the movieClip or Sprite in Flash AS 3. ...

Flash (ActionScript 3): how to build a remoting application

Hi, I'm looking for examples (code) of applications that uses Flash (NOT Flex) and Remoting classes for ActionScript 3 (NetConnection). Once there was ARP, a repository of code of this kind, but it seems there is not anymore. I'm trying to figure out how to build an applications that makes heavy use of calls to WebORB and responders. I n...

How using my MovieClip in other flash projects?

I worked in flash cs3. Have "People.swf"- library MovieClips, they have export for actionscript and first frame. Names classes "Head1"..."Head2" and so on. How i make create object "Head1" in other flash project? ...

Force Decimal Regex

Hi, I'm looking for a regex or a way to format the NumberValidator so that only decimal places are allowed. The domain="real" allows you to put integer values, but I need to force the user to but in 2.0 if they want an integer. This is because they pass through a Castor mapping file, it complains if it gets an integer when it expects...

How can I display image and text within one AS3 datagrid?

The following page shows how to load external images in AS3 DataGrid: http://www.adobe.com/devnet/flash/quickstart/datagrid_pt3/ (image and text are displayed in two columns) But I wonder how the image and text can be loaded together within the same DataGrid. Within one column: Image followed by the text. I cannot get it work so I'd be g...

DOUBLE_CLIC dont work in actionscript3

I have MyMovie.addEventListener(MouseEvent.CLICK, goClick) function goClick(e:MouseEvent):void { trace("Trololo"); } It's work. Why don't work? MyMovie.addEventListener(MouseEvent.DOUBLE_CLICK, goDouble) function goDouble(e:MouseEvent):void { trace("Trololo"); } ...

trouble accessing non-static functions from static functions in AS3

I have a class containing, among other things, a drop down menu. With the aim of saving space, and since the contents of the menu will never change, I've made a static DataProvider for the whole class that populates each instances menu. I was hoping to populate the list with actual functions like so: tmpArr.push({label:"Details...", fu...

OSMF - add an actionscript cuepoint to a video?

I'm trying to add a cuepoint to a video using OSMF. I built an OSMF video player, and I'd like to use this instead of the FLVPlayback component, which seems like the only way to add an actionscript cuepoint? Anyhow, I created a cuepoint by writing this: var cuePoint:CuePoint = new CuePoint(CuePointType.ACTIONSCRIPT, 1, "good point", nu...

RegExpValidator never matches

Hi, I've got a class that's meant to validate input fields to make sure the value is always a decimal. I've tested the regex here: http://livedocs.adobe.com/flex/3/html/help.html?content=validators_7.html, and it looks like it does the right thing, but in my app, I can't seem to get it to match to a number format. Class Definition: p...

SoundChannel object plays small portion after being stopped and played again

SoundChannel object is stopped and played again. When played again it plays small portion from the previous position and suddenly jumps back to the beginning. It doesn't play the whole sound before looping. This happens only once, then it loops normally. It happens again if I stop and play. public function play():void { channel = cli...