flash

ActionScript 3: how to get the class by just having the name

hi, i am trying te recieve the class with only having the name of the class so example: var className:String = "TheClass"; var theClass = new className(); is this possible? ...

Is it that hard to port an application to 64 bits?

I was surprised to read that Adobe discontinued the 64 bits version of Flash for Linux. While there is a new 32 bits version, and Adobe advises users to use the 32 bits version of Firefox instead. Was wondering, as I didn't have to do that yet, is it that hard to port an application to 64 bits? Besides the libraries changes and the reco...

flashvars help, dymanically load an XML file

Hay, i have a flash movie which loads a static XML file, the script for this looks like list = "list.xml"; var listXml:XML = new XML(); listXml.ignoreWhite = true; listXml.load(list); I want to be able to change this 'list' variable dynamically, perhaps using flashVars. like this var flashvars = { xmlpath: "list.xml" }; Any i...

AS3 Performance: Many Arrays vs One Array + 'is'

I have quite alots of display objects to manage during runtime, so Im currently using Arrays to manage them. But the problem is I have few many types of displays objects(eg. Tile, Npc and Building) which are basically MovieClips linked to the library. Each display object plays different role where it will be checked on enter frame, a loo...

How do I move the origin point of a MovieClip in Adobe Flash CS3?

How do I move the origin point, or zero point, of a MovieClip to the same origin point of the stage without scripting in Adobe Flash CS3? Example: While I'm trying to move objects within a MovieClip, the origin point is at (stage) 200,-300. This means that when I put objects in a MovieClip, the objects' X,Y coordinates, as displayed in...

Flash not finding crossdomain.xml (Amazon S3)

Hi all, I have a flash app hosted at www.example.com that is trying to pull in assets from my Amazon S3 bucket at http://s3.example.com I have a crossdomain.xml file that is world-readable at the root level of the bucket. s3.example.com/crossdomain.xml The contents of that crossdomain.xml file are as follows: <?xml version="1...

What's the AS3 equivalent for MovieClip.CreateEmptyMovieClip?

I have some older AS2-style Haxe code which uses flash.Lib.Current.CreateEmptyMovieClip() to create a slideshow of disk-based images. It creates a new clip for holding each image and simply fades each image in and out with alpha levels. Compiling it with -swf -swf-version 8 creates an SWF file fine and this works in the browser. Howeve...

swf file to just delete flash cookies

Hi, I'm trying to find a javascript method to delete flash cookies on a page, but with no luck. I know it can be obviously done through flash or flex, but the problem is I know nothing about flash, flex and actionscripts...So my question is: Is there a way to just load a prebuilt flash movie in a page, which just programmatically deletes...

Slideshow Pro - Flash loads but images do not. Why?

I installed Slideshow pro, with swfobject here: http://globalhealth-dev.oit.duke.edu/whos-involved/alumni The flash loads but the images do not. I have double checked the image paths to death and they appear to be correct. Here is the html: <object id="alumni" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="520" height="2...

Javascript loses communication with flash when moved inside dom.

Code inside Actionscript: var methodName4:String = "startupload"; var instance4:Object = null; var method4:Function = startupload; var wasSuccessful4:Boolean = ExternalInterface.addCallback(methodName4, instance4, method4); function startupload(currently_uploading_id) { /* If there is still more photos to upload, then proceed to ne...

show flash using original canvas size dimensions

I have a generalized media player web app that I wish to be able to use flash in. The client uploads the flash to a particular directory, and a webpage is produced automatically that houses that flash file. The output of this process currently looks something like this: <OBJECT id="flashContent" classid="clsid:D27CDB6E-AE6D-11cf-96B8-4...

as3 events dispatching and listening

I want to have a main logic class that listens for dispatched events from an assortment of other classes. for instance: i have a parent Map class that contains X instances of a State class. When the user clicks on a State class, i want to dispatch an event CLICKED along with the name of the state. now this Logic class will see this ne...

access to .swf API

Given a .swf file, is there a way to inspect the API provided? I have a FLASH .swf file on a web-page that plays .mp3 and I'd like to control playback through a Google Chrome extension but it seems I can't find documentation on their API. ...

HaXe -- code refuses to work

I have the following code: package ; import flash.display.DisplayObject; import flash.display.Graphics; import flash.display.MovieClip; import flash.display.Shape; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.geom.Rectangle; import flash.Lib; import flash.utils.Timer; /** * ... ...

Haxe flash API -- how to get/set the the flash display size?

How do i get and set the size in pixels that the flash file's drawing output is? ...

Flash Percentage Bar

Do you know any open source option or tutorial for showing percentage bar flash(i will use for show user's feedback score) ? Example(The bar which is filled green): http://profil.gittigidiyor.com/usatr34&amp;fb=ver&amp;s_select=s ...

To display traffic using the google map flash api

Hi, I've been wondering to to display traffic information using google maps flash api. I've read google maps api references but i couldn't find anything like Traffic layer in the google maps JS api v3. Is it unavailable to display traffic information using google maps flash api? Or any alternate way to display traffic info in the flash...

Adobe Air - Opening a File With Air

So I've created an Air app that saves to a custom file type. I've set up the file associations when I publish the app and, when you double click the file it opens the air app. What are the hooks for me to detect that the app has been opened via a file? Obviously, I need to detect this and then get the app to open the file itself. ...

Windows Safari 5 bug when using backspace in a Flash web application

I have noticed this bug when developing my flash application on a windows platform. If typing text in to a text box in a Flash swf running in Safari 5 browser on Windows then press backspace the browser will jump to the previous page in history rather than performing the function that backspace is supposed to - here is a link to another ...

How does flex know where to look for .swz files?

I don't do flash myself: in this company, flash is generally used just for design elements, so the designers build the flash and my job is just getting it onto the site. All fine so far, but now one of the designers wants to move to using Flash Catalyst. Here's my understanding of how it works. If I'm wrong, please tell me. 1. Flash Cat...