Solved

passing values form asp tp flash

Posted on 2002-06-25
3
189 Views
Last Modified: 2010-04-03
Dear Friends,

I have created a Shockwave flash Movie .swf file. I need to save the movie as an image from the flash movie which is running in the browser at runtime. For eg: I got a movie which contains a flash button and an image. On Clicking on that button (thro' Action script in flash), the image has to save to some directory. How can i do it?

I am using Flash 5.0 version.

Thanx in advance

Regards
Muthu kumaran

Hi,

I need to pass a value which is in the query string to the flash movie.

See the below eg:

<%@language = "VBSCript"%>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ID=SAMPLE WIDTH=750 HEIGHT=360>
      <PARAM NAME=movie VALUE="Sample.swf">
      <PARAM NAME=loop VALUE=false>
      <PARAM NAME=menu VALUE=false>
      <PARAM NAME=quality VALUE=high>
      <PARAM NAME=salign VALUE=LT>
      <PARAM NAME=bgcolor VALUE=#FFFFFF>
 <EMBED src="Sample.swf" loop=false menu=false quality=high salign=LT bgcolor=#FFFFFF  WIDTH=750 HEIGHT=360 swLiveConnect=true NAME=Sample TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</BODY>
</HTML>

Query string contains
sample.asp?myname=Muthu+kumaran

I need to pass this value of the variable (myname) to the movie (flash movie) dynamically.

Can anyone help me in solving this problem?

Thanx

Muthu kumaran



0
Comment
Question by:samkumar_21
3 Comments
 
LVL 6

Accepted Solution

by:
rootdir earned 100 total points
ID: 7110814
you can pass parameter from asp to flash through query string.

like this, modify following string

<PARAM NAME=movie VALUE="Sample.swf">

 like
<%
    response.write("<PARAM NAME=movie VALUE='Sample.swf?myname='" & strMyName & "'">")
%>

Check these urls for other asp flash integration

http://www.asp101.com/articles/flash/index.asp

http://www.aspheute.com/english/20000908.asp

http://www.scripts.nl/flash/f-asp1.asp

http://www.mentaleye.com/totext/

Here you are passing parameter from asp to flash movie.

Create variable inside flash movie get above parameter by calling function getVars(). Assign this variable to dynamic text.

But If you are trying to save the image, inside same directory this is not possible through flash. Flash will not allow you to save image on web server or not on client machine.

You can save the files through asp file-controls some are freely avaliable on internet or you can write your own using filesystemobject.

I don't understand why you are trying to do this trough flash. I need to see your site can you upload somewhere?

RootDir
0
 
LVL 9

Expert Comment

by:OBCT
ID: 10331374
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept rootdir's comment as answer.

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

OBCT
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now