flash

Flash and Flex

I want to embed a Flash movie into Flex (Flex Builder 3), both using Action Script 3, and have my flash movie call functions in Flex and vice versa. Is this possible? ...

AS3 Timers vs. ENTER_FRAME performance

I'm building a game that got some moving things all the time, so I'm using a lot of Timer instances to control repetition and trigger motion. Now the thing is that I started to notice some performance "lags". Is this due to the timers? and do you suggest using ENTER_FRAME event instead? Related: Do you suggest any other library/metho...

How to send xml flex to php via post method in <mx:httpservice >?

i created xml in flex after that creation i post to php via http service but when i add like xml in http service flex throws error msg like Error #1096: XML parser failure: Unterminated element." What did i worng ? How to send xml data flex to php ? plz refer me <mx:HTTPService id="createxml" method="POST" url="http://####/admin/?do...

Flash Run-Time performance testing

Lee Brimelow got me thinking about my Flash Application CPU and Memory consumption in his blog. So I'm thinking if there is a good (non task manager) tool for performance testing? ...

DisplayObject snapshot in flex 3

i'm creating a visual editor in flex and need to let users export thier projects into Image format. But i have one problem: size of the canvas is fixed and when user add element which is out of these sizes some scroll bars added. And user continue working on the project. but when he want to take snapshot of the canvas he just get the vis...

Hidden Features of ActionScript3 / Flex

I found a lot of interesting info in the 'hidden features of...' series. I'm a AS3 developer so I want to add this question about AS3 as well for all the flash/flex developers out there. So, what are the lesser-known but useful features of AS3 and Flex framework that you know ? ...

How to add an image as pre-loader in a Flash CS4 file?

I have a flash file (.fla) which is created in Adobe Flash CS4. I want to add pre-loader which is basically a simple .gif image (my company logo). I want when someone run that flash (.swf) file, first for at least 3 seconds my company logo will be displayed and then the rest flash file will execute. I am new to Flash CS4, so can anyon...

troubleshoot ie flash 404

Hello I am having some trouble with a clients website. He uses wimpy player to load a playlist of his own hosted music. I've set up a test to demonstrate the behavior here . If you visit the site in firefox, everything works. If you visit in IE it doesn't. Further investigation shows that it can read the playlist, and makes a valid reque...

Flash AS3 drop shadows don't show up when changing height & width

In as3 I'm creating a drop shadow, which works fine. But when I change the height or width of the object (mcWhiteBorder) the drop shadow does not appear at all. Any ideas? var mcWhiteBorder:whiteBorder = new whiteBorder(); var dropShadow:DropShadowFilter = new DropShadowFilter(); dropShadow.distance = 1; dropShadow.alpha = .2; dropShado...

Parse multimedia files out of an HTML page (any language)

Given an HTML page I would like to get all the 'x' files that are embedded in the HTML file or are linked by it, where 'x' equals: Images (JPG,PNG,GIF...) Documents (Word, PowerPoint, PDF...) Flash (.flv, .swf) How do I do this? So images are easy to extract because they are either linked to with a link ending in a (.png|.jpg|....)...

Modal window in Flash

Short version: Is it easy/feasible/possible to program modal window in Flash (AS3)? Is there a built-in functionality for it? Long version: I’m working on a Flash widget (in AS3), and I would like to be able to show a movie clip in a modal fashion. Essentially, I need a simple modal window inside the wieget. So far I learned that that...

Sending custom HTTP error information to Flash, JavaScript, etc.

I'm developing a REST API at the moment, and one of the core features of this is that is uses a variety of HTTP status codes to return status/error information, some of which may be extended information (e.g. if an item is not found, some other similar items) which will be in the response body. This is fine until you get to 'crippled' c...

Is there an as3 video player that runs in flash player 9.0.16.0 ?

Hi, There is a known issue in Flash Player 9.0.16.0. It has to do with the FullscreenEvent. I guess because of that the FLVPlayback component doesn't work with this version of the player. I don't want to reinvent the wheel and build another FLV Player using the Video class. Does anyone know about a FLV Player that runs in Flash Player...

repeat number of event listeners?

In as3, if I add identical event listeners to an object, for examle txtField.addEventlistener( Event.CHANGE, changeCb, false, 0, true ); txtField.addEventlistener( Event.CHANGE, changeCb, false, 0, true ); would I need to remove that listener twice? How can I get a list or the number of event listeners on an object? ...

JS/Flash - Drag anchor containing img vs Drag img w/out anchor - How to get the img inside the anchor?

Cryptic title, but it's hard to explain. With Firefox, head over to http://images.google.com do a random search, and then drag the first search result to the URL bar. You'll see it it goes to the page that had the image anchor. Then click the "see full size image" link, and then drag the image to the address bar. In the first example...

Why does Firefox fire two requests for embedded swfs?

When a swf is embedded in a page and is not cached locally in the browser, two requests for the swf are fired by the browser. Here is a simple example. The first request returns an expected 200 OK, and the second request triggers a 304 Not Modified after the first request has completed, indicating the file is now cached locally. Why is...

Flash back button support

Does anyone know if there's a Flash (ActionScript) library for providing back button support? The GotMilk site does this. I was hoping there's a Flash library for this so I can provide and train a customer of mine to utilize this technique to build a whole site in flash. http://gotmilk.com/ http://gotmilk.com/#/gotmilkbrand/ ...

Have a HTML page play Flash movie only once (not when revisited...)

Hi guys, How would it be possible to have a HTML page play a flash animation only once, i.e. when a person goes back to that page, the Flash won't play again from the start but will just show the last frame of the animation (or even a simple .jpg image of that last frame)? Is it even possible? Thanks, L. ...

Weird sifr character issue

Hi. I've got the latest version of sifr working fine except that for one letter, it is looking very odd. the font is 'Tiresias LPfont' and for a uppercase 'O' it is creating a weird line through it at the top: http://tinypic.com/r/25qyflt/3 I've tried it every other letter uppercase, characters before and after it. In flash, when I cr...

Custom Event for height change AS3

how can i add an event listener to detect when the height of a DisplayObject changes. i have a holding Sprite with a border that needs to resize when any object inside changes height or is added. thanks. Josh ...