actionscript

Flex actionscript datatable column names are encoded - how to decode?

Hi, I am returning a .NET datatable to Flex Actionscript via a web service. Once I have the datatable then I want to grab the column names. The following code outputs my column names: for each (var tcolumn:Object in datatable.Columns){ trace('Column:'+tcolumn); } This works ok, but the column names are somehow encoded, so a colum...

Problem consuming a dataset via a .NET web service from Flex-ActionScript

Hi, I am returning a .NET dataset to Flex Actionscript via a web service. Actionscript snippet as follows: var websvc:WebService = new WebService(); websvc.useProxy=false; websvc.wsdl = "http://localhost:13229/test/mysvc.asmx?WSDL"; websvc.loadWSDL(); var operation:Operation = new Operation(null, "GetData"); operation.arguments.command...

Actionscript can't call javasript from locally-saved html

I try to perform calling of a javascript function from actionscript 3.0 thru ExternalInterface.call(). I've seen a lot of online examples where the method works perfectly. But all downloaded copies of the examples don't work. Flash player can't call javasript due to the swf-html container security problems. I've already tried to set allo...

Javascript Rich Text Editor in Flex

How do I embedded a HTML-enabled javascript editor on top of Flex web application? FCKEditor is not free but any free editor with basic toolbar will do? ...

Anyone know an Actionscript 3 pretty printing library for JSON data?

In Adobe Flex / Actionscript 3, I would love to pretty print my JSON data to a TextArea. Any libraries out there? A decent search turned up no results. Thanks! ...

StringBuilder in Flex

I'm looking for fast string concatenation class or so in Flex. Like StringBuilder in Java. Thanks ...

Flash CS5- Problem with "navigateToURL" in web-browswer hosted on MySpace

I made a quick flash document for my friend who posted it his MySpace. The document has 3 buttons, each with a URL attached to them. When I play the SWF file locally, the links work fine, however once it's published to MySpace, the links refuse to work. The hand icon comes up so it understands them at least as buttons, but it seems to...

Changing Graphic Instance using ActionScript

Hi, I was wondering if it is at all possible to change the "Graphic" used in a frame dynamically using actionscript. I was hoping to either change the image the Graphic is an instance of or change the Graphic I am using in the current frame. Cheers Addition: Could I have a layer for each Graphic and then using action script choose wh...

Flash VS jQuery for RIAs development : Which one is better to use and for what reasons?

Can anyone please explain for developing rich internet applications which one of these two technologies (Flash VS jQuery) is better to use based on criteria such as "Pros and Cons, time, cost, situations and etc..." and why? Please explain in details, it is very confusing. Thank you. ...

Google maps event problem with flex actionscript

I am able to render a google map on a flex canvas. I create the map using the code below and then place markers on it in the onMapReady method (not shown) var map:com.google.maps.Map=new com.google.maps.Map(); map.id="map"; map.key="bla bla"; _mapCanvas.addChild(map); map.addEventListener(MapEvent.MAP_READY,onMapReady); It all works ...

Flash / Actionscript wheel

Hi, I have been asked to create a wheel for navigation similar to on the Visit Provence website. However, I don't know where to start and my Googling effort have been unsuccessful - I guess that I am searching using the wrong terms. It the the way that the wheel moves and interacts with the other segments around it that interests me. ...

FlexUnit - howto check label text

I am trying to automatically verify certain conventions, such as label/table column header text (Sentence Case, use of colons, etc). It would be nice if there was a way in FlexUnit, or other means, to Iterate over all views in the app Get all titles, labels, column headers Run some pattern checks and fail where needed. Does anyone...

Passing Flash variables to PHP.

Hi, I have a simple standalone application written in Visual Basic that I'm porting to a browser based application using PHP/javascript. The original VB application has some simple embedded flash games with token and point counters. The token and point values are being passed as variables between the application and the game. I'm tryi...

how to place text or image over another one ?

Hi, I am trying to place something (text/image) on another image. How can I do this in Action script or PHP? My trouble is finding the edges of the base image and position the text or image accordingly. Something like at http://www.zazzle.com/cr/design/pt-mug. Somebody please help me. regards tismon ...

How should I collect dependencies from Adobe Flex files?

I'm looking for a way to collect the file dependencies from Flex ActionScript and MXML files. I was hoping that mxmlc could spit them out (like gcc's -M option), but its option list doesn't seem to have anything relevant. I could write a parser, but would prefer not to reinvent the wheel if it has already been done, particularly given ...

AS2 acts randomly when changing scenes on the first frame

I have a flash movie containing to scenes: scene1, scene2. I have chosen the order so that scene1 starts first, I was requested to add a functionality to allow flashvars to be passed, if fv_change equals one then scene2 should be the first to appear when the movie is loaded. I have included the following code in scene1 first frame of so...

Hidden Features of MXML

What are some of the hidden features of MXML? What existing features are not well known but very useful? MXML being used in Flex Framework became quite popular language because Flash Player is something every PC has and Flash Builder and Flash Catalist are quite popular Adobe programs. Please specify one feature per answer, and read a...

Call private method in Flex, Actionscript.

I need it in FlexUnit to test private methods. Is there any possibility to do this via reflection by using describeType or maybe flexUnit has some build in facility? I dislike artificial limitation that i cannot test private functions, it greatly reduces flexibility. Yes it is good design for me to test private functions, so please do no...

Flash - ActionScript - Change fill color of a button in code

ActionScript 3 - CS5 I'm new to Flash and wondering how to change fill color from code. Something like this - btnRed.fillColor = "0xff0000"; Thank you for your comment! ...

Air applicationUpdater: updates every run, should be once a day

I use the applicationUpdater framework with an Air application. The delay property is set (in AS code) to 1 day. However, the application checks every time it is run: the delay property seems to be ignored. Does any one know where last run time is stored, so I can check if there's a reason it can't seem to remember ;-) the app is at...