actionscript-3

Adding Actions to Button Symbol frames in Flash CS5

For some reason I can't add ActionScript actions to a timeline frame within a Button Symbol, like I normally would with MovieClip symbols or on the stage. The Actions panel shows this message: "In ActionScript 3.0, code cannot be placed directly on objects. Please select a frame..." even though I definetely have a frame selected! An...

Flash stops my mouseover event at edge of embedded button

Hi All Thanks for reading, I couldn't explain well in my Title. I am working on a simple flash project. In Scene 1 I have a large image above and a long scrolling image below which is a movieclip called image_slider. The Scrolling is set with actionscript 3.0 mouse over event listener. When the user moves the mouse right image_slider mo...

Dynamic MC's path with localToGlobal Problems

I'm adding several instances of an MC (bread_mc) into a container MC (wall_mc). wall_mc has been added to a shop class and that is where i'm called the rest of my functions from. Also the wall_mc is scrolled left and right with mouseX & mouseY values. I've set up a function to add the bread_mc to the wall at different x/y positions. Fu...

hitTestPoint not giving correct results

I have a movie clip on which I have added a MouseEvent.MOUSE_OUT listener. movieclip.addEventListener(MouseEvent.MOUSE_OUT, removeMovieClip); Now the logic is to remove the movie clip on MOUSE_OUT and add it back to stage on MouseOver of another button. The intended functionality is like a slider showing some info The MouseEvent...

Data binding from a method in Flex

Hello all, I have the following mxml (Omitted some parts for brevity purpose): <fx:Script> [Bindable] private var _dataSet:IDataSet; public function set dataSet(value:IDataSet) { _dataSet = value; } private function getColorItem(itemName:*):String { if (itemName == "Research") return "#31e5fc"...

Good papervision3D tutorials for Flex?

Hi, can any one please suggest to me some good tutorials for papervision 3d. I have to work on one project using papervision3d, but on searching in Google, I am not getting any ideas on what to study. Please suggest to me any good links to start studying about papervision, thanks in advance ...

[PyAMF] How to use the remote object properly in flex, with as3 and pyamf or phpamf server side

I see that I never get a response from server when making a request. im using firebug to test the network communications. ...

Best alternative to integrate flash app into facebook.

Hi. I have previous experience with AS3, but not so much in web development. now I want to install a game in facebook, but since im very uninformed, i'm having a bad time chossing the best option. I have three alternatives to integrate my flash app in facebook. Adobe actionscript API: Until now, I tried it and worked for me to log in ,...

Custom Slider of FlV..

Well i have Custom Slider for FLV videos and here is the code for it. Assuming variables are pre-defined ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public function FLV_PLAYER3():void { nc.connect(null); ns = n...

How to check if mouse is over a symbol instance with ActionScript 3 in Flash

How does one check if mouse is over a symbol instance using ActionScript 3 / Flash CS5? ...

Regular Expression help in AS3

Hi there. I have to use tinymce as a wysiwyg editor in a CMS to populate a flash app. I need to strip out the modern HTML in favor of something flash can use. Here's what I'm trying: var initUnderline:RegExp = new RegExp('<span style="text-decoration: underline;">', "gi"); var endUnderline:RegExp = new RegExp("</span>", "gi"); var strin...

3D rotation with Axis & Angle

I know 3D rotation is well documented on SO and many other sites, but despite reading countless explanations I still haven't figured out where I'm going wrong. My background is in art and design, not math and programming, and I'm never really certain if my angle of attack (no pun intended) is the right one. Rather than paste a patchwork ...

Date issue in Client(Flex) and Serverside(JAVA) issue

Hi, I have a date porblem in flex applications. while submit the date in flex applcation (28/09/2010 10:00:00 AM) as a string, the date is cobnverted in to Date object inserver side and displayig the result. But i install the server in other location (Ex:- USA) .Now i am passing the date from india(28/09/2010 10:00:00 AM) But the date...

How to change Shape border stroke runtime in Actionsctipt 3

I've got a complicated shape in a MovieClip. Runtime i want to change the stroke width of this Shape depending on a size ratio. How can I change this property without redrawing the entire Shape with the drawing API (almost impossible, is a map with very detailed borders) ? Is it possible ? ...

how can i sort dd/mm/yy date format in datagrid using flex ?

i used array collection sort method like below . but still sorting wrongly . Any other solution for sort date using flex3 public function SortingDate(ArrColl : ArrayCollection, field : String) : void{ var sortA:Sort = new Sort(); sortA.fields=[new SortField(field,false,true,null)]; ArrColl.sort=sor...

Flex networking: How to read multiple AMF Objects

Hi there, I'm trying to write a very plain game client to get some practice with Actionscript 3 and the Flex Framework. I have some problems with following code: private function readResponse():void { var r:ByteArray = new ByteArray(); readBytes(r); while (r.bytesAvailable != 0) { try { var d:Object = r.readO...

How to "install" AS3Commons Logging in Flash?

Hi im pretty new to flash so sorry if the question is stupid, but i just can´t get the as3commons logger to run. What i did: package { import org.as3commons.logging.ILogger; import org.as3commons.logging.LoggerFactory; public class "classname" { var logger:ILogger = LoggerFactory.getLogger("myLogger"); ...

3-D engines in flex

Hi, I just wanted to know if there are 3-D engines available for flex other than PaperVision? Just out of curosity.... ...

How to remove row from datagrid?

I have a datagrid from which I'd like be able to remove rows at will. Below is the component item renderer I'm putting together in order to achieve desired result, but there has to be a better way to access the data provider of the "parent" data grid. Anyone have any ideas/suggestions? <?xml version="1.0" encoding="utf-8"?> <s:MXDataGri...

Efficient event listening in ActionScript 3

Hey, I have a map of items and I need to know when a mouse moves over the item. Should I add a event listener for mouse over and mouse out to each item (there may be a lot) or I should add mouse over and mouse out listeners to whole container and do some checking to detect whether the target has item on it or not? In the second way it ...