actionscript

action script 2.0

Hi I have a small flash as below public function startApp () : Void { mcWindowRoot.refToClass = this; mcNext = mcWindowRoot; _oLogoutDelegate = Delegate.create (this, onLogoutHandler); _oWindowManagerRef.addEventListener ("onLogout", _oLogoutDelegate); loadWhatNext (); } /** * Enter description here * */ function loadW...

What decryption method is this?

This function is written in ActionScirpt. What kind of decryption this is? Is there existing function in PHP for this function? function decrypt(str, key1, key2) { var v1 = []; var v3 = 0; while (v3 < str.length) { switch (str.charAt(v3)) { case '0': v1.push('0000'); break; case '1': v1.push...

In Flash, how much "overhead" to various types of screen elements (movieclips, static text, dynamic text) add to a SWF?

All, I've been developing Flash applications for several years, and here's something I've always wondered about. I try to be as careful as possible about minimizing the amount of "overhead" that my application uses. (By overhead, I generally mean RAM, cpu processing effort, downloaded data, etc.) My goal is to consume as little of the ...

Is there any way to get around a Security Sandbox violation when a swf is loading another swf which loads another swf?

I have a AS3 swf [1] that is loading another AS2 swf [2] which is loading another AS3 swf [3]. I'm getting a Security Sandbox violation on the AS2 swf trying to access the last AS3 swf (3), but I'm using Security.allowDomain("*") in practically all the classes of the first AS3 swf (1). Is there any way to get around this? Thanks. ...

Generate flv, mpg or some other movie format from an ActionScript movie clip

Hello I am working on a Flex application/game where a lot of UIComponents are moved around on a canvas. I would like to "record" an flv movie of the movement on the canvas. Is there anyway this can be accomplished ? I essentially want my users to be able to record small flv videos of their games to be uploaded on youtube. Any ideas...

Canvas height auto? - Adobe Flex (actionscript)

Hey I would like to have that the height of a canvas change automatically. When there are a lot of labels and images in my canvas, the height must increase. And when there are just a few labels in the canvas, the height must decrease. In fact i want something like in CSS: height: auto; I hope youn understand my question. Thanks in ad...

ActionScript 3: ProgressEvent's bytesLoaded property to Document Class

Hi, in AS3, I have an external class ImageLoader, that loads an image upon request. In that class, I have an event handlers: ImageLoader Class public function loadImg(path:String):void { ldr = new Loader(); ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, getProgress); var req:URLRequest = new URLRequest(path); ldr.lo...

get keyCode from string?

Using a static method in as3, I can get a charCode from a character in a string. How can I get the keyCode from a character in a string? Do I need to run this function through javascript (if I can do this in Javascript...) ...

Bitmap Morph Tween in Actionscript?

How do you do a bitmap morph tween in Actionscript? I would like to morph a Panel into a Button, using BitmapData or something but I have no idea where to begin. ...

Is it business suicide to build a entire website in Flash?

My website will be basically selling services; will my SEO ranking still be affected if I embed the Flash site in a blank html page? I am at that critical point where I am ready to upload the site but I am just having second thoughts about the ease of doing business with Flash. Thanks. ...

Flash MovieClipLoader instance behaves incorrect

Hi there I currently have a few movieclips that I load into another movieclip container. I use the MovieClipLoader class to load them and make use of the onLoadProgress, onLoadStart, onLoadInit, onLoadComplete and onLoadError listeners. In the onLoadProgess listener, I listen for the loaded bytes and total bytes and put the the percent...

Flex 3 and scaling DropShadowFilter

I have an application that requires resizing of a component that will be scaled up and down quite frequently. I noticed that when I scale the component, any filter I use on it will not scale with it. I realize this makes sense, but I was wondering if Flex had a tool built in that would allow me to scale the filter with the component. I k...

Using Per Item Fills in Flex/Actionscript

I am creating a chart using mxml. The mxml tags only create a chart with a horizontal axis and vertical axis. My result event handler has actionscript code that loops through the xml result set and creates all the series (line series and stacked bar). This part of the code works fine. Now I need to use the functionfill function to set ...

retreive POST data from FLASH to ASP.Net

here's my AS3 code: var jpgEncoder:JPGEncoder = new JPGEncoder(100); var jpgStream:ByteArray = jpgEncoder.encode(bitmapData); var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream"); var jpgURLRequest:URLRequest = new URLRequest("/patients/webcam.aspx"); jpgURLRequest.requestHeaders.push(header); j...

Flash = Preload movie

Ok, so this might seem like a stupid question, please try and see my predicament (at least that's what I tell myself): I have a flash, which loads button with Actionscript 2.0. Now, my swf is no longer than 1 frame, and in my Actionscript, I refer a lot to _root. Is there a way I can preload my movie without interfering with the _root ...

DataGrid-CellRenderer: Multiple colors for text

Hello folks, can someone tell me how I can manage to give single words inside a DataGrid-CellRenderer a different color than defined by the TextFormat for that CellRenderer? It's not how to get these single words, it's how to use more than one color inside one cell... ...

ActionScript error #1053 - Illegal override of allowInsecureDomain in _MonkeyContacts_mx_managers_SystemManager (FlexMonkey code generation example)

I'm following along the MonkeyContactsCodeGenExample guide and when I run the ant target for test-with-launcher, I get a popup saying: VerifyError: Error #1053: Illegal override of allowInsecureDomain in _MonkeyContacts_mx_managers_SystemManager. This is followed by: ReferenceError: Error #1065: Variable _MonkeyContacts_mx_managers_...

Contact a remote server on a specific port with Actionscript?

Does flash actionscript allow you to contact an arbitrary server on a specific port? I would like to stream some images live from a server using a proprietary protocol. Or does the browser disallow this for security reasons? ...

How does [RemoteClass] work in Flex Actionscript can I use it for custom data-binding?

Actionscript supports a [RemoteClass] metadata tag that is used in BlazeDS to provide data-binding hints for marshalling AMF binary objects from Java to BlazeDS. For example: Java: package sample; public class UserInfo { private String userName; public String getUserName() { return userName; } public ...

flash with recaptcha or any other captcha solution

Hello there, I have been looking over the internet for a while about this, but it doesn't seem like there is any information available specifically related to captcah and flash. My purpose is to create an image up-loader on flash, and implement "recaptcha" on it, so the upload is controlled. I know that some people will say, "well you...