actionscript-3

Dynamically Retaining Advance search Criteria stored as XML in Flex

Have an advance search functionality, we have dynamically create some components to make criteria as SQL query to search. For example, textbox, combo box are used here with different combinations. After sometime user wants to see that criteria by click the button named 'CRITERIA'. This time send the request to server and get the XML fro...

Looping DisplayObject animation

I have multiple object doing random movement with random speed. i wanted to repeat the animation. I tried to use onComplete to restart each object once the animation end, but how could I specifically target it to that object? Currently its overflow private function lineAnimation (e:DisplayObject):void { TweenLite.to (e,rand...

flash as3: textfield borders disappear when drop shadow is applied

Hi there! There's a really strange bug I've ran into today. I have some textfields generated from code, and if I apply a drop shadow filter on them, sometimes the right or the bottom part of the textfields' border just disappear. _passwordField.filters = [new DropShadowFilter(1, 45, 0, .75, 3, 3, 1, BitmapFilterQuality.HIGH)]; this i...

finest time resolution in as3?

If I want to measure the amount of time that has passed in as3 between method calls. Is the highest resolution from: var now:Number = new Date().getTime(); ? ...

Custom cursor in AIR app doesn't show up completely

Hi, For the application that I am developing in AIR, I have removed the chrome through the app.xml. I am managing the features of minimizing, maximizing, close, resize and all other functions from within the application. I am facing a problem with resize feature. I have defined the grips for resizing and also I am able to display my cus...

What hourly wage would an ActionScript 3.0 programmer intern expect on one year's experience?

I have been offered 8 hours a week part-time ActionScript 3.0 developing while I am studying at University, and have been asked how much I expect to be paid for an 8-hour day. I have one year's experience with the language, as with Java and C#, so I know more about general OOP than specifically ActionScript. There is some brief portfoli...

Associative Vectors?

Just a short question: can Vectors be associative, like Array's? probably not, because I tried, but maybe there's a workaround...? ...

Flash CS5 Draggable Movie Thoughts?

I'd like to create a draggable timeline similar to: http://www.skar.com/timeline.html I need some ideas on how to best accomplish it. Would it be best to create one large Movie Clip that acts as a container to all my individual images. Then code an onDrag handler that moves that container's X value based on the mouse's X value. Thanks...

Major bugs in SWFAddress

I found a couple of rather glaring bugs in SWFAddress, involving IE-based browsers. Both of the following occurred in SlimBrowser (15,000,000 downloads on Cnet) and one in Avant (also several million downloads on Cnet). Both bugs occur when returning to the original startup screen of a flex app via the back button. Both of them are rep...

How to listen for dispatched events from container children?

I'm using an accordion container that has it's creation policy set to auto. One of the accordion's children is a spark border container that has a data grid within it. Currently, I'm using the data grid's creationComplete property to call a function; similarly, I'm using the dragComplete property to call another function. How can I add...

ActionScript 3 : Some good UI component libraries that can be used to elements in a flash game ?

Main features I am looking for are carausels and alert boxes. I have already seen Yahoo Astra. Are there any better or comparable libraries ? ...

Assign Xml Values to dynamically created components

xml values are stored in 'arr' array collection. depending on the length of the array stored, the below described components are created and assign those values to relevant components dynamically. For Example: AdvanceSearch.mxml is one component, and another components as advanceSearchAtom.mxml. within 'advanceSearchAtom' has some sub ...

AS3 to JS compilers

I stumbled accroos the AS3 to JS compiler Jangaroo, which looks like it could be a useful tool since it supports a lot of things I like about AS3. Are there any other such compilers? Is there another language I could learn, that compiles to JS, that is AS3 like? ...

Flex 4 fails to parse XML with quoted text

<?xml version="1.0" encoding="utf-8"?> <WorkItems> <WorkItem Duration="1" ID="1" Title="this breaks: &quot;"></WorkItem> </WorkItems> I embed this XML into my Flex 4 app: <fx:XML source="data.xml" id="Data"> </fx:XML> And I get an error: TypeError: Error #1090: XML parser failure: element is malformed. If I remove the quot part o...

Drawing on screen from a non-sprite object in Actionscript3

I'm trying to debug AS3 code on production. I have no access to trace(), can't write to disk or open a socket. What I want is to display something on screen. With AS2 I could just access _root and create a text field with my trace data. Any ideas how I can pull this off with AS3? My class extends Object, it is not a sprite and is never...

How to implement radion button with check box in one tree in flex 3.0

Here is main Application file <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initList()"> <mx:Script> <![CDATA[ import mx.managers.PopUpManager; import mx.messaging.channels.StreamingAMFChannel; import mx.events.ListEvent; import mx.co...

Use external Font Swf to change font of a dynamic text Field in AS3.

hii.... I am working on a as3 project in which the user select a font from Combo Box and that font SWF should be loaded Dynamically and then i need to change the font of the Dynamic text field. I have swf font files downloaded from www.isarie.com My question is that how can i load the font swf dynamically from server and add them to...

Generating alphanumeric IDs (unique strings)

Hello! How can alphanumeric IDs be generated in PHP or AS3 etc instead of the classic auto incremented numeric ID. YouTube uses this for its video IDs for example. Facebook generates long alphanumeric strings for uploaded image names and so on. EDIT: It's not how I generate the strings per se, but how do I generate unique ones like th...

Corner radius applied only to specific corners

Guys, I've this tabs that I wanted to make rounded only on top-right and top-left corners. But it ended up rounding all 4 corners. What I did: <mx:TabNavigator id="myTabNav" x="58" y="61" width="584" height="200" creationComplete="setColors(event)" styleName="myTabStyle"> <pages:One label="ThisOne" id="one" name="One"/> <pages:...

AS3: How do I use frame scripts on loaded swf animations?

I'm trying to use addFrameScript() on a SWF animation I have loaded but am running into a few problems. Here's what works right now: public function project() { var loader:Loader = new Loader(); loader.load(new URLRequest("animation.swf")); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, animLoadComplete, false, 0,...