Flash-Javascript-ASP-Javascript-Flash Integration

3 views
Skip to first unread message

Javediq143

unread,
Oct 7, 2009, 5:15:40 AM10/7/09
to Orkut Developer Forum
Hi All,
First of all I want to describe my API. This time it will be partly in
flash, I mean one section where the flash will get load. When the user
clicks and goes to this section, the swf loaded will present a
question with 4 options. Once the user clicks on any option, the swf
will load the next question and so on. And at the last, all the user
options will get stored in the database which will be used for further
processing. The ASP page receive the data from flash and store them in
database AND return either True/False to flash. It means data are
going from and coming in flash. I'm sure you guys must have got the
idea of the application!!!

Moving further... I've developed my flash interface, the database and
the ASP page also!!! I'm using Flash 8.0 and AS2 which is loading the
question from an XML file. Guys the thing is working absolutely fine
locally and also on the server!!! Now I want to take this on ORKUT!!!!

For doing this, below is my logic:
1) At the last question answered, the flash will call a Javascript
function "getPage()" and passing all the user answer to this function.

2) This JS function will call the ASP page, thereby transferring the
data which the page will store in Database. "Inside getPage() a code
gadgets.io.makeRequest(url,callback,params);"

3) This ASP page will return Success/Failure to the Callback function
"callback()"

4) This callback() will call a function defined in AS and this AS
function will display that in swf.

I dont know whether my logic is right or wrong but I think this could
be the way!!! I want to know will this take me to my destination or is
there a better way to go!!!! Or the most important thing to know, IS
THIS POSSIBLE, FLASH-JS-ASP INTEGRATION, IN ORKUT.

Can anyone help me on this. Any suggestion.. Any other fundahhhhh.

Please help me because I was not knowing anything about AS but with
God's help I'm able to develop this in AS!!!! Now i dont want to scrap
this idea and use simple HTML form to collect the user preference!!!
Please help me soon.

Thanks & Regards,
Javed

Dhaval Pancholi

unread,
Oct 7, 2009, 6:35:56 AM10/7/09
to Orkut Developer Forum
Hi Javed ,

You have given a really nice application of your project here.

Yes it is possible JS-FLASH to any web language eg: php,jsp,asp Yes
your logic is completely right.

You can directly call your js function from flash with External
Interface

I have done this in many projects. Cheers!!!! you are going right
way ......

Javediq143

unread,
Oct 10, 2009, 3:54:47 AM10/10/09
to Orkut Developer Forum
Hi Dhaval,

First of all, thanks for your appreciation. I will try me best to make
this LIVE on orkut soon. And I want to tell you that I didn't required
to follow the below steps!! Flash does that all. I've used SendAndLoad
function of ActionScript which is posting the values to ASP and
getting the response from ASP and displaying it on a particular frame.
But I'm stuck at other part of this API.

Please follow this link http://groups.google.com/group/opensocial-orkut/browse_thread/thread/ab468f79abe3b32b#
where I've mentioned my problem and the API in detail. Please give a
try to solve that.

Thanks & Regards,
Javed
Reply all
Reply to author
Forward
0 new messages