actionscript-3

Summary of ActionScript 3 strict mode

Where can I get a summary of differences between ActionScript 3.0 strict and standard mode? In other words, what are the things I can do in standard mode but not in strict mode? ...

flex buffered data

Hello, we are implementing an AIR application in Flex. We populate dynamically a canvas and present it. The problem is that the data are build not before the the change of canvas. Is there a way to buffer the output and present it after the data has been populated? thanks in advance ...

What is the best way to handle refreshing a localConnection between AS3 and AS2 swfs using SWFBridge? (load, unload, load again)

I have an AS2 swf that is hosted by an AS3 swf and they connect using SWFBridge. During the course of things i need to unload the AS2 swf and reload it. Therefore I assume I need to re-establish the SWFBridge connection. But when I try to reopen the connection it doesnt appear to work. Heres what I have - AS3 Code: var myBridge:SWFBri...

AS3- Is it possible to call a variable from a string?

Is there a way to make "getDefinitionByName()" work with any Object type, I have only gotten it to work with a Class: var test:Class = getDefinitionByName("myClass") as Class; I need something like: var myNumber:Number = 10; var test:Number = getDefinitionByName("myNumber") as Number; trace(test); //10 Or is there another method...

stop object referencing in as 3

Hi all, I have an object and a temp object now if i do tempObj = obj and change stuff in tempObj they changes have an effect on obj is there a way i can stop it from doing this? Regards Mark ...

Replace each RegExp match with different text in ActionScript 3

Hi, I'd like to know how to replace each match with a different text? Let's say the source text is: var strSource:String = "find it and replace what you find."; ..and we have a regex such as: var re:RegExp = /\bfind\b/g; Now, I need to replace each match with different text (for example): var replacement:String = "replacement_" +...

Uploading a file with other variables in Actionscript 3 using URLLoader?

I'm trying to upload a file through URLLoader in Actionscript 3, I know it's possible, at least according to the docs, but I can't figure it. So if anyone has done this before I'd love to know what I'm leaving out, specifically, I'm unsure about URLRequest and its data property. I know that my file's data should go there, but I'm unsure ...

Flex How to delay setStyle until next update ?

Hello, I have a component composed of two parts, let's say two Hbox A and B in a Vbox. On a specific call I want to: - Hide B with B.visible = false - setStyle("borderSkin", FooBorderOn); The problem is that the border get drawn before the resizing of the parent Vbox happen, so i end up with a border Around the Vbox with B invisible...

source to image

how to show a image with AS3 from source like: "GIF89a,.,...... ..sR....8.d.4..p...%...h..'$W..." etc... thanks in advance Leo ...

Creation and positioning of dynamic buttons in as3 inside a movie clip.

HI Am NEW TO as3 , can any one help me regarding creation of dynamic buttons and assign click events, please view the attachment picture to know my requirements.. http://i39.tinypic.com/9gkmds.jpg Pls guide me done this functionality in as3. Thanks ...

ActionScript 3.0: Serialization of functions?

Since Function is just another type I was wondering. Is it possible to serialize functions in actionscript 3.0? ...

updating byte count on label through ProgressEvent

Hi, I have main.mxml and an external class com.audio.AudioPlayer.as AudioPlayer loads an audio file and has an event for counting bytesLoaded and bytesTotal. I would like to push the bytesLoaded information continuously as its being loaded into a label on main.mxml from the ProgressEvent.PROGRESS snd.addEventListener(ProgressEvent.PRO...

Javascript to flash via ExternalInterface

Hello all. I'm wondering if someone could look over my code. I'm trying to pass a dummy variable from javascript to actionscript 3 with the following code: HTML: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="music_player" width="500" height="375" codebase="http://download.macromedia.com/pub/shock...

image with external interface

I need to send a picture to flash with external interface (as3)... can not be an url because don't have connection... I'm trying open the image file and send to flash like text but without success any idea? ...

Merging the JW Player 4.4 with another swf

Hey guys, I'm in sort of a dilemma here. I love the way the JW works and looks and I'd like to include it in my newest project I'm working on. pgn-guild.com/testing.html I've read through the two threads on this topic already, but nothing seems too conclusive for AS3.0 and JW 4.4 when it comes to using the player in another .swf. I'd li...

remove yellow border as3

Hello, How do i remove the yellow border - focusRect - in as3 I've tried Stage.focusRect = false but that doesn't do the job. Thx for the help! With kind regards. ...

Flex/Flash TextArea Having a Checkbox at each new line

Hi All I am wondering how I would add a checkbox at the start every line in a textArea. Kinda creating a checklist. ...

Some help with basic Sound functions in actionscript 3

Hello all. I'm working on a mp3 player and I'm super new at all things flash so there are lots of questions. Currently I'm getting stuck on the track change. My variable declaration look like this: var index:int = -1; var music:Sound = new Sound(new URLRequest("moe2008-05-24d02t02_vbr.mp3")); var sc:SoundChannel; var isPlaying:B...

In Flash AS3, Is there anyway to detect a DoubleClick action without it detecting the MouseClick?

I have 2 seperate events that are not related to each other and each is attached to the Mouseclick and Doubleclick eventresponses respectively. However, during runtime, I find that even when I doubleclick, the Mouseclick action still gets activated. I've been trying to find a viable solution where the Mouseclick and Doubleclick can co-...

Amazon S3 secure access from flash

I am trying to access files in Amazon S3 bucket with SSL with ActionScript3. When I use this format... https://s3.amazonaws.com/bucket.name/filename I get security sandbox error. "Error #2048: Security sandbox violation: " When I switch to this format... https://bucket.name.s3.amazonaws.com/filename It works like a charm (until I...