actionscript

How to implement 'domain protection' in ActionScript 3.0

I want to limit my SWF file so that it cannot be stolen and hosted on another server. So if the domain serving the SWF file isn't on a list of approved domains, the SWF will not load normally but will instead display a message that links to one of the approved locations. What I'm unsure about is how to access the domain that is hosting t...

how to Move state dynamically using image click within Datagrid itemRenderer ?

i used play button image within datagrid iteam renderer, if i click image then move to another state (by using currentState ='play') . so i tried like <mx:DataGridColumn textAlign="center" headerText="" dataField="col2"> <mx:itemRenderer> <mx:Component> <mx:HBox textAlign="center" paddingLeft="17"> <mx:Image source...

Flex Dynamically Created Components Added to Custom Components

Hi I am created a dynamically adding a VBox, that contains two images. Into a Custom Component that is derived from UIComponent. The problem is the Vbox that contains the two image is only a really tiny size. I would like the VBox stretch to the size of the two images. This is how I am creating the Vbox.... var open:Image = new Image(...

bitmapdata record video

is there any sample on using array bitmapdata to record video from webcam and generate flash movieclip file? i want to record sound as well without using red5/flash streaming server ...

How do I dynamically populate the options in a combobox inside of a grid based on another row in Flex?

I'm trying to setup a DataGrid that contains a column of combo boxes. The values of the combo boxes are defined by data specific to that row. I cannot get this to work though, I'm asking for a solution to this, either fixing what I have below or a recommendation on a different way. One of the columns of my DataGrid has an object deriv...

My ActionScript's ExternalInterface callback function isn't going through. How can I debug it?

Help, please? It appears that my callback function isn't being called...back. I'm using jQuery, and Flash 8. To access the Flash object, I'm using the jquery swfobject plugin, c.f. (http://jquery.thewikies.com/swfobject/examples). If you think that I'm not accessing the SWF properly in the first place, please recommend code as to how I w...

adobe air - Is there anyway to get OS open a file, their native applications?

In adobe air, is there anyway to get OS open a file, in their native applications? What about in Flex 4? ...

What do should I do to make AC_FL_RUNContent to play remote swf?

Suppose on windows if I map the Z:/ drive to some folder on the network and my swf resides there. Can I embed that swf in the html using AC_FL_RUNContent and specifing the path as Z:/test.swf?? ...

calling a trim method in actionscript 2.0

Hi I Got a notnull function for a text field as below private function valStringNotNull( val:String ) :Boolean { if ( String(val).length <= 0 ) { _errorCode = "StringNull"; return false; } _errorCode = "NoError"; return true; } and this function is being called here var pCnt:Number = 0; ...

post fla to youtube

may i know is it possible to post fla file pro grammatically to youtube? can elaborate how? ...

Are there any embedded languages that can be embedded into C# and actionscript?

I'm looking for a embedded language that can be used to script common code between a server app written in C# and a client app written in Flash/Actionscript. It is important that the embedded language interpreter run natively in the environment it is embedded into. For example, it cannot load any external C libraries (i.e. python, neko)...

Flash Banner with rollover/rollout - overlapping button cancels rollover

Hi all, I'm doing a work project that uses Flash CS3 / AS 2 (and cannot use AS3). I have a rather interesting and hairy problem that is taking up quite a bit of time and sanity. I'm working on a banner that reveals a new design on rollover, and switches back to the first design on rollout. This part works fine. However, the problem is ...

Get ActionScript Classes that Implement an Interface

In ActionScript (AS3) how do I find all the classes that implement a particular interface? ...

actionscript determine user environment

Hi, is it possible using actionscript to determine what operating system the flash projector is running on...I'm producing a swf that is to run from a cd-rom and so will be published as an .exe for windows and a .app for mac...parts of the presentation change depending on what os the user is running it on...i don't want to have to publi...

intermittent bitmapdata draw with scaling matrix

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

Can I use timeline scripting on embedded SWF assets w/ the Flex SDK?

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

Where is Document class textbox in flash cs3?

In a tutorial I find a statement "In the Document Class text box in the Property inspector of flash document, write Test1" But i didnt find that document class textbox. Im using flash CS3. Where it is. Please Help. ...

include .as file inside .fla

hi, i open up .fla file, but when i click window->action, there is not actionscript inside it. may i know where else can i check the .fla file is importing .as file. where to check it in flash cs3? ...

flash.filesystem.File and tw.helpers.flv.SimpleFlvWriter

may i know in order to use these 2 class in my actionscript. I need to use "adobe air and flex" ? can my plain actionscript3 use these files? please elaborate ...

Filter other Select Options when an option is selected

This is a problem I'm having in actionscript, but just as easily applies to Javascript or Jquery. Basically, I have 3 select boxes, e.g.: <select id="color"> <option>Red</option> <option>Blue</option> <option>Green</option> </select> <select id="size"> <option>1</option> <option>2</option> <option>3</option> </select> <select id=...