actionscript-3

how to access all item renderer of MX: Tree in?

my renderer contains a canvas in it, i add some title-window, every time i see my tree previously added Title-Windows are visible, i want to access each n every item in tree and remove previosly added all windows from the rendere. so can any tell me how access all the item renderer in AS3 ? ...

how to access all item renderer of MX: Tree in?

can i access every item renderer of tree in as3 ?( note that i am using custom item renderer) lets say i want to add some button in canvas(children of custom itemRender).. like getItemRender().addChild(); ...

Localization of ApplicationUpdaterUI

How to localize strings in default Application Updater UI? .addResources("",{titleWindow:"", ...}) doesnt work for me ...

Calling children inside getChildByName / getChild At ?

I found out that I can't target a object inside the main MC if I use getChildAt / getChildByName. It will return me Error #1119: Access of possibly undefined property someProperty through a reference with static type flash.display:DisplayObject. I was trying to use something like this.getChildAt(0).getChildByName("objectName").... ...

flex combobox arrow custom image

Hi all, In my Flex AIR application I have to customize the Combobox with custom arrow icon. I got the properties to change its color but didn't get any property to change the icon itself. After Googling I got some links of skinning the combobox but they were for FLASH CS4, but I am on Flex. Not getting any solution. Please help. Thank...

How to consume nusoap webservice from Flash

Hello, i'm trying to invoke a webservice written in nuSoap from a AS3 Flash app; i've read that, starting from AS3, webservice support has been removed in Flash (really don't understand why...); i've tried thid party solutions (be.wellconsidered, carlo alducente) but they don't work with the wsdl that nusoap generates. I'm really worried...

How to read the Dynamic form Child data in Flex ?

i created a form dynamically by adding each component in action script, now i want to get back the text/data entered in to that each component dynamically? private function loadAllComponents():void { var formItemArray:Array = new Array(); for(var i:int=0; i< Application.application.designList.lengt...

What's the better option for anonymous event listeners?

I'm trying to figure out the best option to use anonymous event listeners that are 100% garbage collected after use. I got these two examples but I'm wondering if it actually makes any difference between them ... var listener1:Function = function(e:Event):void { resource.removeEventListener(e.type, listener1); loadedHandler(resource);...

flash and htaccess issue?

I have a flash swf application and the swf need the support of the .php files to get data. But my server folder is protected with htaccess and htpasswd. So the access from flash is not possible. How can I overcome this situtation? ...

How to pass complex type parameters from Flash-AS3 to a web service?

Hello, i've the following snip of code in AS3: var myWebService = new WebService(); myWebService.addEventListener("load", loadDone); myWebService.loadWSDL("wsdl_address"); var myOperation:Operation; function loadDone(evt:LoadEvent) { myOperation = Operation(myWebService.getOperation("method_name")); myOperation.addEventListener(...

Not quite a Singleton

I'm using ActionScript3 to develop a Data Access Layer for an application another developer is working on in my team. One of the objects, lets call it User is expensive to construct. Each user has a unique ID number so I can tell if they've been created before or not, and all User objects are stored in an array somewhere else. I want to...

Does anyone know how to create a interactive graphs using flare or other visualisation classes?

Does anyone know of software or flex/flash/as3 source or visualisation software that could be used to make interactive graphs, where the user would enter a query that would pull data from a MySQL database and the user would build a sunburst or icicle graph by dragging and dropping items into a tree-like structure and they would be able t...

Dragging a bone system element in Flash

Hi all, I thought I had a really simple task to do: Create an analog clock where student could set the time by moving the hours and minutes handles. Well, the whole thing works to a point... I have created a bone system to ensure that both handles bases stay put in the center of the clock while the handles get dragged about. The proble...

rotating movieclip back to square. AS3

I have a movieclip that I am using greensocks transformManager with so the user can rotate, skew, and scale the clip. This works fine, but I am trying to add a crop tool. If the image is rotated, when I send the image to the crop tool it measures the height of the image by the bounds of the rotated image, not the actual height of the ima...

as3 stop event propagation

I'm having trouble getting events to stop propagating in as3 when I'm adding a new event listener in an event listener. My second event listener is being called when I dont want it to. this.addEventListener(MouseEvent.CLICK, firstlistener); function firstlistener(e:Event) { //do stuff e.stopImidiatePropagation(); this.addE...

Flex Builder - How to set relative url in launch configuration properties?

I am trying to use a custom html wrapper for my application, but when I browse to choose my file it defaults to an absolute path to my custom-wrapper.html file. I want to be able to pass off this project via SVN without any necessary configuration changes, but I'm not sure how to input a relative URL into this configuration dialog. I...

Keypad Login, as3

Hi, How do I get this to work more like a login, where the textfield accepts the numbers and entered? Thanks for the help, var login:int = 0; //KEYPAD LISTENERS num1.addEventListener(MouseEvent.CLICK, num1b); num2.addEventListener(MouseEvent.CLICK, num2b); //... //KEYPAD FUNCTION function num1b(e:MouseEvent):void{ login = 1; trace(login...

How to change the vertical line gap of Label?

How can the vertical line gap of Label be changed? ...

AS3: Copying a Loader from one object to another

I have two classes, call them A and B. They both contain a Loader object. In class A I load content into the Loader object. public class A { var loader:Loader; public function A():void { loader = new Loader(); this.addChild(loader); loader.load(...); } } public class B() { var loader:Loader;...

Flash based website basics, first steps, good practices

I have a bit of Flash experience, did a full featured movie player, other stuff in AS3 and got plenty of programming skills in other languages, BUT now I need to create a multi paged website. Quite easy, a few pages, some animations here and there, nothing fancy, got all the graphics. But time is short on this one, so I need some advice ...