Reply LinkBack Thread Tools Search this Thread
Old 13-03-2007, 09:36   #1 (permalink)
dpc036
Senior Member
 
dpc036's Avatar
 
Join Date: May 2005
Location: St Helens
Posts: 451
How to Personalise a Flash Invite.

ive been asked to produce a online flash invite which would be sent as a link in an email to clients.

how would i go about personalising it to each person?
xml?
or taken from the email somehow.

cheers
  Reply With Quote
Old 13-03-2007, 10:25   #2 (permalink)
d*d
Senior Member
 
d*d's Avatar
 
Join Date: Oct 2004
Location: Bristol
Posts: 3,030
you could place the name in the link, ie www.flashinviteurl.com?name=gary and use php to write the FLASHVARS variable.

XML would work but is needlessley more complicated, you'd still need to get some sort of information from the link to match the name up
  Reply With Quote
Old 13-03-2007, 10:39   #3 (permalink)
dpc036
Senior Member
 
dpc036's Avatar
 
Join Date: May 2005
Location: St Helens
Posts: 451
ok so specify the location on the server of the flash file www.flashinviteurl.com

?name=gary this bit just passes the info to php which is then stuck into the flash file.

that right?
  Reply With Quote
Old 13-03-2007, 11:31   #4 (permalink)
dpc036
Senior Member
 
dpc036's Avatar
 
Join Date: May 2005
Location: St Helens
Posts: 451
ive googled Flashvar and found some examples.

PHP Code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  codebase="http://macromedia.com/cabs/swflash.cab#version=6,0,0,0"
  ID=flaMovie WIDTH=250 HEIGHT=250>
  <PARAM NAME=movie VALUE="flaMovie3.swf">
  <PARAM NAME=FlashVars VALUE="<?php echo($QUERY_STRING);?>">
  <PARAM NAME=quality VALUE=medium>
  <PARAM NAME=bgcolor VALUE=#99CC33>
  <EMBED src="flaMovie3.swf" FlashVars="<?php echo($QUERY_STRING);?>"
    bgcolor=#99CC33 WIDTH=250 HEIGHT=250 
    TYPE="application/x-shockwave-flash">
  </EMBED>
</OBJECT>

would that work with the link method you said?
  Reply With Quote
Old 13-03-2007, 12:16   #5 (permalink)
d*d
Senior Member
 
d*d's Avatar
 
Join Date: Oct 2004
Location: Bristol
Posts: 3,030
Yeah I've used a similar method to pass variable to a flash document before, if you use a javascript method to embed flash you may need to put the <>php brackets in there.
  Reply With Quote
Old 13-03-2007, 12:22   #6 (permalink)
dpc036
Senior Member
 
dpc036's Avatar
 
Join Date: May 2005
Location: St Helens
Posts: 451
thanks for your help
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8