flash

Secure communication between Flash and PHP script

I have little knowledge of Flash but for a little Flash game I have to store score and successful tries of users in a database using PHP. Now the Flash runs locally on the users computer and connects to a remote server. How can I secure against manipulation of game scores. Is there any best practice for this use case? ...

Flash rendering: optimisation tips and tricks

I'm about to push out a website soon and so I've gotten in the last stages. Time to optimize the baby! The website performs pretty good overall, with an average framerate of 32fps. But at some heavy animation parts it likes to drop a couple of frames to about 22fps. Which is not that horrible. But I'm tweaking it as much as possible to k...

How do I visually "break out" of a Container in Flex?

Here's my problem - I have some code like this: <mx:Canvas width="300" height="300"> <mx:Button x="800" /> </mx:Canvas> So the problem is that the Button inside the canvas has an x property way in excess of the Canvas's width - since it's a child of the Canvas, the Canvas masks it and creates some scrollbars for me to scroll over...

flash: for loops running slow

I have a question about loops in flash.... In a tile game I'm making a have a mini map of the whole level. The way it renders the map is a function with a for loop in another for loop. It cycles through each tile position and attaches a map piece (basically a 3x3 pixel square) which is colored according to what the tile is. Anyway, my p...

How to dynamically create an Actionscript 2 MovieClip based class with

I have a helper method has been created which allows a MovieClip-based class in code and have the constructor called. Unfortunately the solution is not complete because the MovieClip callback onLoad() is never called. (Link to the Flashdevelop thread which created the method .) How can the following function be modified so both the c...

Training path to become an expert in Adobe Flash and ActionScript

Hi, I would like to become skilled developing applications in Flash. What is more, I would like to grasp a better understanding (doing instead of only reading) of the Flash ecosystem and their real potential to apply that knowledge in my own projects. Which resources (books, tutorials, exercises, etc) do you recommend to learn in dept...

When should an oldschool flash developer use flex?

What are the key differences between Flash and Flex? I have over five years experience with flash and feel very comfortable developing with it and ActionScript3. I find myself more and more curious about Flex and want to know when it is best to use flash or flex. Also, is everything that can be done with MXML, able to be done with AS3...

Runtime CSS fails silently when Flex application is loaded by a non-Flex application

I have compiled a CSS swf file which includes embedded skins for my Flex application. In our download product, this CSS works fine. On the web, a non-Flex container is loading the Flex application, and the CSS fails silently. When the application is debugged, the following runtime error can be seen in the trace output, but is not rais...

Cross Browser Flash Detection in Javascript

Does anyone have an example of script that can work reliably well across IE/Firefox to detect if the browser is capable of displaying embedded flash content. I say reliably because I know its not possible 100% of the time. ...

In Flash, how would I run an e4x statement when that statement is stored in a String?

So I have something like this: var xmlStatement:String = "xmlObject.node[3].@thisValue"; What mystery function do I have to use so that I can execute xmlStatement and get thisValue from that xmlObject? Like.... var attribute:String = mysteryFunction(xmlStatement); P.S. I know eval() works for actionscript2, I need the as3 solution....

What is the best way for a website to check if a user has installed a client app?

Let's say I've got a website that works better if a client has installed and logged into a desktop application. I'd like to be able to do 2 things: Alter the website if they haven't installed the app (to make it easy for them to find a link to the installer) If they've installed the app on a couple of machines, determine which machine...

Flex: Modify an embedded icon and use it in a button?

Just that, if you embed an icon: [Embed(source='icons/checkmark.png')] private static var CheckMark:Class; You end up with a dynamic class. You can pretty easily assign the icon to a button at runtime by calling the setStyle method: var btn:Button = new Button(); btn.setStyle("icon", CheckMark); But what if you wanted to alter the ...

How do I launch a standalone SWF from within an Adobe AIR application?

I'm completely new to AIR but what I'm trying to do feels like it should be quite easy. I want my AIR app to execute (launch) an SWF in the standalone Flash Player (just like if I were to double click it). Please note that I don't want the AIR app to embed the SWF. Just run it. Can this be done? ...

Picture over Flash

Do you know any solution to put a picture over a Flash? It must work in IE6, IE7, Firefox for Windows, MacOSX, Linux and Safari. ...

Scrollable regions in ActionScript 3 Visualization

What is the best way to create several scrollable regions in an ActionScript 3 visualization that extends flash.display.Sprite and makes use of hierarchy of of low level DisplayObjects (Sprite'a, Shape's, TextField)? I have tried to use three mx.containers.Canvas objects added as children of the main Sprite and have also tried converti...

Flex graphic assets: SWF or SWC?

Which is a better format to store graphic assets for a Flex application, SWF or SWC? Are there any real differences, and if so what are they? ...

Flash Banners Conflicting with Pop-Up Blockers?

We've been creating banners using the getURL linking method (in a blank window). For many people, it works just fine. You click the banner and are taken to our site. For others (me included), clicking the flash object triggers a pop-up warning in FireFox (both 2 and 3, default settings). The weird thing is that it doesn't happen for ever...

Running a SWF from file:/// without having the user change their Flash Player security settings...

I have a Flex app that does a a fair amount of network traffic, it uses ExternalInterface to make some javascript calls (for SCORM), it loads XML files, images, video, audio and it has a series of modules that it could be loading at some point... So the problem is - we now have a requirement where the user needs to run this content loca...

Flash IDE - Find a symbol in the library

I've inherited a flash project (my first) that has many existing symbols in the library. They are organized in a large complex hierarchy of folders. Often, I find a reference to a symbol in actionscript code, but can't find the symbol in the library. The "Find" feature only searches for instances of a symbol. If none exist, is it possibl...

Free/Paid Flash Video Players?

I've been looking into the FlowPlayer recently for a new project. What other alternatives are out there (Free OR Paid)? I'm interested in speed, usability, features, and customization capabilities. Any help or further information is appreciated. ...