flash

Flash/ActionScript - Turning Off Accessibility

i've designed a UI in Flash IDE, have exported a lot of the objects for ActionScript, and program the application with an external document class .as file. in Flash IDE, i don't want any of my sliders or textFields to have accessibility options. i open the Accessibility panel (Window > Other Panels > Accessibility), and with the stage ...

How do you stop Flash Builder 4 Actionscript project launching Flash IDE?

I am trying to create an Actionscript project in Flash Builder 4. However when I debug or run it always runs in the Flash IDE. I want it to run in the standalone flash debugger without the Flash IDE! This is driving me crazy. Please someone let me know how I change this. I'm on Mac if that makes a difference. Much thanks! ...

How to use transparent BitmapData as a mask

I have a BitmapData object created dynamically that contains user-drawn shapes. I then attach that BitmapData object to a MovieClip via a Bitmap object and set that MovieClip as a mask to another MovieClip. The mask works but the whole bounding rectangle of the BitmapData is acting as the mask. But I want to exclude the transparent porti...

AS2 Inventory System

Hello, I'm attempting to create an Inventory System written in action script 2 (flash as2) I'm trying to create one that has inventory spots dynamically created and a movie clip remotely loaded into the mc in the inventory spot. I cannot find any online guide on how to do this (Only manual ones which you have to create the inventory sp...

error 1137: Incorrect number of arguments. Expected no more than 0

i found the error here what should i type in the constructor function between the braces to call the function to the main time line public function creation() { that's my code in the fla file //var createClass:creation = new Circle( this ); the constructor package { import flash.display.InteractiveObject; import flash.text.TextF...

Intercepting Ctrl + F4 keystrokes in a Flex application running in IE

Hello, Some of my Flash application components require to intercept Ctrl + F4 keyboard events. Unfortunately, the KeyboardEvent is not caught when running the app under IE since it is conflicting with the IE native shortcut (closing the active tab). Is there a way (ideally relying on Flash principles) to intercept such keystrokes ? Th...

Flash movie displays in IE, but not in Chrome

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="230" height="130" align="right"> <param name="movie" value="images/10.swf" /> <param name="quality" value="high" /> <embe...

How do I format a Date in Flash?

I could be overlooking something, but Flash / AS3 seems to be missing basic date formatting functionality. How do I get a formatted string from a Date ? There's a few options like .toLocaleDateString() and .toUTCString(), but that a bit limiting, to say the least. So, how do I format a Date object in AS3? ...

Is there HTML embeddable audio player which prevents downloading of the audio it plays?

I'm looking for an audio player (like jplayer) which can be embedded in a HTML page which will allow MP3's to be played but not downloaded. The problem: Flash players request the audio file from the server so the URL of the MP3 is present in the HTML source and can be copy/pasted in to the address bar to download the track. This will i...

me.com is coded with javascript+css+html only?

I wonder if me.com is coded with javascript+css+html only? No RIA language like Flash, Java right? ...

How To implement MJPEG-viewing flowplayer plugin?

This is a question about implementing a Flash plugin for FlowPlayer, allowing viewing of an MJPEG stream within the content area of the video widget. I'm tasked with designing and implementing an MJPEG-viewing plugin for flowplayer. If you have the requisite knowledge to answer these four questions, I'll be extremely grateful for any he...

Using imported shared fonts in flash as3 css

I have a main.fla, in the library, i created two new fonts: RegularFont and BoldFont. And I found the following piece of code somewhere, which works fine! var regularFont:Font = new RegularFont(); var boldFont:Font = new BoldFont(); var regular:Object = {fontFamily:regularFont.fontName}; var bold:Object = {fontFamily:boldFont.fontName}...

Capture video/audio from webcam, view it and send as a file to server (ex. youtube) in flash/actionscript

Hi, people! I'm new in AS and trying create util such Youtube's "My webcam". Here's a part of my code: var camera:Camera = Camera.getCamera(cameraIndex.toString()); VideoDisplay.attachCamera(camera); //view yourself var mic:Microphone = Microphone.getMicrophone(0); video = new Video(); netconnection = new NetConnection; netconnection.c...

how can I read the movie settings in AS2?

I need to use the movie's predefined framerate (not it's real time performance FPS, but just the number it was designated to run at) as well as the movie's width and height, using AS2. Is this possible? I can't seem to find what object I should be examining for this information. [EDIT] I see that Stage has width and height but nothing ...

Browser-neutral way to start local process from intranet

We currently have a corporate intranet built with ASP.NET and originally designed for IE. One of the purposes of the intranet is to manage file versioning and to launch programs with the current file version. This requires the intranet to start processes on the machine locally, and is done using ActiveX. We are now reworking the intra...

Spring security as applied to Flex AMF channels?

The Spring/BlazeDS documentation is not clear on what happens if you just put <flex:secured /> Within the <flex:message-broker> stanza. That is, do not put any of these in there: <flex:secured-channel channel="my-amf" /> What happens? Will all channels be secured by default? or no channels? Piggyback question: Even if you put i...

How do I change the values of arrays from different classes?

How do I change the values of arrays from different classes? i've array in one class called creation all the array are global variable import addClass; public var first1:Array = new Array(); public var op:Array = new Array(); public var second:Array = new Array(); public var res:Array = ...

Flash AS3, Redirect after movie plays - with php driven querystring.

Hi folks, I've got a situation where I have a visitor arriving at a php page with a ID key. They then navigate to page 2 where they key id is carried along in a querystring variable. i.e. http://www.mysite.com?x=abcde12345 Page 2 has a flash video on it - that is playing a movie. Once the movie stops playing I want flash to redir...

Flex: Error message about "well-formed" markup, even though XML is well-formed

I am reading attempting to load XML from a ByteArray as follows: var xmlString:String = myByteArray.readUTFBytes(numBytes); var myXML:XML = new XML(xmlString); When I do that, I receive the following runtime error on the XML constructor when I run in Flash Player 9: TypeError: Error #1088: The markup in the document following the roo...

Facebook FB.ui stream.publish error

Working on a project that has a website and a Facebook page. They both reference the same SWF file and JS code that the SWF file uses to interact with the website/Facebook. The custom Javascript action, which invokes the FB.ui() method for sharing, works so much in that the dialog/popup appears, however Facebook results with an error ("...