actionscript-3

Listening for enable/disable state change

For my custom components, when they go from enabled to disabled or disabled to enabled, I want to trigger a custom event. I can't find any related events in the livedocs. Any clues please? ...

Flash : How to read data from shape/graphics object.

Hallo, I am wondering if it is possible to get the data that is stored in a shape/graphics object in flash using actionscript 3? In my project I would like to be able to draw a shape and then read all the points in that shape into my script. The reason for that is that I need go generate lines from those points that I later can use to ...

AIR file is damaged after publish.

I tried to find an answer here but haven't seen anything yet. I've been working on an AIR application with Flash CS4 (AS3) for the last two days. Yesterday when publishing I was able to install the application (or overwrite existing version) without a problem. Now whenever I publish a new AIR file, it constantly tells me it cannot be in...

ActionScript 3.0 Flashvars

I have tried following things to access the FlashVars from HTML in the flash movie. Added the Flashvars in embed tag added the FlashVars in param tag added the FlashVars in JavaScript code generated by the Adobe Flash compiler Tried to access the FlashVars by using: root.loaderInfo.parameters.param_name and root.loaderInfo.parameters["...

Dynamically adding movieclip to stage as3

I have buttons on the stage (run1_btn - run5-btn) that when clicked adds a movie clip to the stage.(hand) The movie clip contains a few frames of animation. When a button is clicked the movieclip gets added but the animation is already finished. I thought that when the mc got added to the stage then the animation would start, but this do...

AS3 Grammar: Most accurate

I'm looking for an accurate AS3 grammar (format in not an issue, but I presume ANTLR will feature the most) to use for a practice grammar I'm making. What is the most accurate grammar available for AS3? ...

NumberValidator conflicts with resourcemanager

Hi, I have written the following test <?xml version="1.0" encoding="utf-8"?> <mx:Application creationComplete="{init()}" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" viewSourceURL="srcview/index.html"> <mx:NumberValidator source="{testInput}" property="text" minValue="0" domain="real" tri...

Refresh Datagrid with Hierarchical Data

Hi, how can I refresh the displayed data in a Datagrid when the underlying ArrayCollection changes? <nmoschitz:dataProvider> <mx:HierarchicalData source="{arrCol_groupedData}" childrenField="accounts"/> </nmoschitz:dataProvider> Calling a simple refresh (like with a simple arraycollection as a dataprovider, or with a refresh on t...

OpenNodes in dataprovider of Advanced Data Grid is empty

I am having a hierarchical ArrayCollection and set it as a dataprovider to an ADG <mx:AdvancedDataGrid> <mx:dataProvider> <mx:HierarchicalData source="{arrCol_groupedData}" childrenField="accounts" id="hierarchicalData"/> </mx:dataProvider> <mx:AdvancedDataGrid> Why is the openNodes array always empty? (I need it to preser...

Vector shape appears jagged after GlowFilter, and some other problems

Hi, I'm trying to create some MovieClips with a glow effect when you rollOver and the glow effect dissapearing on rollOut. But when the rollOut is finished my background movieclip to which I apply the filter (a simple 20 x 20 vector circle) all of a sudden appears jagged, when before rollOver/rollOut it appeared smooth as it should. Wha...

Load and modify AS3 SWF

Is it possible to load an ActionScript 3 SWF and interact with it, for example by replacing some of its functions or editing variables? Similar to how it's possible in .NET using reflection and code generation. I'm looking to add an extra layer of functionality over an existing 3rd-party AS3 app. ...

Enabling Ant Tools in a new Eclipse Galileo installation

I have recently installed Eclipse Galileo with the PHP Developers Tools. I plan to install the Flash Builder 4 Plug-in to do ActionScript development as well. I want to use Eclipse to both create an ant build script and execute it to compile ActionScript docs from an ActionScript 3 code library. The problem is that when I try to run a...

Errors while using the Google Maps Flash API

Hi stackers, my question today is dealing with the Google Maps Flash API. I successfully created a basic map using Flash CS4 with the API here: http://gaban.com/googlemaps/ Now my problem is with the next basic tutorial dealing with a simple Info Window message. The Google DOCS example(FLEX) is here: "Hello World" Documentation here: ...

as3 copy custom shape out of bitmap

So, I have bitmapA which is rectangular. I have a crop area I want to copy... However, the bitmap is at an angle from the crop. How do I copy a section from a bitmap that isn't a rectangle laid outon the x, y, axis?? Or copy custom shape???? Thanks ...

resize, rotate, crop then save images online.... ActionScript or JavaScript?

Which is a better approach for this? ActionScript3 or JavaScript+PHP? And if anyone came across an open source tool with either I'd really appreciate it.. after a long search, the only good example i found was this http://www.ajax-image-editor.com but I'd rather have a flash alternative.. Also I don't need all the extra functions such ...

how to turn an existing color image into a black-white image ?

What diffrent approaches exists out there in actionscript 3.0 ? I found this library: mojocolors But this is more for graphics-color I guess… Thx ...

Tree Component Item Rendering

I have created a MyTreeItemrenderer extending TreeItemrenderer. However, I do not want any label, folder, disclosure icon nor icon. I want to dispaly every node of the tree with my own graphic like eg: a line, round image etc., Kindly help me getting the solution. Thnaks in advance... Narender R ...

Volume control in ActionScript 3

How can I increase/decrease the volume of a Sound on key-press in ActionScript 3.0 ...

How to get am instance name of a dynamicaly created movieClip or name ?

For AS 3 I have a class which crate a panel with close button. and i create an instance of this class like this function _smallThumbClick(evt:MouseEvent):void { var _popup:Popup=new Popup( square.width ,evt.currentTarget.y, evt.currentTarget); addChild(_popup); } and this mouse event from the thumbnail(suppose), so if i clic...

Facebook, Flash and maintaining state

So here's the situation: I have a Flash application I'm deploying to facebook as a canvas app. There are various states within this app - different "pages", sort of. I want to be able to share this app with other users using Facebook's baked-in sharing mechanism. However, I want each state to have its own share button. That way when so...