actionscript

What's the best way to debug an inner swf that's loaded from a non-debug outer swf?

I have a swf that I need to attach the flex builder debugger to. I have full access to the source code, and can make a debug build of this swf. However, this swf is being loaded by a non-debug build of another swf which I don't have source code to, and can't make a debug build with. Is this possible? I've tried mocking this up with t...

Learning Interactive 3D in Flash

I'm interested in learning about 3D engines in Adobe Flash. I understand that 3D doesn't actually exist in Flash and must be accomplished with complex ActionScript, but the idea is so intriguing. Having 3D capability on a platform as widespread as Flash allows for nearly unlimited interactive possibilities for a web site, and would be ...

How can I best convert an AS1/AS2 application to an ActionScript3 application?

I have a program consisting of multiple SWF's. An AS2-SWF loads a bunch of AS1-SWFs. It's a crappy program. I'd like to specify the GUI in MXML and perhaps refactor some code to AS3. However, converting all of the 300+ symbols to AS3 or whatever is undoable. What are my options in converting to AS3/Flex/MXML? The app is very simple, o...

How can I get useful information from flash swf files?

I'm doing some crawling with Python, and would like to be able to identify (however imperfectly) the flash I come across - is it a video, an ad, a game, or whatever. I assume I would have to decompile the swf, which seems doable. But what sort of processing would I do with the decompiled Actionscript to figure out what it's purpose is? ...

Save an animated gif from an actionscripted animation

Is it possible to save a .fla file as an animated gif from an actionscripted animation? I know you can do it from a tweened animation quite easily, but haven't been able to figure out a way to do it from a scripted one. ...

Which actionscript / flash framework has the best tools for simple animation

I'm converting some Flex down to an Actionscript project and need to get up to speed as quickly as possible on a lightweight framwork for doing basic animation. The components may have some very simple data access - such as reading a list of images, but nothing clever. What I really want is an equivalent of Flex's 'AnimateProperty' or ...

How do i access the 'mx' or 'fl' namespaces in a Flex Builder Actionscript Project?

How do i access the 'mx' or 'fl' namespaces in a Flex Builder Actionscript Project? Do I need to include a certain .swc file? I cant seem to find which one ...

How to call REST-style service, protected by integrated Windows Authentication from ActionScript 3?

How would I connect a Adobe Flex/AIR based application to REST-style services hosted on a web site protected by integrated Windows Authentication? From my experiments, that the call is successfully made (by using the HTTPService class), the request is received successfully by the web server (in this case, I'm using ASP.NET MVC), but th...

Flex event handling

I have added an event listener for a particular event, for e.g. CollectionEvent.COLLECTION_CHANGE. Inside that event listener, based on a certain condition, I want to call the default event handler for that event. How is it possible? One way I can think of it is : Inside the event listener : If(Condition) { Remove event listener ...

Flash/Actionscript problem: can MouseEvents target more than one thing at once?

I have a special canvas class covering my entire stage, and a bunch of Sprite hotspots on the layer below. If I put the hotspots on the same layer as my canvas, the canvas does not register MOUSE_DOWN events if my mouse is inside one of the hotspots, since the hotspots are targeted instead. However, if I keep the hotspots on the lower la...

Is it possible to upload [MovieClip] images to imageshack using Flash?

Hello all Is it possible to upload a MovieClip as an image to a image hoster such as imageshack or flickr? If it is possible. Please give direction. Thank you all Update Even if this is possible, would the hoster require the image to exist physically in a file location? Update 2 I sort of know its possible now. But can someone ple...

How do teams use Flex Builder Pro to develop large applications?

We develop applications for the Flash platform, which have LOTS of run-time loaded assets (graphics, data, audio, code-libraries, etc.) Those assets are logically organized within project folders. Programmers and designers get the latest from version control, check-out their code or design work, test within a full local copy of the app...

Actionscript 3 : Problem escaping "\\" character in full file path

I am finding this task challenging in AS3. Excuse me if I am missing something basic/simple or some builtin method which can do this. I am not well versed with RegExp. I have a DYNAMIC string representing full file path which looks exactly like "d:\temp\abc.doc". I want to extract the filename part from complete string e.g. abc.doc. ...

confused about HttpService's useProxy (Flex 3)

I have a flex app, where the user can provide a link to a resource. I want to perform a simple validation and check if the url is actually valid (not just structure, but actually test the link to ensure I get a 200 OK). I figured I would just use HttpService and use the HEAD method, but it seems that this is only available when you set ...

Flex/Actionscript truncateToFit on label component

I have a number of labels in my Flex application which have the "truncateToFit" property on them set to true. The problem is that, instead of displaying '...' at the end of any truncated text it displays null. I.e if my label's text was: "Hello Stackoverflow!" I might expect my label to look like this: "Hello Stackov..." Instead it...

draw sprite into bitmapdata with a strange mask

I have run into strange behavior drawing a sprite into a BitmapData. This sprite looks fine when drawn directly to the screen. But when this sprite is drawn into a BitmapData, the sprite is being masked... but there is no such mask applied to that sprite! This "bad mask" can be toggled off and on... by applying / not-applying a differ...

Does Adobe Air have unconstrained file system access?

I've found several examples and documentation that show how to read and write files on the system, but all show user intervention or reading/writing files in user profile directories. There are a few things I want to do: Monitor system and other application log files for changes, then automatically load those files when changes occur ...

flash MenuBar component bug

When updating the data provider for a menu bar component, the state of the menu items fails to update until the user interacts with the menus (rolls the mouse over them, clicks them, etc). For example, a disabled item remains enabled until the user roll the mouse over it. Is there a way to force a menu 'refresh' after modifying the data...

Why doesn't setMask work is this example after it worked once.

I'm trying to use setMask to create 3 "windows" of masked movieClips in AS2 (CS3). The main window is masked fine. After clicking a button, I'm creating two additional windows, but the refuse to be masked No error, it's just that the mask is not applied, and the mask rectangle is still visible. All 3 windows are masked using the same ...

actionscript + javascript

Hello all. I'd like to call a javascript function from an embedded .swf file. Specifically, I'd like to call a function in one of my externally linked javascript files from within: function loadTrack(){ //Radio Mode feature by nosferathoo, more info in: https://sourceforge.net/tracker/index.php?func=detail&aid=1341940&group_i...