flash

How to Site-Lock a Flash Application?

I have a flash application that I am going to put up on my website shortly. I want to be able to "lock it" to the site to prevent: Hosting the .SWF on another site (after an illicit download), and Preventing the .SWF from opening if included in an iFrame on another site While allowing: A whitelist of sites to be passed through/enab...

How to make a Flash PreLoader in AS3 Only?

I want to incorporate a Flash Pre-loader in my application, but I am using only Flex SDK/AS3/Notepad to code this beast. I don't have access to the Flash IDE. There are many tutorials and helpfiles online for how to do it within CS4, but not in the code itself. Can anyone give me direction here? Most examples seem to pivot around placi...

How to stop Flash file (.swf) from loading (ActionScript 3)

Suppose I have a large .swf file. Say, it's 10MB. I don't want the browser to load the entire file until user clicks a button in frame 1. I don't want to use external files. I just want Flash Player to download first 10KB, display frame 1 and then stop until user click the button. Is it even possible? ...

ActionScript 3.0, dynamic scroll bars

I'm trying to create some dynamic scrollbars for a project I'm working on in Flash (ActionScript 3). I had written scrollbars a while ago in AS2, but I can't seem to sort out everything in my mind for AS3. Basically, I'm looking for a tutorial exactly like the one at http://tutorials.parseidon.com/code-script/actionscript/flash-scrollb...

AS3 - Output what object has keyboard focus?

I'm having a problem with AS3 and keyboard focus, and I'm wondering if there is a variable or a function I can use that will output to screen the name of the object that currently has keyboard focus? ...

Netstream bufferlength is zero when pausing. How to prevent that?

Hi, I am using Flex 3 and FMS3 from where I and sending a videostream. I want the user to be able to pause the stream, then resume it. For this I am using the methods pause() and resume(). The problem is, when I call pause() the bufferLength is released and equals zero. Accordingly when I resume, the NetStream needs to start buffering a...

What is different between below method on flex in action script3 ?

NativeApplication.nativeApplication.exit(); - this method is used for exit the application of flex/air . application.close(); - this method also used for exit the application of flex/air - So what is different? ...

How to pass custom variables to Flex applications

I'm trying to write an application where parameters have to be passed to the application. In Flex builder I modified the and tags in the index.template.html, but when debugging I still don't see the variables passed (using from as3 the Application.application.parameters object)... ...

In Flash: gotoAndStop and nested MovieClip issues

This is kind of an odd question, I hope this enough information to go on: In the flash IDE, I have a MovieClip that has 3 frames. In each frame, I have a series of TextFields. It's a poor mans viewstack basically - so here's the issue - in FP10 I can write the following code with no problem: public function showMenu():void{ got...

CSS 100% height + header with static height;

I am building a layout which includes a header, which is 40 px in height. Underneath this header a SWF resides that should take up the rest of the available space. The best solution untill now has been working with a table, giving the first row 40px height and the second row a 100% height - but these rows still add up in Internet Explor...

What is the right way to embed a Flash movie for XHTML compliance?

I have a simple movie that has a tiny bit of Actionscript 2.0. What is the best way to embed a flash movie for XHTML compliance? Which version should I export for? The code that Flash automatically outputs is so bloated, I'm not sure what I need. Also, I noticed that a Macromedia URL is in the code, and now that Adobe owns Flash, I w...

ActionScript 3 - Opening External files

Does anyone know of a way to open an external file from Flash in ActionScript 3 without the request first going through the browser. Specifically, I want to open a PowerPoint presentation directly with PowerPoint. I've tried: var url:String = "MyContent/My presentation.pptx"; var request:URLRequest = new URLRequest(url); navigateToURL...

Why are .jpg's appearing yellow in my flash as3 application?

I retrieve .jpgs from my server and load them within my as3 app. I use Flash CS3, and am not using flex. Occasionally, some images will appear yellow and unreadable within the app. The actual original of the image is fine, and has no such yellowing, yet when I load the image in flash it appears yellow. This seems independent of size, cau...

Drag'n drop between two unrelated web applications

Assume you have two web applications running in two different tabs/windows in your browser. Is there a predefined interface in IE, Firefox or Google Chrome to pass data between the two windows? If so it should be possible to implement drag'n drop, right? Because I don't think this is possible I wonder if the same could be achieved with F...

How to add Stroke to Text in AS3?

I am coding in AS3 and want to add a stroke to text that I'm displaying to the screen. My current code is: format = new TextFormat("BN Elements", 14, 0xEEEEEE, false, false, false, null, null, "left"); format.font = "BN Elements" scoreText = initText(starsleftText, format, "", 160,5, 545, 61); scoreText = "Stroke This Text"; As the te...

How to export image from swf with ActionScript3/PHP?

Hi there, i have another piece for more advanced guys than me ;) I am developing a simple flash application to create your own coat of arms. When finished creating, it would be nice to save it as an image to a client's computer or to a database, i am not sure yet. The problem is making the image from swf content - i mean not the whole c...

Best way to skin flash player

Is there a good pattern to creating a flash player that is easily skinned, providing different dimensions, buttons, background color, etc? I've considered 2 approaches: 1 The player skin is flat. The logos and buttons are on one large background image. The actual trigger areas are transparent sprites, positions and dimensions defined by...

Best jQuery drop-down nav Suckerfish alternative that works with Flash?

I think that my Suckerfish drop-down navigation does not play well with flash. I've done everything I can think of, yet my drop-down navigation keeps displaying underneath my flash movie. If I replace the movie with an image, it displays just fine. Only when I use a flash movie does the navigation display underneath the flash movie. I ha...

Why does Flash's ExternalInterface *sometimes* not work?

I have a Flash movie which has a number of actionscript 2 functions which are exposed to Javascript via ExternalInterface. Normally this movie works fine and Javascript can communicate with it. But sometimes, intermittently and without explanation, the flash object in Javascript will not have the ExternalInterface functions. This happens...

embed flash in silverlight

How do you embed a flash video in silverlight, if the source file is provided? ...