actionscript-3

Accessing ItemRenderer in AdvancedDataGrid Flex / AS3?

i have XMLList data which is used for advanceddatagird dataprovide(by converting it to hierarchal data ), the advanceddatagrid consist of 2 columns,i want to access the ItemRenderer of 2nd colomn (customized item rendrer) by giving the item. i can get the itemRendrer bu using var Obj:Object = itemToItemRenderer(item); i cant understa...

Deactivate Air app created in AS3 after next Monday?

Hi, I have an application deployed in Air, written in AS3 that the client wants to install and test, I have developed a simple license app, but he is pushing for a full license which he said he will fully pay on next Monday. How would you create a procedure in AS3 to deactivate application next Monday? How secure will it be? Will simply...

disable auto-save in editable datagrid Flex

I have an editable datagrid, whenever I make a change it automatically gets saved. How can I disable this? So the changes gets saved only when I click on an external save button. ...

Merge shapes and draw border around final shape

I can't post images yet: http://i.imgur.com/7Kci5.jpg Using Actionscript 3 I'm drawing multiple Shapes onto a MovieClip [top drawing]. The end result I need is the bottom drawing. I originally thought it would be simple to just merge the shapes and then find a way to draw a border around the end result but I can't seem to find any way o...

Generate FLV Video File with ActionScript

Hello. I'm working on Flash ActionScript. My Movie Load some data like photo, sounds and photo to the Movie Stage. Each of loaded MovieClip have own animation. Is it possible to generate (record) FLV or other Movie file from ActionScript with ActionScript? ...

FileStream problem....

here my codes : package com.func { public class Downloader { import flash.events.*; import flash.filesystem.*; import flash.net.FileReference; import flash.net.URLStream; import flash.utils.ByteArray; import flash.net.URLRequest; import mx.controls.Alert; private ...

extending flex 4 'group' component problem

Hi, I have a component that were exported from catalyst (the component is based on a tag). Now I created a new component extending this. However when I add this new component to my module it doesn't seem to inherit the designs that were exported from catalyst. Any idea how i can do that? Ofcource when I add the component that were dire...

Why the actionscript 3.0 snippet below failed to import Button and TextInput?

package { import fl.controls.Button; import fl.controls.TextInput; public class MinRecord extends Sprite { private var recordBtn:Button; private var stopBtn:Button; private var textInput:TextInput; ... When I run it reports: Type was not found or was not a compile-time constant: Button. Ty...

Constructor to assign instance name from super constant when adding instance in Flash IDE?

I have a library object (SomethingMC) which extends a custom class (Something). Something, in turn, extends MovieClip. If adding SomethingMC to the stage within Flash CS3 IDE, is it possible for it's super class (Something) to assign an instance name from a class constant (Something.THE_CONSTANT)? package { import flash.display.Movie...

FlexUnit 4 Error

Hi, I am facing a strange FlexUnit Error: Whoa... been asked to send another complete and I already did that The error seem to occur when the number of test exceede 27...? (the tests never complete) test exemple: [Test] public function whenDoingThat_expectThatIsTrue():void{ //blabla assertTrue(...) } Any he...

ActionScript Read Sprite's Graphics?

how can i retrieve the set graphics properties of a sprite? for example, in the code below, i'd like to get the color of the sprite, also it's rounded corners setting and other graphics attributes. var sp:Sprite = new Sprite(); sp.graphics.beginFill(0xFF0000, 0.75); sp.graphics.drawRoundRect(0, 0, 300, 50, 10, 10); sp.graphics.endFill(...

Adobe flex ability to display checkbox or radio button at the same position based on role

Hi , I guess this is a basic question but I could not find the solution. I want to display checkbox or button at the same position based on user role. How can I do this. I cannot give x and y position same for both radio button and button as I will not know the location in my application. Is there any other way by which I can display ...

call a custom event from an item renderer in flex 4

I have a Renderer: <?xml version="1.0" encoding="utf-8"?> <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx:Metadata> [Event(name="addToCart",type="event.ProductEvent")] </fx:Metadata> <fx:Scrip...

Flash based network graphing?

Is there a flash widget that can read, say JSON/XML data, and create an interactive network graph that which users can drag nodes around? I'm not looking for software that creates static images... but something more dynamic, like "heavier" the node, the bigger it looks. That kind of Flash widget. ...

Limit on FileReference uploads?!

Hello, I am currently uploading files in ActionScript 3 using the upload() method of the FileReference class. I built an uploader than can do simultaneous or parallel uploads, having a variable set the number of maximum uploads at a time. I noticed that for Internet Explorer I could be uploading 10 or more files simultaneously, but Fi...

Calling button in Action Script 3.0

I am trying to make button panel. each button have two type btn_home and btn_home_white I am trying to reach those buttons.It is work if I write for each button their own methods like btn_home.addEventListener(MouseEvent.MOUSE_OVER,overEffect); btn_home_white.addEventListener(MouseEvent.MOUSE_OUT,outEffect); function overEffect(e:...

Importing a program from ActionScript 3 to Adobe AIR

Hello, I have made an application that is coded only in ActionScript 3.0, and uses HTML and JavaScript for the display. I would like to have the same result, but using Adobe AIR. I do not know Adobe AIR at all, so I was wondering if you could direct to some good tutorials that will teach me how I can move my .html/.js/.as files to Adob...

How to use AIR 2.0 NativeProcess API with Java?

How do you use this great new API in connection with Java? Do you use just pure native process API like nativeProcess.standardInput.write() and nativeProcess.standardOutput.read() with which you cannot debug Java side neither invoke remote java method. Or you are using some library that leverages remote method invocation such as flerry l...

Is there any way to identify a unique user in Flash/Actionscript 3?

I'm trying to make a vote/poll application in Flash using Actionscript 3. Is there any way to generate a specific ID that is unique to each user? The only other option I can think of is using the IP address, which is less than ideal in many cases (college campuses, shared Internet access, etc.). It needs to be the same number every time ...

Disabling itemrenderer Hovered state

My itemrenderer has 2 custom states, no hovered state, and no normal state <s:states> <s:State name="state1" /> <s:State name="state2" /> </s:states> When I initialize it, I force it to go to state2. The problem is that when the mouse rolls out away from the item, it relapses back to the first state state1. It's kind of weird ...