PDA

View Full Version : LoadVars help


Qwertz
02-18-2009, 05:10 PM
complete noob here if someone can walk me threw this please :)

I have a php file named flashbanner.php and in it is this:

<?php

if (iMEMBER) {
echo ('Welcome ');
echo ($userdata['user_name']);
}

if (iGUEST) {
echo ('Welcome Guest');
}

?>

what this does is it says Welcome Guests to guests, and Welcome (username) to users. I want this to be in flash, and ive researched all over for echos in flash, but i cant find anything on it. so how would i go about putting this code in Flash?

endergrl
02-19-2009, 02:02 PM
when you are embedding the flash file do something like this: (i've underlined the two places you can pass in the variable,




<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1008" height="567" id="shell" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="flashvars" value="name = nameVariable">
<param name="movie" value="lessons/shell.swf?lessonID=69" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="lessons/shell.swf?lessonID=69" quality="high" bgcolor="#ffffff" width="1008" height="567" name="shell" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>