Solved

passing values form asp tp flash

Posted on 2002-06-25
3
218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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…
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…
The goal of the tutorial is to teach the user how to how to record live broadcast.
Suggested Courses

710 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