actionscript-3

Flex Best Practices - Multiple Flex Projects or 1 Project, multiple Application MXML files

Having seen several different ways of setting up larger projects in flex, I'm wondering what your opinions are of how to organize projects that are going to require 2 or more different applications. For example a public and private site within the project. The two main ways that I know of would be first, creating one flex project, and t...

Security sandbox question: how to test locally with remote files?

If I have a flash file that I'd like to test locally (on my computer) but I have video files on a flash video server and photos on another server, is there an easy way to set up my flash file so I can do this? ...

Binding mxml (as)

I have actionscript file with a binding {someBinding}... The Main.mxml is where all the action happens. If I set {someBinding} in the "text" of a label component I will have a number. I have another form.mxml file. Where I want that binding to be in, but it can't find such binding. I need to have that {someBinding} in that other mxml,...

When trying to select a column of type BLOB, SQLStatement throws a RangeError #2006: The supplied index is out of bounds.

var imageData:ByteArray = new ByteArray(); var headshotStatement:SQLStatement = new SQLStatement(); headshotStatement.sqlConnection = dbConnection; var headshotStr:String = "SELECT headshot FROM ac_images WHERE id = " + idx; headshotStatement.text = headshotStr; headshotStatement.execute(); Error references the final line in this block...

Best toolchain for flash (ActionScript 3) game development wanted?

Hi, all! I'm new to flash and web development too. But I have some background in c#/c++/Qt/python. So, I want to know, what is the best toolchain for quickest dive into. My task is to write a game for facebook.com/vkontakte.ru. I already have the design doc, great artist and game-designer, so, the coding is the only stumbling block we ...

fingerprint on asp.net

Hi, I am trying to do this goal, but I need some alternatives to got it. I want to read a fingerprint using asp.net,silverlight, actionscript, i need get the finger and display the capture in the window. I do it in C# with griaule biometrics SDK 2009, only can be possible using a java applet. I dont know if mix java + asp.net can be ...

Scrolling items in sprite

I have a sprite containing a menu of items created from an array of names and prices. When you click on the names of these items it adds the item to a calculator that has quantity, total etc (similar to a shopping cart but without a checkout). I have the entire thing working, the problem is i need the list to be scrollable for the menu a...

Any reason why log field should private static?

here is in C#: private static readonly ILog log = LogManager.GetLogger(typeof (MyClass)); Not only in C# but another language i saw the same.. any thought? ...

AS3 - when does the garbage collector run ?

apologies if this is a dupe; i couldn't find it. i've read and understood grant skinner's blog on the AS3 garbage collector - http://www.adobe.ca/devnet/flashplayer/articles/garbage_collection.html , but my question isn't covered there. here's my question. suppose i've written some AS3 code like: statementOne; statementTwo; is ther...

as3: MOUSE_OVER is slow/not working correctly

Okay so I'm working in pure as3 (no creative suite or xml). I have a sprite. It draws a large rectangle and then a slightly smaller rectangle. I want to change the color of the slightly smaller rectangle when I hover the mouse over it. Right now though it will either not respond (I can plainly have the mouse over the rectangle and nothin...

How can I have a Flash video not autoplay after the first visit?

Thanks in advance! ...

How to get a Spark DropDownList skinClass and typicalItem to live happily together

Hello, How does one go about calling a skinClass on a DropDownList component without compromising the typicalItem functionality? <s:DropDownList id="appList" skinClass="skins.IconComboBoxSkin" requireSelection="true" change="combobox_changeHandler(event)" typicalItem="{appList.selectedItem}"> If I remove the skinClass it beha...

In Actionscript, how to match / in infinitive structures like to cross out/off?

Hi, I'm using the following regular expression to find the exact occurrences in infinitives. Flag is global. (?!to )(?<!\w) (' + word_to_search + ') (?!\w) To give example of what I'm trying to achieve looking for out should not bring : to outlaw looking for out could bring : to be out of line looking for to should not bring : to e...

Building a new Dictionary out of an old one? Help with Dictionary recursion

I'm working with a large set of hierarchical taxonomic terms, where each term ("203") has a matching "term203" movie clip on the stage, and am having trouble getting a recursive function to return all of a given term's descendants. There is a main Dictionary() object with the following nested organization for each term: { [object Movie...

Custom Array Serialization on Flex client

Hi, I was wondering if it is possible to do custom serialization of Arrays/ArrayCollections in as3 via amf. To be more specific, i want to be able to pool objects on the client so that im not instantiating new objects every time i make a RemoteObject call. I tried using IExternalizable but that only lets me serialize the objects myself ...

Intersection of parabolic curve and line segment

I have an equation for a parabolic curve intersecting a specified point, in my case where the user clicked on a graph. // this would typically be mouse coords on the graph var _target:Point = new Point(100, 50); public static function plot(x:Number, target:Point):Number{ return (x * x) / target.x * (target.y / target.x); } Thi...

Is there an equivalent of EnterFrame event in Expression Blend/WPF, If not how do we get around it?

i am moving from AS3 and Java to Expression Blend/WPF, but cant seem to figure out how to replicate EnterFrame event in C#, is there a update() or frameUpdate() function. ...

mx.collections missing? ArrayCollection() in Flex4 (Flash Builder 4)

I have some code that uses an ArrayCollection, it imports: import mx.collections.ArrayCollection; then: static protected var myAC:ArrayCollection = new ArrayCollection(); Seems straightforward, but in my project the import (and thus ArrayCollection) are not found/defined! I am using Flash Builder 4 (Flex 4) - it's an ActionScript ...

How to supress warnings for one ActionScript file?

I've got an ActionScript 3 source file (.as) that has hundreds of untyped variables. This file works perfectly although it outputs a warning for every untyped variable which gets me ~800 warnings clogging the Error panel in my IDE. Although warnings are helpful in my other source files, I want to suppress warnings for this one .as file...

Component goes out of another component

Hello, If I drag a textInput from a component and drop it near the end of the another component, the textInput goes outside of the dropZone. Any ideas how to resolve this problem? thanks edit: <?xml version="1.0" encoding="utf-8"?> <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spar...