actionscript

What is the difference between URLLoader and URLRequest in Actionscript?

What is the difference between URLLoader and URLRequest in Actionscript? ...

What are the things need to taken care while working with flash playeres?

Hi all, I have been working since a long time on a particular flash(Action Script 3.0) project and did all the test and development under the Flash itself(tested by Ctrl+Enter) . But It should be compatible with the browser, so i exported all these to my localhost, and its working fine. But unexpectedly I got many more errors from swf ...

Adding a image to a datagrid created in AS Class

I have created a datagrid in ActionScript class and I want to add an Image to one of the columns..I tried to add an image this way..but it doesnot work..Can anyone help me.. [Embed(source="../../../../css/images/redCircleIcon.png")] public static const redIcon:Class; var statusRedImg:Image = new Image(); statusRedImg.source = ...

How should an element get references to elements further down the tree without hardcoding in Flex?

I have a custom Flex Container component written in AS3, called StatisticsContainer. When used in the application, it contains various custom Label components called StatisticsBoxes. So there might be a StatisticsContainer containing 3 StatisticsBoxes: "averageAge", "divorceRate" and "infantMortalityRate". The StatisticsContainer needs ...

Why ActionScript is said scripting language even after grown up so much and having compiled language?

From the Wikipedia defination, Programming language is Scripting languages are languages that allow you to send commands directly to a system that executes these commands. These commands are read line by line and executed-interpreted, but not compiled. Whilst, Scripting language is Programming languages are languages that all...

Passing parameters between functions and result handlers

Hello, I have a function fooA(valueA1, valueA2) which calls web method myWSA(). Upon reeiving the result, it invokes a result handler which inturn calls another web service myWSB(value2). I want to know how I can pass/access this value2 into foo2. These values: value1 and value2 are dependent on the button clicled. private function foo...

Interview Questions for ActionScript 3 / Flex Programmer

What could be good question to decide if candidate has strong or atleast fair knowledge working with Flex and ActionScript. ...

multiroom video chat

So I am learning to develop a video chat with multirooms/groups and I know basically what to do for a simple live video chat application. For example: public function setupconnection () { youRtmp ="the URL for your rtmp"; nc=new NetConnection(); nc.connect (rtmpNow); nc.addEventListener (NetStatusEvent.NET_STATUS,Con...

Can you recommend any good book on flash mobile(lite) ?

I've googled lot but still don't find a book on this field, can you recommend ? ...

Actionscript grid scale issue

Hello; I have a bit of a problem with actionscript 3.0 dynamic movieclip placement. The scenario is like this: I have a 16x16 grid generated by actionscript inside a movieclip. (let's name it gridContainer). The tiles of the grid should have constant height and width; it should not scale with its parent's height/width changes. Also, ...

Populating an ArrayCollection property using [RemoteClass]

OK, I am passing a complex object from my .NET library to my Flex application via WebOrb. In order to automatically translate, I am using the [RemoteClass] meta data tag as follows: [RemoteClass(alias="test.PlanVO")] public class Plan { [SyncId] public var id:int; public var Name:String; } This works absolutely fine, unti...

[ as3 - garbage collecting ] delete a movieclip forever

hello! im just trying to delete forever a mc. i create a mc and then i make an addChild of a sprite. var mcSwap1:MovieClip = new MovieClip(); addChild(mcSwap1); mcSwap1.addChild(mySprite); if i want to delete from everywhere and forever mcSwap1, what can i do? removeChild(mcSwap1); mcSwap1=null; doesn't work very well...the memory ...

Flex - Dynamically add a property to an object based on a string value

I create a new object. My new object will always have a labelField because it has to be added to a dataProvider in a ComboBox. The problem is my next property. Each object in the dataProvider has a dataField property that has a string value [eg: 'code' or 'isoCode']. What I want to be able to do is this: var myObject:Object = new Object...

How to determine currently processed event in ActionScript?

When one call Clipboard.generalClipboard.getData() in ActionScript outside of Event.PASTE processing function it fails with following message The Clipboard.generalClipboard object may only be read while processing a flash.events.Event.PASTE event. Even if I dispatch Event.PASTE event and call this function within event handler it s...

Flash that display:none/$(div).hide; a div

Hi guys I have made a hidden DIV containing a flash-movie, and a button which display the layer. When the Flash is finished, I would like it to hide the DIV again. Flash CS4 AS2.0 I couldn't find any solution on the web that does it. Does any of you know where, or know a solution? Thank you in advance... ...

[Actionscript3] How to specify width and height when loading external swf file??

Hi guys I am trying to load an external swf file. The swf width and height is small and I want to enlarge it when loading it. (My scene has large width and height). My current code could load the file but I am not sure how to enlarge the swf width and height. I would appreciate if anyone can help me about it...Thanks var request:URLR...

Is there some way to force 'updatedisplaylist' immediately rather than at later some point.

In flex component life cycle, after we make some change in a components property, invalidation methods schedules a call to methods like commitProperties, updateDisplayList, etc for some later time. I need to call the updateDisplayList instantaneously. Is there some direct way to do this. Currently, both the labels are changed simultane...

Difference between RemotingServices, WebServices and HTTP in Flex.

Dear friends, We use 3 types of services in Flex; HTTP, Remoting and WebServices and would like to increase my understanding about their use cases. As far as I understand, Remoting can be used only in homogeneous environment like Flex-RubyOnRails (through RubyAMF) while Webservices can be used in Heterogenous environment using SOAP pr...

socket connection bandwith limiting / traffic shaping with ActionScript

Does anyone know of a way to monitor and/or limit bandwidth usage for a given socket connection in ActionScript 3? I have an Adobe AIR app from which I need to upload large streams of data. However, due to bandwidth restrictions I want my users to be able to designate how much upstream bandwidth the application can use. Any ideas? ...

AS 3 functions optional value getting error.

I have a gui class, The functions optional value getting error. If i am not passing the fillcolor and other optional values. Error: ReferenceError: Error #1069: Property fillColor not found on String and there is no default value. AS 3.0 var windowBase:Sprite = UIClip("Sprite"); /* sliderClip = Gui.UIClip("MovieClip",{width...