actionscript

Flex: How to most effectively tavere a table column

I have a table "template" which is used in various "instances". All instances have checkboxes in the second column (for record-delete). What would be the most effective way of traversing the table and check if at least one checkbox is selected (to enable a "delete" button)? Thanks! Maik ...

How do I run this swf for uploading?

I compiled a swf from the source here by path_to_mxmlc.exe path_to_as, but it doesn't pop up any dialog after I drop the swf in a browser. What can be wrong? ...

how to accurately get referrer in actionscript widget

Hi, I have an embedable widget. For each impression, I would like to track the referrer (the page where the widget is embedded onto). Right now I am using ExternalInterface to use javascript to check window.location.href when its available, however, I am finding that most of the time I am unable to set the referrer. Is there a bette...

How do I resize the dropdown of a combobox along with the combo box?

Background:     I am doing some UI work where I allow the user to programatically add and resize controls on a canvas. Problem:     When resizing a combo box through AS the dropdown stays at the same width as the first time it drops down. So user places combo box on the page, clicks the down arrow, sees the options, selects an option o...

Populating a Datagrid with variable number of columns and rows in Flex

I am trying to figure out how to manage a Datagrid based on an XML object like this: <matrix rows="5" columns="5"> <column> <row>0.5</row> <row>0.21</row> </column> <column> <row>0.6</row> <row>0.9</row> </column> <column> <row>0.5</row> <row>0.5</row> </column> <column> <row>0.8</row> <row>0.4</row> </c...

How do I make actionscript run under certain condition?

package { import flash.display.Sprite; import flash.events.*; import flash.net.FileReference; import flash.net.FileReferenceList; public class FileReferenceListExample extends Sprite { public static var LIST_COMPLETE:String = "listComplete"; public function FileReferenceListExample() { ini...

Making dynamic text item transparent for mouse

Hi! I'm working with actionscript 3 and have a trouble. I need to write player where users will see text on the front of the movie. The text is text field of type "Dynamic text". The problem is that I need to make this text object transparent for mouse move and clicks. I tried: .mouseEnabled=false; .selectable=false; ... but it does n...

How do I learn Flash Game Development?

I'm currently a PHP programmer and one of my childhood dreams is to create a game. The problem is I don't know Flash. I'm not great at drawing stuff or even artistic. I could program a little with JavaScript and I could consider myself intermediate with JQuery. Question How do I get started with Flash Game development? What books do I...

How to turn string into readable by php server way? (ActionScript)

So I know that my server on real form submit turns %CE%EB%E5%E3+%DF%EA%F3%F8%EA%E8%ED into Олег Якушкин . How to peform string transfer from Олег Якушкин into %CE%EB%E5%E3+%DF%EA%F3%F8%EA%E8%ED using ActionScript? (Its ok if a space character as %20, not + , PHP should handle that fine.) ...

Can a super mess up and override in actionscript 3.0

I'm doing a project at uni to make a game in actionscript, using object orientated programing, but I've hit a problem in the very final stages where it seems like the super stops my overrides from working is this possible? and if so how can I get round it? ...

How to update Native Air Appilication?

I created native air 2.0 app. (exe file) how to implement auto update for it? ...

How to add functional item to s:DropDownList?

So I have a s:DropDownList with data from service. When an Item from recived list is selected I perform some action (lets call it Action A) I want to add an item visible in list so that when user selects that one item I'll perform another action (lets call it Action B). Toda when I use such code to fill my list: <s:DropDownLi...

1136: Incorrect number of arguments. Expected 0.‎ AS3 Flash Cs4 (Round 2)

(I have asked this before but I dont think I was direct enough with my question and therefore it did not get resolved so here goes again!) I am working through a book called Foundation Actionscript 3.0 Animation, making things move. I am now on Chapter 9 - Collision Detection. On two lines of my code I get the 1135 error, letting me kn...

Loading external pngs into an AS2 swf that is loaded into an AS3 swf wrapper

I have a Wrapper SWF that loads a series of AS2 movies. Each AS2 movie loads a series of .png files. AS3_wrapper.swf |-> AS2_1.swf |-> image_1.png |-> image_2.png |-> AS2_2.swf |-> image_1.png |-> image_2.png Inside of the AS2 I listen for the load of the pngs using onLoadInit and update my UI. This works fi...

check if formgroup is visible

I have a coldfusion flash form. (Unfortunately don't have time to change to html/javascript) In the form I have a formgroup. I would like to be able to use actionscript to detect if the formgroup is visible. I've used the code: if(formgroupid.visible == "true"){ do this } However, this does not work. Any ideas to alter the if s...

AS3 and the loader class

Hi, I write here, because after looking for a solution, I could not resolve my error... var test:MovieClip; var sign:Loader = new Loader(); sign.contentLoaderInfo.addEventListener(Event.COMPLETE, completSIGN); sign.load(new URLRequest("http://files.zebest-3000.com/278374/3011/3011.swf")); function completSIGN(e:Event):void { ...

I need a true mouseOver...

Ok, so mouseOver and RollOver, and their respective outs work great as long as your mouse is actually over the item, or one of it's children. My problem is that I may have another UI component "between" my mouse and the item I want to process the mouse/rollover(maybe a button that is on top of a canvas, but is not a child of the canvas)....

Flex ProgressBar component problem

I am trying to use the ProgressBar Flex component inside a custom Actionscript 3.0 component derived from the UIComponent class. I have set the minimum and maximum values etc. _progressBar = new ProgressBar(); _progressBar.label = "Loading"; _progressBar.minimum = 0; _progressBar.maximum = 100; _progressBar.direction = P...

flex/actionscript assignment failing?

I'm seeing something weird in my actionscript code I have two classes foo and bar, bar extends foo. In a model class I have a foo member variable, I assign an bar object to the foo variable. But after the assignment the foo variable is null. [Bindable] public var f:foo; public function someFunc(arr:ArrayCollection):void { if(arr...

how to Display a Symbol from the .SWF file on Canvas?

how i can display a symbol from the .swf on canvas.. i have exproted the .fla file from the flash CS3 as .swf file... ...