flash

how to store bitmaps into arrary in flex (action script3) ?

In my project i used image array with 16+16 32+32 48+48 128+128 different size of image for system tray icon but i put on bitmes then shows Error #2005: Parameter 0 is of the incorrect type. Should be type BitmapDat. public var imageURLs:Array = ['icon/toy.png','toy32.png','TOY48.png','joy128.png']; NativeApplication.nativeApplicatio...

What are the issues to be aware of when updating Flash 8 AS2 content for Flash 10

I have a large number of Flash projects that have been written in Flash 8 (AS2). I recently acquired Flash CS4 to update this content to the new version. I have some new functionality to add and want to take advantage of some new features in Flash 10 (local file access etc). I have already encountered a number of issues when opening my f...

How do I load a MOV file into Flash 9

I am having issues loading an MOV file into Flash 9. When I google the question, I get alot of people say sure you can do it, but nobody provides working sample code. ...

COMException (8004014) using ShockwaveFlashObjects in VS2008 on Vista x64

I'm trying to embed a Flash object in my app. I've added a reference to the ShockwaveFlash COM Object but the app fails at instantiation: ShockwaveFlashObjects.ShockwaveFlashClass shockwave = new ShockwaveFlashObjects.ShockwaveFlashClass(); With the following error: System.Runtime.InteropServices.COMException : Retrieving the COM...

Export animation sequence from Flash as JPEGs

I'm wondering if it's possible at all to sort of record/capture the state of an swf movie over a period of time and save it all down as jpgs to the server? AS3 has the new com.adobe.images.JPGEncoder class that seems to do the job, but can I capture a sequence? The hope would be that I could put it back together as a video or animation...

Why isn't flash updating the display while the mouse is clicked and moving?

I have a flash clip that moves a movieclip when the mouse is clicked on the movieclip. Something very basic. I'm not using drag (since the MC doesn't move with the mouse all the time), but rather using onMouseMove to update the MC location according to _xmouse, _ymouse and some other calculations. The problem was that under internet ex...

Using Flash Runtime as Platform (similar to JVM / CLR)

Does anyone know whether any compilers exist to produce programs that will run on the Flash runtime from source code other than Flex? i.e. similar to how Groovy, Scala, etc compilers generate bytecode for the JVM. ...

.NET webbrowser control automation

I'm trying to automate some stuff on a flash game running in a webbrowser control in my C# program. Using user32's sendmessage dll I've been able to click at coordinates on regular pages such as google but it doesn't work on flash content. Any ways I can do this? Also it cannot be detectable to the flash game. I have a working one in au...

Is it possible to make FileReference.upload() block (In ActionScript 3.0)?

I am working on a Flash file upload widget, and I want it to upload one file at a time. In my upload function, I currently have a FileReferenceList, and I am looping through it, calling upload on each one. However, since FileReference.upload is non-blocking, all of the uploads are going simultaneously. Is it possible to make the uplao...

Can I extend Function's prototype in ActionScript?

I am trying to incorporate prototype.js's bind() function into my Flash component. I found this article by Jordan Broughs, which gave me hope. He suggested using this code snippet: Function.prototype.bind = function():Function { var __method:Function = this; var object:Object = arguments[0]; return function():void { _...

diacritics in flash

Hi, my question is maybe a dumb one, but i cant help myself - i created a flash movie with a dynamicly inserted textfield, that loads its text from a file, but i have problems viewing diacritics like ľščťžýáíé in it. I tried to change font, but it didnt help. Can anybody help me? ...

sending messages to a flash game with C# / autoit

I'm making a bot for a flash game and I've figured out how to import all the autoit functions into my C# code. string title = "Minesweeper"; string full = auto.WinGetTitle(title,""); string handle = auto.WinGetHandle(full, ""); if (auto.WinExists(full, "") == 1) textBox1.Text = "window exists"...

Flash HTML image link AS3

I have a flash as3 file, and I'm importing an HTML file that contains this link: <a href="purchase.php?lang=0&"><img src="https://www.paypal.com/en_GB/i/btn/btn_buynowCC_LG.gif" id="paypal_button"></a> and I cannot for the life of me figure it out, I've looked everywhere. There were a couple of forums that suggested: function onTick...

Streaming video file?

Hi I need to stream flv file. streaming should look like live streaming. and I their should be a way to change target file. sorry for my poor English. ...

Flash inside a draggable div.

I have a flash video player sitting inside a div container. That is made draggable using javascript. I dont want it to be sensitive to dragging when the mouse is on the flash part. It should be draggable only when mouse is on the remaining div container. The expected behavior happens in Linux. However, in windows cursor on mouse makes it...

Dynamic alignment in ActionScript 2.0

Hello people, I'd like to be able to press a button and get a set of movie clips arranged in a row, how would I go about this? ...

JavaScript to Flash and Back?

I am completely new to flash. We need to load a binary file from the user system (must work in Flash 9) and do some process in flash and save it back to the file system. I think that this would have to be done by getting the file in JavaScript and then encoding it send it to Flash. ...

Creating Photo-Flow (itune-like navigation) dynamically - Any Free or Easy way to do this?

I'm wondering if there is a free script or easy tutorial on how to make photo-flow like the top of this website. It is similar to how itunes album navigation works. So far, all I found is this non-free photo flow. I was wondering if this can be done without paying any money. ...

Properly serializing flash.utils.Dictionary to a SharedObject

I have a convenience collection class in my Flex project called HashMap, which is essentially a wrapper around the flash.utils.Dictionary with a bunch of convenience methods and an added (synced) ArrayCollection so that I can pass the HashMap to bindable controls that want an ArrayCollection. That all works fine. What doesn't work fine,...

AS3 - Dispatch Event Issue

I have an Flash AS3 project that loads external SWFs and controls them in different ways. On some of the loaded SWF files, they have a "Next Selection" button that takes you to a new presentation. On my main externally loaded SWF, I have the code: setTimeout(function() {dispatchEvent(new Event("nextPresentation", false));}, 4000); W...