Get ActionScript Classes that Implement an Interface
In ActionScript (AS3) how do I find all the classes that implement a particular interface? ...
In ActionScript (AS3) how do I find all the classes that implement a particular interface? ...
I'm trying to swap two variables in ActionScript. I tried using: a = 42 b = 50 tempvar = a a = b b = tempvar to switch, but this doesn't work because the variables still reference the original value, so if I set b = a, and then change a, b changes as well. in ruby, you have clone(), but I don't know a similar method for AS3. Help?...
I'm using AS3 and I created a popup box as such: var s:Sprite = new Sprite(); var shape:Shape = new Shape(); shape.name = "HitArea"; s.addChild( shape ); shape.graphics.lineStyle( 4, 0xFFFFFF, 1 ); shape.graphics.beginFill( 0xFFFFFF ); shape.graphics.drawRoundRect( 0, 0, 200, 30, 10, 10 ); var text:TextField = new Te...
I see Red5 which looks nice but it really lacks documentation and since I'm new to using sockets it would be a hassle. I'm wanting to make a flash chat with audio/video (though just text will work at first) and I enjoy ES but the cheapeast license is $700! I'm a solo developer so the cost is too high. The main factor is just having go...
I'm wondering if there is some way to unpack a variable length argument list in AS3. Take for example this function: public function varArgsFunc(amount:int, ...args):Array { if (amount == 3) { return args } else { return varArgsFunc(++amount, args) } } If I call this: var result:Array = varArgs...
Hi, I am using TextField in that Line break is not working i given multiline property to true also. even though i am not getting line break. how to do using textfield in flash AS3. Thanks in Advance ...
In my flex app I have custom tooltips on buttons that hide and show based on user context. The problem that I dealing with is that when I call my showTips() function I only want to show tooltips on the buttons that visible in the view. So buttons that on a un-selected tab (tabNavigator) should not show the tooltips. For some reason all t...
Hi again everyone :) So today I'm trying to basically create a simple glow effect on button rollOver. I may be over complicating things, but the way I'm going about this is by having 2 movieClips(default state and over state). First I add the default state to the stage, next I add the rollOver state to the stage, but at a depth of 0 a...
I find myself always typing something like Alert.show("blah = " + blah); In PHP we have "blah = $blah" In Ruby we have "blah = #{blah}" Do we have anything like that in Actionscript3? Also...what is the proper name for what we are doing here? Thanks! ...
I'm still learning how to compile with the Flex SDK. And I'm learning how to use SWC files and [EMBED] statements to pull my assets into my application. With the Flash IDE, I can link a library asset to a class and it's automatically embedded into my custom class. So that's 1 asset in 1 class. With the Flex SDK and SWC files, it seems I...
I have a collection in Flex and I have sorted it by a date field, so the latest elements appear first in my view. In order to do this I have applied a sort field like so: var articleSort:Sort = new Sort(); articleSort.fields = [ new SortField('published', false, true), new SortField('id', true, true)]; articles.sort = articleSort; arti...
Is there a way to tell at runtime if a flex UIComponent is in the user's view or not. For example, if I have a tabNavigator with a combobox on each tab, is there a property of the comboBox that will tell me if it is visible to the user or not when I switch from one tab to another? I know it is not the comboBox.visible property. That is s...
Doing all this locally. I have the code to load and play my .flv . What i need to have it do is play the entire .flv then load a .swf to replace the current one. The code i am working from. stage.displayState = StageDisplayState.FULL_SCREEN; var connection:NetConnection = new NetConnection(); var stream:NetStream; var video:Video =...
Hi there, I'm having some trouble writing a correct algorithm for centering a background image. Here's a link to the effect I'm getting right now: http://www.pilotinteractive.ca/dev/. Here's a sample of what I'm aiming for: http://flashden.net/item/easy-xml-background-image-rotator/full_screen_preview/22015 Here's the not-so-great fun...
I'm clearly missing something here. I need to fill methods of dynamic AS3 class from an array (see silly example below). But when I call those methods, all of them appear to be the same method. In the example below, all methods are foobar1. If I create methods by hand, without a loop, everything is fine. Any clues? package foo {...
We have discovered that when we draw one bitmapdata into another bitmapdata using draw, there is an upper bound on the scaling transform. At some point the IBitmapDrawable parameter ceases to be rendered on the target bitmap. Does anyone know what the parameters of this upper bound are? Is this documented somewhere? ...
I've embedded a MovieClip symbol with the [Embed] syntax into my AS3 project, which I'm compiling with the Flex 3 SDK. That MovieClip has instances of other clips within it that are placed on stage with instance names. I can't just access them by instance name like I would if I were compiling with the Flash IDE. How can I reference them...
I've embedded a SWF into a class using this syntax above my class definition: [Embed (source='/../assets/MyMovieClips.swf', symbol='SpecialMovieClip')] public class SpecialMovieClip extends MovieClip The MovieClip asset seems linked with my class okay, and instantiates along with it, and is visible, but: I can't access instances ...
Hi, this is from Adobe docs: package { import flash.display.Sprite; public class Array_filter extends Sprite { public function Array_filter() { var employees:Array = new Array(); employees.push({name:"Employee 1", manager:false}); employees.push({name:"Employee 2", manager:true}); ...
How do I go about making a socket policy file server in C#. All it has to do is listen on port 843 for the string "<policy-file-request/>" followed by a NULL byte and then return an XML string (which is the socket policy file). I haven't coded this sort of thing before and am unsure of where to start. Do I create it in a windows service...