actionscript-3

progressive jpeg flash

hello, I read your topic about jpeg progressive and AS3, I didn't test anything.. But, did you find a good solution for this problem? with a rendering like jpeg progressive? thank you for your response Best regard ...

Combine Text with a Draggable Mask AS3.0

So I have an image that is the size of the stage: img_mc. Then I drew a small rectangle: mask_mc. The idea is to make a "window" of the small rectangle, view img_mc through the window, and be able to drag the window around. The following code works fine but I want to add text to the mask - "Drag Me!" or whatever. But if I group text wi...

Flash 10 - read file from a drag and drop action?

Hi, I'm looking at how to read a file in flash 10 here: http://www.thedesilva.com/2008/11/flash-10-file-reference/ is there a way to initiate the file read from a drag and drop? For example, the user drags and drops a text file onto my flash element in the browser - can I initiate the file read from that? Thanks ...

can I prohibit users from loading swf files by AS3 / Flash Loader.load() and only allow loading images?

I want to have an AS3 app load images from url supplied by the user. But I don't want a malicious user to be able to load an SWF file in place of the image, such as with an altered extension "maliciousSwf.png". Well, not sure how big a security threat that is above and beyond the ability of the hacker to decompile swf, but I think that i...

Flash Builder Update Query Issue - Channel disconnected Channel disconnected before an acknowledgement was received

I am trying to build my first CRUD application and cant get the update query to work. Here is the MXML and AS. <?xml version="1.0" encoding="utf-8"?> <fx:Script> <![CDATA[ import mx.controls.Alert; import mx.events.DataGridEvent; import mx.events.FlexEvent; import mx.rpc.events.ResultEvent; ...

AS3 equivalent of PHP key array

Hey all, title may be abit misleading but i didnt know the correct way to write it. Basically, how can i do the AS3 equivalent of this php code: return array('x' => 0, 'y' => 0); ...

Flash - eval() available?

Hi, Is there any way to execute arbitrary code in Flash, like javascript's eval()? I'd like to take some code as a string and execute it, if possible (I understand this is not a great idea), Thanks ...

Is there any fast library(s) for finding human eyes and mouth in Flash? (Actionscript)

So I have real time video stream. With 1 (one) person on It . It Is Black and White, I need to be able to capture this persons eyes and mouth (direction (at least X,Y), state (at least opened or closed) ) So Is there any fast library(s) for finding human eyes and mouth in Flash in such case? (pure Actionscript or Haxe\Java\C++\C port in...

Incompatible classes when loading SWF

I have two ActionScript 3 projects, game(.swf) and minigame(.swf). At runtime the main game loads the minigame via Loader. I also have a shared library (SWC) of event classes, included by both, which minigame will need to dispatch and game will need to listen to. First: Is this possible this way? Second: What will happen if I compile t...

FLV container. How to add mp3 as audio track?

So I have an mp3 file. I have some frames inserted. Now I Need to insert this track as flv sound. How to du such thing (for frames insert I use this class http://www.zeropointnine.com/blog/simpleflvwriteras-as3-class-to-create-flvs/ ) ...

How to make the Rounded corners of the client app in WindowedApplication?

Hi all In my application,showFlexChrome is set as true in WindowedApplication,and the *-app.xml is setted as follows <systemChrome>none</systemChrome> <transparent>true</transparent> <visible>true</visible> I know how to make the top border rounded corners with follow codes: borderStyle="solid" cornerRadius="8" But I cannot fin...

Flash : Local connection gives error

I am trying to connect to FBJS bridge. It keeps giving me the following error.When I'm opening only one connection and I do not have any other window open. ArgumentError: Error #2082: Connect failed because the object is already connected. at flash.net::LocalConnection/connect() at BabyVille()[C:\Documents and Settings\user\Desktop\baby...

Rendering MXML component only after actionscript is finished

In my mxml file, I'm doing some calculations in the script tag, and binding them to a custom component. <fx:Script> <![CDATA[ [Bindable] public var calc1:Number; [Bindable] public var calc2:Number; private function init():void { calc1 = //calculation; calc2 = //calculation; ...

Turning a actionscript string with a url into a HTML link

I'm retrieving an unformatted String from a twitter feed. I want to be able to turn a text URL (http://blah.com/qwerty/) into a link but don't know how...is there a handy regular expression for this? ...

How do I manage library symbols with linked classes in Flash CS4 to compile/debug in Flash Builder 4?

I'm building a video player using Flash CS4 (hereby referred to as "Flash") to create the graphic symbols and compiling and debugging with Flash Builder 4 ("FB4"). Here are the steps I take in my current workflow: --Create the graphic symbols in Flash. I've created a few different symbols for the player, but I'll focus on just the play/...

Disabling script max-execution-time in flex?

How do I completely disable the max-execution-time for scripts in flex? The configurable max is 60 seconds, but I'm calling off to other interactive processes which will probably run much longer than that. Is there an easy way to disable the maximum script execution time across my entire application? ...

Customize the alert box with two buttons.

Hi I need to customize my alert box with two button and both the button need to have different skins on them. I was able to do it for one skin. But i am unable to figure out about the two skins. My code that i have right now is below: public function Messages():void { Alert.buttonWidth = 100; ...

How could I generate instances of an object randomly at the top of the screen and make them "fall"?

I am making a game in Flash CS4 (actionscript 3) and I would like to be able to make "copies" of an instance that would randomly appear at the top of the screen and fall. For example, multiple objects(that are the same one) are falling from the top of the screen continuously, starting at random X positions. (i think this would be consid...

Mixing alignment on a single line in Flex TLF

Hi I want to mix alignments in a single line in flex using TLF. Ie., on each given line, I'd like something like this: the quick brown fox|1 jumps over the|2 lazy dog|3 In essence there's simply 2 columns there - the left column is right aligned, and the right column is left aligned. The docs on this are pretty scar...

movie silent until button press, flash as3

I thought I could change the Boolean true/false value, but it's not working. How do I get this to hush, until the button is pressed? import flash.media.Sound; import flash.media.SoundChannel; var soundOn:Boolean = true; //music is ON when we start var myToons:TitleMusic = new TitleMusic(); var myChannel:SoundChannel = myToons.play(0,1...