actionscript

text blurry when using label component on AS3

I have a problem when dealing with label component on AS3. The text was blurry on one application but not on the other. I have used the same code when dealing with the label component except the one with clear text used scaling to scale the label component and not being used on the other. Is there because the scale that cause the proble...

AS3 OOP MVC with PHP

Im new to ActionScript and Flex 3... im trying to develop an MVC 100% OOP application with Flex 3 using MXML,AS3 and PHP. M (PHP) V (MXML) C (AS3) The 3 layers i choose for my development. I have 10 AS3 classes that are object related between them and some inherit or implement interfaces. The only problem here is how to interact 100% ...

AS3 XML problem

My Flash project is made of several .swf files, one of them loads XML gallery. everything works fine on my machine, but when I upload it to the testing server gallery content doesn't load. All my paths are relative to Main swf file. I can't makeabsolute URLs, b/c I have to deliver "working" zip package. What could be wrong? edit: Wh...

Flash - Ease out scrolling moviclip, scrolled by sensor on each side

I am hoping someone can shed some light on this issue for me... I have a movieclip that is scrolled by means of a 'sensor' on each side of the stage. The clip scrolls fine in both directions, however here is my problem: When the users mouse leaves the stage, the movie clip stops dead in it's tracks, and this does not provide a noce smoo...

ActionScript to Javascript cross-compiler

I learned ActionScript and FlashBuilder about six months ago and then even more recently heard about Google's GWT and Closure. But before diving into java, I wanted to find out if there are any projects underway analogous to GWT but which use ActionScript as the development language rather than java. Is there an ActionScript-to-javascri...

In actionscript 3.0/flex, how to maintain the individual text format of the characters from one text box to another?

I have two text areas in adobe flex - an original and a target text area. The original text area has text in it and some of the words are in bold (the user has the option to bold whatever selection in the text they want via a bold button). What is the easiest way to maintain this text formatting when copying it over to the target text ...

getting selectedIndex for SkinnableDataContainer / List

Is there something like selectedIndex for SkinnableDataContainer? It doesn't seem to be one of the available properties. ...

Any tips on moving from ActionScript 3 to Python?

I've been developing stuff using ActionScript since AS2,and when AS3 was released i had a bit of a hard time to understand its concepts. Then i realized i had to learn some OOP. I started studying OOP and now i feel i need to take a step further, that's why i chose Python. Are there any tips/advices/hints or whatever like that to help me...

actionscript swf: why the swf is cached in one web server

Hi, I have one swf and a program to load this swf. The swf is put in a server. I encounter a weird problem that if I put this swf in serverA, each time my program will issue a http request to that webserver(with 304 response). But when I move the swf from serverA to serverB, some weird things happen, the progrom will only issue the fir...

Fastest Strategy for Drawing Flash Particles

I am wondering what the fastest approach might be for using Flash/AS3 to render a 2D point plot (sonar lofargram) ; basically screens full of tiny 2D dots using Flash as fast as possible. Any suggestions on where to start? Is Flash capable of displaying 10's of thousands of 2D points (or more) with an acceptable fps? ...

How to parse HZK16 in ActionScript

Hi guys, do you know is there a open-source hkz16 ActionScript parser? ...

flash game lags every 20 seg

My game has delta time for frame independent movement, at 250 fps run perfectly smooth, but if i limit the fps to 60, the game slow down for a 2-4 seg every 20 seg aprox, even in small programs i have this same problem. no memory is created or released i comment everything i can and the problem persist thanks and sorry for my englis...

actionscript number is between():Boolean

Does Actionscript have a built-in function that accepts a number and can return a Boolean if this number is between 2 numbers. For example 3 is between 2 and 6 //returns true 5 is between 10 and 20 //returns false ...

From actionscript to google's datastore through java.

I'm working on a flash game written in pure actionscript 3.0 in Flex. I've just finished implementing replays for the game, but want to store the top 10 hiscores' replay data on my google-app-engine'd website. I'm using Java for the app-engine stuff in Eclipse in java but I have no idea how to deal with communicating to my java code ...

How to get the visible items on a Spark List with virtual layout

Hello, I have: an ArrayCollection of Numbers; a List using the above ArrayCollection as it's dataprovider, and virtualLayout=true; a custom ItemRenderer that shows a label with: a) the number b) an y position depending on the number AND the highest number visible In another words, if I have 10 numbers in the AC, and only 5 appear...

Flash: Loadmovie() in a specific width and height ?

Hi, i'm using loadmovie() to load a youtube video player inside my flash website but i want to specify the width and height so it can fit my box. This is my code: vloader.loadMovie("http://www.youtube.com/v/Alw5hs0chj0&hl=fr&fs=1hJ-mPcGtC"); I have an empty CLIP called "vloader" where i load the video player. Note: it is re...

Stupid Actionscript 3.0 question: Keypress AND click for a function?

I know how to make the mouse event work. I know how to make the keypress event work. Now what I can't figure out is how to make one button respond to both keypress and/or mousevent. In other words, a button that you can click or press "enter" for it to work. This seems really basic but on googling all I can find is basic "how to do a k...

How come this image won't resize to fit the sprite?

I have this snippet of ActionScript code that is supposed to resize an image to fit the sprite: (as in rescale the image not just clip it) package { import flash.display.Sprite; import flash.display.Bitmap; import flash.events.Event; public class Main extends Sprite { [Embed(source = 'img.png')] pr...

How come drawing this line at (0,0) doesn't really draw it at (0,0)?

Update: Once and for all, how can I draw a line that goes from (0,0) to the opposite corner of the stage? Here is what I have: package { import flash.display.Sprite; import flash.display.LineScaleMode; import flash.display.CapsStyle; import flash.display.JointStyle; import flash.display.Shape; import flash.ev...

String Seach Replace AS3

I have a bit of text "this is the text want I want to do is replace the text, I have just added another is for good measure" This is stored as a standard string but I want to turn this into html and add css classes like, in this example wrapping around the word "is"; "this is the text want I want to do is replace the text, I have ju...