flash

Make Flex Builder debugger start listening for incoming debug session connections

Is there any way to get Flex Builder to connect to an existing browser session running Flash Player Debugger? I can connect to FDB like this, but with Builder I need to click Debug and rush to close the newly opened browser window before it loads the Flash file and then go back to the session I want to connect and right click it to start...

Flash & external form fields

Hey there... Does anybody know if this is possible? I am trying to create a flash movie that will show / preview what I am typing into a field in a normal HTML form. The call to update the flash movie would most likely be attached to an onKeyUp event. Any advice or tutorials would be great cheers! Decbrad ...

Javascript audio/video element control volume programmatically?

Flash has an API to control the volume for a Sound object. Can volume be controlled like this currently or is there support planned for <audio> or <video> html5 elements? ...

Audio Codec Nellymoser issue with recording on a Flash Media Server

We have setup a Flash program to record video/audio to a Flash Media Server, but have noticed that the audio packets are dropping out. We are using the Nellymoser codec and after looking at the recorded FLV, there is on occasion an audio packet that is set to Format: Uncompressed - PCM_BE Channel: mono SampleSize: 8-bit SampleRate: ...

Does Flash remoting keep the NetConnection Object open?

Hi, I've built a application that communicates with Coldfusion cfc functions via Remoting. I've noticed that the NetConnection object disconnects after each call, is this expected behaviour? For some reason I was expecting the NetConnection object to stay connected until I closed it myself (I'm making about 1 request per second and had ...

Flash implementation of `<audio>` and `<video>` tags for HTML 5?

Hey, I am trying to convert our all-flash website to HTML 5. But since so many users still use IE and other browsers that do not support HTML 5 yet, I am looking for some flash media players that can replace <audio> and <video>. My google skill does not yield good results. The flash media player should dispatch events specified at htt...

Using a For loop with an array and addEventListener

I have this map I'm creating in Flash. You click on a state, then you can click on an icon to view a tooltip/popup of some information. What I was trying to do was instead of creating new functions and event listeners for every different icon is to use a for loop...but it's not going so well. I haven't touched AS in a long time so bear w...

gotoAndStop oncomlete with TweenMax

Hello all I'm trying to get onComplete (frame 5 in this case) to skip to a given frame after a series of animations. Here is what i have written so far. Shouldn't this work? stop(); import gs.TweenMax; import gs.plugins.*; TweenPlugin.activate([DropShadowFilterPlugin]); import fl.motion.easing.*; TweenMax.from (redSquare_mc, 1, {x:...

AS3 JSON parsing

I have a bit of a dilemma. I have a JSON object that has a format I'm unfamiliar with (starts with an array [] instead of an object{}) and was wondering how I might parse it in AS3. The object looks like: [ { "food": [ { "name": "pasta", "price": 14.50, "quantity":...

How to achieve Comet using Flash

How can comet be used with Flash programs? What will be needed at server side for the same? Does this require any customised servers or will normal IIS or Apache do? Also is Juggernaut an example of flash based comet? how does it achieve comet? ...

How do you resize a movieclip without affecting the scale?

I have a movie clip object with a width of 306 and height of 194. I need to change the dimensions of the movie clip and still have the x and y scale set at 100. Currently when I change the movie clip width to 352.8, the x scale increases to 115.3%. I have to have the scale reset to 100% after I've adjusted the movie clip's width. Is t...

Duplicate Referrer Header - HTTP.sys barfs

I have been testing the PS3 browser (NetFront) with embedded Flash components on a web page and there seems to be a rather serious bug with the way that any requests from Flash are issued. The browser is adding a referrer (referer) and so is the Flash player resulting in duplicate headers. This is actually OK if the referrer headers are ...

drag file(s) from destop directly to flash webpage

Could someone please let me know if is possible to drag (multiple) files from desktop directly into a flash webpage. If yes could you please link me to some online resources. ...

Using JSFL, pulling items out of a library using libraryPath

I'm making a SWF panel to automate some file setup. I'm using the libraryPath JSFL command to point to some external libraries. How do I put an item from one of those external libraries onto the stage using JSFL? I've tried: fl.getDocumentDOM().library.addItemToDocument({x:0, y:0}, 'myItem'); ...

Learning basics of Flash related to video streaming?

I am currently working on a on-demand video project. There's a lot of aspects to this such as the recording, transcoding, setting up a streaming server etc. The client will be a Flash powered webclient. However there is one problem with that: I don't know any Flash (I'm a C++ developer). I am willing to spend some days or weeks learning...

internet explorer flash performance

I posted this to the Adobe forums but I don't expect a good answer there. I am looking for help from someone who has done a game in flash and has encountered the same problem. Steps to reproduce my problem: Create simple dot DisplayObject in flash dot.graphics.beginFill( color); dot.graphics.drawCircle( 0, 0, 2 ); dot.graphics.endFil...

Add/Tween/Remove - Multiple instances of the same MC (Tweenlite)

I'm trying to create a simple loop that adds a random number of stars, fades them out and removes them. The script I've come up with does everything but remove them, and perhaps I need a less on adding children to a stage. Here's what I come up with import flash.display.*; import com.greensock.*; import com.greensock.easing.*; // tim...

Communicating between Adobe Air or browser and Java Web Start

We're designing an application and the client has requested that a portion of their app stay in Java Web Start and another portion be in a browser. I'm thinking about AIR as an alternative to the browser because that may give us more features b/c we don't have to stay in the browser security sandbox. How would I go about having an Air ...

How to stretch out the movie clip after applying some Pixel Bender filter? (Flash)

How to stretch out the movie clip to twice its width and height after applying some Pixel Bender filter? I have some object with video on it (for ex 512 by 512) I apply a Pixel Bender Filter on it. Now I want to stretch the result (for ex to 1024 by 1024). How to stretch it? So my point is 1) Render the result of effect 2) Stretc...

How to detect Flash full screen mode and escape from it with JavaScript

I need a way to send notification to the browser that my website user has entered full screen mode in Flash. On clicking a link running only JavaScript within flash it escapes full screen and completes the rest of the JavaScript. Any ideas? ...