flash

How do I play a flash animation in C?

I'd like to play a flash animation (SWF) in plain C (win32). I'm currently using the "AtlAxWin" window class to play it, but it's not very suitable. I'd appreciate any clues to directly use the flash player or even detect (in C) if the flash player is installed. ...

Using NetConnection and URLStream to send/recieve data at high frequency

I'm writing a Comet-like app using Flex on the client and my own hand-written server. I need to be able to send short bursts of data from the client at quite a high frequency (e.g. of the order of 10ms between sends). I also need the server to push short bursts of data at a similarly high frequency. I'm using NetConnection.call() to s...

FLVPlayback fullscreen button not working

In my flash video using FLVPlayback, clicking the fullscreen button doesn't do anything, either in the html-loaded version or (more troublingly) when running locally. I've set "allowFullscreen" to true in the object and the embed tags in the html version. There are no errors in the flash console when running locally. Example. Any ide...

Preloader Not Appearing Iin Chrome and FF (Flash AS2)

Hi, Recently I create a photography website which has a gallery showcasing different albums. I have done up the albums as separate swfs to be loaded into the main swf when selected with a preloader to indicate progess (and masking of the unfinished content till 100%). The preloader is a usual getTotalByte one, however when viewing this...

For VS Foreach on Array performance (in AS3/Flex)

Which one is faster? Why? var messages:Array = [.....] // 1 - for var len:int = messages.length; for (var i:int = 0; i < len; i++) { var o:Object = messages[i]; // ... } // 2 - foreach for each (var o:Object in messages) { // ... } ...

auto close a flash file

Is it possible to auto close a Flash banner after it's done playing in a browser? Can it be done through javascript? Or should it be configured in the flash file itself? ...

What is the best way to batch compile .fla files?

What is the best practice for compiling a bunch of flash movie files (.fla) as part of a build process? ...

Multiple fonts in flash.text.TextFormat

Is there a way to set multiple fonts in flash.text.TextFormat similarly as in flash.text.StyleSheet? What I'm trying to do is to have global common TextFormat for all texts in my project, and I would like to make it flexible by providing multiple fonts. I was deciding between flash.text.TextFormat and flash.text.StyleSheet, and in the en...

Linking two Flash Player windows together...

We have a Flex 3 application of which the main .swf is running in Firefox. Lets call this application Main.swf. I'm required to create a secondary .swf, call it Panel.swf which is to be embedded in a separate Firefox popup window, which will be invoked via ExternalInterface calling JavaScript from Main.swf. Is it possible to link Main....

Timeline actions not working CS3

This is quite a simple question. I can create a brand new FLA in CS3 and add trace("hello"); to the first frame, run it, and nothing happens. I create the same file with the same frame action in CS4 and "hello" appears in the output window. It's not major because typically I don't write any timeline scripts, but if I wanted to write ...

Efficient way to parse a <font> tag attributes using ActionScript 3

I'm curious how, in ActionScript 3, to parse the font attributes of an HTML formatted content string. Lets take the following example content string: var content:String = '<font face="Archer-Bold" size="12" color="#000000">My Content</font>'; I'd like to parse that string and create an object with the font attributes in it. So a resul...

AS3: How accurate are the getTimer() method and the Timer class?

I'm in the process of making a game (a shmup) and I've started to question the accuracy of the timers in ActionScript. Sure, they're accurate enough when you want to time things on the order of a few seconds or deciseconds, but it seems to perform pretty poorly when you get to finer ranges. This makes it pretty tough to do things like ...

Keyboard code mapping in Adobe Flash/Flex for the browser

N.B. Keep in mind the difference between key code and character code. For example, the number 1 (one) and the character ! (bang) both have the same key code but different character codes. Likewise, the number 7 from the row of numbers and the number 7 from the numpad have different key codes but the same character codes. I'm programm...

How do I stream video from an Axis 221 network camera to a web browser?

The camera supports motion jpeg and MPEG-4 video. I'd need to be able to play the video back in full screen mode as well as embedded on the page. I'm guessing playback via flash is the best way to do this, but I don't really know much about it. Does anyone know of an open source solution? Or even a commercial solution? *Embedding th...

Set alpha on radiobutton label

I'm trying set the alpha to 50% on some radiobuttons in AS3. The problem is that the radiobutton labels won't change. Anyone know how to fix this? ...

How can one simulate a web browser, or just the Flash plugin, to load-test a Flash-based web-application?

I guess I don't need the web browser, since network capabilities are built into the stand-alone player. I just need some kind of .NET component which will allow me to programatically start hundreds of flash players (with no UI) playing a specific SWF file for load testing purposes. The SWF file accesses a network service and downloads ...

Actionscript Translation transformation

Hi I am working on actionscript 3 which I have to use translation rotation scaling to a movieclip. I have the rotation and scaling working properly but when I dealing with translation I find the problem that the translation will move the object outside of the origin so when I wanted to rotate the object, the object no longer rotate as ex...

Mystery coordinate offset on getCharBoundaries

I've ran into a weird problem with getCharBoundaries, I could not figure out what coordinate space the coordinates returned from the function was in. What ever I tried I could not get it to match up with what I expected. So I made a new project and and added simple code to highlight the last charater in a textfield, and all of a sudden i...

Get IE proxy settings from action script

In our product we use a small flash applet for realtime communication with server application (rpc). We sell this product to corporative clients with internal security police, sometimes strange :) As i known (but not sure) flash socket connect to specified host directly, using system (or intranet) proxy settings, if needed. This is suit...

Flash game works on some computers but not on others

Hi All, I have a cvery strange problem and just cannot work it out and was wondering if anyone on here knows the solution. The problem i am facing is as follows. we have a flash game and it works on the computers in the office (flash player 10 and flash player 9.0.159) however when we try to run it on one of our laptops it fails and j...