actionscript-3

RemoveChild frame animated MovieClip, will stop frame running?

If I removeChild frame animated Movieclip, will it automatically stop running the frames inside it? Actually without calling mc.stop(); ...

how can i make this code by oop

i've a button called profile_btn i want to make this code by OOP profile_btn.addEventListener(MouseEvent.CLICK,profile_btnClickHandler); function profile_btnClickHandler(ev:MouseEvent):void { //The actual code to jump to a specific frame this.gotoAndPlay('play'); } another question how to include 3 classes to a specific fram...

AS3 MOUSE_LEAVE problem

I am coding a drag and drop application where I can grab an object and then place it over different object containers. When I am dragging the object (keeping the mouse button pressed) and I leave the stage, I can still control the object with the mouse...this is not what I want. I would like to lose control of the object when the mouse ...

Barchart wth Annotations in Flex

Hi, I had developed BarCharts with annotations. Each bar is a one bar chart(displaying in attached jpeg). But i need total in one barchart with 4 bar series and annotations like a black line displaying in the middle (like,as shown in attached jpeg ) Please refer the below link. http://img256.imageshack.us/img256/4872/chartsc.jpg Data i...

using BitmapData.draw() on a streaming (RTMP) .f4v with OSMF

I am trying to use BitmapData.draw() on a video object, but using the OSMF framework. My hosting service has set up the following so that I can access my rtmp video: <VideoSampleAccess enabled="true">/</VideoSampleAccess> Simplified code is as follows: _videoURL = "my-url-here" resource = new StreamingURLResource(_videoURL)...

AS3 RadioButton label changes visibly when added to display list

I'm instantiating a group of RadioButton components into a Sprite and then later adding it to the display list. When the latter occurs, I can visibly see the font of the RadioButtons' labels changing from a serif to sansserif—but I have NO code to that effect anywhere. This occurs long after the components are actually instantiated, wh...

How can I make Flash work with a SharePoint List instead of XML?

I heard from an article somewhere that Flash can now use SharePoint lists instead of an XML file. However, I'm having trouble locating a tutorial which will explain how to get a Flash app to draw from a SharePoint list. Anyone know any good tutorials? I'm working with SharePoint 2010, Flash CS4, and I'm currently using AS3 to pull in...

[AS3] Get compile-time variable at runtime

I am trying to use the "define" mxmlc compiler option to embed compile-time constants into my SWF files. <mxmlc ...> <define name="NAMES::PluginCompileTime" value="Hello World!"/> </mxmlc> I can access this variable if I "hardcode" it into my codebase, as so: public static const PLUGIN_COMPILED_TIME:String = NAMES::PluginCompile...

How can you tell if a Tween is currently playing when using TweenLite?

How can you tell if a Tween is currently playing when using TweenLite? ...

cost of calling a class for a static const in as3

I'm wondering about the effectiveness, cost of, or resources used to call a public static const from a class Let's, hypothetically, say I have a class that has quite a few resources and calling the constructor is about 40kb of memory. Is there any difference in adding static constants to the same class as opposed to creating a small cl...

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 ...

As3 MP3 Player not loading

So as I stated in this other post.. http://stackoverflow.com/questions/3700338/as3-mp3-player-loads-when-opened-locally-but-doesnt-show-up-at-all-on-my-server ..my MP3 Player is not loading online, but works perfectly on my local computer... I was messing around with filse today and I finally got flash to give me an error...Could this b...

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...

Managing a core library in Subversion

This is giving me major headaches! I'm having trouble even describing the problem in words. Basically, I want to be able to manage a core library (coreLib) of Actionscript classes with the following requirements: latest version is checked out when a new project starts. a dev can make changes to the coreLib and then commit them back in...

Adobe Flex static analysis tool

Can anyone recommend a static analysis/code complexity/code metrics tool for Adobe Flex (MXML and Actionscript)? Something like Sonar or Clover? ...

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...

AS3 Video Encoding at runtime with high compression (H.264?)

I need to compress video image data (lets say a display object) in AS3 to a Byte Array with high compression at runtime. Framerate only needs to be around 5 but 1024x768 video needs to go to < 40 Kilobyte per Second without the quality beeing tooo bad. I wrote a custom encoder and got it to around 80-100 Kilobyte per Second for 1024*768 ...

Can AS3 Shared Objects be accessed by more than one application?

I'm trying to access a shared object created by one flash application from another flash application. Is this possible? If so, what do I need to do? If not, are there any other ways to share the information between the applications? Any help you can give is greatly appreciated. ...

Where to put a cross domain policy file?

If I have my .swf files on "SERVER A" and they need to access my video files on "FMS SERVER B", on which server to I need to put a cross-domain policy file? ...

Flex AMF Remoting request functions timing problem

Hi there, atm i'm trying to create a AMF request to a rails backend. I allready successfuly implemented the AMF communication, but i still got some problems with the custom functions i'm using. I created a function to request the server if a property in my SQL DB exists, the server return a boolean. In my flexapp the function looks lik...