I have these Arrays
//Array elements are Sprites (Class) in Flash Library
var elements:Array = new Array (el1_spr, el2_spr, el3_spr);
var container:Array = new Array();
for var (i:uint; allElements.length; i++){
container.push(allElements[i]);
var v:Sprite = (allElements[i] as Sprite);
addChild(conta...
I need to keep a NativeWindow I am creating on top of the main window of the application.
Currently I am using alwaysInFront = true, which is not limited to the windows in the application. I can successfully synchronize the minimize/restore/move/resize actions, so the top window behaves appropriately in those cases. Even though using th...
I'm trying to load Gravatars into Flash. Luckily, they provided a crossdomain.xml file at http://en.gravatar.com/avatar/crossdomain.xml
My code:
Security.loadPolicyFile("http://en.gravatar.com/avatar/crossdomain.xml");
var loader:Loader = new Loader();
loader.load(new URLRequest("http://en.gravatar.com/avatar/" + gravatar + "?s=35&d=i...
Is it possible to upload a file to another server or pass a file from a Flash object to a script that resides on a different server?
I would like to upload a video to viddler using their REST API. I wish to upload a video directly to them. Is Flash capable of this?
If this is possible, I would appreciate links to tutorials or existing ...
I have a container MovieClip that serves as a content area that I need to mask off. When I create a mask inside this container using a Shape I can't seem to interact with the contents of other containers I create here, like buttons etc.
This is what I'm doing in code (I've left out all the import's etc.):
class MyContainer extends Movi...
So, I'm building stuff in AS3, I have a main movie clip, and I have one set of navigation to be displayed twice (one is a normal side bar setup, the other is a fancy designer scrolly thing down the bottom). When one is clicked, the other should react to reflect what has happened.
Should main.menuA reference main.menuB, or should I set ...
I am updating a Flex application which has the same functionality across a variety of categories (i.e. Baseball, Basketball, Football), but only needs access to the resources (~400kb images) of one category when it loads. I need to separate out the resources for each category so it only loads the ones its needs in order to save bandwidt...
I have a textfield where the user can type what ever he want into it.
When the user is ready typing he can hit the send button. when he does that i get the text from the multiline textfield and pass it to my backend. there is only 1 problem
the text is formated in 1 single line, (html text is no option!) is it possible to set after ever...
Hello community,
I embedded a swf file in my application
<mx:SWFLoader source="@Embed(source='mod/VideoModule.swf')" width="50" height="50" id="loader" creationComplete="initLoader()" />
now with the help of the flex documentation I wanted to interact with my loaded swf by creating a SystemManager
[Bindable]
public var loadedSM...
I have a Flash .fla file that has SimpleButton. That SimpleButton is basically a button-like shape, with an icon on it (say it's a "pause" sybol). I want to change the color of that icon programmatically, but I can't seem to access it from AS.
I've selected the icon, and did "convert to symbol", and gave it an instance name. This has w...
Hi,
My application has a number of identical AS3 class instances:
var Pan1:Panel = new Panel(etc);
var Pan2:Panel = new Panel(etc);
var Pan3:Panel = new Panel(etc);
var Pan4:Panel = new Panel(etc);
One of these instances is manipulated at a time. I'd like to refer to this 'active' instance like:
var ActivePanel:Panel = Pan3;
But i...
hi ,
I am binding Tree control with this xml object
var treeItem:XML =
;
All the tag are binding in the tree like.. items under page ,scene, empty node(since ther...
I've been trying to embed some svg files into an AS3 project using the Embed meta tag. For example:
[Embed(source = "assets/image.svg")]
private var Image : Class;
However when displaying these files as Sprites only some of the gradients are surviving the embeding process.
From what I've found simple (2 step) horizontal gradients se...
Hi ,
I was trying to convert this format of String to Date and was unsuccessfull
"23-DEC-2008" to a Date Object ,it looks like its not accepting "-" and i could see NULL in the date object after formatting .
Can somebody let me know if u have come across this problem .
Thanks ,
Sudeep
...
Hello Community,
I have build a module in Flex that I call myModule, this module has a method myMethod. Now I use the ModuleManager to load this module.
mod = ModuleManager.getModule("myModule.swf");
mod.addEventListener(ModuleEvent.READY, modEventHandler);
mod.load();
now I want to access the method
(customComp as myModule).myMeth...
I need to obtain the text from the system clipboard in HTML JavaScript, in a way that it works on all browsers. Some form of clipboard.swf is sometimes used on many sites to copy text into the system clipboard.
How can I do the reverse, i.e. obtain the system clipboard's text in JavaScript via ActionScript code in a 1x1 swf file that I ...
How can I change the bitmapdata of a coloured Bitmap to Black and White in AS3 ?
I'm developing a simple image editor tool for a CMS in flash.
People should be able to switch the colour of the uploaded Bitmap to black and white. I want the bitmapdata itself to change So I can write it to a ByteArray with Adobe's JPGEncoder Class after...
I have a DataGrid component that displays a few columns of data. It has one additional column that displays a Button that allows the user to take an action with regard to the record.
<mx:DataGrid dataProvider="{myData}">
<mx:columns>
<mx:DataGridColumn dataField="firstName" headerText="First Name"
width="75" />...
I have a DataGrid with an drop-in Button itemRenderer:
<mx:DataGridColumn headerText="" width="135"
itemRenderer="ActionButtonItemRenderer" />
However, the button extends all the way both the right and left edge of the DataGridColumn. I've tried messing with the width properties and paddingLeft and paddingRight styles of both the...
See title. Using Tweensy 0.2.2, Flex4Beta1, and FP10.0.22.87, is there a workaround, or something I'm just not getting?
EDIT: Using stop, doesn't cause this problem, but I'm still curious as to why this is happening.
...