flash

Communicating between Java and Flash without a Flash-specific server

I have Java and Flash client applications. What is the best way for the two to communicate without special Flash-specific servers such as BlazeDS or Red5? I am looking for a light client-only solution. ...

Flash vs. Silverlight

We are building a training website where we need to track viewers watching videos and store detailed info about the viewing (when they paused, if they watched the whole video etc) What should we consider when deciding between the two technologies? I forgot to add. This is for an in house app. We have complete control over the environme...

Flash - Drag Two Movieclips at Once?

I'm trying to create a map application similar to this. Click the SWF Preview tab on the left of the image. Specifically, noticed how you can pan around, and the clickable buttons on the map move with it. Basically, how do they do that? My application has a map that you can click and pan around using a startDrag() function. I have a sep...

Flash/FLEX 3 Argument Error 2082

Has anyone else experienced this error? Sometimes it pops up at the beginning of loading the application with Argument Error 2082. The only way I can solve it is by rebooting my machine. Restarting the browser doesn't even solve it. I have read about some solutions on the web, but I am interested in knowing what others have tried using t...

Flash toggle snapping

long, long ago in a galaxy far far away, You used to be able to toggle snapping in Flash with the ctrl key. Let's say you were dragging the end of a line very close to another object. You could very easily hold the ctrl key down to shut off the snapping and get it in there nice and close without the snap. At some point, Macromedia re...

Can Flash save content without server-side help?

As far as I know, Flash has to pass info off to another external process in order to save files - POSTing to PHP or talking to an executable, right? But every once in a while I hear rumors that Flash is able to open a file, make changes, then save/write those changes, all on its own - is it possible? ...

How to play a sound in Actionscript 3 that is not in the same directory as the SWF?

I have a project with a bunch of external sounds to a SWF. I want to play them, but any time I attempt load a new URL into the sound object it fails with either "Error #2068: Invalid Sound" or raises an ioError with "Error #2032 Stream Error". // Tried with path prefixed with "http://.." "file://.." "//.." and "..") var path:String = ...

Problems with accessing FlashVars via parameters in AS3

I keep getting compiler errors when I try to access flashVars in an AS3 class. Here's a stripped version of the code: package myPackage { import flash.display.Loader; import flash.display.LoaderInfo; import flash.display.Sprite; public class myClass { public function CTrafficHandler() { var myVar:String = LoaderInfo(this.root.l...

How do I access cookies within Flash?

I'm looking to grab cookie values for the same domain within a Flash movie. Is this possible? Let's see I let a user set a variable foo and I store it using any web programming language. I can access it easily via that language, but I would like to access it via the Flash movie without passing it in via printing it within the HTML pag...

How can I get a hardware-based screen capture?

In the past, some of my projects have required me to create a movie version of a fullscreen Flash application. The easiest way to do this has been to get a screen capture. However, capturing anything over 1024x768 has resulted in choppy video, which is unacceptable. I understand that there are hardware based solutions for capturing fulls...

how do i add project references to swcs in FlashDevelop

I am trying to add a project reference or swc to papervision in FlashDevelop but intellisense isn't picking it up. I've done it before but i forgot how. Thanks. ...

Why are a DisplayObject's child's .name property and the results of getChildByName() sometimes different?

Can anyone explain the difference between the "name" property of a display object and the value found by getChildByName("XXX") function? They're the same 90% of the time, until they aren't, and things fall apart. For example, in the code below, I find an object by instance name only by directly examining the child's name property; getC...

QTVR-like Panorama in Flash/ActionScript?

It has been a few years since I used Actionscript. Back in the day, I made a project that emulated a QTVR panorama (at the time I was using Flash, you could only embed very basic mov files) by simply moving a very long flattened pano image left or right behind a mask. The effect was okay, but not as nice as a real pano, since the perspec...

Adding video to a site

In your opinion, what are the best options for adding video to a website assuming it would be rendered as FLV. What are the key considerations? Would you use a 3rd party service (youtube.com, vimeo.com, etc.) or host yourself? Why? If you used a service, which one? If you hosted yourself is it as simple as using an existing embeddabl...

Replacing strings inside SWF

We've got dozens of versions of an SWF modified for different customers of a big Flash project, and now would have to replace some strings embedded in scripts in each copy. The FLA file for some of these is very difficult to locate or even missing (I inherited this mess and refactoring it is currently not an option). Is there a (free) t...

Using Flash Component SWC file in Flex

I am accessing custom UIComponent via SWC file from Flex 3. This component works OK in Flash CS3, but using it from Flex gives A weird error in draw(). I have added swc component inside Sprite (with addchild) and its in LIB path. TypeError: Error #1010: A term is undefined and has no properties. at com.xxxx.highscores::HighScores/dr...

Can you read the body of a reply to a POST request from flash?

I am trying to POST a file to a server that replies with some basic status information in the body. Everything is easy from javascript but I was wondering if I could read the status information from the reply using flash. That way I can use the multifile picker flash provides and send several files at once. BTW would it work with PUT? ...

Flash Charts and Graphs exported for use in PDF reports - automation

I want to put beautiful charts in a report that is available via html and pdf. I'd prefer to use just one API and that all processing occur server-side. I want to embed Flash charts in the html version of reports. I want to embed a static image (preferably vector-based format) in the pdf version. What is the best way to accomplish thi...

How to know Flash Player Version from Action Script 3.0

There is a way to know the flash player version installed on the computer that runs our SWF file with Action Script 3.0? ...

How do I place HTML content above a Flash movie?

A site I'm working on has Flash headers (using swfobject to embed them). Now I'm required to code in a bit of HTML that's supposed to overlap the Flash movie. I've tried setting z-index on the Flash element's container and the (absolutely positioned) div but it keeps "vanishing" behind the Flash movie. I'm hoping for a CSS solution, b...