;

PDA

Click to See Complete Forum and Search --> : combine Flash and ASP


gerjan
06-17-2003, 10:02 AM
Hello,

Does anyone known a book or online tutorial to combine Flash with ASP.
I'm a good Flash designer and a good ASP developer, but I don't know how to use this together.

tnx in advange

GMF ™
06-17-2003, 11:31 AM
Try to do a search here http://www.flashkit.com/tutorials/?

foci
06-17-2003, 07:42 PM
There is a decent book called Flash .Net, the first part of the book covers Flash and ASP , the second part covers Flash Remoting.

Dr.Funk
06-17-2003, 08:47 PM
Im not sure you need a whole book on this topic? i wouldnt expect it to be more than 15 pages long. If you have a solid VB/VBScript/ASP/Flash background you should have no problem sending data to and from flash.(not sure the previous poster understands the major differences between asp.net and asp but im assuming you are not familiar with .net since you said asp) Everyone develops there own unique ways but here is a starter kit:

file: "data.asp"
ASP output:

<%
someData = "This"
someData2 = "is"
someData3 = "easy"

response.write "&someData="& someData &"&someData2="& someData2 &"&someData3="& someData3 &"&count=3&"
%>


Flash recognizes "&" as terminators so make sure your output has a terminator at the begining and the end of your response. to load these

Flash Input:
Line1 Layer1:

count = "";
loadVariables(data.asp', this);

line2 layer1:

if(count == "") gotoAndStop(1);

line3 layer1:
Place a dynamic text field with var: _root.someData etc...

There is also a way to pass data using the Embed and Object tags flash generates. Simply add your querystring to the filename like src="flashfile.swf?someData=this&someData1=is&someData=Easy"

That should help you get started.... There is also some good threads in here dealing with this if you look hard :D

whirld peas

Musicman
06-18-2003, 03:04 AM
Hi.

a bit of warning - on the actionscript part: if your loop goes back to the frame with the loadvariables call, you will be firing requests at the webserver with your frame rate. The sequence should be
1st frame: load variables
2nd frame blank
3rd frame: go back to 2nd if data not ready

Musicman

Dr.Funk
06-18-2003, 03:06 AM
thanx for that correction...

gerjan
06-19-2003, 06:48 AM
Tnx Guys, sorry for the late replay, but I had some days off :)

It realy helped me out but I devently have to learn actionscripting for fully control on my flashsites.

Again, tnx

thape
06-19-2003, 12:39 PM
Originally posted by foci
There is a decent book called Flash .Net, the first part of the book covers Flash and ASP , the second part covers Flash Remoting.

i wouldnt recommend this book to beginning actionscripters..

thape

gerjan
06-20-2003, 06:09 AM
Because it's to difficult for a rookie?

thape
06-20-2003, 07:25 AM
Originally posted by gerjan
Because it's to difficult for a rookie?

yep :mrpimp: