Edward Posted May 29, 2008 Share Posted May 29, 2008 Hi, I am trying to pass data from a MySQL database into a Flash movie within a Flash movie. Once connected, I pass the variables to Flash like so: <embed src="catalogue.swf?name=john_smith"> I can use this within my container movie, by placing a text box on the canvas with the Var value as name, but cannot get this text box to show the value when placed in a swf which will be inside the container swf. Does anyone know how this is possible? I've tried changing the Var value to _parent.name but it doesn't work. Thank you in advance. Link to comment https://forums.phpfreaks.com/topic/107891-solved-passing-php-variables-to-a-movie-within-a-movie/ Share on other sites More sharing options...
rondog Posted May 29, 2008 Share Posted May 29, 2008 try _root.name Link to comment https://forums.phpfreaks.com/topic/107891-solved-passing-php-variables-to-a-movie-within-a-movie/#findComment-553071 Share on other sites More sharing options...
rondog Posted May 29, 2008 Share Posted May 29, 2008 or in your container swf..make a global variable equal to name and then try access that var from your movie inside of the container Link to comment https://forums.phpfreaks.com/topic/107891-solved-passing-php-variables-to-a-movie-within-a-movie/#findComment-553072 Share on other sites More sharing options...
Edward Posted May 30, 2008 Author Share Posted May 30, 2008 Thanks Rondog, _root solved it! I had been trying _parent which didn't work. Thank you very much. Link to comment https://forums.phpfreaks.com/topic/107891-solved-passing-php-variables-to-a-movie-within-a-movie/#findComment-553297 Share on other sites More sharing options...
rondog Posted May 30, 2008 Share Posted May 30, 2008 no problem dude Link to comment https://forums.phpfreaks.com/topic/107891-solved-passing-php-variables-to-a-movie-within-a-movie/#findComment-553694 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.