Using Actionscript 3 to connect to a database

I'm looking for advice on how to dynamically create content in flash based on a database. Initially I was thinking that we would export the database to an XML file and use the built in...

GUI Framework for flash (as3)

I can't seem to find any GUI framework's for as3 that are as good as any the applications I already see out on the web; Is this something most people code themselves or am I missing something in...

RegEx for replacing and adding attributes to an HTML tag

Given the following code : <body> <img src="source.jpg" /> <p> <img src="source.jpg" id ="hello" alt="nothing" /> <img src="source.jpg" id ="world"/> </p> </body> What's the best...

iphone flash lite 2.0 support?

1.i dont have iphone, so may i know does iphone come with pre-installed flash lite 2.0 or above? if answer is Not, if a web page that embed flash lite app. can it prompt user of iphone to install...

Advanced chroma key code samples

I'm working on an application that needs to key out the background from an image taken by a webcam in front of a green screen. I figured this would be a very common task, but to my surprise i'm...

actionscript 3 - how to hide default cursor in chrome?

is there a way to hide default cursor[flash]when it's opened using chrome? i can hide it using ordinary way when it's opened using firefox/IE but somehow it doesn't work when it's opened using...

Controlling Sound Pitch With Actionscript 3.0?

after browsing the documentation for the sound classes, it seems there is no way to control sound pitch with Actionscript 3.0. there is only the ability to control volume and pan. why is there...

How to define enum in as3?

Is there a way to define an enum in AS3 in a way we do it in other languages? I can define constants with defined values like that: private const CONST_1:int = 0; private const CONST_2:int =...

Embedding and Displaying chinese/japanese

I have been working on a subtitles engine for flash/flv video player. On my Mac everything is great, nice aliased glyphs, displaying all the characters, etc. Switch to windows, it all goes out the...

Flash AS3 mouse move event listener and Timer Object

Ok I have this 100% width/height Flash embedded and when the user moves the mouse I want to display a panel, which disappears after x seconds if there is no more mouse movement. I think I need an...

Flash AS3 - How to center an object around a point after scale

I've created an mc which functions as my map and controls to go with that which allow the map to be moved around and key points navigated to and zoomed in on at varying zoom levels. I'm using...

Restart flash on click

I'm trying to restart my flash piece with a restart button. I use gotoAndPlay(0), but nothing happens. I'm sure the click event handler is being called because I used a trace statement to...

Calling MovieClip(root) from a dynamic MovieClip instance produces error 1034

NINJA EDIT: For some reason, the same code works now, without any problem at all. I don't know what happened, or why, but I no longer have this problem Here's the original post: To put simply, I...

As3 how to call and use an external class

I have this cool As3 MP3pitch package, which I got from here: http://blog.andre-michelle.com/2009/pitch-mp3/#more-483 package components { import flash.events.Event; import...

Flash AS3 FileReference - Select and Upload Multiple Files one at a time

I currently have an swf that allows you to select and display a file and upload it to the server using FileReference. This works great but i need to be able to select and display multiple (up to...

Alert/ Dialog box in AS3

I am working on a app using Adobe flash Builder which should pop up a Alert window once a particular event has been triggered. Another event needs to be called when the Alert box is closed. But I...

Correct formula to "invert" rotation (in degrees) in AS3?

I have my player movieclip on the stage, and when the mouse is clicked a bullet is fired and projected at the correct angle to point itself at the mouse location. I also want a "mirroring" enemy,...

ActionScript 3 - Resize a MovieClip dynamically by browser BUT keep PROPORTIONS

I have a Movie Clip with dimensions: 500x400. Instance name is: "main". I have the following code: import flash.display.StageScaleMode; import flash.display.StageAlign; import...

AS3 playing audio and looping it

I'm trying to get an audio file to play in the background of my project but so far have been unsuccessful so far. Heres what I've gotten so far. package { import flash.display.*; import...

Why is my button instance forgetting its textfield text and event listener?

I'm working on an assignment due at midnight tomorrow and I'm about to rip my hair out. I am fairly new to ActionScript and Flash Builder so this might be an easy problem to solve. I think I know...

How to determine (in AS3) whether the system cursor is hidden or showing?

We have two methods to handle cursor visibility in action script 3: Mouse.hide() and .show(). My movie loads an external one, that may intentionally hide cursor. And I have to change interface...

AS3 Array "for each ... in" performance vs. for loop, and guaranteed in order?

This question is really twofold: How does for each looping over an Array compare performance-wise with a simple for loop through its elements? Does a loop guarantee in order traversal? The...

How to invert mouse control? (ActionScript3

How can I do if I want a function that inverts mouse control, like when I want to go right, it goes left, and when i go up it goes down? The only thing I thought about was mouseX = mouseY even if...

How do I convert my swf to apk with certificate?

I have made an app using flashDevelop and Flash cs6, the swf has been put in my "bin" folder. I would like to convert my swf to a apk with certificate using flash cs6, Is there a way to: open a...

AS3 text linkage to xml

I was testing various ways for linkage dynamic scrolling text and xml file I wanted to put on stage double text sliders each of them will fetch different data from xml file but getting random...

How to make an auto login to a flash site?

I am trying to login to a swf flash site using vb.net I use the code bellow to login to the first page: Dim theElementCollection As HtmlElementCollection =...

How to remove the line break at the end of a string?

How do I remove a line break at the end of a string? I can use RegEx or string.indexOf(). What I have so far doesn't work: var message = "first paragraph.\n\nNext paragraph.\n"; var trimMessage...

Depth-First Search : Wrong Iterative DFS results order

I'm trying to sort my isometric rectangle with DFS algorithm. The Recursive version works perfectly. Here's my implementation : if (node.discovered) return; node.discovered =...

Adobe AIR read .sol file of Flash Player

I have a problem with Shared Objects files when I need read the .sol of the Flash Player with a Adobe AIR application. The path of the Flash Player Shared Objects...

AS3 set focus on specific component

I have a form with several component: datagrid, textArea, text input... For each component FocusIn Event is available. var objTarget:String; protected function...