Jump to content

Flash and PHP


kevincro

Recommended Posts

$id = $userdata['user_level'];
<a href="../home.php?item_id=$id">

 

There is nothing wrong with that code. Using data saved in a php variable for insertion in a link is very common. What exactly are you having trouble with. You're being quite vague IMO.

Link to comment
https://forums.phpfreaks.com/topic/97927-flash-and-php/#findComment-501565
Share on other sites

My vagueness is really more ignorance than anything else.  In the program I'm using I have to enter the url associated with each button.  Then the program outputs an swf file and an html file. 

 

The HTML contains the following code:

 

<object 
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" 

width="126"
height="207">
<param name="BGCOLOR" value="#61678">
<param name=movie value="usermenua.swf">
<param name=quality value=high>

<embed src="usermenua.swf"
quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" 
type="application/x-shockwave-flash"
width="126"
height="207"
bgcolor="#61678">
</embed>
</object>

 

I assume this code points the browser to the swf file.  I don't see any way of including the php variable into the links in the flash menu.

Link to comment
https://forums.phpfreaks.com/topic/97927-flash-and-php/#findComment-501574
Share on other sites

Yes, you can call a dynamic link from within a flash movie... but not without using some actionscript to "catch" the variable inside the swf... The html page you uploaded is merely a holder for the swf file.

 

This link may help explain it a bit better

 

http://www.kirupa.com/forum/showthread.php?t=101228

 

 

Link to comment
https://forums.phpfreaks.com/topic/97927-flash-and-php/#findComment-501580
Share on other sites

 

 

Yes, you can call a dynamic link from within a flash movie... but not without using some actionscript to "catch" the variable inside the swf... The html page you uploaded is merely a holder for the swf file.

Okay, thanks I just wanted to know if it were possible before I started looking through Flash manuals. 

 

Link to comment
https://forums.phpfreaks.com/topic/97927-flash-and-php/#findComment-501586
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.