PDA

View Full Version : C# .NET - send data to a SWF at runtime


knowltonAS3
01-26-2011, 03:51 PM
Hello everyone!

New to this forum and new to AS3 / Flash so be gentle.

I don't see much online about .NET apps communicating with .SWF files, but I do see a lot of stuff with PHP and .SWFs. Why is that? (just curious).

But my real question is...how can I send data back to a .SWF that is running on my .aspx page (at runtime)?

I have a .SWF with some ActionScript that I have managed to piece together by reading books and articles online. It seems to be working, except, as my .NET page loads the content into the database from each file it uploads...I don't know how to send status updates and messages back to the SWF as each file is processed.

Potemkyn
02-07-2011, 06:12 PM
Howdy, and welcome to ActionScript.org!

I'd have to guess at why so many PHP/MySQL sites and info: Cost and availability. It could also be easier to work with. It's been a long time since I've used them.

I used LoadVars to communicate with ASP.NET, but it was AS2. It's an object so you can send and recieve a single variable or multiple. The ASP.NET code is C#, but some is plain ASP/VB.

If you want an example, send me a note. I'll be converting it to AS3 one day, but today is not that day ;)

Mike