actionscript

FOSS tools for Flash development

I'm looking into doing some development for Flash. Do I need to buy expensive commercial tools or are there some FOSS tools out there I can get started with? Clearly there are a lot of tools out there, but are they good enough to actually get work done? What would I be missing by avoiding the commercial or official tools? ...

Flash designer/coder collaboration best practices

I've done several flash projects working as the actionscripter with a designer doing all the pretty things and animation. When starting out i found quite a lot of information about actionscript coding and flash design. Most of the information available seems to focus on one or the other. I didn't find any information about building flas...

How can I make flash cs3, actionscript send events to javascript?

I'm using Flash to play an .flv movieclip on my site, but I want to have the .swf send trigger an event in my javascript when it start loading, starts playing and ends playing. What is the best way to do that in Flash CS3 using Actionscript 3.0 ? ...

Call Functions within Function - Flash Actionscript 2.0

I'm trying to call a function after I load some XML into Actionscript, and I'm just wondering how I call that function. Example: //Function Declarations function parentFunction() { function callMe() { textField.text = "lawl"; } } Now, how do I call the "callMe()" function in a different part of the code, like an onRel...

How do I loop through result objects in Flex?

I am having problems manually looping through xml data that is received via an HTTPService call, the xml looks something like this: <DataTable> <Row> <text>foo</text> </Row> <Row> <text>bar</text> </Row> </DataTable> When the webservie result event is fired I do something like this: for(var i:int...

What is the best way to calculate Age using Flex?

What is the best way to calculate Age using Flex? ...

How can I detect if a Flex app looses focus

As a follow up to this question: http://stackoverflow.com/questions/46873/developing-a-online-exam-application-how-do-i-prevent-cheaters Can I detect when Flex application looses its focus? that is if a user has clicked onto another application or opened a browser tab? I read this: http://blog.flexmonkeypatches.com/2007/12/07/detecting...

Is there a FLASH editor that supports autocomplete & step-into debugging?

I'm considering using Flash but I'm pretty addicted to autocomplete and Step-at-a-time debugging. ...

trouble with scrolling a UIScrollBar component within a class

I'm trying to attach an instance of UIScrollbar component to a dynamic text field inside of an instance of a class that is being made after some XML is loaded. The scroll bar component is getting properly attached, as the size of the slider varies depending on the amount of content in the text field, however, it won't scroll. Here's the...

IDE for developping in ActionScript (Flash). Any suggestions ?

Hi, I started to work with Adobe Flash a few days ago and I'd say that the code editor lacks a few features before even being considered as an IDE (it sucks actually). Do you know any other solution for developing in Flash ? For AS3 coding only, I don't care about designer and timeline... I just want to work efficiently with the code. ...

Accessing .NET Web Service securely from Flex 3

We can successfully consume a .NET 2.0 web service from a Flex/AS3 application. Aside from SSL, how else can we make the security more robust (i.e., authentication)? ...

Using Actionscript 3 to connect to a database

I'm looking for advice on how to dynamically create content in flash based on a database. Initially I was thinking that we would export the database to an XML file and use the built in Actionscript XML parser to take care of that, however the size of the XML file may prove prohibitive. I have read about using an intermediary step (PH...

Is there good .sol editor for Flash Player 9 Local Shared Objects? Can we build one?

There's plenty of them out there but none of them do what I would like them to do. Most of them crash when opening a file or simply corrupt the data. Many don't run at all. It seems to me that most were written 3-4 years ago for AS2 .sols and no longer work with FP9/AS3 sols. I'd attempt to write my own using AIR but I can't find a new ...

does a good swf to exe wraper open source exists ?

i think the best part of flash is the possibility to create not squared user interfaces, so i like the idea to create desktop apps using flash. I know AIR is for that but it doesnt allow real access to OperatingSystem apis and dlls and the commercial options are kind of dificult to customize. ...

Multithreading or green threading in actionscript?

Hello! I was wondering if there are any code or class libraries out there on how to implement multithreading or "green threading" in ActionScript. As you've might seen, Scott Peterson is developing some kind of toolset, but I haven't found any more info on this other than his performance on the Adobe MAX Chicago event. Regards Niclas ...

Algorithm to determine Daylight Saving Time of a date?

Originally I am looking for a solution in Actionscript. The point of this question is the algorithm, which detects the exact Minute, when a clock has to switch the Daylight Saving Time. So for example between the 25th and the 31th of October we have to check, if the actual date is a sunday, it is before or after 2 o'clock... ...

What is the best way to stop people hacking the PHP-based highscore table of a Flash game.

I'm talking about an action game with no upper score limit and no way to verify the score on the server by replaying moves etc. What I really need is the strongest encryption possible in Flash/PHP, and a way to prevent people calling the PHP page other than through my Flash file. I have tried some simple methods in the past of making m...

How to send SOAP requests in ISO-8859-1 with Flex ?

Flex uses by default UTF-8. I have not fount a way to specify a different encoding/charset on the actionscript WebService class. Thanks in advance for your help ...

In Flex/AS3, how do I get a class definition of an embedded asset with getDefinitionByName

I have a class with many embedded assets. Within the class, I would like to get the class definition of an asset by name. I have tried using getDefinitionByName(), and also ApplicationDomain.currentDomain.getDefinition() but neither work. Example: public class MyClass { [Embed(source="images/image1.png")] private static var Image1...

Change value of attribute on an XML object in AS3

Is there a easy way to do this? Or do I have to parse the file and do some search/replacing on my own? The ideal would be something like: var myXML:XML; // ... load xml data into the XML object myXML.someAttribute = newValue; ...