flash

Flash Restacking in Old Index Order With New Top.

My Brain Is Going to Explode.. . I have five images all named 0,1,2,3,4. I have five buttons, btn1, btn2, btn3, btn4, btn5. The buttons are laid out like: • • • • • when an image (lined to a button) is active it looks more like this if image 1 is active: • (•) • • • A timer is running, at the end of 240 seconds, the image on the b...

How does scaleX/scaleY work on Bitmap?

I'm using a Bitmap cache that stores down a few Bitmaps. I called scaleX/scaleY on some of them, but the next time I retrieve from the cache, the Bitmap is screwed up. How does scaleX/scaleY work with Bitmap? ...

Flex bug trying to import actionscript files

The "import "Player.as" line throws the error: 1084: Syntax error: expecting rightbrace before semicolon. package { import "Player.as"; //ERROR import "Card.as"; public class Game { I was going great with Flex, until I tried to split up my code into separate files. Now I'm struggling. Here are my files and their dependencies:...

Float HTML elements over .swf file without triggering flash events.

I was wondering if anyone has came up with a way to float html elements, with some content, over .swf without triggering any flash events. In my case the problem is I have flash map, and drop down menu on top of it. I simplified this into the following example: http://f1vlad.com/etc/d.html If you mouseover any elements in gray box, ...

C# Flash - ExternalInterface

We are hosting the ActiveX control in a WinForms application to embed flash. Is there a good way to get the list of visible ExternalInterface functions that are available for any given swf file? We are working with a 3rd party swf file, and do not have access to source. If it's not possible from C# (or code), is there a tool out there...

How can I add an image to my Flex application at with ActionScript?

EDIT: I just needed to add: import mx.controls.Image; I have an MXML file, and when I can add image tags to the XML and it works. But, I can't figure out how to create an image and add it to the canvas programatically with AS. I was hoping this would have worked: var card:Image = new Image(); //ERRORS ON THIS LINE: call to possibly u...

How to optimize modular flash apps (load time & flexibility)?

Hi all, I'm working on a large application that is broken up into many independent swfs. There is a master swf that loads a navigation shell and the foundational logic, and a module loading system that loads child swfs into the main display area. This is all working smoothly, and now I'm onto building the modules, and I'm starting to fe...

flash external ExternalInterface call in as2

I have an external interface call which should retrieve some text from the html that the swf is embedded in. var name:Object = flash.external.ExternalInterface.call( "function(){return JSObject.get('Resource', 'name');}"); When I put the variable name into a textbox I get the correct text. when I use geturl with a clickTag, unde...

Facebook Flash Application background color doesn't show up

How to make the flash background color show up? I tried swfbgcolor doesn't work... ...

What's a fast, efficient way of looping 4 images being faded one after another?

I'm trying to figure out an easy way to fade 4 (or any number) images and loop it so the last image fades in with the first image. I threw something together which is pretty horrible, and doesn't even fade the last image into the first. The code is included below for you to laugh at. Any idea how I could improve this? function beginTwe...

Flex - Using the vanilla preloader to load additional assets?

I have a Flex application that automatically loads the SWF and it's contents and displays the default progress bar like in all Flex apps. Currently I have a class in the application using a Loader instance to load an external bitmap to be added to the stage/canvas. I'd like to handle the loading of this bitmap in the Flex default preload...

Flash Movieclips children Lost

Hi, I have a empty movieclip container in which I add movieclips as children. But when I try to get the children it does not trace/return anything. Here is my code. // Creating Container var competencyContainer:MovieClip = new MovieClip(); competencyContainer.name = "competencyContainer"; this.addChild(competencyContainer); var lastx:...

Flash plugin which allows image upload from clipboard to server

Hi I want to embed a flash to my site, that allows the user to paste an image which is in clipboard, and this images will then be uploaded to the server. Is there a script that can do that? i googled for about an hour now, but didn't find anything that fits my needs. the best thing would be if you also coul crop your image when its up...

Feature or bug? 3D perspective in Flash Player 10 changes as objects are added to the stage

In my AS3/Flash Player 10 app, I've got a movieclip on the stage with its own transform.perspectiveProjection properties configured; in particular, I'm explicitly setting its projectionCenter so that it has its own vanishing point (see this question for details). I'm adding functionality to my application so that if a user clicks one of...

Using the Real Time Messaging Protocol (RTMP) in Flash

Flash can use the RTMP protocol to exchange data between a server and a client. How do you typically access this functionality in AS2 or AS3/Flex? For example to use sockets you use the XMLSocket (AS2) or Socket (AS3) classes. Does the server-side RTMP software use Sockets under the covers? or is it HTTP with tunneling? The Real-T...

How can I dynamically change the width / position of a timeline-animated mask?

I've got a movieclip with two layers - a background movieclip, and above that, a mask movieclip (as you might guess, this layer is masking the first). Due to design necessity, the mask is animated on the timeline across 60 frames. The problem arises when I use an Event.RESIZE listener to change the width of the parent movieclip when th...

Flash/Flex runs slower on Mac?

I was in the middle of developing a Flex applcation, and then I recently switched from Windows XP to Mac. My app is noticeably less responsive on my Mac than on Windows, and today I proved it's not a hardware issue, because I ran the App on my Mac and a Window XP on Virtual Box side by side, and IS much more responsive on XP. Things like...

toggle play/pause button

Im new to this flash and I am using as2 for the action script I wanted to know if there are any good tutorials on how to create a toggle button so far this is all I have. on (release) { play (); } on (release) { stop (); } I wanted so that when you hit playit would start the animation but showing the pause button and vice versa. ...

voice chat software for websites - flash?

Hi I am a .NET & Flash developer and looking for any keywords, software, tutorials on how i could implement a voice chat system which runs through a website so a client could talk to a customer for example. I've had a look and I can see a lot of Flash based software which is ok....any recommendations? thanks ...

Flash buttons take focus off of screen

In my flash movie, every time when I click on a button, it takes focus off of the stage. And I have to reclick the stage in order to interact with it again. Is there away to fix this issue. I am making a game and it will be very annoying if the player has to keep reclicking the stage in order to take control of the game every time they c...