Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

E-mail to ASP to FLASH 1

Status
Not open for further replies.

Roel018

Programmer
Jun 12, 2002
30
NL
Hi all,

I've encountered the next problem:


After user-registration process (in flash and asp) I send an activation e-mail to the new member with an activation link in it.
That link looks something like:
http://www.myweb.com/activateaccount.asp?id=12313

Now, I'm trying to get this id string into a flash movie, but I'm not sure of the method and tactics I'm using to accomplish this.

Should I bound the id string to a var in the activateaccount.asp file ? And how do I do this ? How do I push this var than to my flash movie ???

The goal is when the user clicks the link in the e-mail to show him/her a page in flash with the id code (parsed as a variable in flash).


Who can help me out ????

Thnx in advance !!!
Roel
 
Yes.

ASP page defines the var and has the object and embed tags for the Flash movie. Example:

Code:
<%
strID = request.querystring("id")
%>

Then your embed/object tags:

Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[URL unfurl="true"]http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"[/URL] width="800" height="20" id="myMovie" align="middle" VIEWASTEXT>
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="myMovie.swf?id=<%=strID%>" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="myMovie.swf?id=<%=strID%>" quality="high" bgcolor="#ffffff" width="800" height="20" name="myMovie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL] />
</object>

In the example above the variable "id" will be available on the root level of the Flash movie (_root.id). If you have a dynamic text field on the stage with the instance name of emailID you could display the information in that text box.

Code:
_root.emailID.text = _root.id;

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 

JT YOU DID KNOW WHAT YOU WERE DOING !!!!! It works ;-) ..perfectly ! You saved me a lot of costly time, thanks m8 !

Cheers
Roel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top