actionscript-3

Where can i find a list of styles for setStyle(style, value)?

Some Flash components have the method setStyle(style:String, value:Object). I wonder where/if I can find a list of the styles that are possible to use here? I want to change the background alpha of a TextInput-component, but can't find the style-name for it. ...

Can [ArrayElementType] metadata tag be used on a function parameter

What language construction can be used to make a compile time checking of Array elements type when the Array is a function parameter? Let's use this function as an example: [ArrayElementType("String")] private function GetNumberArray(parameter:Array):Array { var myData:Array = [1.0, 2.0, 3.0]; return myData; } Here we've marked...

Get all event listeners on a specific component

Hi, I have an application in flex, it has some components out of the box and quite a few of custom components and events. I want to get all event listeners on a specific component in runtime, I know how to do it with monkey-patching the framework but I do not want to use a monkey patch nor can I rely on this in production. Is there a ...

flash slider unresponsive

I have a flash movie playing some music, but the slider controlling the volume has become unresponsive. I have no idea why. Can someone help me. msg me if you want the see the actionscript. ...

HowTo access correct data inside an AdvancedDataGridColumn-ItemRenderer?

Hi, How can I access the specific .data (based on its dataField) inside an AdvancedDatagridColumn-ItemRenderer instead retrieving the whole data for the parent AdvancedDataGrids dataprovider? Any idea? Many thanks... ...

select the viewstack container id based on select field in comboBox in flex

Hi, I have a comboBox and values like basic and advanced. And viewstack container conatains 2 grids. When i select the base option in Combobox, the first grid has to be selected. select the advanced value in comboBox, the second grid has to be selected. Please chck my below code and help me how to do it. <mx:ViewStack i...

How do I enable keyboard inputs in full screen mode?

I heard that the flash action script 3 is disabled the keyboard interaction on full screen mode. How can I enable. ...

Finding component's x,y location

I have a component that changes its location based on other elements. I'm trying to find its x and y position at different intervals, so I tried compname.x and compname.y. The x position seems to be working, but the y position is always 0. I'm guessing I need to play with localToGlobal or contentToGlobal or one of those conversions. Is...

as3 simple issues in code, regarding properties and variables

Well there is two issues with the code below. Help with either of them would be greatly appreciated. The first issue is that it doesn't like "(t.attribute==true)". It doesn't seem like me using a variable in that way. Are there any ways of getting around this? The second issue, is again with the same variable, "("un" + attribute)", I r...

Resizing image using as3

I am building a portfolio site which dynamically loads large hi-res images when the user clicks on a thumnail. However I'm having problems maintaining the original image's quality when resizing it to fit the current browser. Currently I'm just adjusting the width & height properties of the image to width to the stage proportionally whi...

How to detect camera un-plug in as3

Hi, I am facing problem with camera unpluging in as3. After detecting camera if I unpluged it then also in as3 can't recognise this unplug.Any solution? ...

How to open a url in the browser using AS3 on a standalone flash projector?

var request:URLRequest = new URLRequest("http://google.com"); navigateToURL(request, "_blank"); This works fine on web based swfs, it fails on flash player. can anyone help? ...

Auto-detect position changes

I have a custom component Comp that gets its position changed as a result of interactions with other components, etc. I check for changes in its position by constantly checking its position at fixed intervals. I'm looking for a better solution (maybe an event-based solution) to monitor its position so I don't have to check constantly mys...

How can i change the starting point(x second) to load flv with Flash player?

I want to use flv files for help document. But i need to set flv file, start and end points with code. I'm trying to code flash player which can take these parameters(file name, start, end points) from html parameters. NetConnection, NetStream and Video components are that i'm using. But i couldn't change the starting point to load flv...

Are Pixel Benders Filters runing inside flash rendered by AS3 VM or by some special VM?

By now all my projects created for pixel bender run slower than ported into C and than thru alchymy to AS3. So If Adobe uses for PBJ filters some special VM I can hope that one day my PBJ filters will owerrun same filters ported thru alchymy... Am I wright? Are Pixel Benders Filters runing inside flash rendered by AS3 VM or by some spec...

How to compress a string in .net c# and decompress it in flash as3?

Hi, I have to load a large xml in flash and I'm trying to send it compressed. To do that I tried to zlib compress the string and send it base64 encoded. In flash I turn the string into a byte array and use its uncompress() method. So far I tried: ZLIB.NET byte[] bytData = System.Text.Encoding.UTF8.GetBytes(str); MemoryStream ms = new ...

Sharing a link and or uploading a photo on facebook using actionscript

Hi Developing a flash based image editing application and I want to be able to share and or save edited images to facebook. Do I need to get a API Key to upload photos? What if I simply want to share a link with my friends? Do I still need an API key? Can someone point me to examples and or tutorials? ...

Validation and Invalidation in flex

I am new in flex and recently read about Validation and Invalidation in components. May somebody explain what it's mean and when it's use, may be some good article. ...

Problem with FlexUnit4

Hello, I"m a bit confused because FlexUnith 4's behavior. When I use fail() in try-catch body fail method is just ignored. [Test] public function extend():void { try { fail("This should fail"); } catch(er:Error) {} } I suppose this one should fail a...

Anti-aliased htmlText in ActionScript?

I basically have the same question as bder on the actionscript.org forums, namely if I can have my text anti-aliased if it is using an embedded font (Myriad Pro) to assign it to the htmlText property of a TextField and styling that with CSS. Everything works fine with the text embedding and styling (the font is the one I want, and all i...