actionscript-3

ToolTip window help in Flex

How i can create pop-up window (with some text)when focus on TextInput (like in windows xp when i focus mouse cursor on file it shows short info). ps: example of pop-up in windows xp ...

how can i get MC in stage function??

hi, i create three circles. if a circle is dragged to right side of the stage, it becomes invisible and vice versa. when MOUSE_UP is invoked, it must stay in its last position. so in the appear() function how can i assign the selected circle to current_mc? function createCircles(evt:Event):void { for(i=0; i<3; i++) { ...

ActionScript Aligning Graphics Line Style Stroke?

is it possible to align the stroke of a graphic with actionscript? for example, the following code creates a black rounded rect with a grey stroke that is automatically centre aligned. var t:Sprite = new Sprite(); t.graphics.lineStyle(5, 0x555555); t.graphics.beginFill(0, 1); t.graphics.drawRoundRect(25, 25, 200, 75, 25, 25); t.graphic...

Is it possible to broadcast audio to shoutcast / icecast / other server? from flash player?

I am trying to create a flash client that can stream audio to an online radio server. Theoretically a user could enter the server info / login, and then connect and start sending data to the server which could then be broadcasted and listened to by other clients. I don't think this would be very hard, but am unsure about what data form...

ActionScript Drag and Drop Display Objects With Mask And Filter?

i've created a sprite to drag and drop around the stage. the sprite is masked and has it's mask as it's child so that it too will drag along with the sprite. everything works fine until i add a drop shadow filter to the sprite. when the drop shadow is added, i can only mousedown to drag and mouseup to drop the sprite if the mouse even...

Date : Converting AM to PM, and PM to AM

Hi, Perhaps a stupid question, but i really dont know the answer :( lets say i have a date object, how can i change its AM date to PM, or vice verca? Thanks ...

Unreachable, existing variable

I'm new at as3, maybe thats the reason why i don't understand, why the setInterval causes an error. <mx:Script> <![CDATA[ import flash.utils.setInterval; import mx.controls.Alert; [Bindable] public var MyInt:int = 500; setInterval(function():void{ ++MyInt; },1000); ]]> </mx:Script> I ...

How's ActionScript 3.0 supported on symbian,android,iphone and windowCE?

Anyone knows? To deal with all the things you can do with FMS3, you have two additional language Application Program Interfaces (APIs). Both APIs are extensions of ActionScript and are called Client-Side Media ActionScript and Server-Side Media ActionScript, or in this book, simply as CS ActionScript and SS ActionScri...

ActionScript Calling Private Functions By Changing Public Variables?

i've never tried to do this before, so my head a swimming a bit. i'd like to have a public boolean called enabled in myClass custom class. if it's called to be changed, how do i trigger a function from the change? should i add an Event.CHANGE event listener to my variable? can i do that? or is there a more standard way? ...

How come the Actionscript 3 ENTER_FRAME event is crazy nuts?

So, I've been toying around with Flash, browsing through the documentation, and all that, and noticed that the ENTER_FRAME event seems to defy my expectation of a deterministic universe. Take the following example: (new MovieClip()).addEventListener(Event.ENTER_FRAME, function(ev) {trace("Test");}); Notice this anonymous MovieCl...

Packages name conflicting with getters and setters?

Hello, folks. So, I've came across this compilation error a while ago.. As there's an easy fix and I didn't find anything relevant at the time, I eventually let it go. I just remembered it and I'm now wondering if this is really part of the language grammar (which I highly doubt) or if it's a compiler bug. I'm being purely curious about...

Flex DataBinding Drilling Down Through Arrays

The help page on the BindUtils.bindProperty function: http://livedocs.adobe.com/flex/3/langref/mx/binding/utils/BindingUtils.html Has this to say: "For example, to bind the property host.a.b.c, call the method as: bindProperty(host, ["a","b","c"], ...)." But what if I need to bind to host.a.b[2].c? How do I do that? ...

Why are my event listeners firing more than once?

In my Flash project I have a movieclip that has 2 keyframes. Both frames contain 1 movieclip each. frame 1 - Landing frame 2 - Game The flow of the application is simple: User arrives on landing page (frame 1) User clicks "start game" button User is brought to the game page (frame 2) When the game is over, the user can press a "play ...

Equivalent of Flex DataBinding using Pure Actionscript

When Flex Sees Something Like This: <mx:Label text="Hello {MyVar} World!"/> It Must Translate That Somehow Into ActionScript. But What If I Need To Do Something Similar, At Runtime. How Can I Accomplish What DYNAMICALLY? WHEN I DO NOT KNOW THE CONTENTS OF THE BINDING TEMPLATE. In ActionScript it would need it to look something lik...

change combobox selection based on value in an object in flex

how do i change the item selected in a combobox selection based on a selection of a datagrid object? ...

Intermittent/staggered loading of an object

Hi guys, I've just recently tried my hand at actionscript 3 and have come across a road block. How do I go about rendering the cubes (cube1) intermittently, ie. staggered loading. I need the cubes to load a split second from each other. Below is a snippet of what I have so far: var rows:int = 5; var cols:int = 3; var spacery:int = 100;...

save downloaded file automatically in directory using AIR

i'm newbie, so please help me... package com.func { public class Downloader { import flash.net.FileReference; import flash.net.URLRequest; private var req:URLRequest = new URLRequest(); private var fr:FileReference = new FileReference(); public function Downloader(){ } public...

Need Help with Weird ComboBox Behavior

This is happening consistently throughout an Air application on any form with one or more ComboBoxes. Immediately after the first click on any ComboBox on the form, the clicked ComboBox's items are all disabled and it closes. After that all of the ComboBox's on the form behave normally. Also, I debugged one form and at the point where t...

Is it possible to integrate flash SWF app into GTK+ Gui and be able to interact with it from your C code?

Is it possible to integrate flash SWF app into GTK+ as part of Gui and be able to interact with it from your C code? Do you know any examples avaliable for reading there code? ...

&& operation in actionscript

In the following code the line after the if statement gets run even when "BITMAP" is null. Why is this? public function get BitmapHeight () { if (_bitmapHeight == 0 && BITMAP != null) _bitmapHeight = BITMAP.bitmapData.height; return _bitmapHeight; } ...