Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / May 2005



Tip: Looking for answers? Try searching our database.

Getting url variables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gs@liquidj - 31 May 2005 19:33 GMT
I am creating an eCard application. I created the front end, which passes the
info to a database, and sends out an email to notify the recipient. The Url
with the email has two variables attached to the url string. When the recipent
selects the link, they go to a page where there is another flash file that
needs to read the two variables, and then makes a call to the database (via
php) to retrieve the information and display it.

ex:
http://www.whatever.com?id=12356678&num=23455678789

I can't seem to get the movie clip application to read the two variables in
the url. I thought the main timeline of any embedded flash file can access
these variables. I have code on the main timeline to pass the info to the mc
app. What am I doing incorrectly here?

g
gs@liquidj - 31 May 2005 21:03 GMT
answering my own question:
And then the variables read

<?
  $num = $_GET['num'];
  $id = $_GET['id'];
  $swf = "swf/ecard.swf?id=".$id."&num=".$num;
  ?>
    object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
version=7,0,0,0" width="760" height="500" id="ecard" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="movie" value="<?  echo $swf?>" />
        <param name="quality" value="high" />
        <param name="bgcolor" value="#F4F2D7" />
        <embed src="<?  echo $swf?>" quality="high" bgcolor="#F4F2D7"
width="760" height="500" name="ecard" align="middle"
allowscriptaccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>
      </object>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.