actionscript

actionscript: how to write a function to judge the input string contains only number and alphabet?

Only the number and alphabet is allowed to be contained in the input string, return true or false. function is_valid(str:String):Boolean { } My implementation is dumb, as I want to iterate each character. Input: akjd8899kdjfj2kj return: true Input: kjd^kdjf^%%$ return: false ...

actionscript: is there a control that can pick both date and time?

Just wanted to aovid reinventing wheels, I want the date and time picker, I know there is already a date only picker inside flash builder. BTW: i am using flash builder 4 ...

how to parse HTTP POST(file upload) stream?

I am using actionscript engine to upload a file, the engine will select the file and send the file over network thru HTTP POST command, the document says the POST message is like: POST /handler.cfm HTTP/1.1 Accept: text/* Content-Type: multipart/form-data; boundary=----------Ij5ae0ae0KM7GI3KM7ei4cH2ei4gL6 User-Agent: Shockwave...

Scrolling 2 lists with 1 scroller Flex 4

Been trying to scroll 2 lists with their native scrollers disabled with 1 scroller added to the right of them. I tried setting the viewport of each List as the scroller and while that works it just instantiates the scroller to each of the Lists rather than use 1. Essentially i'm trying to have them scroll vertically at the same time wh...

Trouble with AVM1Movie inside AIR app

I'm writing an AIR app which should display other swf's. These clips aren't as3-enabled and loading as AVM1Movies. I need not to communicate with them, only to place on stage inside of some Sprite-based hierarchy. There is no problem with static clips, and no problem with some interactive ones (with functionality like "click to expand - ...

actionscript: add image loading animation for each image control

I have a list of image controls which loads the image from the website by setting the .source atrribute. The image is some sort of large so I want to display an animation in the image place before the image is displayed. How that can be done? Does image control support the this intrinsically? ...

How to do Image loading animation?

I am using Flash Build Image control to load the image from outside using .source attribute, I want to add the percentage animation for the loading process of each image, just wondering how can I do that? ...

hitTestPoint not giving correct results

I have a movie clip on which I have added a MouseEvent.MOUSE_OUT listener. movieclip.addEventListener(MouseEvent.MOUSE_OUT, removeMovieClip); Now the logic is to remove the movie clip on MOUSE_OUT and add it back to stage on MouseOver of another button. The intended functionality is like a slider showing some info The MouseEvent...

Is there any free, small, fast, thing for compiling ActionScript-3 Flex apps on windows?

What I want is as small, as light and as powerfull as this for C# development environment for developing my AS3 RIA's on my EEE PC. On Windows. In general I need codehinting (at least like FlashDevelop has) And UI designer-builder (as similar as possible to one I have in Flash Builder at work,.. at leat like this but for Flex framewor...

Dynamic Flash FLV Player

I am attempting to create a custom FLV player in flash that will allow me to link to an external FLV file in the html object code. This is in order to easily change a video that will appear on a client's index page dynamically. Currently I am using an external player that does exactly what I wish to do (http://www.walkernews.net/mediapla...

Convert Flex Action Script project into a Flex project.

I've got a flex action script project that consists of 3 AS files. I'd like to use the Flex frame work so I can add some components and other functionality. How can I go about converting this Action Script project into a Flex project with a .mxml file? I'm using Flash Builder 4. thanks Here's a link containing the project files I'm ...

How to put Silverlight application inside Flash file(swf - browser independet which run with flash player)

Hi every body, i have created a silverlight application , but i need to embed it to a Flash file(swf) which it runs with Flash Player ( whithout using browser), I had found a solutions to call it using javascript, but it still needs my flash file run inside the browser, dose any one can help me, Either to run js inside swf (without need...

How to list all methods of an object in ActionScript 3?

How do I get the list of all methods from an object? I know I can get the object class in this way: var className:String = flash.utils.getQualifiedClassName( myObject ); var objClass:Class = flash.utils.getDefinitionByName( className ) as Class; It gives me an the class prototype, but and can't do anything with it... In JavaScript I c...

Detection of a paste event originated from the default ContextMenu in a flash TextField

Textfields currently do not dispatch paste events. When the user is using keyboard shortcuts to paste, there's a way to workaround that shortcoming by listening to various keyboard events in the textfield. Is there a way to detect the paste event when it is originated from a click on the ContextMenu? ...

How can I configure my data services in Flex to call the same domain that the SWF was served from?

Hi All, I've got an HTTP service I defined in Flash Builder, via the "Data Services" tab. I've got an absolute URL in there right now. What I really want is to not define a path that includes a domain name at all--I want the service to simply call an absolute path that's on the same domain as whatever domain the SWF was served from......

ExternalInterface.addCallback does not work right

I have js code: function onFlashReady() { sendToAS("sit"); } function callJS(value) { onFlashReady(); return "Hi Flash."; } function thisMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return window[movieName]; } else { return document[movieName]; } }...

How to get all available cameras with actionscript?

I can get the default camera this way: Camera.getCamera(); But how to get all available cameras connected to my computer with actionscript? ...

How to render IP camera video with socket by actionscript?

So far the solution I found requires a crossdomain.xml to work,but this is not available on an IP camera: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init()"> <mx:Script> <![CDATA[ import utils.video.mjpeg.MJPEG; ...

Dynamic Radio Button with AS2.0

I am creating the radio buttons dynamically with AS2.0 based on XML data for a Quiz. when user select one of the answers [radio button] for a particular question and click next button for viewing next question. But later on if he want to check his previous question for which he just submit his answer; So problem is that how to show hi...

Browser crashes when switching to IP cameras in flash

Has anyone managed to switch to/from IP cameras with actionscript? ...