actionscript-3

Detect and Erase specific pixels from an image.

Is it possible to detect (dynamically) the white pixels of an image and delete them? Actually i have some images that i load on stage but they are square without the actual image be a square sized. So i want to make the hit area exactly the shape of the image and not the whit border they have. ps: In actionscript :) ...

AS3 Loading Workflow: XML First, then Multiple Assets

I am working on my first big Actionscript 3 website and trying to decide on the best loading sequence. I am currently using BulkLoader, since filesize wasn't much of an issue for a larger website, but I am definitely open to other approaches. I am trying to figure out which external assets to measure progress {1 swf, 1 css file, multip...

Flex & Flash or Flex vs. Flash?

this is not a technical question, well maybe potentially, but since this is such aresponsive messageboard I thought I would get some good responses here. I am due to create a pretty robust website coming up soon that has to be creative but also incorporates a lot of data. My perspective, as a newcomer to flex, is that it is better for a...

AS3 List issues

I'm trying to add a List object to the stage dynamically, but I always get an error when a certain line is called: input.addItem({label:"test",data:"test"}); Error thrown at runtime: TypeError: Error #2007: Parameter child must be non-null. at flash.display::DisplayObjectContainer/addChildAt() at fl.controls::BaseButton/fl.controls:B...

SWC Instance name on movieclips?

Is it possible to compile movieclips to swc with the instance name as property name? This happends when I add a dynamic text field, but i would like this also on some UI elements. ...

Flex4: How to add a child to spark Scroller in AS

I want to convert the following code to ActionScript (mxml works fine): <mx:Panel title="Some Title" width="400" height="300"> <s:Scroller width="100%" height="100%"/> <mx:ColumnChart id="myChart" attribute="..." /> This doesn't work straight forward: setupChart(); //setup myChart var scroll:Scroller = new Scroller(); scroll.p...

Avoid flickering while loading a picture in Flash with AS3

Hello, i just trying to learn basic flash programming skills, now i got a program that load an image from my local machine, and show it with uiloader component, code is something like: var myImage:String = "picture.png" var request:URLRequest = new URLRequest(myImage); uiLoader.load(request); it´s working fine, but when dynamically ...

How to call value of variable which is in one function to another function in as 3.0

I have taken variable in one function and want to use that value in another function. Please give me example... ...

Bug in stacked series in Flex Charting

Hi Friends, I think there is bug in Flex charting. "DATETIME AXIS DOES NOT SUPPORT SERIES STACKING IN CERTAIN CASES WHILE LINEAR AXIS AND CATEGORY WORKS FINE IN SIMILAR CONDITIONS" This happens for 'clustered' and 'stacked' types when each series has its individual data provider. If data provider is assigned with chart itself it will ...

Diffrent values of alpha for different regions of a sprite(Flex/Actionscript)

Here is my problem : I have a Sprite covering the entire screen. Other than a certain rectangle of this sprite I want the rest of the sprite to have alpha = 0.5. And for that particular rectangle, I want alpha = 0. Is it possible? How? ...

Counter in Flash and Tweener as3

My scrolling counter is not displaying 1-9...only “zeros” every ten intervals. It plays, but the code is unfinished at line 37 in NumbersView.as. Notice Tweener is used to display the sprites. How do I finish this? WHAT I'M TESTING "NumbersView.as" loop error, onComplete, missing argument or function - Tweener code, line 37? - for loop,...

Open source popup/panel for actionscript 3?

Does anybody have a solution for a popup (for a help panel)? thanks. this is in pure as3. ...

Script to indent actionscript 3 files?

Are there any scripts to auto-indent an actionscript 3 file? I want to standard the check-in to source control, and this way, it'll be uniform (instead of mixing spaces and tabs). thanks. ...

How do I create a VBox that will grow to fit all the children rather than use a scrollbar?

I have a Canvas with a VBox in it. As I add items to the VBox, I want the VBox to grow, I want the scrollbar on the Canvas to control the visibility. How do I accomplish this? ...

What does it take to build a 'Build your own car' application in flash?

I am newbie flash developer who is bidding for a project that aims to clone this. So, how tough is designing a tool that let's you customize your car? What areas of flash should I bet good at? and really good at? If you notice, there is lot of browsing that is happening in the background in the site I shared even when you build you own h...

Dynamic Flex verticalaxisrenderers

Hi, I've created a linechart in flex using pure as3. I need now to convert it to a dynamic multi axis chart. What I mean by dynamic, is that I can programmatically add or remove axisrenderers from the verticalaxisrenderer array at runtime. It seems i can remove axisrenderers at runtime by simply doing this: verticalAxisRenderers = vert...

"AI Game Programming Wisdom Series" Questions

I am wanting to buy the book "AI Game Programming Wisdom". But I can not find the book at any of the local store's. So I am not able to read the book and see if it is for me. I have been wanting to better understand A* Path Finding for awhile now. I read a few articles online such as http://www.policyalmanac.org/games/aStarTutorial.htm ...

Is Flash programming good for GUI prototyping?

I used to think that Flash was a program for designers or just for web purposes, but now i am working in rapid prototyping for GUI and i am trying to learn some flash just to evaluate as solution for this kind of projects. I found very useful some graphical capabilities, like combine graphics and video together, modify pixels, good inter...

Sizes of datatypes for actionscript 3

Anyone know any good resources or personal experience that help explain how much memory (and swf size) the various built-in data types take up in actionscript 3? I'm specifically interested in int, Number, and (dense) Arrays or Vectors. I'm working on a project where I need to embed large amounts of structured array data, which is alrea...

Flash UI blocked during flex rpc.soap.Operation::send

I've got a Flash UI that does a periodic server call to get some updated information. The call uses the flex sdk's rpc.soap.Operation class. It looks something like this: var wsOperation:Operation = Operation(webService.getOperation(SomeOperation)); wsOperation.addEventListener("fault", wsError); wsOperation.addEventListe...