actionscript-3

Opening Print-HTML-Popup from Flash?

Hi, is it somehow possible to open a HTML popup window from within Flash and have it receive text data from Flash which should be printed ... and this all only in AS3 and Javascript (since no server-side scripting is available)? ...

Flash/AS3 > Font Embed causes positioning error with Chalet Font

I'm trying to embed the Chalet font to some dynamic text fields and it is causing the vertical position of the text to jump up above the actual textfield. (see screenshot) Is Chalet a messed up font? (or more likely, Flash is sooo screwed up in handling fonts) This font displays absolutely fine in Photoshop and Illustrator. Anyone have ...

How many pressed keys Flash can detect? using as3

I'm developing a little game. I use the following code to detect the keys pressed by the player: private function onKeyDown(event:KeyboardEvent):void { //moviment keys if (event.keyCode == 37 || event.keyCode == 65) { this.leftKeyPressed = true; } if (event.keyCode == 39 || event.keyCode == 68...

How can I bend a a display object ?

I want to make collage, Example : http://www.as3.ro/p1%5Fanim4.swf (1.4 mb); I want to bend images using as3. ...

SSH Through Telnet Connection

Is it possible to connect to an SSH server through a Telnet connection? I am trying to connect to an SSH server from Flash, but there is no OpenSSH implementation available in ActionScript. I can successfully connect to a Telnet server and execute commands. I am not able to make any changes on the machine with the SSH server. The machi...

Flex SWF assets loaded into Flash SWF at runtime within same ApplicationDomain

I'm trying to load a swf compiled by the Flex SDK into a swf exported by the Flash IDE and instantiate the assets by way of getDefinition(). Normally this works fine with assets exported from the Flash IDE then loaded into another swf also from Flash IDE. This is how I could normally do this using only the Flash IDE: Loader - > Using sa...

Flash Combo Box... set the text field to selected value?

Hey everyone.. I'm really new to flash. I have a combo box and I am using the 'selectedIndex' property to give it a default value (a value that is at the first(0) index). Setting this property in my ActionScript does select the value in the dropdown but it does not add the selected value to the combo box's text area. How do you do this? ...

applying a ColorTransform stops MovieClip from playing

I have a MovieClip that consists of multiple layers, one of those layers is an animated background Shape. let's call this MyMovieClip with the background shape have the instance name "mcBackground"; I'm adding the MovieClip to the stage from ActionScript by: var myMovieClip = new MyMovieClip(); addChild(myMovieClip); This works fine ...

Uncompress Zlib string in using ByteArrays

Hi all, I have a web application developed in Adobe Flex 3 and Python 2.5 (deployed on Google App Engine). A RESTful web service has been created in Python and its results are currently in an XML format which is being read by Flex using the HttpService object. Now the main objective is to compress the XML so that there is as less a tim...

Implementing Undo/Redo within a TextArea

Hi Im wondering how to implement undo redo functionality with a TextArea. I already have an undoredo framework functionality working, now I have two questions. When do I start/stop a new undo/redo command, eg when a user hits undo, how far back do I go. How do I implement this(1.) in a normal TextArea My thinking: I thinking that ...

coloring product images in flash/flex approach?

Hi, I will redesign a product page that contains products like Vase, Ceramic Plates and more, Customers can customize the colors of the product. Now I need some advice what approach would best fit, I am planning to use Flash/Flex/Actionscript in implementing this; That way I can minimize loading to many jpegs for the product and at the...

how to efficiently track the use of space on a map, both objects and free areas.

OK I start with a blank map, which is 512x512 = 262144 pixels/locations. I need a way to efficiently draw some objects on it, and then be able to find the areas of free space, so that later more different objects can be added to these free areas. I cant figure out the best way to store this data, or algorithms to find the free areas. I...

Is it possible to listen for an event when a filter has completed?

For instance, I'm applying filters to large bitmaps. At the moment it works on a Timer, but I'd like to wait until any processing's been completed and progress to the next iteration at that point, instead of forcing it when the next tick comes around. Pretty sure this can't be done. Anyone? ...

Loading images and adding to Stage in Actionscript 3

I want to load an image object and add it to the stage at runtime. How would I accomplish this? ...

actionscript: acces now object instance

my problem is that after i create the new movie clips i don't know how to access them var numOfBalls:int = 5; var balls:Array = new Array(); import flash.utils.getDefinitionByName; function addBall(instanceName:String) { var mcIName:String = "ball"; var tMC:Class = getDefinitionByName(mcIName) as Class; var newMc:MovieClip ...

Refresh GroupCollection of an AdvancedDatagrid - the sorted Arraycollection gets Randomized

I have an AdvancedDatagrid which gets populated by an ArrayCollection. I ordered the ArrayCollection by date (one of its properties), so it shows from past to future. The thing is, if I refresh the GroupingCollection (for immediate display in the datagrid) After the Sorting of the ArrayCollection, the ordering of the dates in the ArrayC...

Use Localization for DataGrid datafields

Hi there I have implemented my own ResourceManager for localizing my application by using <mx:Label text="{resourceManager.getString('myResources','Spot')}" /> instead of <mx:Label text="Spot" /> Now I want to be able to use this in dataFields in a data grid which use a xml file as datasource <mx:DataGrid width="100%" height="10...

Race condition firing events in AS3

Hello I have some troubles firing and removing events in the right chronicle order. The code below gives the following output: save poster into db, and dispatch event calling service, dispatch event removed = false calling service, dispatch event removed = false calling service, dispatch event removed = true save poster into db, and d...

Making a Flex DataGrid scroll smoothly

I've noticed that the default behaviour for a DataGrid's vertical scroll bar is to scroll one row at a time. This is all well and good when the rows are all uniform and small (e.g. displaying a single line of text), but gets really ugly as soon as you have rows with variable heights. I'm curious, is there a way to make DataGrid scrollin...

Estimating Flash project hours

Hi. I'm trying to estimate the hours required to build a group of 5 simple children's games in Flash. They will include such things as having kids drag and drop healthy food items into a basket; choosing the healthy and unhealthy food items by marking them in some way; etc. I have no experience building games in Flash, but I have progr...