flash

Set Selection in AS3

How do I get Set Selection to work in a text field. I have a text field inside a movieclip and a button with a click listener on it. When it clicks I want it to select all the text inside. This is what I have so far, I hope you can help. send.addEventListener(MouseEvent.CLICK, function() { panel.tweet.selectable = true; stage.f...

How do I get the position of a swf generated from an fla file that had a larger stage?

I have assets in external swfs which I load. I would like to know the exact size of the stage and the position of the asset in the fla that created it. If I try to ask the resulting MovieClip for it's size, it turns out it gives me the size when it is trimmed down to the tightest box around the non-transparent pixels. Looking at the c...

Why would an SWF load in the Flash CS3 IDE but not the browser?

I have five SWF files that are loaded into a main SWF. All five load when testing in the Flash CS3 IDE. When testing in the browser, only three of the five SWF files load. Loading just haults after the first three. No IOErrorEvent is triggered, and I am sure that the URLs for the SWFs are correct. I have used MonsterDebugger to pinpoin...

Online Media Converter

Where can I convert my SWF file to mp4 online? When I say online I mean that I don't have to download a desktop application to do such, all shouldbe done on the website. www.media-convert.com doesn't seem to work so that's out of the list. Can anybody suggest some other sites? Thank you so much! ...

How to I check to see if the browser supports flash?

hello all, I have a flash banner that I want to replace with a static image if the clients browser doesn't have flash enabled. I was wondering if I can do this with php - or if anyone knows of a good method Thanks ...

Any Open Source Tools to test the FLASH Application ?

I have tried with the below things , FlashSelenium FlashWatir Except these any other tools available ? ...

Get the print screen image from the clipboard

Is there a way to Get the print screen image from the keyboard. Say for example I had a image hosting site and wanted a feature where users could paste in an image and simply host it that way. would that be possible? Sorry this is such a vague question. EDIT: Would it be possible with some sort of third party plugin? Are there any exi...

Embed many graphics using an array

In AS3 you can embed a graphic into a Class variable: [Embed(source="MenuAssets.swf", symbol="topSquare")] public var TopMenuItem:Class; I have hundreds of assets in this one website project I'm doing, so I want to embed assets into an array for quick access. Can I do something like this? Its not compiling so I'm wonderi...

Drupal + AMFPHP + Simplenews. Is it possibile?

I'm integrating Drupal with Flash using AMFPHP as a service. Everything works as expected with view.get and node.get The problem is that now I need to integrate the newsletter making flash "talk" with simplenews since simplenews works as a module I can't find a way to let them talk. What I would need is to send an email address and g...

Creating drag bar purely in actionscript.

I've been having trouble creating a mechanism to allow the user to select a span of time from a timeline. Basically i want them to be able to click and drag horizontally, and retrieve the start and end positions of that event. I especially need to include the case where the event goes off the edge of the screen (even if the end positio...

How do I get GPU acceleration for H264 in an Adobe Air fullscreen app?

I'm toying with an Adobe Air app that plays quite large movies. I want to run it on a 1920x1080 display connected to a Mac. Unfortunately, the movies tend to stutter and I'm betting that happens because I'm not using HW GPU acceleration for H264 playback. Most of the player code is ported (aka copied) from a web player I built and which...

Main Class - sub classes

I've just started AS3. I like to use proper programming methods when I program - and I'm not sure how to write code in the symbol classes that is recognized by the main document class. If I put all my code into the document class it works fine - but WHAT a mess!!! Surely this can't be how it's supposed to be done? I've been away from a...

Flash: Grant access to webcam programmatically / behind the scenes?

We're building a kiosk app that will have a fairly wide deployment. The app is in Flash running in a browser and requires the use of the webcam. As it stands, each kiosk will show the usual Flash "do you want to allow the use of your camera/microphone" dialog, which I suppose a local admin could click through, choose "remember," etc. Gi...

Help needed with AS3 Sound.extract()

I'm trying to create a parametric equalizer in Flash. I've been looking for a way to read audio data and mess around with the samples before Flash plays them on the fly. Loading a sound in one Sound object and using Sound.extract() to read the data, processing it, then play a second second empty Sound object and writing the data to its s...

How does Flex click event work inside of containers?

I have a VBox, I assigned a handler to click, and inside the VBox I have components such as images and texts with no handler assigned for click. Would the click function be called when I click on the text and image? If not how can I make it so without assigning handlers individually, but on the container level? Thanks ...

Flash and as3 question

So this is a weird error that I am getting because I have four movie clips on my frame that I have running back and forth across the screen in a frogger like game. Three of them work and the fourth one does not even though I have the same code basically for all of them. Why would I get an error for one, but not the other 3? Here is my co...

Strategy for supporting international keyboards in Flash/Flex

I have an Flash/Flex application that is showing weird behavior when used in conjunction with international keyboards. For example, I have extended TextInput in this app to allow for special behavior when the user presses the hyphen ('-') key. When this happens I want the text of the input to be padded with zeros in addition to the typ...

Can I use SAML in a Flash app

I have a WCF service that uses SAML for authentication/authorization. Now we want to use this WCF service from a Flash application, but is this possible? We already have an Identity provider that can provide a SAML token using a REST endpoint. The question is how we can send the SAML token to the WCF service, and as bonus can we use the ...

Save ByteArray generated by Pixel Bender

I am building a Flash Application which will allow a user to mix two mp3 files and send the mixed result to our server. Using Pixel Bender I am already able to create a mix: public class Mixer { [Embed(source="mix.pbj", mimeType="application/octet-stream")] protected var NewFilter:Class; private var shader:Shader; private v...

Notify me when the Flash movie is done playing

Guys, I'm new to working with flash and have a quick question about embedding flash with the SWFObject.js file. I can successfully embed an object and play it, but what I'd like to know now is if there is a way that I can be notified when the movie is done being played without editing the flash file itself, since I have no real way to ...