actionscript

What kind of Flex component can I utilize in NativeWindow?

I'm developing Adobe Air application. To show additional window, I create NativeWindow object. In the object, "stage.addChild( Sprite Obj )" does work, but almost all other flex components do not work. Actually I want to add 'spark.components.BorderContainer', 'spark.components.Group', 'mx.controls.Image', etc., but cannot. One solution...

Maximum sounds effect in Flex

I tried to repetitive press sound effect, each MP3 is 8 secs long and as fast as I press the button, it suddenly hang for a few seconds before I could continue execute the sound effect again. I use the code in http://livedocs.adobe.com/flex/3/html/help.html?content=createeffects_2.html After Example: Passing parameters to effects and I ...

Problem getting Javascript to work with SWF file using ExternalInterface

Hi guys, I have a SWF file emedded withing a HTML page. Trying to do a simple operation - go to and play certain frame in SWF using javascript. I'm using ExternalInterface to do this but for the life of me can't get the two to communicate. I add all the code but when clicking on the link which calls javascript, it says my flash object ...

How do I change the background of a Flash document using ActionScript 3.0?

Let me preface this question by saying that I am a .NET developer at heart, just helping a friend with a project he is working on. I have been searching online for something that I think should be pretty simple. Here's what I have: A standard Flash CS5 document with one layer called background. The document is associated with a class ...

Actionscript 3: Dynamically adding movieclips constrained to a container

Last Edit: Resolved! Well, i was unable to find the ENTIRE answer here but i finally got what i was after. thanks very much for all of your help and patience. as a side note: i think i may have been having problems with using the int and Number types, upon closer inspection of my solution, i realised that Number was being used and not ...

Changing texture on ActionScript 2/3

Does anybody knows if there is a simple way to change this var colorTransform:NewColorTransform; colorTransform = new NewColorTransform(); colorTransform.color = Config.ARRAY_COLOURS[1]; color.transform.colorTransform = colorTransform; That is changing colors (the ARRAY_COLOURS have [ 0xFF0000, 0x0000FF, 0xFFFF00 ]) I would like to h...

No sound from Flash CS5?

I have 1.mp3 beside my .fla file and when I tried to run a movie test, it doesn't play any sounds. Only the stage has a glitch was it keep loop frame 1 and 2. What happen? var mySoundReq:URLRequest = new URLRequest("1.mp3"); var mySound:Sound = new Sound(); mySound.load(mySoundReq); mySound.addEventListener(Event.COMPLETE, playSong); f...

Resizing an Image with ObjectHandles

Hi guys! Does anyone know how to resize and move an Image with ObjectHandles I need it to be as simple as possible. Thank you! ...

Does the Pixel Bender with Flash would use the GPU ?

I write a Pixel Bender kernal for my flash. I know that the pbk would run in another thread. But when I run my swf, the GPU usage shows 0%. I want to know does the Pixel Bender with Flash would use the GPU. ...

Python vs Flash

Can python be used as a language to develop browser based games? Like we do in flash. If yes then what frameworks are available to get my hands dirty? If no then what are the reasons? ...

Securing asp.net web services to be consumed from flash

Hi, my team is building a game in flash to be embeded in a asp.net application. When the game is over the player have the chance to type his name to save his score. This is done using web services called from flash. The webservice receives the name and score. Since the webservice is publicly available how can I make it only callable fr...

Disable Zooming/Scaling when player is resized

I am working on an application that uses raster images, so it only looks good at native resolution. Is there a way to force the graphics to never be scaled? It would need to do this no matter where it is running. ...

What does [Bindable] mean in actionscript?

[Bindable] /** * Display output of video device. */ public var videoLocal : Video; Anyone knows? ...

I am looking for an images generation library

Hi ! I want to write some games in ActionScript but I do not have any illustration skill. I am looking for a library that can help me generate simple but beautiful, colorful shapes I will then animate. Recently, I have stumbled upon such a library, written in C++ and newly ported to javascript, but I can't remember it anymore ! Somethin...

How to do redirect in actionscript?

When in page.html?xxx which embed 1.swf,how can I redirect to page.html?xxx&new_param=1 (preserving original parameters,append a new parameter new_param=1)? ...

Adobe Flex/Actionscript event handling order

As simply as possible, I am trying to find out if events are guaranteed to be handled in the order they are dispatched. Let's say I have the following, simple code: private function handler1(e:Event):void { .. processing ..} private function handler2(e:Event):void { .. processing ..} private function handler3(e:Event):void { .. process...

ActionScript Access Param Tag Within Another File

Hey Guys, Having some issues accessing my param tags from within actionscript. Essentially I have the following tag: <param name="config" value="config" /> But I am unable to access it. There are two issues that I have, and I've been searching the internet high and low for the answers. 1) How do I even access the parameter? I have s...

How do I know when a spark itemrender is recycled vs data updated?

How do I differentiate between a data provider update and a itemrender being recycled when using a custom itemrenderer in a DataGroup? I have overridden the set data function of the custom item renderer, but I have found that on making a change to the ArrayCollection used as the DataProvider some of the item renderers are not assigned t...

Flash AS2 FLVPlayBack Aspect Radio

Hi, I´m working with a FLVPlayBack object on Flash using AS 2.0... It load dinamicaly a lot of videos, in differents size. The problem is to make it show on all screen without mantain aspect ratio, I tried something like: Player._width=800; Player._height=600; and Player.setSize(800,600); If I use Player.mantainAspectRatio=false, nothin...

Flash click event

If I plan to implement 100 objects on stage to be listen to mouse and keyboard input, is using "function" call responsive enough? How good does eventlistner work? ...